Annotation of embedaddon/php/configure, revision 1.1.1.2

1.1       misho       1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.2 ! misho       3: # Generated by GNU Autoconf 2.69.
1.1       misho       4: #
                      5: #
1.1.1.2 ! misho       6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.1       misho       7: #
                      8: #
                      9: # This configure script is free software; the Free Software Foundation
                     10: # gives unlimited permission to copy, distribute and modify it.
                     11: ## -------------------- ##
                     12: ## M4sh Initialization. ##
                     13: ## -------------------- ##
                     14: 
                     15: # Be more Bourne compatible
                     16: DUALCASE=1; export DUALCASE # for MKS sh
                     17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
                     18:   emulate sh
                     19:   NULLCMD=:
                     20:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
                     21:   # is contrary to our usage.  Disable this feature.
                     22:   alias -g '${1+"$@"}'='"$@"'
                     23:   setopt NO_GLOB_SUBST
                     24: else
                     25:   case `(set -o) 2>/dev/null` in #(
                     26:   *posix*) :
                     27:     set -o posix ;; #(
                     28:   *) :
                     29:      ;;
                     30: esac
                     31: fi
                     32: 
                     33: 
                     34: as_nl='
                     35: '
                     36: export as_nl
                     37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                     38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                     39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                     40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                     41: # Prefer a ksh shell builtin over an external printf program on Solaris,
                     42: # but without wasting forks for bash or zsh.
                     43: if test -z "$BASH_VERSION$ZSH_VERSION" \
                     44:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                     45:   as_echo='print -r --'
                     46:   as_echo_n='print -rn --'
                     47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                     48:   as_echo='printf %s\n'
                     49:   as_echo_n='printf %s'
                     50: else
                     51:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                     52:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                     53:     as_echo_n='/usr/ucb/echo -n'
                     54:   else
                     55:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                     56:     as_echo_n_body='eval
                     57:       arg=$1;
                     58:       case $arg in #(
                     59:       *"$as_nl"*)
                     60:        expr "X$arg" : "X\\(.*\\)$as_nl";
                     61:        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                     62:       esac;
                     63:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                     64:     '
                     65:     export as_echo_n_body
                     66:     as_echo_n='sh -c $as_echo_n_body as_echo'
                     67:   fi
                     68:   export as_echo_body
                     69:   as_echo='sh -c $as_echo_body as_echo'
                     70: fi
                     71: 
                     72: # The user is always right.
                     73: if test "${PATH_SEPARATOR+set}" != set; then
                     74:   PATH_SEPARATOR=:
                     75:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                     76:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                     77:       PATH_SEPARATOR=';'
                     78:   }
                     79: fi
                     80: 
                     81: 
                     82: # IFS
                     83: # We need space, tab and new line, in precisely that order.  Quoting is
                     84: # there to prevent editors from complaining about space-tab.
                     85: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                     86: # splitting by setting IFS to empty value.)
                     87: IFS=" ""       $as_nl"
                     88: 
                     89: # Find who we are.  Look in the path if we contain no directory separator.
                     90: as_myself=
                     91: case $0 in #((
                     92:   *[\\/]* ) as_myself=$0 ;;
                     93:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     94: for as_dir in $PATH
                     95: do
                     96:   IFS=$as_save_IFS
                     97:   test -z "$as_dir" && as_dir=.
                     98:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                     99:   done
                    100: IFS=$as_save_IFS
                    101: 
                    102:      ;;
                    103: esac
                    104: # We did not find ourselves, most probably we were run as `sh COMMAND'
                    105: # in which case we are not to be found in the path.
                    106: if test "x$as_myself" = x; then
                    107:   as_myself=$0
                    108: fi
                    109: if test ! -f "$as_myself"; then
                    110:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                    111:   exit 1
                    112: fi
                    113: 
                    114: # Unset variables that we do not need and which cause bugs (e.g. in
                    115: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                    116: # suppresses any "Segmentation fault" message there.  '((' could
                    117: # trigger a bug in pdksh 5.2.14.
                    118: for as_var in BASH_ENV ENV MAIL MAILPATH
                    119: do eval test x\${$as_var+set} = xset \
                    120:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
                    121: done
                    122: PS1='$ '
                    123: PS2='> '
                    124: PS4='+ '
                    125: 
                    126: # NLS nuisances.
                    127: LC_ALL=C
                    128: export LC_ALL
                    129: LANGUAGE=C
                    130: export LANGUAGE
                    131: 
                    132: # CDPATH.
                    133: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                    134: 
1.1.1.2 ! misho     135: # Use a proper internal environment variable to ensure we don't fall
        !           136:   # into an infinite loop, continuously re-executing ourselves.
        !           137:   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
        !           138:     _as_can_reexec=no; export _as_can_reexec;
        !           139:     # We cannot yet assume a decent shell, so we have to provide a
        !           140: # neutralization value for shells without unset; and this also
        !           141: # works around shells that cannot unset nonexistent variables.
        !           142: # Preserve -v and -x to the replacement shell.
        !           143: BASH_ENV=/dev/null
        !           144: ENV=/dev/null
        !           145: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
        !           146: case $- in # ((((
        !           147:   *v*x* | *x*v* ) as_opts=-vx ;;
        !           148:   *v* ) as_opts=-v ;;
        !           149:   *x* ) as_opts=-x ;;
        !           150:   * ) as_opts= ;;
        !           151: esac
        !           152: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
        !           153: # Admittedly, this is quite paranoid, since all the known shells bail
        !           154: # out after a failed `exec'.
        !           155: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
        !           156: as_fn_exit 255
        !           157:   fi
        !           158:   # We don't want this to propagate to other subprocesses.
        !           159:           { _as_can_reexec=; unset _as_can_reexec;}
1.1       misho     160: if test "x$CONFIG_SHELL" = x; then
                    161:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
                    162:   emulate sh
                    163:   NULLCMD=:
                    164:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
                    165:   # is contrary to our usage.  Disable this feature.
                    166:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
                    167:   setopt NO_GLOB_SUBST
                    168: else
                    169:   case \`(set -o) 2>/dev/null\` in #(
                    170:   *posix*) :
                    171:     set -o posix ;; #(
                    172:   *) :
                    173:      ;;
                    174: esac
                    175: fi
                    176: "
                    177:   as_required="as_fn_return () { (exit \$1); }
                    178: as_fn_success () { as_fn_return 0; }
                    179: as_fn_failure () { as_fn_return 1; }
                    180: as_fn_ret_success () { return 0; }
                    181: as_fn_ret_failure () { return 1; }
                    182: 
                    183: exitcode=0
                    184: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
                    185: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
                    186: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
                    187: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
                    188: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
                    189: 
                    190: else
                    191:   exitcode=1; echo positional parameters were not saved.
                    192: fi
1.1.1.2 ! misho     193: test x\$exitcode = x0 || exit 1
        !           194: test -x / || exit 1"
1.1       misho     195:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
                    196:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
                    197:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
                    198:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
                    199: test \$(( 1 + 1 )) = 2 || exit 1"
                    200:   if (eval "$as_required") 2>/dev/null; then :
                    201:   as_have_required=yes
                    202: else
                    203:   as_have_required=no
                    204: fi
                    205:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
                    206: 
                    207: else
                    208:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    209: as_found=false
                    210: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    211: do
                    212:   IFS=$as_save_IFS
                    213:   test -z "$as_dir" && as_dir=.
                    214:   as_found=:
                    215:   case $as_dir in #(
                    216:         /*)
                    217:           for as_base in sh bash ksh sh5; do
                    218:             # Try only shells that exist, to save several forks.
                    219:             as_shell=$as_dir/$as_base
                    220:             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    221:                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    222:   CONFIG_SHELL=$as_shell as_have_required=yes
                    223:                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    224:   break 2
                    225: fi
                    226: fi
                    227:           done;;
                    228:        esac
                    229:   as_found=false
                    230: done
                    231: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
                    232:              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
                    233:   CONFIG_SHELL=$SHELL as_have_required=yes
                    234: fi; }
                    235: IFS=$as_save_IFS
                    236: 
                    237: 
                    238:       if test "x$CONFIG_SHELL" != x; then :
1.1.1.2 ! misho     239:   export CONFIG_SHELL
        !           240:              # We cannot yet assume a decent shell, so we have to provide a
        !           241: # neutralization value for shells without unset; and this also
        !           242: # works around shells that cannot unset nonexistent variables.
        !           243: # Preserve -v and -x to the replacement shell.
        !           244: BASH_ENV=/dev/null
        !           245: ENV=/dev/null
        !           246: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
        !           247: case $- in # ((((
        !           248:   *v*x* | *x*v* ) as_opts=-vx ;;
        !           249:   *v* ) as_opts=-v ;;
        !           250:   *x* ) as_opts=-x ;;
        !           251:   * ) as_opts= ;;
        !           252: esac
        !           253: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
        !           254: # Admittedly, this is quite paranoid, since all the known shells bail
        !           255: # out after a failed `exec'.
        !           256: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
        !           257: exit 255
1.1       misho     258: fi
                    259: 
                    260:     if test x$as_have_required = xno; then :
                    261:   $as_echo "$0: This script requires a shell more modern than all"
                    262:   $as_echo "$0: the shells that I found on your system."
                    263:   if test x${ZSH_VERSION+set} = xset ; then
                    264:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
                    265:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
                    266:   else
                    267:     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
                    268: $0: including any error possibly output before this
                    269: $0: message. Then install a modern shell, or manually run
                    270: $0: the script under such a shell if you do have one."
                    271:   fi
                    272:   exit 1
                    273: fi
                    274: fi
                    275: fi
                    276: SHELL=${CONFIG_SHELL-/bin/sh}
                    277: export SHELL
                    278: # Unset more variables known to interfere with behavior of common tools.
                    279: CLICOLOR_FORCE= GREP_OPTIONS=
                    280: unset CLICOLOR_FORCE GREP_OPTIONS
                    281: 
                    282: ## --------------------- ##
                    283: ## M4sh Shell Functions. ##
                    284: ## --------------------- ##
                    285: # as_fn_unset VAR
                    286: # ---------------
                    287: # Portably unset VAR.
                    288: as_fn_unset ()
                    289: {
                    290:   { eval $1=; unset $1;}
                    291: }
                    292: as_unset=as_fn_unset
                    293: 
                    294: # as_fn_set_status STATUS
                    295: # -----------------------
                    296: # Set $? to STATUS, without forking.
                    297: as_fn_set_status ()
                    298: {
                    299:   return $1
                    300: } # as_fn_set_status
                    301: 
                    302: # as_fn_exit STATUS
                    303: # -----------------
                    304: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                    305: as_fn_exit ()
                    306: {
                    307:   set +e
                    308:   as_fn_set_status $1
                    309:   exit $1
                    310: } # as_fn_exit
                    311: 
                    312: # as_fn_mkdir_p
                    313: # -------------
                    314: # Create "$as_dir" as a directory, including parents if necessary.
                    315: as_fn_mkdir_p ()
                    316: {
                    317: 
                    318:   case $as_dir in #(
                    319:   -*) as_dir=./$as_dir;;
                    320:   esac
                    321:   test -d "$as_dir" || eval $as_mkdir_p || {
                    322:     as_dirs=
                    323:     while :; do
                    324:       case $as_dir in #(
                    325:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                    326:       *) as_qdir=$as_dir;;
                    327:       esac
                    328:       as_dirs="'$as_qdir' $as_dirs"
                    329:       as_dir=`$as_dirname -- "$as_dir" ||
                    330: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                    331:         X"$as_dir" : 'X\(//\)[^/]' \| \
                    332:         X"$as_dir" : 'X\(//\)$' \| \
                    333:         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                    334: $as_echo X"$as_dir" |
                    335:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                    336:            s//\1/
                    337:            q
                    338:          }
                    339:          /^X\(\/\/\)[^/].*/{
                    340:            s//\1/
                    341:            q
                    342:          }
                    343:          /^X\(\/\/\)$/{
                    344:            s//\1/
                    345:            q
                    346:          }
                    347:          /^X\(\/\).*/{
                    348:            s//\1/
                    349:            q
                    350:          }
                    351:          s/.*/./; q'`
                    352:       test -d "$as_dir" && break
                    353:     done
                    354:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                    355:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
                    356: 
                    357: 
                    358: } # as_fn_mkdir_p
1.1.1.2 ! misho     359: 
        !           360: # as_fn_executable_p FILE
        !           361: # -----------------------
        !           362: # Test if FILE is an executable regular file.
        !           363: as_fn_executable_p ()
        !           364: {
        !           365:   test -f "$1" && test -x "$1"
        !           366: } # as_fn_executable_p
1.1       misho     367: # as_fn_append VAR VALUE
                    368: # ----------------------
                    369: # Append the text in VALUE to the end of the definition contained in VAR. Take
                    370: # advantage of any shell optimizations that allow amortized linear growth over
                    371: # repeated appends, instead of the typical quadratic growth present in naive
                    372: # implementations.
                    373: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                    374:   eval 'as_fn_append ()
                    375:   {
                    376:     eval $1+=\$2
                    377:   }'
                    378: else
                    379:   as_fn_append ()
                    380:   {
                    381:     eval $1=\$$1\$2
                    382:   }
                    383: fi # as_fn_append
                    384: 
                    385: # as_fn_arith ARG...
                    386: # ------------------
                    387: # Perform arithmetic evaluation on the ARGs, and store the result in the
                    388: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                    389: # must be portable across $(()) and expr.
                    390: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                    391:   eval 'as_fn_arith ()
                    392:   {
                    393:     as_val=$(( $* ))
                    394:   }'
                    395: else
                    396:   as_fn_arith ()
                    397:   {
                    398:     as_val=`expr "$@" || test $? -eq 1`
                    399:   }
                    400: fi # as_fn_arith
                    401: 
                    402: 
                    403: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                    404: # ----------------------------------------
                    405: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                    406: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
                    407: # script with STATUS, using 1 if that was 0.
                    408: as_fn_error ()
                    409: {
                    410:   as_status=$1; test $as_status -eq 0 && as_status=1
                    411:   if test "$4"; then
                    412:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                    413:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
                    414:   fi
                    415:   $as_echo "$as_me: error: $2" >&2
                    416:   as_fn_exit $as_status
                    417: } # as_fn_error
                    418: 
                    419: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    420:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                    421:   as_expr=expr
                    422: else
                    423:   as_expr=false
                    424: fi
                    425: 
                    426: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                    427:   as_basename=basename
                    428: else
                    429:   as_basename=false
                    430: fi
                    431: 
                    432: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    433:   as_dirname=dirname
                    434: else
                    435:   as_dirname=false
                    436: fi
                    437: 
                    438: as_me=`$as_basename -- "$0" ||
                    439: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    440:         X"$0" : 'X\(//\)$' \| \
                    441:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                    442: $as_echo X/"$0" |
                    443:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    444:            s//\1/
                    445:            q
                    446:          }
                    447:          /^X\/\(\/\/\)$/{
                    448:            s//\1/
                    449:            q
                    450:          }
                    451:          /^X\/\(\/\).*/{
                    452:            s//\1/
                    453:            q
                    454:          }
                    455:          s/.*/./; q'`
                    456: 
                    457: # Avoid depending upon Character Ranges.
                    458: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                    459: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                    460: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                    461: as_cr_digits='0123456789'
                    462: as_cr_alnum=$as_cr_Letters$as_cr_digits
                    463: 
                    464: 
                    465:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
                    466:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
                    467:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
                    468:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
                    469:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
                    470:   sed -n '
                    471:     p
                    472:     /[$]LINENO/=
                    473:   ' <$as_myself |
                    474:     sed '
                    475:       s/[$]LINENO.*/&-/
                    476:       t lineno
                    477:       b
                    478:       :lineno
                    479:       N
                    480:       :loop
                    481:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                    482:       t loop
                    483:       s/-\n.*//
                    484:     ' >$as_me.lineno &&
                    485:   chmod +x "$as_me.lineno" ||
                    486:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
                    487: 
1.1.1.2 ! misho     488:   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
        !           489:   # already done that, so ensure we don't try to do so again and fall
        !           490:   # in an infinite loop.  This has already happened in practice.
        !           491:   _as_can_reexec=no; export _as_can_reexec
1.1       misho     492:   # Don't try to exec as it changes $[0], causing all sort of problems
                    493:   # (the dirname of $[0] is not the place where we might find the
                    494:   # original and so on.  Autoconf is especially sensitive to this).
                    495:   . "./$as_me.lineno"
                    496:   # Exit status is that of the last command.
                    497:   exit
                    498: }
                    499: 
                    500: ECHO_C= ECHO_N= ECHO_T=
                    501: case `echo -n x` in #(((((
                    502: -n*)
                    503:   case `echo 'xy\c'` in
                    504:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                    505:   xy)  ECHO_C='\c';;
                    506:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                    507:        ECHO_T='        ';;
                    508:   esac;;
                    509: *)
                    510:   ECHO_N='-n';;
                    511: esac
                    512: 
                    513: rm -f conf$$ conf$$.exe conf$$.file
                    514: if test -d conf$$.dir; then
                    515:   rm -f conf$$.dir/conf$$.file
                    516: else
                    517:   rm -f conf$$.dir
                    518:   mkdir conf$$.dir 2>/dev/null
                    519: fi
                    520: if (echo >conf$$.file) 2>/dev/null; then
                    521:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                    522:     as_ln_s='ln -s'
                    523:     # ... but there are two gotchas:
                    524:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    525:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.2 ! misho     526:     # In both cases, we have to default to `cp -pR'.
1.1       misho     527:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.2 ! misho     528:       as_ln_s='cp -pR'
1.1       misho     529:   elif ln conf$$.file conf$$ 2>/dev/null; then
                    530:     as_ln_s=ln
                    531:   else
1.1.1.2 ! misho     532:     as_ln_s='cp -pR'
1.1       misho     533:   fi
                    534: else
1.1.1.2 ! misho     535:   as_ln_s='cp -pR'
1.1       misho     536: fi
                    537: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    538: rmdir conf$$.dir 2>/dev/null
                    539: 
                    540: if mkdir -p . 2>/dev/null; then
                    541:   as_mkdir_p='mkdir -p "$as_dir"'
                    542: else
                    543:   test -d ./-p && rmdir ./-p
                    544:   as_mkdir_p=false
                    545: fi
                    546: 
1.1.1.2 ! misho     547: as_test_x='test -x'
        !           548: as_executable_p=as_fn_executable_p
1.1       misho     549: 
                    550: # Sed expression to map a string onto a valid CPP name.
                    551: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                    552: 
                    553: # Sed expression to map a string onto a valid variable name.
                    554: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                    555: 
                    556: 
                    557: 
                    558: # Check that we are running under the correct shell.
                    559: SHELL=${CONFIG_SHELL-/bin/sh}
                    560: 
                    561: case X$ECHO in
                    562: X*--fallback-echo)
                    563:   # Remove one level of quotation (which was required for Make).
                    564:   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
                    565:   ;;
                    566: esac
                    567: 
                    568: echo=${ECHO-echo}
                    569: if test "X$1" = X--no-reexec; then
                    570:   # Discard the --no-reexec flag, and continue.
                    571:   shift
                    572: elif test "X$1" = X--fallback-echo; then
                    573:   # Avoid inline document here, it may be left over
                    574:   :
                    575: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
                    576:   # Yippee, $echo works!
                    577:   :
                    578: else
                    579:   # Restart under the correct shell.
                    580:   exec $SHELL "$0" --no-reexec ${1+"$@"}
                    581: fi
                    582: 
                    583: if test "X$1" = X--fallback-echo; then
                    584:   # used as fallback echo
                    585:   shift
                    586:   cat <<EOF
                    587: $*
                    588: EOF
                    589:   exit 0
                    590: fi
                    591: 
                    592: # The HP-UX ksh and POSIX shell print the target directory to stdout
                    593: # if CDPATH is set.
                    594: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                    595: 
                    596: if test -z "$ECHO"; then
                    597: if test "X${echo_test_string+set}" != Xset; then
                    598: # find a string as large as possible, as long as the shell can cope with it
                    599:   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
                    600:     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
                    601:     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
                    602:        echo_test_string=`eval $cmd` &&
                    603:        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
                    604:     then
                    605:       break
                    606:     fi
                    607:   done
                    608: fi
                    609: 
                    610: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
                    611:    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
                    612:    test "X$echo_testing_string" = "X$echo_test_string"; then
                    613:   :
                    614: else
                    615:   # The Solaris, AIX, and Digital Unix default echo programs unquote
                    616:   # backslashes.  This makes it impossible to quote backslashes using
                    617:   #   echo "$something" | sed 's/\\/\\\\/g'
                    618:   #
                    619:   # So, first we look for a working echo in the user's PATH.
                    620: 
                    621:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                    622:   for dir in $PATH /usr/ucb; do
                    623:     IFS="$lt_save_ifs"
                    624:     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
                    625:        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
                    626:        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
                    627:        test "X$echo_testing_string" = "X$echo_test_string"; then
                    628:       echo="$dir/echo"
                    629:       break
                    630:     fi
                    631:   done
                    632:   IFS="$lt_save_ifs"
                    633: 
                    634:   if test "X$echo" = Xecho; then
                    635:     # We didn't find a better echo, so look for alternatives.
                    636:     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
                    637:        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
                    638:        test "X$echo_testing_string" = "X$echo_test_string"; then
                    639:       # This shell has a builtin print -r that does the trick.
                    640:       echo='print -r'
                    641:     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
                    642:         test "X$CONFIG_SHELL" != X/bin/ksh; then
                    643:       # If we have ksh, try running configure again with it.
                    644:       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
                    645:       export ORIGINAL_CONFIG_SHELL
                    646:       CONFIG_SHELL=/bin/ksh
                    647:       export CONFIG_SHELL
                    648:       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
                    649:     else
                    650:       # Try using printf.
                    651:       echo='printf %s\n'
                    652:       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
                    653:         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
                    654:         test "X$echo_testing_string" = "X$echo_test_string"; then
                    655:        # Cool, printf works
                    656:        :
                    657:       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
                    658:           test "X$echo_testing_string" = 'X\t' &&
                    659:           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
                    660:           test "X$echo_testing_string" = "X$echo_test_string"; then
                    661:        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
                    662:        export CONFIG_SHELL
                    663:        SHELL="$CONFIG_SHELL"
                    664:        export SHELL
                    665:        echo="$CONFIG_SHELL $0 --fallback-echo"
                    666:       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
                    667:           test "X$echo_testing_string" = 'X\t' &&
                    668:           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
                    669:           test "X$echo_testing_string" = "X$echo_test_string"; then
                    670:        echo="$CONFIG_SHELL $0 --fallback-echo"
                    671:       else
                    672:        # maybe with a smaller string...
                    673:        prev=:
                    674: 
                    675:        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
                    676:          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
                    677:          then
                    678:            break
                    679:          fi
                    680:          prev="$cmd"
                    681:        done
                    682: 
                    683:        if test "$prev" != 'sed 50q "$0"'; then
                    684:          echo_test_string=`eval $prev`
                    685:          export echo_test_string
                    686:          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
                    687:        else
                    688:          # Oops.  We lost completely, so just stick with echo.
                    689:          echo=echo
                    690:        fi
                    691:       fi
                    692:     fi
                    693:   fi
                    694: fi
                    695: fi
                    696: 
                    697: # Copy echo and quote the copy suitably for passing to libtool from
                    698: # the Makefile, instead of quoting the original, which is used later.
                    699: ECHO=$echo
                    700: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
                    701:    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
                    702: fi
                    703: 
                    704: 
                    705: 
                    706: 
                    707: tagnames=${tagnames+${tagnames},}CXX
                    708: 
                    709: test -n "$DJDIR" || exec 7<&0 </dev/null
                    710: exec 6>&1
                    711: 
                    712: # Name of the host.
                    713: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
                    714: # so uname gets run too.
                    715: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    716: 
                    717: #
                    718: # Initializations.
                    719: #
                    720: ac_default_prefix=/usr/local
                    721: ac_clean_files=
                    722: ac_config_libobj_dir=.
                    723: LIBOBJS=
                    724: cross_compiling=no
                    725: subdirs=
                    726: MFLAGS=
                    727: MAKEFLAGS=
                    728: 
                    729: # Identity of this package.
                    730: PACKAGE_NAME=
                    731: PACKAGE_TARNAME=
                    732: PACKAGE_VERSION=
                    733: PACKAGE_STRING=
                    734: PACKAGE_BUGREPORT=
                    735: PACKAGE_URL=
                    736: 
                    737: ac_unique_file="README.SVN-RULES"
                    738: # Factoring default headers for most tests.
                    739: ac_includes_default="\
                    740: #include <stdio.h>
                    741: #ifdef HAVE_SYS_TYPES_H
                    742: # include <sys/types.h>
                    743: #endif
                    744: #ifdef HAVE_SYS_STAT_H
                    745: # include <sys/stat.h>
                    746: #endif
                    747: #ifdef STDC_HEADERS
                    748: # include <stdlib.h>
                    749: # include <stddef.h>
                    750: #else
                    751: # ifdef HAVE_STDLIB_H
                    752: #  include <stdlib.h>
                    753: # endif
                    754: #endif
                    755: #ifdef HAVE_STRING_H
                    756: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
                    757: #  include <memory.h>
                    758: # endif
                    759: # include <string.h>
                    760: #endif
                    761: #ifdef HAVE_STRINGS_H
                    762: # include <strings.h>
                    763: #endif
                    764: #ifdef HAVE_INTTYPES_H
                    765: # include <inttypes.h>
                    766: #endif
                    767: #ifdef HAVE_STDINT_H
                    768: # include <stdint.h>
                    769: #endif
                    770: #ifdef HAVE_UNISTD_H
                    771: # include <unistd.h>
                    772: #endif"
                    773: 
                    774: ac_header_list=
                    775: ac_subst_vars='LTLIBOBJS
                    776: LIBTOOL
                    777: NMEDIT
                    778: DSYMUTIL
                    779: STRIP
                    780: AR
                    781: ECHO
                    782: PHP_VERSION_ID
                    783: PHP_VERSION
                    784: PHP_LIBS
                    785: PHP_LDFLAGS
                    786: PEAR_INSTALLDIR
                    787: NATIVE_RPATHS
                    788: INSTALL_IT
                    789: EXTRA_INCLUDES
                    790: INCLUDES
                    791: ZEND_EXTRA_LIBS
                    792: EXTRA_LIBS
                    793: EXTRA_LDFLAGS_PROGRAM
                    794: EXTRA_LDFLAGS
                    795: EXTENSION_DIR
                    796: DEBUG_CFLAGS
                    797: program_suffix
                    798: program_prefix
                    799: php_abs_top_srcdir
                    800: php_abs_top_builddir
                    801: abs_srcdir
                    802: abs_builddir
                    803: PHP_INSTALLED_SAPIS
                    804: EXPANDED_PHP_CONFIG_FILE_SCAN_DIR
                    805: EXPANDED_PHP_CONFIG_FILE_PATH
                    806: EXPANDED_LOCALSTATEDIR
                    807: EXPANDED_SYSCONFDIR
                    808: EXPANDED_DATADIR
                    809: EXPANDED_LIBDIR
                    810: EXPANDED_MANDIR
                    811: EXPANDED_SBINDIR
                    812: EXPANDED_BINDIR
                    813: EXPANDED_EXTENSION_DIR
                    814: EXPANDED_PEAR_INSTALLDIR
                    815: INCLUDE_PATH
                    816: INLINE_CFLAGS
                    817: RANLIB
                    818: SNMP_CONFIG
                    819: PDO_OCI_VERSION
                    820: PDO_OCI_DIR
                    821: PDO_OCI_SHARED_LIBADD
                    822: PDO_MYSQL_MODULE_TYPE
                    823: ODBC_TYPE
                    824: ODBC_LFLAGS
                    825: ODBC_LIBS
                    826: ODBC_INCLUDE
                    827: OCI8_ORACLE_VERSION
                    828: OCI8_DIR
                    829: OCI8_SHARED_LIBADD
                    830: MYSQL_INCLUDE
                    831: MYSQL_LIBS
                    832: MYSQL_MODULE_TYPE
                    833: CXXCPP
                    834: ac_ct_CXX
                    835: CXXFLAGS
                    836: CXX
                    837: ICU_CONFIG
                    838: OPENSSL_INCDIR_OPT
                    839: PKG_CONFIG
                    840: KRB5_CONFIG
                    841: LTP_GENHTML
                    842: LTP
                    843: ALLOCA
                    844: LIBOBJS
                    845: PROG_SENDMAIL
                    846: php_fpm_prefix
                    847: php_fpm_localstatedir
                    848: php_fpm_sysconfdir
                    849: php_fpm_group
                    850: php_fpm_user
                    851: SHLIB_DL_SUFFIX_NAME
                    852: SHLIB_SUFFIX_NAME
                    853: RE2C
                    854: YFLAGS
                    855: YACC
                    856: AWK
                    857: LN_S
                    858: CPP
                    859: OBJEXT
                    860: EXEEXT
                    861: ac_ct_CC
                    862: CPPFLAGS
                    863: LDFLAGS
                    864: CFLAGS
                    865: CC
                    866: target_os
                    867: target_vendor
                    868: target_cpu
                    869: target
                    870: host_os
                    871: host_vendor
                    872: host_cpu
                    873: host
                    874: build_os
                    875: build_vendor
                    876: build_cpu
                    877: build
                    878: CONFIGURE_OPTIONS
                    879: CONFIGURE_COMMAND
                    880: SED
                    881: EGREP
                    882: GREP
                    883: target_alias
                    884: host_alias
                    885: build_alias
                    886: LIBS
                    887: ECHO_T
                    888: ECHO_N
                    889: ECHO_C
                    890: DEFS
                    891: mandir
                    892: localedir
                    893: libdir
                    894: psdir
                    895: pdfdir
                    896: dvidir
                    897: htmldir
                    898: infodir
                    899: docdir
                    900: oldincludedir
                    901: includedir
                    902: localstatedir
                    903: sharedstatedir
                    904: sysconfdir
                    905: datadir
                    906: datarootdir
                    907: libexecdir
                    908: sbindir
                    909: bindir
                    910: program_transform_name
                    911: prefix
                    912: exec_prefix
                    913: PACKAGE_URL
                    914: PACKAGE_BUGREPORT
                    915: PACKAGE_STRING
                    916: PACKAGE_VERSION
                    917: PACKAGE_TARNAME
                    918: PACKAGE_NAME
                    919: PATH_SEPARATOR
                    920: SHELL'
                    921: ac_subst_files=''
                    922: ac_user_opts='
                    923: enable_option_checking
                    924: with_libdir
                    925: enable_rpath
                    926: enable_re2c_cgoto
                    927: enable_
                    928: with_aolserver
                    929: with_apxs
                    930: with_apache
                    931: enable_mod_charset
                    932: with_apxs2filter
                    933: with_apxs2
                    934: with_apache_hooks
                    935: with_apache_hooks_static
                    936: with_caudium
                    937: enable_cli
                    938: with_continuity
                    939: enable_embed
                    940: enable_fpm
                    941: with_fpm_user
                    942: with_fpm_group
                    943: with_isapi
                    944: with_litespeed
                    945: with_milter
                    946: with_nsapi
                    947: with_phttpd
                    948: with_pi3web
                    949: with_roxen
                    950: enable_roxen_zts
                    951: with_thttpd
                    952: with_tux
                    953: with_webjames
                    954: enable_cgi
                    955: enable_gcov
                    956: enable_debug
                    957: with_layout
                    958: with_config_file_path
                    959: with_config_file_scan_dir
                    960: enable_sigchild
                    961: enable_libgcc
                    962: enable_short_tags
                    963: enable_dmalloc
                    964: enable_ipv6
1.1.1.2 ! misho     965: enable_dtrace
1.1       misho     966: enable_fd_setsize
                    967: enable_all
                    968: with_regex
                    969: enable_libxml
                    970: with_libxml_dir
                    971: with_openssl
                    972: with_kerberos
                    973: with_pcre_regex
                    974: with_sqlite3
                    975: with_zlib
                    976: with_zlib_dir
                    977: enable_bcmath
                    978: with_bz2
                    979: enable_calendar
                    980: enable_ctype
                    981: with_curl
                    982: with_curlwrappers
                    983: enable_dba
                    984: with_qdbm
                    985: with_gdbm
                    986: with_ndbm
                    987: with_db4
                    988: with_db3
                    989: with_db2
                    990: with_db1
                    991: with_dbm
1.1.1.2 ! misho     992: with_tcadb
1.1       misho     993: with_cdb
                    994: enable_inifile
                    995: enable_flatfile
                    996: enable_dom
                    997: with_enchant
                    998: enable_exif
                    999: enable_fileinfo
                   1000: enable_filter
                   1001: with_pcre_dir
                   1002: enable_ftp
                   1003: with_openssl_dir
                   1004: with_gd
1.1.1.2 ! misho    1005: with_vpx_dir
1.1       misho    1006: with_jpeg_dir
                   1007: with_png_dir
                   1008: with_xpm_dir
                   1009: with_freetype_dir
                   1010: with_t1lib
                   1011: enable_gd_native_ttf
                   1012: enable_gd_jis_conv
                   1013: with_gettext
                   1014: with_gmp
                   1015: with_mhash
                   1016: enable_hash
                   1017: with_iconv
                   1018: with_imap
                   1019: with_imap_ssl
                   1020: with_interbase
                   1021: enable_intl
                   1022: with_icu_dir
                   1023: enable_json
                   1024: with_ldap
                   1025: with_ldap_sasl
                   1026: enable_mbstring
                   1027: enable_mbregex
                   1028: enable_mbregex_backtrack
                   1029: with_libmbfl
                   1030: with_onig
                   1031: with_mcrypt
                   1032: with_mssql
                   1033: with_mysql
                   1034: with_mysql_sock
                   1035: with_mysqli
                   1036: enable_embedded_mysqli
                   1037: with_oci8
                   1038: with_adabas
                   1039: with_sapdb
                   1040: with_solid
                   1041: with_ibm_db2
                   1042: with_ODBCRouter
                   1043: with_empress
                   1044: with_empress_bcs
                   1045: with_birdstep
                   1046: with_custom_odbc
                   1047: with_iodbc
                   1048: with_esoob
                   1049: with_unixODBC
                   1050: with_dbmaker
                   1051: enable_pcntl
                   1052: enable_pdo
                   1053: with_pdo_dblib
                   1054: with_pdo_firebird
                   1055: with_pdo_mysql
                   1056: with_pdo_oci
                   1057: with_pdo_odbc
                   1058: with_pdo_pgsql
                   1059: with_pdo_sqlite
                   1060: with_pgsql
                   1061: enable_phar
                   1062: enable_posix
                   1063: with_pspell
                   1064: with_libedit
                   1065: with_readline
                   1066: with_recode
                   1067: enable_session
                   1068: with_mm
                   1069: enable_shmop
                   1070: enable_simplexml
                   1071: with_snmp
                   1072: enable_soap
                   1073: enable_sockets
                   1074: with_sybase_ct
                   1075: enable_sysvmsg
                   1076: enable_sysvsem
                   1077: enable_sysvshm
                   1078: with_tidy
                   1079: enable_tokenizer
                   1080: enable_wddx
                   1081: with_libexpat_dir
                   1082: enable_xml
                   1083: enable_xmlreader
                   1084: with_xmlrpc
                   1085: with_iconv_dir
                   1086: enable_xmlwriter
                   1087: with_xsl
                   1088: enable_zip
                   1089: enable_mysqlnd
                   1090: enable_mysqlnd_compression_support
                   1091: with_pear
                   1092: with_zend_vm
                   1093: enable_maintainer_zts
                   1094: enable_inline_optimization
1.1.1.2 ! misho    1095: enable_zend_signals
1.1       misho    1096: with_tsrm_pth
                   1097: with_tsrm_st
                   1098: with_tsrm_pthreads
                   1099: enable_shared
                   1100: enable_static
                   1101: enable_fast_install
                   1102: with_gnu_ld
                   1103: enable_libtool_lock
                   1104: with_pic
                   1105: with_tags
                   1106: '
                   1107:       ac_precious_vars='build_alias
                   1108: host_alias
                   1109: target_alias
                   1110: CC
                   1111: CFLAGS
                   1112: LDFLAGS
                   1113: LIBS
                   1114: CPPFLAGS
                   1115: CPP
                   1116: YACC
                   1117: YFLAGS
                   1118: CXX
                   1119: CXXFLAGS
                   1120: CCC
                   1121: CXXCPP'
                   1122: 
                   1123: 
                   1124: # Initialize some variables set by options.
                   1125: ac_init_help=
                   1126: ac_init_version=false
                   1127: ac_unrecognized_opts=
                   1128: ac_unrecognized_sep=
                   1129: # The variables have the same names as the options, with
                   1130: # dashes changed to underlines.
                   1131: cache_file=/dev/null
                   1132: exec_prefix=NONE
                   1133: no_create=
                   1134: no_recursion=
                   1135: prefix=NONE
                   1136: program_prefix=NONE
                   1137: program_suffix=NONE
                   1138: program_transform_name=s,x,x,
                   1139: silent=
                   1140: site=
                   1141: srcdir=
                   1142: verbose=
                   1143: x_includes=NONE
                   1144: x_libraries=NONE
                   1145: 
                   1146: # Installation directory options.
                   1147: # These are left unexpanded so users can "make install exec_prefix=/foo"
                   1148: # and all the variables that are supposed to be based on exec_prefix
                   1149: # by default will actually change.
                   1150: # Use braces instead of parens because sh, perl, etc. also accept them.
                   1151: # (The list follows the same order as the GNU Coding Standards.)
                   1152: bindir='${exec_prefix}/bin'
                   1153: sbindir='${exec_prefix}/sbin'
                   1154: libexecdir='${exec_prefix}/libexec'
                   1155: datarootdir='${prefix}/share'
                   1156: datadir='${datarootdir}'
                   1157: sysconfdir='${prefix}/etc'
                   1158: sharedstatedir='${prefix}/com'
                   1159: localstatedir='${prefix}/var'
                   1160: includedir='${prefix}/include'
                   1161: oldincludedir='/usr/include'
                   1162: docdir='${datarootdir}/doc/${PACKAGE}'
                   1163: infodir='${datarootdir}/info'
                   1164: htmldir='${docdir}'
                   1165: dvidir='${docdir}'
                   1166: pdfdir='${docdir}'
                   1167: psdir='${docdir}'
                   1168: libdir='${exec_prefix}/lib'
                   1169: localedir='${datarootdir}/locale'
                   1170: mandir='${datarootdir}/man'
                   1171: 
                   1172: ac_prev=
                   1173: ac_dashdash=
                   1174: for ac_option
                   1175: do
                   1176:   # If the previous option needs an argument, assign it.
                   1177:   if test -n "$ac_prev"; then
                   1178:     eval $ac_prev=\$ac_option
                   1179:     ac_prev=
                   1180:     continue
                   1181:   fi
                   1182: 
                   1183:   case $ac_option in
                   1184:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                   1185:   *=)   ac_optarg= ;;
                   1186:   *)    ac_optarg=yes ;;
                   1187:   esac
                   1188: 
                   1189:   # Accept the important Cygnus configure options, so we can diagnose typos.
                   1190: 
                   1191:   case $ac_dashdash$ac_option in
                   1192:   --)
                   1193:     ac_dashdash=yes ;;
                   1194: 
                   1195:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                   1196:     ac_prev=bindir ;;
                   1197:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                   1198:     bindir=$ac_optarg ;;
                   1199: 
                   1200:   -build | --build | --buil | --bui | --bu)
                   1201:     ac_prev=build_alias ;;
                   1202:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                   1203:     build_alias=$ac_optarg ;;
                   1204: 
                   1205:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                   1206:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   1207:     ac_prev=cache_file ;;
                   1208:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   1209:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                   1210:     cache_file=$ac_optarg ;;
                   1211: 
                   1212:   --config-cache | -C)
                   1213:     cache_file=config.cache ;;
                   1214: 
                   1215:   -datadir | --datadir | --datadi | --datad)
                   1216:     ac_prev=datadir ;;
                   1217:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                   1218:     datadir=$ac_optarg ;;
                   1219: 
                   1220:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                   1221:   | --dataroo | --dataro | --datar)
                   1222:     ac_prev=datarootdir ;;
                   1223:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                   1224:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                   1225:     datarootdir=$ac_optarg ;;
                   1226: 
                   1227:   -disable-* | --disable-*)
                   1228:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
                   1229:     # Reject names that are not valid shell variable names.
                   1230:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1231:       as_fn_error $? "invalid feature name: $ac_useropt"
                   1232:     ac_useropt_orig=$ac_useropt
                   1233:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1234:     case $ac_user_opts in
                   1235:       *"
                   1236: "enable_$ac_useropt"
                   1237: "*) ;;
                   1238:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                   1239:         ac_unrecognized_sep=', ';;
                   1240:     esac
                   1241:     eval enable_$ac_useropt=no ;;
                   1242: 
                   1243:   -docdir | --docdir | --docdi | --doc | --do)
                   1244:     ac_prev=docdir ;;
                   1245:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                   1246:     docdir=$ac_optarg ;;
                   1247: 
                   1248:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                   1249:     ac_prev=dvidir ;;
                   1250:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                   1251:     dvidir=$ac_optarg ;;
                   1252: 
                   1253:   -enable-* | --enable-*)
                   1254:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
                   1255:     # Reject names that are not valid shell variable names.
                   1256:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1257:       as_fn_error $? "invalid feature name: $ac_useropt"
                   1258:     ac_useropt_orig=$ac_useropt
                   1259:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1260:     case $ac_user_opts in
                   1261:       *"
                   1262: "enable_$ac_useropt"
                   1263: "*) ;;
                   1264:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                   1265:         ac_unrecognized_sep=', ';;
                   1266:     esac
                   1267:     eval enable_$ac_useropt=\$ac_optarg ;;
                   1268: 
                   1269:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                   1270:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                   1271:   | --exec | --exe | --ex)
                   1272:     ac_prev=exec_prefix ;;
                   1273:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                   1274:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                   1275:   | --exec=* | --exe=* | --ex=*)
                   1276:     exec_prefix=$ac_optarg ;;
                   1277: 
                   1278:   -gas | --gas | --ga | --g)
                   1279:     # Obsolete; use --with-gas.
                   1280:     with_gas=yes ;;
                   1281: 
                   1282:   -help | --help | --hel | --he | -h)
                   1283:     ac_init_help=long ;;
                   1284:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                   1285:     ac_init_help=recursive ;;
                   1286:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                   1287:     ac_init_help=short ;;
                   1288: 
                   1289:   -host | --host | --hos | --ho)
                   1290:     ac_prev=host_alias ;;
                   1291:   -host=* | --host=* | --hos=* | --ho=*)
                   1292:     host_alias=$ac_optarg ;;
                   1293: 
                   1294:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1295:     ac_prev=htmldir ;;
                   1296:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1297:   | --ht=*)
                   1298:     htmldir=$ac_optarg ;;
                   1299: 
                   1300:   -includedir | --includedir | --includedi | --included | --include \
                   1301:   | --includ | --inclu | --incl | --inc)
                   1302:     ac_prev=includedir ;;
                   1303:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1304:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                   1305:     includedir=$ac_optarg ;;
                   1306: 
                   1307:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1308:     ac_prev=infodir ;;
                   1309:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                   1310:     infodir=$ac_optarg ;;
                   1311: 
                   1312:   -libdir | --libdir | --libdi | --libd)
                   1313:     ac_prev=libdir ;;
                   1314:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                   1315:     libdir=$ac_optarg ;;
                   1316: 
                   1317:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1318:   | --libexe | --libex | --libe)
                   1319:     ac_prev=libexecdir ;;
                   1320:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1321:   | --libexe=* | --libex=* | --libe=*)
                   1322:     libexecdir=$ac_optarg ;;
                   1323: 
                   1324:   -localedir | --localedir | --localedi | --localed | --locale)
                   1325:     ac_prev=localedir ;;
                   1326:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1327:     localedir=$ac_optarg ;;
                   1328: 
                   1329:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1330:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1331:     ac_prev=localstatedir ;;
                   1332:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1333:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1334:     localstatedir=$ac_optarg ;;
                   1335: 
                   1336:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1337:     ac_prev=mandir ;;
                   1338:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1339:     mandir=$ac_optarg ;;
                   1340: 
                   1341:   -nfp | --nfp | --nf)
                   1342:     # Obsolete; use --without-fp.
                   1343:     with_fp=no ;;
                   1344: 
                   1345:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1346:   | --no-cr | --no-c | -n)
                   1347:     no_create=yes ;;
                   1348: 
                   1349:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1350:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1351:     no_recursion=yes ;;
                   1352: 
                   1353:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1354:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1355:   | --oldin | --oldi | --old | --ol | --o)
                   1356:     ac_prev=oldincludedir ;;
                   1357:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1358:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1359:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1360:     oldincludedir=$ac_optarg ;;
                   1361: 
                   1362:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1363:     ac_prev=prefix ;;
                   1364:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1365:     prefix=$ac_optarg ;;
                   1366: 
                   1367:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1368:   | --program-pre | --program-pr | --program-p)
                   1369:     ac_prev=program_prefix ;;
                   1370:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1371:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1372:     program_prefix=$ac_optarg ;;
                   1373: 
                   1374:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1375:   | --program-suf | --program-su | --program-s)
                   1376:     ac_prev=program_suffix ;;
                   1377:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1378:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1379:     program_suffix=$ac_optarg ;;
                   1380: 
                   1381:   -program-transform-name | --program-transform-name \
                   1382:   | --program-transform-nam | --program-transform-na \
                   1383:   | --program-transform-n | --program-transform- \
                   1384:   | --program-transform | --program-transfor \
                   1385:   | --program-transfo | --program-transf \
                   1386:   | --program-trans | --program-tran \
                   1387:   | --progr-tra | --program-tr | --program-t)
                   1388:     ac_prev=program_transform_name ;;
                   1389:   -program-transform-name=* | --program-transform-name=* \
                   1390:   | --program-transform-nam=* | --program-transform-na=* \
                   1391:   | --program-transform-n=* | --program-transform-=* \
                   1392:   | --program-transform=* | --program-transfor=* \
                   1393:   | --program-transfo=* | --program-transf=* \
                   1394:   | --program-trans=* | --program-tran=* \
                   1395:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1396:     program_transform_name=$ac_optarg ;;
                   1397: 
                   1398:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1399:     ac_prev=pdfdir ;;
                   1400:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1401:     pdfdir=$ac_optarg ;;
                   1402: 
                   1403:   -psdir | --psdir | --psdi | --psd | --ps)
                   1404:     ac_prev=psdir ;;
                   1405:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1406:     psdir=$ac_optarg ;;
                   1407: 
                   1408:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1409:   | -silent | --silent | --silen | --sile | --sil)
                   1410:     silent=yes ;;
                   1411: 
                   1412:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1413:     ac_prev=sbindir ;;
                   1414:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1415:   | --sbi=* | --sb=*)
                   1416:     sbindir=$ac_optarg ;;
                   1417: 
                   1418:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1419:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1420:   | --sharedst | --shareds | --shared | --share | --shar \
                   1421:   | --sha | --sh)
                   1422:     ac_prev=sharedstatedir ;;
                   1423:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1424:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1425:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1426:   | --sha=* | --sh=*)
                   1427:     sharedstatedir=$ac_optarg ;;
                   1428: 
                   1429:   -site | --site | --sit)
                   1430:     ac_prev=site ;;
                   1431:   -site=* | --site=* | --sit=*)
                   1432:     site=$ac_optarg ;;
                   1433: 
                   1434:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1435:     ac_prev=srcdir ;;
                   1436:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1437:     srcdir=$ac_optarg ;;
                   1438: 
                   1439:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1440:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1441:     ac_prev=sysconfdir ;;
                   1442:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1443:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1444:     sysconfdir=$ac_optarg ;;
                   1445: 
                   1446:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1447:     ac_prev=target_alias ;;
                   1448:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1449:     target_alias=$ac_optarg ;;
                   1450: 
                   1451:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1452:     verbose=yes ;;
                   1453: 
                   1454:   -version | --version | --versio | --versi | --vers | -V)
                   1455:     ac_init_version=: ;;
                   1456: 
                   1457:   -with-* | --with-*)
                   1458:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
                   1459:     # Reject names that are not valid shell variable names.
                   1460:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1461:       as_fn_error $? "invalid package name: $ac_useropt"
                   1462:     ac_useropt_orig=$ac_useropt
                   1463:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1464:     case $ac_user_opts in
                   1465:       *"
                   1466: "with_$ac_useropt"
                   1467: "*) ;;
                   1468:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1469:         ac_unrecognized_sep=', ';;
                   1470:     esac
                   1471:     eval with_$ac_useropt=\$ac_optarg ;;
                   1472: 
                   1473:   -without-* | --without-*)
                   1474:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
                   1475:     # Reject names that are not valid shell variable names.
                   1476:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1477:       as_fn_error $? "invalid package name: $ac_useropt"
                   1478:     ac_useropt_orig=$ac_useropt
                   1479:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1480:     case $ac_user_opts in
                   1481:       *"
                   1482: "with_$ac_useropt"
                   1483: "*) ;;
                   1484:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1485:         ac_unrecognized_sep=', ';;
                   1486:     esac
                   1487:     eval with_$ac_useropt=no ;;
                   1488: 
                   1489:   --x)
                   1490:     # Obsolete; use --with-x.
                   1491:     with_x=yes ;;
                   1492: 
                   1493:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1494:   | --x-incl | --x-inc | --x-in | --x-i)
                   1495:     ac_prev=x_includes ;;
                   1496:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1497:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1498:     x_includes=$ac_optarg ;;
                   1499: 
                   1500:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1501:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1502:     ac_prev=x_libraries ;;
                   1503:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1504:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1505:     x_libraries=$ac_optarg ;;
                   1506: 
                   1507:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
                   1508: Try \`$0 --help' for more information"
                   1509:     ;;
                   1510: 
                   1511:   *=*)
                   1512:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1513:     # Reject names that are not valid shell variable names.
                   1514:     case $ac_envvar in #(
                   1515:       '' | [0-9]* | *[!_$as_cr_alnum]* )
                   1516:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
                   1517:     esac
                   1518:     eval $ac_envvar=\$ac_optarg
                   1519:     export $ac_envvar ;;
                   1520: 
                   1521:   *)
                   1522:     # FIXME: should be removed in autoconf 3.0.
                   1523:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
                   1524:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
                   1525:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
                   1526:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
                   1527:     ;;
                   1528: 
                   1529:   esac
                   1530: done
                   1531: 
                   1532: if test -n "$ac_prev"; then
                   1533:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
                   1534:   as_fn_error $? "missing argument to $ac_option"
                   1535: fi
                   1536: 
                   1537: if test -n "$ac_unrecognized_opts"; then
                   1538:   case $enable_option_checking in
                   1539:     no) ;;
                   1540:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
                   1541:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1542:   esac
                   1543: fi
                   1544: 
                   1545: # Check all directory arguments for consistency.
                   1546: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1547:                datadir sysconfdir sharedstatedir localstatedir includedir \
                   1548:                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1549:                libdir localedir mandir
                   1550: do
                   1551:   eval ac_val=\$$ac_var
                   1552:   # Remove trailing slashes.
                   1553:   case $ac_val in
                   1554:     */ )
                   1555:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1556:       eval $ac_var=\$ac_val;;
                   1557:   esac
                   1558:   # Be sure to have absolute directory names.
                   1559:   case $ac_val in
                   1560:     [\\/$]* | ?:[\\/]* )  continue;;
                   1561:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1562:   esac
                   1563:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
                   1564: done
                   1565: 
                   1566: # There might be people who depend on the old broken behavior: `$host'
                   1567: # used to hold the argument of --host etc.
                   1568: # FIXME: To remove some day.
                   1569: build=$build_alias
                   1570: host=$host_alias
                   1571: target=$target_alias
                   1572: 
                   1573: # FIXME: To remove some day.
                   1574: if test "x$host_alias" != x; then
                   1575:   if test "x$build_alias" = x; then
                   1576:     cross_compiling=maybe
                   1577:   elif test "x$build_alias" != "x$host_alias"; then
                   1578:     cross_compiling=yes
                   1579:   fi
                   1580: fi
                   1581: 
                   1582: ac_tool_prefix=
                   1583: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1584: 
                   1585: test "$silent" = yes && exec 6>/dev/null
                   1586: 
                   1587: 
                   1588: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1589: ac_ls_di=`ls -di .` &&
                   1590: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
                   1591:   as_fn_error $? "working directory cannot be determined"
                   1592: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
                   1593:   as_fn_error $? "pwd does not report name of working directory"
                   1594: 
                   1595: 
                   1596: # Find the source files, if location was not specified.
                   1597: if test -z "$srcdir"; then
                   1598:   ac_srcdir_defaulted=yes
                   1599:   # Try the directory containing this script, then the parent directory.
                   1600:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1601: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1602:         X"$as_myself" : 'X\(//\)[^/]' \| \
                   1603:         X"$as_myself" : 'X\(//\)$' \| \
                   1604:         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1605: $as_echo X"$as_myself" |
                   1606:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1607:            s//\1/
                   1608:            q
                   1609:          }
                   1610:          /^X\(\/\/\)[^/].*/{
                   1611:            s//\1/
                   1612:            q
                   1613:          }
                   1614:          /^X\(\/\/\)$/{
                   1615:            s//\1/
                   1616:            q
                   1617:          }
                   1618:          /^X\(\/\).*/{
                   1619:            s//\1/
                   1620:            q
                   1621:          }
                   1622:          s/.*/./; q'`
                   1623:   srcdir=$ac_confdir
                   1624:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1625:     srcdir=..
                   1626:   fi
                   1627: else
                   1628:   ac_srcdir_defaulted=no
                   1629: fi
                   1630: if test ! -r "$srcdir/$ac_unique_file"; then
                   1631:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
                   1632:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
                   1633: fi
                   1634: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1635: ac_abs_confdir=`(
                   1636:        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
                   1637:        pwd)`
                   1638: # When building in place, set srcdir=.
                   1639: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1640:   srcdir=.
                   1641: fi
                   1642: # Remove unnecessary trailing slashes from srcdir.
                   1643: # Double slashes in file names in object file debugging info
                   1644: # mess up M-x gdb in Emacs.
                   1645: case $srcdir in
                   1646: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1647: esac
                   1648: for ac_var in $ac_precious_vars; do
                   1649:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1650:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1651:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1652:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1653: done
                   1654: 
                   1655: #
                   1656: # Report the --help message.
                   1657: #
                   1658: if test "$ac_init_help" = "long"; then
                   1659:   # Omit some internal or obsolete options to make the list less imposing.
                   1660:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1661:   cat <<_ACEOF
                   1662: \`configure' configures this package to adapt to many kinds of systems.
                   1663: 
                   1664: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1665: 
                   1666: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1667: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1668: 
                   1669: Defaults for the options are specified in brackets.
                   1670: 
                   1671: Configuration:
                   1672:   -h, --help              display this help and exit
                   1673:       --help=short        display options specific to this package
                   1674:       --help=recursive    display the short help of all the included packages
                   1675:   -V, --version           display version information and exit
                   1676:   -q, --quiet, --silent   do not print \`checking ...' messages
                   1677:       --cache-file=FILE   cache test results in FILE [disabled]
                   1678:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1679:   -n, --no-create         do not create output files
                   1680:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1681: 
                   1682: Installation directories:
                   1683:   --prefix=PREFIX         install architecture-independent files in PREFIX
                   1684:                           [$ac_default_prefix]
                   1685:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                   1686:                           [PREFIX]
                   1687: 
                   1688: By default, \`make install' will install all the files in
                   1689: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1690: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1691: for instance \`--prefix=\$HOME'.
                   1692: 
                   1693: For better control, use the options below.
                   1694: 
                   1695: Fine tuning of the installation directories:
                   1696:   --bindir=DIR            user executables [EPREFIX/bin]
                   1697:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1698:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1699:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1700:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1701:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1702:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1703:   --includedir=DIR        C header files [PREFIX/include]
                   1704:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1705:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1706:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1707:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1708:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1709:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1710:   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
                   1711:   --htmldir=DIR           html documentation [DOCDIR]
                   1712:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1713:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1714:   --psdir=DIR             ps documentation [DOCDIR]
                   1715: _ACEOF
                   1716: 
                   1717:   cat <<\_ACEOF
                   1718: 
                   1719: System types:
                   1720:   --build=BUILD     configure for building on BUILD [guessed]
                   1721:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1722:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1723: _ACEOF
                   1724: fi
                   1725: 
                   1726: if test -n "$ac_init_help"; then
                   1727: 
                   1728:   cat <<\_ACEOF
                   1729: 
1.1.1.2 ! misho    1730: Optional Features and Packages:
1.1       misho    1731:   --disable-option-checking  ignore unrecognized --enable/--with options
                   1732:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1733:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1.1.1.2 ! misho    1734:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
        !          1735:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
        !          1736:   --with-libdir=NAME      Look for libraries in .../NAME rather than .../lib
1.1       misho    1737:   --disable-rpath         Disable passing additional runtime library
                   1738:                           search paths
                   1739:   --enable-re2c-cgoto     Enable -g flag to re2c to use computed goto gcc extension
                   1740: 
                   1741: SAPI modules:
                   1742: 
                   1743:   --with-aolserver=DIR    Specify path to the installed AOLserver
                   1744:   --with-apxs=FILE      Build shared Apache 1.x module. FILE is the optional
                   1745:                           pathname to the Apache apxs tool apxs
                   1746:   --with-apache=DIR     Build Apache 1.x module. DIR is the top-level Apache
                   1747:                           build directory /usr/local/apache
1.1.1.2 ! misho    1748:   --enable-mod-charset      APACHE: Enable transfer tables for mod_charset (Rus Apache)
1.1       misho    1749:   --with-apxs2filter=FILE
                   1750:                           EXPERIMENTAL: Build shared Apache 2.0 Filter module. FILE is the optional
                   1751:                           pathname to the Apache apxs tool apxs
                   1752:   --with-apxs2=FILE     Build shared Apache 2.0 Handler module. FILE is the optional
                   1753:                           pathname to the Apache apxs tool apxs
                   1754:   --with-apache-hooks=FILE
                   1755:                           EXPERIMENTAL: Build shared Apache 1.x module. FILE is the optional
                   1756:                           pathname to the Apache apxs tool apxs
                   1757:   --with-apache-hooks-static=DIR
                   1758:                           EXPERIMENTAL: Build Apache 1.x module. DIR is the top-level Apache
                   1759:                           build directory /usr/local/apache
1.1.1.2 ! misho    1760:   --enable-mod-charset      APACHE (hooks): Enable transfer tables for mod_charset (Rus Apache)
1.1       misho    1761:   --with-caudium=DIR    Build PHP as a Pike module for use with Caudium.
                   1762:                           DIR is the Caudium server dir /usr/local/caudium/server
1.1.1.2 ! misho    1763:   --disable-cli           Disable building CLI version of PHP
        !          1764:                           (this forces --without-pear)
1.1       misho    1765:   --with-continuity=DIR   Build PHP as Continuity Server module.
                   1766:                           DIR is path to the installed Continuity Server root
1.1.1.2 ! misho    1767:   --enable-embed=TYPE   EXPERIMENTAL: Enable building of embedded SAPI library
        !          1768:                           TYPE is either 'shared' or 'static'. TYPE=shared
        !          1769:   --enable-fpm              Enable building of the fpm SAPI executable
1.1       misho    1770:   --with-fpm-user=USER  Set the user for php-fpm to run as. (default: nobody)
                   1771:   --with-fpm-group=GRP  Set the group for php-fpm to run as. For a system user, this
                   1772:                   should usually be set to match the fpm username (default: nobody)
                   1773:   --with-isapi=DIR      Build PHP as an ISAPI module for use with Zeus
                   1774:   --with-litespeed        Build PHP as litespeed module
                   1775:   --with-milter=DIR     Build PHP as Milter application
                   1776:   --with-nsapi=DIR        Build PHP as NSAPI module for Netscape/iPlanet/Sun Webserver
                   1777:   --with-phttpd=DIR       Build PHP as phttpd module
                   1778:   --with-pi3web=DIR     Build PHP as Pi3Web module
                   1779:   --with-roxen=DIR        Build PHP as a Pike module. DIR is the base Roxen
                   1780:                           directory, normally /usr/local/roxen/server
1.1.1.2 ! misho    1781:   --enable-roxen-zts        ROXEN: Build the Roxen module using Zend Thread Safety
1.1       misho    1782:   --with-thttpd=SRCDIR    Build PHP as thttpd module
                   1783:   --with-tux=MODULEDIR    Build PHP as a TUX module (Linux only)
                   1784:   --with-webjames=SRCDIR  Build PHP as a WebJames module (RISC OS only)
1.1.1.2 ! misho    1785:   --disable-cgi           Disable building CGI version of PHP
        !          1786: 
        !          1787: General settings:
        !          1788: 
        !          1789:   --enable-gcov           Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!
        !          1790:   --enable-debug          Compile with debugging symbols
1.1       misho    1791:   --with-layout=TYPE      Set how installed files will be laid out.  Type can
1.1.1.2 ! misho    1792:                           be either PHP or GNU [PHP]
1.1       misho    1793:   --with-config-file-path=PATH
1.1.1.2 ! misho    1794:                           Set the path in which to look for php.ini [PREFIX/lib]
1.1       misho    1795:   --with-config-file-scan-dir=PATH
                   1796:                           Set the path where to scan for configuration files
1.1.1.2 ! misho    1797:   --enable-sigchild       Enable PHP's own SIGCHLD handler
        !          1798:   --enable-libgcc         Enable explicitly linking against libgcc
        !          1799:   --disable-short-tags    Disable the short-form <? start tag by default
        !          1800:   --enable-dmalloc        Enable dmalloc
        !          1801:   --disable-ipv6          Disable IPv6 support
        !          1802:   --enable-dtrace         Enable DTrace support
        !          1803:   --enable-fd-setsize     Set size of descriptor sets
        !          1804: 
        !          1805: Extensions:
        !          1806: 
        !          1807:   --with-EXTENSION=shared[,PATH]
        !          1808: 
        !          1809:     NOTE: Not all extensions can be build as 'shared'.
        !          1810: 
        !          1811:     Example: --with-foobar=shared,/usr/local/foobar/
        !          1812: 
        !          1813:       o Builds the foobar extension as shared extension.
        !          1814:       o foobar package install prefix is /usr/local/foobar/
        !          1815: 
        !          1816: 
        !          1817:  --disable-all   Disable all extensions which are enabled by default
        !          1818: 
1.1       misho    1819:   --with-regex=TYPE       regex library type: system, php. TYPE=php
                   1820:                           WARNING: Do NOT use unless you know what you are doing!
1.1.1.2 ! misho    1821:   --disable-libxml        Disable LIBXML support
1.1       misho    1822:   --with-libxml-dir=DIR   LIBXML: libxml2 install prefix
                   1823:   --with-openssl=DIR    Include OpenSSL support (requires OpenSSL >= 0.9.6)
                   1824:   --with-kerberos=DIR     OPENSSL: Include Kerberos support
                   1825:   --with-pcre-regex=DIR   Include Perl Compatible Regular Expressions support.
                   1826:                           DIR is the PCRE install prefix BUNDLED
                   1827:   --without-sqlite3=DIR Do not include SQLite3 support. DIR is the prefix to
                   1828:                           SQLite3 installation directory.
                   1829:   --with-zlib=DIR       Include ZLIB support (requires zlib >= 1.0.9)
                   1830:   --with-zlib-dir=<DIR>   Define the location of zlib install directory
1.1.1.2 ! misho    1831:   --enable-bcmath         Enable bc style precision math functions
1.1       misho    1832:   --with-bz2=DIR        Include BZip2 support
1.1.1.2 ! misho    1833:   --enable-calendar       Enable support for calendar conversion
        !          1834:   --disable-ctype         Disable ctype functions
1.1       misho    1835:   --with-curl=DIR       Include cURL support
                   1836:   --with-curlwrappers     EXPERIMENTAL: Use cURL for url streams
1.1.1.2 ! misho    1837:   --enable-dba            Build DBA with bundled modules. To build shared DBA
        !          1838:                           extension use --enable-dba=shared
1.1       misho    1839:   --with-qdbm=DIR         DBA: QDBM support
                   1840:   --with-gdbm=DIR         DBA: GDBM support
                   1841:   --with-ndbm=DIR         DBA: NDBM support
                   1842:   --with-db4=DIR          DBA: Oracle Berkeley DB 4.x or 5.x support
                   1843:   --with-db3=DIR          DBA: Oracle Berkeley DB 3.x support
                   1844:   --with-db2=DIR          DBA: Oracle Berkeley DB 2.x support
                   1845:   --with-db1=DIR          DBA: Oracle Berkeley DB 1.x support/emulation
                   1846:   --with-dbm=DIR          DBA: DBM support
1.1.1.2 ! misho    1847:   --with-tcadb=DIR        DBA: Tokyo Cabinet abstract DB support
1.1       misho    1848:   --without-cdb=DIR       DBA: CDB support (bundled)
1.1.1.2 ! misho    1849:   --disable-inifile         DBA: INI support (bundled)
        !          1850:   --disable-flatfile        DBA: FlatFile support (bundled)
        !          1851:   --disable-dom           Disable DOM support
1.1       misho    1852:   --with-libxml-dir=DIR   DOM: libxml2 install prefix
                   1853:   --with-enchant=DIR     Include enchant support.
                   1854:                           GNU Aspell version 1.1.3 or higher required.
1.1.1.2 ! misho    1855:   --enable-exif           Enable EXIF (metadata from images) support
        !          1856:   --disable-fileinfo      Disable fileinfo support
        !          1857:   --disable-filter        Disable input filter support
1.1       misho    1858:   --with-pcre-dir           FILTER: pcre install prefix
1.1.1.2 ! misho    1859:   --enable-ftp            Enable FTP support
1.1       misho    1860:   --with-openssl-dir=DIR  FTP: openssl install prefix
                   1861:   --with-gd=DIR         Include GD support.  DIR is the GD library base
                   1862:                           install directory BUNDLED
1.1.1.2 ! misho    1863:   --with-vpx-dir=DIR     GD: Set the path to libvpx install prefix
1.1       misho    1864:   --with-jpeg-dir=DIR     GD: Set the path to libjpeg install prefix
                   1865:   --with-png-dir=DIR      GD: Set the path to libpng install prefix
                   1866:   --with-zlib-dir=DIR     GD: Set the path to libz install prefix
                   1867:   --with-xpm-dir=DIR      GD: Set the path to libXpm install prefix
                   1868:   --with-freetype-dir=DIR GD: Set the path to FreeType 2 install prefix
                   1869:   --with-t1lib=DIR        GD: Include T1lib support. T1lib version >= 5.0.0 required
1.1.1.2 ! misho    1870:   --enable-gd-native-ttf    GD: Enable TrueType string function
        !          1871:   --enable-gd-jis-conv      GD: Enable JIS-mapped Japanese font support
1.1       misho    1872:   --with-gettext=DIR    Include GNU gettext support
                   1873:   --with-gmp=DIR        Include GNU MP support
                   1874:   --with-mhash=DIR      Include mhash support
1.1.1.2 ! misho    1875:   --disable-hash          Disable hash support
1.1       misho    1876:   --without-iconv=DIR   Exclude iconv support
                   1877:   --with-imap=DIR       Include IMAP support. DIR is the c-client install prefix
                   1878:   --with-kerberos=DIR     IMAP: Include Kerberos support. DIR is the Kerberos install prefix
                   1879:   --with-imap-ssl=DIR     IMAP: Include SSL support. DIR is the OpenSSL install prefix
                   1880:   --with-interbase=DIR  Include InterBase support.  DIR is the InterBase base
                   1881:                           install directory /usr/interbase
1.1.1.2 ! misho    1882:   --enable-intl           Enable internationalization support
1.1       misho    1883:   --with-icu-dir=DIR      Specify where ICU libraries and headers can be found
1.1.1.2 ! misho    1884:   --disable-json          Disable JavaScript Object Serialization support
1.1       misho    1885:   --with-ldap=DIR       Include LDAP support
                   1886:   --with-ldap-sasl=DIR    LDAP: Include Cyrus SASL support
1.1.1.2 ! misho    1887:   --enable-mbstring       Enable multibyte string support
        !          1888:   --disable-mbregex         MBSTRING: Disable multibyte regex support
        !          1889:   --disable-mbregex-backtrack
        !          1890:                             MBSTRING: Disable multibyte regex backtrack check
1.1       misho    1891:   --with-libmbfl=DIR      MBSTRING: Use external libmbfl.  DIR is the libmbfl base
                   1892:                             install directory BUNDLED
                   1893:   --with-onig=DIR         MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix.
                   1894:                             If DIR is not set, the bundled oniguruma will be used
                   1895:   --with-mcrypt=DIR     Include mcrypt support
                   1896:   --with-mssql=DIR      Include MSSQL-DB support.  DIR is the FreeTDS home
                   1897:                           directory /usr/local/freetds
                   1898:   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
1.1.1.2 ! misho    1899:                           directory, if no DIR is passed or the value is
        !          1900:                           mysqlnd the MySQL native driver will be used
1.1       misho    1901:   --with-mysql-sock=DIR   MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer.
                   1902:                             If unspecified, the default locations are searched
                   1903:   --with-zlib-dir=DIR     MySQL: Set the path to libz install prefix
                   1904:   --with-mysqli=FILE    Include MySQLi support.  FILE is the path
1.1.1.2 ! misho    1905:                           to mysql_config.  If no value or mysqlnd is passed
        !          1906:                           as FILE, the MySQL native driver will be used
        !          1907:   --enable-embedded-mysqli  MYSQLi: Enable embedded support
        !          1908:                             Note: Does not work with MySQL native driver!
1.1       misho    1909:   --with-oci8=DIR       Include Oracle Database OCI8 support. DIR defaults to \$ORACLE_HOME.
                   1910:                           Use --with-oci8=instantclient,/path/to/instant/client/lib
                   1911:                           to use an Oracle Instant Client installation
                   1912:   --with-adabas=DIR     Include Adabas D support /usr/local
                   1913:   --with-sapdb=DIR      Include SAP DB support /usr/local
                   1914:   --with-solid=DIR      Include Solid support /usr/local/solid
                   1915:   --with-ibm-db2=DIR    Include IBM DB2 support /home/db2inst1/sqllib
                   1916:   --with-ODBCRouter=DIR Include ODBCRouter.com support /usr
                   1917:   --with-empress=DIR    Include Empress support \$EMPRESSPATH
                   1918:                           (Empress Version >= 8.60 required)
                   1919:   --with-empress-bcs=DIR
                   1920:                           Include Empress Local Access support \$EMPRESSPATH
                   1921:                           (Empress Version >= 8.60 required)
                   1922:   --with-birdstep=DIR   Include Birdstep support /usr/local/birdstep
                   1923:   --with-custom-odbc=DIR
                   1924:                           Include user defined ODBC support. DIR is ODBC install base
                   1925:                           directory /usr/local. Make sure to define CUSTOM_ODBC_LIBS and
                   1926:                           have some odbc.h in your include dirs. f.e. you should define
                   1927:                           following for Sybase SQL Anywhere 5.5.00 on QNX, prior to
                   1928:                           running this configure script:
                   1929:                               CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\"
                   1930:                               LDFLAGS=-lunix
                   1931:                               CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\"
                   1932:   --with-iodbc=DIR      Include iODBC support /usr/local
                   1933:   --with-esoob=DIR      Include Easysoft OOB support /usr/local/easysoft/oob/client
                   1934:   --with-unixODBC=DIR   Include unixODBC support /usr/local
                   1935:   --with-dbmaker=DIR    Include DBMaker support
1.1.1.2 ! misho    1936:   --enable-pcntl          Enable pcntl support (CLI/CGI only)
        !          1937:   --disable-pdo           Disable PHP Data Objects support
1.1       misho    1938:   --with-pdo-dblib=DIR    PDO: DBLIB-DB support.  DIR is the FreeTDS home directory
                   1939:   --with-pdo-firebird=DIR PDO: Firebird support.  DIR is the Firebird base
                   1940:                             install directory /opt/firebird
                   1941:   --with-pdo-mysql=DIR    PDO: MySQL support. DIR is the MySQL base directory
1.1.1.2 ! misho    1942:                                  If no value or mysqlnd is passed as DIR, the
        !          1943:                                  MySQL native driver will be used
1.1       misho    1944:   --with-zlib-dir=DIR       PDO_MySQL: Set the path to libz install prefix
                   1945:   --with-pdo-oci=DIR      PDO: Oracle OCI support. DIR defaults to \$ORACLE_HOME.
                   1946:                             Use --with-pdo-oci=instantclient,prefix,version
                   1947:                             for an Oracle Instant Client SDK.
                   1948:                             For example on Linux with 11.2 RPMs use:
                   1949:                             --with-pdo-oci=instantclient,/usr,11.2
                   1950:                             With 10.2 RPMs use:
                   1951:                             --with-pdo-oci=instantclient,/usr,10.2.0.4
                   1952:   --with-pdo-odbc=flavour,dir
                   1953:                             PDO: Support for 'flavour' ODBC driver.
                   1954:                             include and lib dirs are looked for under 'dir'.
                   1955: 
                   1956:                             'flavour' can be one of:  ibm-db2, iODBC, unixODBC, generic
                   1957:                             If ',dir' part is omitted, default for the flavour
                   1958:                             you have selected will used. e.g.:
                   1959: 
                   1960:                               --with-pdo-odbc=unixODBC
                   1961: 
                   1962:                             will check for unixODBC under /usr/local. You may attempt
                   1963:                             to use an otherwise unsupported driver using the \"generic\"
                   1964:                             flavour.  The syntax for generic ODBC support is:
                   1965: 
                   1966:                               --with-pdo-odbc=generic,dir,libname,ldflags,cflags
                   1967: 
                   1968:                             When build as shared the extension filename is always pdo_odbc.so
                   1969:   --with-pdo-pgsql=DIR    PDO: PostgreSQL support.  DIR is the PostgreSQL base
                   1970:                             install directory or the path to pg_config
                   1971:   --without-pdo-sqlite=DIR
                   1972:                             PDO: sqlite 3 support.  DIR is the sqlite base
                   1973:                             install directory BUNDLED
                   1974:   --with-pgsql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
                   1975:                           base install directory or the path to pg_config
1.1.1.2 ! misho    1976:   --disable-phar          Disable phar support
        !          1977:   --disable-posix         Disable POSIX-like functions
1.1       misho    1978:   --with-pspell=DIR     Include PSPELL support.
                   1979:                           GNU Aspell version 0.50.0 or higher required
                   1980:   --with-libedit=DIR    Include libedit readline replacement (CLI/CGI only)
                   1981:   --with-readline=DIR   Include readline support (CLI/CGI only)
                   1982:   --with-recode=DIR     Include recode support
1.1.1.2 ! misho    1983:   --disable-session       Disable session support
1.1       misho    1984:   --with-mm=DIR           SESSION: Include mm support for session storage
1.1.1.2 ! misho    1985:   --enable-shmop          Enable shmop support
        !          1986:   --disable-simplexml     Disable SimpleXML support
1.1       misho    1987:   --with-libxml-dir=DIR     SimpleXML: libxml2 install prefix
                   1988:   --with-snmp=DIR       Include SNMP support
                   1989:   --with-openssl-dir=DIR  SNMP: openssl install prefix
1.1.1.2 ! misho    1990:   --enable-soap           Enable SOAP support
1.1       misho    1991:   --with-libxml-dir=DIR     SOAP: libxml2 install prefix
1.1.1.2 ! misho    1992:   --enable-sockets        Enable sockets support
1.1       misho    1993:   --with-sybase-ct=DIR  Include Sybase-CT support.  DIR is the Sybase home
                   1994:                           directory /home/sybase
1.1.1.2 ! misho    1995:   --enable-sysvmsg        Enable sysvmsg support
        !          1996:   --enable-sysvsem        Enable System V semaphore support
        !          1997:   --enable-sysvshm        Enable the System V shared memory support
1.1       misho    1998:   --with-tidy=DIR       Include TIDY support
1.1.1.2 ! misho    1999:   --disable-tokenizer     Disable tokenizer support
        !          2000:   --enable-wddx           Enable WDDX support
1.1       misho    2001:   --with-libxml-dir=DIR     WDDX: libxml2 install prefix
                   2002:   --with-libexpat-dir=DIR   WDDX: libexpat dir for XMLRPC-EPI (deprecated)
1.1.1.2 ! misho    2003:   --disable-xml           Disable XML support
1.1       misho    2004:   --with-libxml-dir=DIR     XML: libxml2 install prefix
                   2005:   --with-libexpat-dir=DIR   XML: libexpat install prefix (deprecated)
1.1.1.2 ! misho    2006:   --disable-xmlreader     Disable XMLReader support
1.1       misho    2007:   --with-libxml-dir=DIR     XMLReader: libxml2 install prefix
                   2008:   --with-xmlrpc=DIR     Include XMLRPC-EPI support
                   2009:   --with-libxml-dir=DIR     XMLRPC-EPI: libxml2 install prefix
                   2010:   --with-libexpat-dir=DIR   XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated)
                   2011:   --with-iconv-dir=DIR      XMLRPC-EPI: iconv dir for XMLRPC-EPI
1.1.1.2 ! misho    2012:   --disable-xmlwriter     Disable XMLWriter support
1.1       misho    2013:   --with-libxml-dir=DIR     XMLWriter: libxml2 install prefix
                   2014:   --with-xsl=DIR        Include XSL support.  DIR is the libxslt base
                   2015:                           install directory (libxslt >= 1.1.0 required)
1.1.1.2 ! misho    2016:   --enable-zip            Include Zip read/write support
1.1       misho    2017:   --with-zlib-dir=DIR     ZIP: Set the path to libz install prefix
                   2018:   --with-pcre-dir           ZIP: pcre install prefix
1.1.1.2 ! misho    2019:   --enable-mysqlnd        Enable mysqlnd explicitly, will be done implicitly
        !          2020:                           when required by other extensions
        !          2021:   --disable-mysqlnd-compression-support
        !          2022:                             Disable support for the MySQL compressed protocol in mysqlnd
1.1       misho    2023:   --with-zlib-dir=DIR       mysqlnd: Set the path to libz install prefix
1.1.1.2 ! misho    2024: 
        !          2025: PEAR:
        !          2026: 
        !          2027:   --with-pear=DIR         Install PEAR in DIR [PREFIX/lib/php]
1.1       misho    2028:   --without-pear          Do not install PEAR
1.1.1.2 ! misho    2029: 
        !          2030: Zend:
        !          2031: 
1.1       misho    2032:   --with-zend-vm=TYPE     Set virtual machine dispatch method. Type is
                   2033:                           one of "CALL", "SWITCH" or "GOTO" TYPE=CALL
1.1.1.2 ! misho    2034:   --enable-maintainer-zts Enable thread safety - for code maintainers only!!
        !          2035:   --disable-inline-optimization
        !          2036:                           If building zend_execute.lo fails, try this switch
        !          2037:   --enable-zend-signals   Use zend signal handling
        !          2038: 
        !          2039: TSRM:
        !          2040: 
1.1       misho    2041:   --with-tsrm-pth=pth-config
                   2042:                           Use GNU Pth
                   2043:   --with-tsrm-st          Use SGI's State Threads
                   2044:   --with-tsrm-pthreads    Use POSIX threads (default)
1.1.1.2 ! misho    2045: 
        !          2046: Libtool:
        !          2047: 
        !          2048:   --enable-shared=PKGS  build shared libraries default=yes
        !          2049:   --enable-static=PKGS  build static libraries default=yes
        !          2050:   --enable-fast-install=PKGS  optimize for fast installation default=yes
1.1       misho    2051:   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1.1.1.2 ! misho    2052:   --disable-libtool-lock  avoid locking (might break parallel builds)
1.1       misho    2053:   --with-pic              try to use only PIC/non-PIC objects default=use both
                   2054:   --with-tags=TAGS      include additional configurations automatic
                   2055: 
                   2056: 
                   2057: Some influential environment variables:
                   2058:   CC          C compiler command
                   2059:   CFLAGS      C compiler flags
                   2060:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   2061:               nonstandard directory <lib dir>
                   2062:   LIBS        libraries to pass to the linker, e.g. -l<library>
                   2063:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
                   2064:               you have headers in a nonstandard directory <include dir>
                   2065:   CPP         C preprocessor
                   2066:   YACC        The `Yet Another Compiler Compiler' implementation to use.
                   2067:               Defaults to the first program found out of: `bison -y', `byacc',
                   2068:               `yacc'.
                   2069:   YFLAGS      The list of arguments that will be passed by default to $YACC.
                   2070:               This script will default YFLAGS to the empty string to avoid a
                   2071:               default value of `-d' given by some make applications.
                   2072:   CXX         C++ compiler command
                   2073:   CXXFLAGS    C++ compiler flags
                   2074:   CXXCPP      C++ preprocessor
                   2075: 
                   2076: Use these variables to override the choices made by `configure' or to help
                   2077: it to find libraries and programs with nonstandard names/locations.
                   2078: 
                   2079: Report bugs to the package provider.
                   2080: _ACEOF
                   2081: ac_status=$?
                   2082: fi
                   2083: 
                   2084: if test "$ac_init_help" = "recursive"; then
                   2085:   # If there are subdirs, report their specific --help.
                   2086:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
                   2087:     test -d "$ac_dir" ||
                   2088:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   2089:       continue
                   2090:     ac_builddir=.
                   2091: 
                   2092: case "$ac_dir" in
                   2093: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   2094: *)
                   2095:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
                   2096:   # A ".." for each directory in $ac_dir_suffix.
                   2097:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
                   2098:   case $ac_top_builddir_sub in
                   2099:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   2100:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   2101:   esac ;;
                   2102: esac
                   2103: ac_abs_top_builddir=$ac_pwd
                   2104: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   2105: # for backward compatibility:
                   2106: ac_top_builddir=$ac_top_build_prefix
                   2107: 
                   2108: case $srcdir in
                   2109:   .)  # We are building in place.
                   2110:     ac_srcdir=.
                   2111:     ac_top_srcdir=$ac_top_builddir_sub
                   2112:     ac_abs_top_srcdir=$ac_pwd ;;
                   2113:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   2114:     ac_srcdir=$srcdir$ac_dir_suffix;
                   2115:     ac_top_srcdir=$srcdir
                   2116:     ac_abs_top_srcdir=$srcdir ;;
                   2117:   *) # Relative name.
                   2118:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   2119:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   2120:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   2121: esac
                   2122: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   2123: 
                   2124:     cd "$ac_dir" || { ac_status=$?; continue; }
                   2125:     # Check for guested configure.
                   2126:     if test -f "$ac_srcdir/configure.gnu"; then
                   2127:       echo &&
                   2128:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   2129:     elif test -f "$ac_srcdir/configure"; then
                   2130:       echo &&
                   2131:       $SHELL "$ac_srcdir/configure" --help=recursive
                   2132:     else
                   2133:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
                   2134:     fi || ac_status=$?
                   2135:     cd "$ac_pwd" || { ac_status=$?; break; }
                   2136:   done
                   2137: fi
                   2138: 
                   2139: test -n "$ac_init_help" && exit $ac_status
                   2140: if $ac_init_version; then
                   2141:   cat <<\_ACEOF
                   2142: configure
1.1.1.2 ! misho    2143: generated by GNU Autoconf 2.69
1.1       misho    2144: 
1.1.1.2 ! misho    2145: Copyright (C) 2012 Free Software Foundation, Inc.
1.1       misho    2146: This configure script is free software; the Free Software Foundation
                   2147: gives unlimited permission to copy, distribute and modify it.
                   2148: _ACEOF
                   2149:   exit
                   2150: fi
                   2151: 
                   2152: ## ------------------------ ##
                   2153: ## Autoconf initialization. ##
                   2154: ## ------------------------ ##
                   2155: 
                   2156: # ac_fn_c_try_compile LINENO
                   2157: # --------------------------
                   2158: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   2159: ac_fn_c_try_compile ()
                   2160: {
                   2161:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2162:   rm -f conftest.$ac_objext
                   2163:   if { { ac_try="$ac_compile"
                   2164: case "(($ac_try" in
                   2165:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2166:   *) ac_try_echo=$ac_try;;
                   2167: esac
                   2168: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   2169: $as_echo "$ac_try_echo"; } >&5
                   2170:   (eval "$ac_compile") 2>conftest.err
                   2171:   ac_status=$?
                   2172:   if test -s conftest.err; then
                   2173:     grep -v '^ *+' conftest.err >conftest.er1
                   2174:     cat conftest.er1 >&5
                   2175:     mv -f conftest.er1 conftest.err
                   2176:   fi
                   2177:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   2178:   test $ac_status = 0; } && {
                   2179:         test -z "$ac_c_werror_flag" ||
                   2180:         test ! -s conftest.err
                   2181:        } && test -s conftest.$ac_objext; then :
                   2182:   ac_retval=0
                   2183: else
                   2184:   $as_echo "$as_me: failed program was:" >&5
                   2185: sed 's/^/| /' conftest.$ac_ext >&5
                   2186: 
                   2187:        ac_retval=1
                   2188: fi
                   2189:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2190:   as_fn_set_status $ac_retval
                   2191: 
                   2192: } # ac_fn_c_try_compile
                   2193: 
                   2194: # ac_fn_c_try_cpp LINENO
                   2195: # ----------------------
                   2196: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   2197: ac_fn_c_try_cpp ()
                   2198: {
                   2199:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2200:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   2201: case "(($ac_try" in
                   2202:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2203:   *) ac_try_echo=$ac_try;;
                   2204: esac
                   2205: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   2206: $as_echo "$ac_try_echo"; } >&5
                   2207:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   2208:   ac_status=$?
                   2209:   if test -s conftest.err; then
                   2210:     grep -v '^ *+' conftest.err >conftest.er1
                   2211:     cat conftest.er1 >&5
                   2212:     mv -f conftest.er1 conftest.err
                   2213:   fi
                   2214:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   2215:   test $ac_status = 0; } > conftest.i && {
                   2216:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   2217:         test ! -s conftest.err
                   2218:        }; then :
                   2219:   ac_retval=0
                   2220: else
                   2221:   $as_echo "$as_me: failed program was:" >&5
                   2222: sed 's/^/| /' conftest.$ac_ext >&5
                   2223: 
                   2224:     ac_retval=1
                   2225: fi
                   2226:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2227:   as_fn_set_status $ac_retval
                   2228: 
                   2229: } # ac_fn_c_try_cpp
                   2230: 
                   2231: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2232: # -------------------------------------------------------
                   2233: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2234: # the include files in INCLUDES and setting the cache variable VAR
                   2235: # accordingly.
                   2236: ac_fn_c_check_header_mongrel ()
                   2237: {
                   2238:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2239:   if eval \${$3+:} false; then :
                   2240:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2241: $as_echo_n "checking for $2... " >&6; }
                   2242: if eval \${$3+:} false; then :
                   2243:   $as_echo_n "(cached) " >&6
                   2244: fi
                   2245: eval ac_res=\$$3
                   2246:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2247: $as_echo "$ac_res" >&6; }
                   2248: else
                   2249:   # Is the header compilable?
                   2250: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2251: $as_echo_n "checking $2 usability... " >&6; }
                   2252: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2253: /* end confdefs.h.  */
                   2254: $4
                   2255: #include <$2>
                   2256: _ACEOF
                   2257: if ac_fn_c_try_compile "$LINENO"; then :
                   2258:   ac_header_compiler=yes
                   2259: else
                   2260:   ac_header_compiler=no
                   2261: fi
                   2262: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2263: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2264: $as_echo "$ac_header_compiler" >&6; }
                   2265: 
                   2266: # Is the header present?
                   2267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2268: $as_echo_n "checking $2 presence... " >&6; }
                   2269: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2270: /* end confdefs.h.  */
                   2271: #include <$2>
                   2272: _ACEOF
                   2273: if ac_fn_c_try_cpp "$LINENO"; then :
                   2274:   ac_header_preproc=yes
                   2275: else
                   2276:   ac_header_preproc=no
                   2277: fi
                   2278: rm -f conftest.err conftest.i conftest.$ac_ext
                   2279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2280: $as_echo "$ac_header_preproc" >&6; }
                   2281: 
                   2282: # So?  What about this header?
                   2283: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2284:   yes:no: )
                   2285:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2286: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2287:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2288: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2289:     ;;
                   2290:   no:yes:* )
                   2291:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2292: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2293:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2294: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2295:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2296: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2297:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2298: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   2299:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2300: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2301:     ;;
                   2302: esac
                   2303:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2304: $as_echo_n "checking for $2... " >&6; }
                   2305: if eval \${$3+:} false; then :
                   2306:   $as_echo_n "(cached) " >&6
                   2307: else
                   2308:   eval "$3=\$ac_header_compiler"
                   2309: fi
                   2310: eval ac_res=\$$3
                   2311:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2312: $as_echo "$ac_res" >&6; }
                   2313: fi
                   2314:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2315: 
                   2316: } # ac_fn_c_check_header_mongrel
                   2317: 
                   2318: # ac_fn_c_try_run LINENO
                   2319: # ----------------------
                   2320: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   2321: # that executables *can* be run.
                   2322: ac_fn_c_try_run ()
                   2323: {
                   2324:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2325:   if { { ac_try="$ac_link"
                   2326: case "(($ac_try" in
                   2327:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2328:   *) ac_try_echo=$ac_try;;
                   2329: esac
                   2330: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   2331: $as_echo "$ac_try_echo"; } >&5
                   2332:   (eval "$ac_link") 2>&5
                   2333:   ac_status=$?
                   2334:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   2335:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   2336:   { { case "(($ac_try" in
                   2337:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2338:   *) ac_try_echo=$ac_try;;
                   2339: esac
                   2340: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   2341: $as_echo "$ac_try_echo"; } >&5
                   2342:   (eval "$ac_try") 2>&5
                   2343:   ac_status=$?
                   2344:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   2345:   test $ac_status = 0; }; }; then :
                   2346:   ac_retval=0
                   2347: else
                   2348:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   2349:        $as_echo "$as_me: failed program was:" >&5
                   2350: sed 's/^/| /' conftest.$ac_ext >&5
                   2351: 
                   2352:        ac_retval=$ac_status
                   2353: fi
                   2354:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   2355:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2356:   as_fn_set_status $ac_retval
                   2357: 
                   2358: } # ac_fn_c_try_run
                   2359: 
                   2360: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   2361: # -------------------------------------------------------
                   2362: # Tests whether HEADER exists and can be compiled using the include files in
                   2363: # INCLUDES, setting the cache variable VAR accordingly.
                   2364: ac_fn_c_check_header_compile ()
                   2365: {
                   2366:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2367:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2368: $as_echo_n "checking for $2... " >&6; }
                   2369: if eval \${$3+:} false; then :
                   2370:   $as_echo_n "(cached) " >&6
                   2371: else
                   2372:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2373: /* end confdefs.h.  */
                   2374: $4
                   2375: #include <$2>
                   2376: _ACEOF
                   2377: if ac_fn_c_try_compile "$LINENO"; then :
                   2378:   eval "$3=yes"
                   2379: else
                   2380:   eval "$3=no"
                   2381: fi
                   2382: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2383: fi
                   2384: eval ac_res=\$$3
                   2385:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2386: $as_echo "$ac_res" >&6; }
                   2387:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2388: 
                   2389: } # ac_fn_c_check_header_compile
                   2390: 
                   2391: # ac_fn_c_try_link LINENO
                   2392: # -----------------------
                   2393: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   2394: ac_fn_c_try_link ()
                   2395: {
                   2396:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2397:   rm -f conftest.$ac_objext conftest$ac_exeext
                   2398:   if { { ac_try="$ac_link"
                   2399: case "(($ac_try" in
                   2400:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2401:   *) ac_try_echo=$ac_try;;
                   2402: esac
                   2403: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   2404: $as_echo "$ac_try_echo"; } >&5
                   2405:   (eval "$ac_link") 2>conftest.err
                   2406:   ac_status=$?
                   2407:   if test -s conftest.err; then
                   2408:     grep -v '^ *+' conftest.err >conftest.er1
                   2409:     cat conftest.er1 >&5
                   2410:     mv -f conftest.er1 conftest.err
                   2411:   fi
                   2412:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   2413:   test $ac_status = 0; } && {
                   2414:         test -z "$ac_c_werror_flag" ||
                   2415:         test ! -s conftest.err
                   2416:        } && test -s conftest$ac_exeext && {
                   2417:         test "$cross_compiling" = yes ||
1.1.1.2 ! misho    2418:         test -x conftest$ac_exeext
1.1       misho    2419:        }; then :
                   2420:   ac_retval=0
                   2421: else
                   2422:   $as_echo "$as_me: failed program was:" >&5
                   2423: sed 's/^/| /' conftest.$ac_ext >&5
                   2424: 
                   2425:        ac_retval=1
                   2426: fi
                   2427:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   2428:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   2429:   # interfere with the next link command; also delete a directory that is
                   2430:   # left behind by Apple's compiler.  We do this before executing the actions.
                   2431:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   2432:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2433:   as_fn_set_status $ac_retval
                   2434: 
                   2435: } # ac_fn_c_try_link
                   2436: 
                   2437: # ac_fn_c_check_func LINENO FUNC VAR
                   2438: # ----------------------------------
                   2439: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   2440: ac_fn_c_check_func ()
                   2441: {
                   2442:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2443:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2444: $as_echo_n "checking for $2... " >&6; }
                   2445: if eval \${$3+:} false; then :
                   2446:   $as_echo_n "(cached) " >&6
                   2447: else
                   2448:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2449: /* end confdefs.h.  */
                   2450: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   2451:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   2452: #define $2 innocuous_$2
                   2453: 
                   2454: /* System header to define __stub macros and hopefully few prototypes,
                   2455:     which can conflict with char $2 (); below.
                   2456:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   2457:     <limits.h> exists even on freestanding compilers.  */
                   2458: 
                   2459: #ifdef __STDC__
                   2460: # include <limits.h>
                   2461: #else
                   2462: # include <assert.h>
                   2463: #endif
                   2464: 
                   2465: #undef $2
                   2466: 
                   2467: /* Override any GCC internal prototype to avoid an error.
                   2468:    Use char because int might match the return type of a GCC
                   2469:    builtin and then its argument prototype would still apply.  */
                   2470: #ifdef __cplusplus
                   2471: extern "C"
                   2472: #endif
                   2473: char $2 ();
                   2474: /* The GNU C library defines this for functions which it implements
                   2475:     to always fail with ENOSYS.  Some functions are actually named
                   2476:     something starting with __ and the normal name is an alias.  */
                   2477: #if defined __stub_$2 || defined __stub___$2
                   2478: choke me
                   2479: #endif
                   2480: 
                   2481: int
                   2482: main ()
                   2483: {
                   2484: return $2 ();
                   2485:   ;
                   2486:   return 0;
                   2487: }
                   2488: _ACEOF
                   2489: if ac_fn_c_try_link "$LINENO"; then :
                   2490:   eval "$3=yes"
                   2491: else
                   2492:   eval "$3=no"
                   2493: fi
                   2494: rm -f core conftest.err conftest.$ac_objext \
                   2495:     conftest$ac_exeext conftest.$ac_ext
                   2496: fi
                   2497: eval ac_res=\$$3
                   2498:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2499: $as_echo "$ac_res" >&6; }
                   2500:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2501: 
                   2502: } # ac_fn_c_check_func
                   2503: 
                   2504: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
                   2505: # ----------------------------------------------------
                   2506: # Tries to find if the field MEMBER exists in type AGGR, after including
                   2507: # INCLUDES, setting cache variable VAR accordingly.
                   2508: ac_fn_c_check_member ()
                   2509: {
                   2510:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2511:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
                   2512: $as_echo_n "checking for $2.$3... " >&6; }
                   2513: if eval \${$4+:} false; then :
                   2514:   $as_echo_n "(cached) " >&6
                   2515: else
                   2516:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2517: /* end confdefs.h.  */
                   2518: $5
                   2519: int
                   2520: main ()
                   2521: {
                   2522: static $2 ac_aggr;
                   2523: if (ac_aggr.$3)
                   2524: return 0;
                   2525:   ;
                   2526:   return 0;
                   2527: }
                   2528: _ACEOF
                   2529: if ac_fn_c_try_compile "$LINENO"; then :
                   2530:   eval "$4=yes"
                   2531: else
                   2532:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2533: /* end confdefs.h.  */
                   2534: $5
                   2535: int
                   2536: main ()
                   2537: {
                   2538: static $2 ac_aggr;
                   2539: if (sizeof ac_aggr.$3)
                   2540: return 0;
                   2541:   ;
                   2542:   return 0;
                   2543: }
                   2544: _ACEOF
                   2545: if ac_fn_c_try_compile "$LINENO"; then :
                   2546:   eval "$4=yes"
                   2547: else
                   2548:   eval "$4=no"
                   2549: fi
                   2550: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2551: fi
                   2552: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2553: fi
                   2554: eval ac_res=\$$4
                   2555:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2556: $as_echo "$ac_res" >&6; }
                   2557:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2558: 
                   2559: } # ac_fn_c_check_member
                   2560: 
                   2561: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
                   2562: # ---------------------------------------------
                   2563: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
                   2564: # accordingly.
                   2565: ac_fn_c_check_decl ()
                   2566: {
                   2567:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2568:   as_decl_name=`echo $2|sed 's/ *(.*//'`
                   2569:   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
                   2570:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
                   2571: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
                   2572: if eval \${$3+:} false; then :
                   2573:   $as_echo_n "(cached) " >&6
                   2574: else
                   2575:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2576: /* end confdefs.h.  */
                   2577: $4
                   2578: int
                   2579: main ()
                   2580: {
                   2581: #ifndef $as_decl_name
                   2582: #ifdef __cplusplus
                   2583:   (void) $as_decl_use;
                   2584: #else
                   2585:   (void) $as_decl_name;
                   2586: #endif
                   2587: #endif
                   2588: 
                   2589:   ;
                   2590:   return 0;
                   2591: }
                   2592: _ACEOF
                   2593: if ac_fn_c_try_compile "$LINENO"; then :
                   2594:   eval "$3=yes"
                   2595: else
                   2596:   eval "$3=no"
                   2597: fi
                   2598: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2599: fi
                   2600: eval ac_res=\$$3
                   2601:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2602: $as_echo "$ac_res" >&6; }
                   2603:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2604: 
                   2605: } # ac_fn_c_check_decl
                   2606: 
                   2607: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   2608: # --------------------------------------------
                   2609: # Tries to find the compile-time value of EXPR in a program that includes
                   2610: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   2611: # computed
                   2612: ac_fn_c_compute_int ()
                   2613: {
                   2614:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2615:   if test "$cross_compiling" = yes; then
                   2616:     # Depending upon the size, compute the lo and hi bounds.
                   2617: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2618: /* end confdefs.h.  */
                   2619: $4
                   2620: int
                   2621: main ()
                   2622: {
                   2623: static int test_array [1 - 2 * !(($2) >= 0)];
1.1.1.2 ! misho    2624: test_array [0] = 0;
        !          2625: return test_array [0];
1.1       misho    2626: 
                   2627:   ;
                   2628:   return 0;
                   2629: }
                   2630: _ACEOF
                   2631: if ac_fn_c_try_compile "$LINENO"; then :
                   2632:   ac_lo=0 ac_mid=0
                   2633:   while :; do
                   2634:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2635: /* end confdefs.h.  */
                   2636: $4
                   2637: int
                   2638: main ()
                   2639: {
                   2640: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1.1.1.2 ! misho    2641: test_array [0] = 0;
        !          2642: return test_array [0];
1.1       misho    2643: 
                   2644:   ;
                   2645:   return 0;
                   2646: }
                   2647: _ACEOF
                   2648: if ac_fn_c_try_compile "$LINENO"; then :
                   2649:   ac_hi=$ac_mid; break
                   2650: else
                   2651:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   2652:                        if test $ac_lo -le $ac_mid; then
                   2653:                          ac_lo= ac_hi=
                   2654:                          break
                   2655:                        fi
                   2656:                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   2657: fi
                   2658: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2659:   done
                   2660: else
                   2661:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2662: /* end confdefs.h.  */
                   2663: $4
                   2664: int
                   2665: main ()
                   2666: {
                   2667: static int test_array [1 - 2 * !(($2) < 0)];
1.1.1.2 ! misho    2668: test_array [0] = 0;
        !          2669: return test_array [0];
1.1       misho    2670: 
                   2671:   ;
                   2672:   return 0;
                   2673: }
                   2674: _ACEOF
                   2675: if ac_fn_c_try_compile "$LINENO"; then :
                   2676:   ac_hi=-1 ac_mid=-1
                   2677:   while :; do
                   2678:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2679: /* end confdefs.h.  */
                   2680: $4
                   2681: int
                   2682: main ()
                   2683: {
                   2684: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1.1.1.2 ! misho    2685: test_array [0] = 0;
        !          2686: return test_array [0];
1.1       misho    2687: 
                   2688:   ;
                   2689:   return 0;
                   2690: }
                   2691: _ACEOF
                   2692: if ac_fn_c_try_compile "$LINENO"; then :
                   2693:   ac_lo=$ac_mid; break
                   2694: else
                   2695:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   2696:                        if test $ac_mid -le $ac_hi; then
                   2697:                          ac_lo= ac_hi=
                   2698:                          break
                   2699:                        fi
                   2700:                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   2701: fi
                   2702: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2703:   done
                   2704: else
                   2705:   ac_lo= ac_hi=
                   2706: fi
                   2707: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2708: fi
                   2709: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2710: # Binary search between lo and hi bounds.
                   2711: while test "x$ac_lo" != "x$ac_hi"; do
                   2712:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   2713:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2714: /* end confdefs.h.  */
                   2715: $4
                   2716: int
                   2717: main ()
                   2718: {
                   2719: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1.1.1.2 ! misho    2720: test_array [0] = 0;
        !          2721: return test_array [0];
1.1       misho    2722: 
                   2723:   ;
                   2724:   return 0;
                   2725: }
                   2726: _ACEOF
                   2727: if ac_fn_c_try_compile "$LINENO"; then :
                   2728:   ac_hi=$ac_mid
                   2729: else
                   2730:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
                   2731: fi
                   2732: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2733: done
                   2734: case $ac_lo in #((
                   2735: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2736: '') ac_retval=1 ;;
                   2737: esac
                   2738:   else
                   2739:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2740: /* end confdefs.h.  */
                   2741: $4
                   2742: static long int longval () { return $2; }
                   2743: static unsigned long int ulongval () { return $2; }
                   2744: #include <stdio.h>
                   2745: #include <stdlib.h>
                   2746: int
                   2747: main ()
                   2748: {
                   2749: 
                   2750:   FILE *f = fopen ("conftest.val", "w");
                   2751:   if (! f)
                   2752:     return 1;
                   2753:   if (($2) < 0)
                   2754:     {
                   2755:       long int i = longval ();
                   2756:       if (i != ($2))
                   2757:        return 1;
                   2758:       fprintf (f, "%ld", i);
                   2759:     }
                   2760:   else
                   2761:     {
                   2762:       unsigned long int i = ulongval ();
                   2763:       if (i != ($2))
                   2764:        return 1;
                   2765:       fprintf (f, "%lu", i);
                   2766:     }
                   2767:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2768:      on some platforms.  */
                   2769:   return ferror (f) || fclose (f) != 0;
                   2770: 
                   2771:   ;
                   2772:   return 0;
                   2773: }
                   2774: _ACEOF
                   2775: if ac_fn_c_try_run "$LINENO"; then :
                   2776:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2777: else
                   2778:   ac_retval=1
                   2779: fi
                   2780: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2781:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2782: rm -f conftest.val
                   2783: 
                   2784:   fi
                   2785:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2786:   as_fn_set_status $ac_retval
                   2787: 
                   2788: } # ac_fn_c_compute_int
                   2789: 
                   2790: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   2791: # -------------------------------------------
                   2792: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   2793: # variable VAR accordingly.
                   2794: ac_fn_c_check_type ()
                   2795: {
                   2796:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2797:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2798: $as_echo_n "checking for $2... " >&6; }
                   2799: if eval \${$3+:} false; then :
                   2800:   $as_echo_n "(cached) " >&6
                   2801: else
                   2802:   eval "$3=no"
                   2803:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2804: /* end confdefs.h.  */
                   2805: $4
                   2806: int
                   2807: main ()
                   2808: {
                   2809: if (sizeof ($2))
                   2810:         return 0;
                   2811:   ;
                   2812:   return 0;
                   2813: }
                   2814: _ACEOF
                   2815: if ac_fn_c_try_compile "$LINENO"; then :
                   2816:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2817: /* end confdefs.h.  */
                   2818: $4
                   2819: int
                   2820: main ()
                   2821: {
                   2822: if (sizeof (($2)))
                   2823:            return 0;
                   2824:   ;
                   2825:   return 0;
                   2826: }
                   2827: _ACEOF
                   2828: if ac_fn_c_try_compile "$LINENO"; then :
                   2829: 
                   2830: else
                   2831:   eval "$3=yes"
                   2832: fi
                   2833: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2834: fi
                   2835: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2836: fi
                   2837: eval ac_res=\$$3
                   2838:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2839: $as_echo "$ac_res" >&6; }
                   2840:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2841: 
                   2842: } # ac_fn_c_check_type
                   2843: 
                   2844: # ac_fn_cxx_try_compile LINENO
                   2845: # ----------------------------
                   2846: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   2847: ac_fn_cxx_try_compile ()
                   2848: {
                   2849:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2850:   rm -f conftest.$ac_objext
                   2851:   if { { ac_try="$ac_compile"
                   2852: case "(($ac_try" in
                   2853:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2854:   *) ac_try_echo=$ac_try;;
                   2855: esac
                   2856: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   2857: $as_echo "$ac_try_echo"; } >&5
                   2858:   (eval "$ac_compile") 2>conftest.err
                   2859:   ac_status=$?
                   2860:   if test -s conftest.err; then
                   2861:     grep -v '^ *+' conftest.err >conftest.er1
                   2862:     cat conftest.er1 >&5
                   2863:     mv -f conftest.er1 conftest.err
                   2864:   fi
                   2865:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   2866:   test $ac_status = 0; } && {
                   2867:         test -z "$ac_cxx_werror_flag" ||
                   2868:         test ! -s conftest.err
                   2869:        } && test -s conftest.$ac_objext; then :
                   2870:   ac_retval=0
                   2871: else
                   2872:   $as_echo "$as_me: failed program was:" >&5
                   2873: sed 's/^/| /' conftest.$ac_ext >&5
                   2874: 
                   2875:        ac_retval=1
                   2876: fi
                   2877:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2878:   as_fn_set_status $ac_retval
                   2879: 
                   2880: } # ac_fn_cxx_try_compile
                   2881: 
                   2882: # ac_fn_cxx_try_cpp LINENO
                   2883: # ------------------------
                   2884: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   2885: ac_fn_cxx_try_cpp ()
                   2886: {
                   2887:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2888:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   2889: case "(($ac_try" in
                   2890:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2891:   *) ac_try_echo=$ac_try;;
                   2892: esac
                   2893: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   2894: $as_echo "$ac_try_echo"; } >&5
                   2895:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   2896:   ac_status=$?
                   2897:   if test -s conftest.err; then
                   2898:     grep -v '^ *+' conftest.err >conftest.er1
                   2899:     cat conftest.er1 >&5
                   2900:     mv -f conftest.er1 conftest.err
                   2901:   fi
                   2902:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   2903:   test $ac_status = 0; } > conftest.i && {
                   2904:         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
                   2905:         test ! -s conftest.err
                   2906:        }; then :
                   2907:   ac_retval=0
                   2908: else
                   2909:   $as_echo "$as_me: failed program was:" >&5
                   2910: sed 's/^/| /' conftest.$ac_ext >&5
                   2911: 
                   2912:     ac_retval=1
                   2913: fi
                   2914:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2915:   as_fn_set_status $ac_retval
                   2916: 
                   2917: } # ac_fn_cxx_try_cpp
                   2918: cat >config.log <<_ACEOF
                   2919: This file contains any messages produced by compilers while
                   2920: running configure, to aid debugging if configure makes a mistake.
                   2921: 
                   2922: It was created by $as_me, which was
1.1.1.2 ! misho    2923: generated by GNU Autoconf 2.69.  Invocation command line was
1.1       misho    2924: 
                   2925:   $ $0 $@
                   2926: 
                   2927: _ACEOF
                   2928: exec 5>>config.log
                   2929: {
                   2930: cat <<_ASUNAME
                   2931: ## --------- ##
                   2932: ## Platform. ##
                   2933: ## --------- ##
                   2934: 
                   2935: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2936: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2937: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2938: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2939: uname -v = `(uname -v) 2>/dev/null || echo unknown`
                   2940: 
                   2941: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2942: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
                   2943: 
                   2944: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2945: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2946: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2947: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2948: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2949: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2950: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
                   2951: 
                   2952: _ASUNAME
                   2953: 
                   2954: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2955: for as_dir in $PATH
                   2956: do
                   2957:   IFS=$as_save_IFS
                   2958:   test -z "$as_dir" && as_dir=.
                   2959:     $as_echo "PATH: $as_dir"
                   2960:   done
                   2961: IFS=$as_save_IFS
                   2962: 
                   2963: } >&5
                   2964: 
                   2965: cat >&5 <<_ACEOF
                   2966: 
                   2967: 
                   2968: ## ----------- ##
                   2969: ## Core tests. ##
                   2970: ## ----------- ##
                   2971: 
                   2972: _ACEOF
                   2973: 
                   2974: 
                   2975: # Keep a trace of the command line.
                   2976: # Strip out --no-create and --no-recursion so they do not pile up.
                   2977: # Strip out --silent because we don't want to record it for future runs.
                   2978: # Also quote any args containing shell meta-characters.
                   2979: # Make two passes to allow for proper duplicate-argument suppression.
                   2980: ac_configure_args=
                   2981: ac_configure_args0=
                   2982: ac_configure_args1=
                   2983: ac_must_keep_next=false
                   2984: for ac_pass in 1 2
                   2985: do
                   2986:   for ac_arg
                   2987:   do
                   2988:     case $ac_arg in
                   2989:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2990:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2991:     | -silent | --silent | --silen | --sile | --sil)
                   2992:       continue ;;
                   2993:     *\'*)
                   2994:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2995:     esac
                   2996:     case $ac_pass in
                   2997:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2998:     2)
                   2999:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   3000:       if test $ac_must_keep_next = true; then
                   3001:        ac_must_keep_next=false # Got value, back to normal.
                   3002:       else
                   3003:        case $ac_arg in
                   3004:          *=* | --config-cache | -C | -disable-* | --disable-* \
                   3005:          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   3006:          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   3007:          | -with-* | --with-* | -without-* | --without-* | --x)
                   3008:            case "$ac_configure_args0 " in
                   3009:              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   3010:            esac
                   3011:            ;;
                   3012:          -* ) ac_must_keep_next=true ;;
                   3013:        esac
                   3014:       fi
                   3015:       as_fn_append ac_configure_args " '$ac_arg'"
                   3016:       ;;
                   3017:     esac
                   3018:   done
                   3019: done
                   3020: { ac_configure_args0=; unset ac_configure_args0;}
                   3021: { ac_configure_args1=; unset ac_configure_args1;}
                   3022: 
                   3023: # When interrupted or exit'd, cleanup temporary files, and complete
                   3024: # config.log.  We remove comments because anyway the quotes in there
                   3025: # would cause problems or look ugly.
                   3026: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   3027: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   3028: trap 'exit_status=$?
                   3029:   # Save into config.log some information that might help in debugging.
                   3030:   {
                   3031:     echo
                   3032: 
                   3033:     $as_echo "## ---------------- ##
                   3034: ## Cache variables. ##
                   3035: ## ---------------- ##"
                   3036:     echo
                   3037:     # The following way of writing the cache mishandles newlines in values,
                   3038: (
                   3039:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   3040:     eval ac_val=\$$ac_var
                   3041:     case $ac_val in #(
                   3042:     *${as_nl}*)
                   3043:       case $ac_var in #(
                   3044:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   3045: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   3046:       esac
                   3047:       case $ac_var in #(
                   3048:       _ | IFS | as_nl) ;; #(
                   3049:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   3050:       *) { eval $ac_var=; unset $ac_var;} ;;
                   3051:       esac ;;
                   3052:     esac
                   3053:   done
                   3054:   (set) 2>&1 |
                   3055:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   3056:     *${as_nl}ac_space=\ *)
                   3057:       sed -n \
                   3058:        "s/'\''/'\''\\\\'\'''\''/g;
                   3059:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   3060:       ;; #(
                   3061:     *)
                   3062:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   3063:       ;;
                   3064:     esac |
                   3065:     sort
                   3066: )
                   3067:     echo
                   3068: 
                   3069:     $as_echo "## ----------------- ##
                   3070: ## Output variables. ##
                   3071: ## ----------------- ##"
                   3072:     echo
                   3073:     for ac_var in $ac_subst_vars
                   3074:     do
                   3075:       eval ac_val=\$$ac_var
                   3076:       case $ac_val in
                   3077:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   3078:       esac
                   3079:       $as_echo "$ac_var='\''$ac_val'\''"
                   3080:     done | sort
                   3081:     echo
                   3082: 
                   3083:     if test -n "$ac_subst_files"; then
                   3084:       $as_echo "## ------------------- ##
                   3085: ## File substitutions. ##
                   3086: ## ------------------- ##"
                   3087:       echo
                   3088:       for ac_var in $ac_subst_files
                   3089:       do
                   3090:        eval ac_val=\$$ac_var
                   3091:        case $ac_val in
                   3092:        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   3093:        esac
                   3094:        $as_echo "$ac_var='\''$ac_val'\''"
                   3095:       done | sort
                   3096:       echo
                   3097:     fi
                   3098: 
                   3099:     if test -s confdefs.h; then
                   3100:       $as_echo "## ----------- ##
                   3101: ## confdefs.h. ##
                   3102: ## ----------- ##"
                   3103:       echo
                   3104:       cat confdefs.h
                   3105:       echo
                   3106:     fi
                   3107:     test "$ac_signal" != 0 &&
                   3108:       $as_echo "$as_me: caught signal $ac_signal"
                   3109:     $as_echo "$as_me: exit $exit_status"
                   3110:   } >&5
                   3111:   rm -f core *.core core.conftest.* &&
                   3112:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   3113:     exit $exit_status
                   3114: ' 0
                   3115: for ac_signal in 1 2 13 15; do
                   3116:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   3117: done
                   3118: ac_signal=0
                   3119: 
                   3120: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   3121: rm -f -r conftest* confdefs.h
                   3122: 
                   3123: $as_echo "/* confdefs.h */" > confdefs.h
                   3124: 
                   3125: # Predefined preprocessor variables.
                   3126: 
                   3127: cat >>confdefs.h <<_ACEOF
                   3128: #define PACKAGE_NAME "$PACKAGE_NAME"
                   3129: _ACEOF
                   3130: 
                   3131: cat >>confdefs.h <<_ACEOF
                   3132: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
                   3133: _ACEOF
                   3134: 
                   3135: cat >>confdefs.h <<_ACEOF
                   3136: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   3137: _ACEOF
                   3138: 
                   3139: cat >>confdefs.h <<_ACEOF
                   3140: #define PACKAGE_STRING "$PACKAGE_STRING"
                   3141: _ACEOF
                   3142: 
                   3143: cat >>confdefs.h <<_ACEOF
                   3144: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   3145: _ACEOF
                   3146: 
                   3147: cat >>confdefs.h <<_ACEOF
                   3148: #define PACKAGE_URL "$PACKAGE_URL"
                   3149: _ACEOF
                   3150: 
                   3151: 
                   3152: # Let the site file select an alternate cache file if it wants to.
                   3153: # Prefer an explicitly selected file to automatically selected ones.
                   3154: ac_site_file1=NONE
                   3155: ac_site_file2=NONE
                   3156: if test -n "$CONFIG_SITE"; then
                   3157:   # We do not want a PATH search for config.site.
                   3158:   case $CONFIG_SITE in #((
                   3159:     -*)  ac_site_file1=./$CONFIG_SITE;;
                   3160:     */*) ac_site_file1=$CONFIG_SITE;;
                   3161:     *)   ac_site_file1=./$CONFIG_SITE;;
                   3162:   esac
                   3163: elif test "x$prefix" != xNONE; then
                   3164:   ac_site_file1=$prefix/share/config.site
                   3165:   ac_site_file2=$prefix/etc/config.site
                   3166: else
                   3167:   ac_site_file1=$ac_default_prefix/share/config.site
                   3168:   ac_site_file2=$ac_default_prefix/etc/config.site
                   3169: fi
                   3170: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   3171: do
                   3172:   test "x$ac_site_file" = xNONE && continue
                   3173:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   3174:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   3175: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   3176:     sed 's/^/| /' "$ac_site_file" >&5
                   3177:     . "$ac_site_file" \
                   3178:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3179: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3180: as_fn_error $? "failed to load site script $ac_site_file
                   3181: See \`config.log' for more details" "$LINENO" 5; }
                   3182:   fi
                   3183: done
                   3184: 
                   3185: if test -r "$cache_file"; then
                   3186:   # Some versions of bash will fail to source /dev/null (special files
                   3187:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   3188:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   3189:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   3190: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   3191:     case $cache_file in
                   3192:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   3193:       *)                      . "./$cache_file";;
                   3194:     esac
                   3195:   fi
                   3196: else
                   3197:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   3198: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   3199:   >$cache_file
                   3200: fi
                   3201: 
                   3202: as_fn_append ac_header_list " utime.h"
                   3203: # Check that the precious variables saved in the cache have kept the same
                   3204: # value.
                   3205: ac_cache_corrupted=false
                   3206: for ac_var in $ac_precious_vars; do
                   3207:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   3208:   eval ac_new_set=\$ac_env_${ac_var}_set
                   3209:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   3210:   eval ac_new_val=\$ac_env_${ac_var}_value
                   3211:   case $ac_old_set,$ac_new_set in
                   3212:     set,)
                   3213:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   3214: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   3215:       ac_cache_corrupted=: ;;
                   3216:     ,set)
                   3217:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   3218: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   3219:       ac_cache_corrupted=: ;;
                   3220:     ,);;
                   3221:     *)
                   3222:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   3223:        # differences in whitespace do not lead to failure.
                   3224:        ac_old_val_w=`echo x $ac_old_val`
                   3225:        ac_new_val_w=`echo x $ac_new_val`
                   3226:        if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   3227:          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   3228: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   3229:          ac_cache_corrupted=:
                   3230:        else
                   3231:          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   3232: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   3233:          eval $ac_var=\$ac_old_val
                   3234:        fi
                   3235:        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   3236: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   3237:        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   3238: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   3239:       fi;;
                   3240:   esac
                   3241:   # Pass precious variables to config.status.
                   3242:   if test "$ac_new_set" = set; then
                   3243:     case $ac_new_val in
                   3244:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   3245:     *) ac_arg=$ac_var=$ac_new_val ;;
                   3246:     esac
                   3247:     case " $ac_configure_args " in
                   3248:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   3249:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   3250:     esac
                   3251:   fi
                   3252: done
                   3253: if $ac_cache_corrupted; then
                   3254:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3255: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3256:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   3257: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
                   3258:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
                   3259: fi
                   3260: ## -------------------- ##
                   3261: ## Main body of script. ##
                   3262: ## -------------------- ##
                   3263: 
                   3264: ac_ext=c
                   3265: ac_cpp='$CPP $CPPFLAGS'
                   3266: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3267: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3268: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3269: 
                   3270: 
                   3271: 
1.1.1.2 ! misho    3272: 
        !          3273: 
        !          3274: 
1.1       misho    3275: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   3276: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
                   3277: if ${ac_cv_path_GREP+:} false; then :
                   3278:   $as_echo_n "(cached) " >&6
                   3279: else
                   3280:   if test -z "$GREP"; then
                   3281:   ac_path_GREP_found=false
                   3282:   # Loop through the user's path and test for each of PROGNAME-LIST
                   3283:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3284: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   3285: do
                   3286:   IFS=$as_save_IFS
                   3287:   test -z "$as_dir" && as_dir=.
                   3288:     for ac_prog in grep ggrep; do
                   3289:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3290:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.2 ! misho    3291:       as_fn_executable_p "$ac_path_GREP" || continue
1.1       misho    3292: # Check for GNU ac_path_GREP and select it if it is found.
                   3293:   # Check for GNU $ac_path_GREP
                   3294: case `"$ac_path_GREP" --version 2>&1` in
                   3295: *GNU*)
                   3296:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   3297: *)
                   3298:   ac_count=0
                   3299:   $as_echo_n 0123456789 >"conftest.in"
                   3300:   while :
                   3301:   do
                   3302:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   3303:     mv "conftest.tmp" "conftest.in"
                   3304:     cp "conftest.in" "conftest.nl"
                   3305:     $as_echo 'GREP' >> "conftest.nl"
                   3306:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   3307:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   3308:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   3309:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   3310:       # Best one so far, save it but keep looking for a better one
                   3311:       ac_cv_path_GREP="$ac_path_GREP"
                   3312:       ac_path_GREP_max=$ac_count
                   3313:     fi
                   3314:     # 10*(2^10) chars as input seems more than enough
                   3315:     test $ac_count -gt 10 && break
                   3316:   done
                   3317:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   3318: esac
                   3319: 
                   3320:       $ac_path_GREP_found && break 3
                   3321:     done
                   3322:   done
                   3323:   done
                   3324: IFS=$as_save_IFS
                   3325:   if test -z "$ac_cv_path_GREP"; then
                   3326:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   3327:   fi
                   3328: else
                   3329:   ac_cv_path_GREP=$GREP
                   3330: fi
                   3331: 
                   3332: fi
                   3333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   3334: $as_echo "$ac_cv_path_GREP" >&6; }
                   3335:  GREP="$ac_cv_path_GREP"
                   3336: 
                   3337: 
                   3338: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   3339: $as_echo_n "checking for egrep... " >&6; }
                   3340: if ${ac_cv_path_EGREP+:} false; then :
                   3341:   $as_echo_n "(cached) " >&6
                   3342: else
                   3343:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   3344:    then ac_cv_path_EGREP="$GREP -E"
                   3345:    else
                   3346:      if test -z "$EGREP"; then
                   3347:   ac_path_EGREP_found=false
                   3348:   # Loop through the user's path and test for each of PROGNAME-LIST
                   3349:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3350: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   3351: do
                   3352:   IFS=$as_save_IFS
                   3353:   test -z "$as_dir" && as_dir=.
                   3354:     for ac_prog in egrep; do
                   3355:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3356:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.2 ! misho    3357:       as_fn_executable_p "$ac_path_EGREP" || continue
1.1       misho    3358: # Check for GNU ac_path_EGREP and select it if it is found.
                   3359:   # Check for GNU $ac_path_EGREP
                   3360: case `"$ac_path_EGREP" --version 2>&1` in
                   3361: *GNU*)
                   3362:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   3363: *)
                   3364:   ac_count=0
                   3365:   $as_echo_n 0123456789 >"conftest.in"
                   3366:   while :
                   3367:   do
                   3368:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   3369:     mv "conftest.tmp" "conftest.in"
                   3370:     cp "conftest.in" "conftest.nl"
                   3371:     $as_echo 'EGREP' >> "conftest.nl"
                   3372:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   3373:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   3374:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   3375:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   3376:       # Best one so far, save it but keep looking for a better one
                   3377:       ac_cv_path_EGREP="$ac_path_EGREP"
                   3378:       ac_path_EGREP_max=$ac_count
                   3379:     fi
                   3380:     # 10*(2^10) chars as input seems more than enough
                   3381:     test $ac_count -gt 10 && break
                   3382:   done
                   3383:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   3384: esac
                   3385: 
                   3386:       $ac_path_EGREP_found && break 3
                   3387:     done
                   3388:   done
                   3389:   done
                   3390: IFS=$as_save_IFS
                   3391:   if test -z "$ac_cv_path_EGREP"; then
                   3392:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   3393:   fi
                   3394: else
                   3395:   ac_cv_path_EGREP=$EGREP
                   3396: fi
                   3397: 
                   3398:    fi
                   3399: fi
                   3400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   3401: $as_echo "$ac_cv_path_EGREP" >&6; }
                   3402:  EGREP="$ac_cv_path_EGREP"
                   3403: 
                   3404: 
                   3405: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
                   3406: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
                   3407: if ${lt_cv_path_SED+:} false; then :
                   3408:   $as_echo_n "(cached) " >&6
                   3409: else
                   3410:   # Loop through the user's path and test for sed and gsed.
                   3411: # Then use that list of sed's as ones to test for truncation.
                   3412: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3413: for as_dir in $PATH
                   3414: do
                   3415:   IFS=$as_save_IFS
                   3416:   test -z "$as_dir" && as_dir=.
                   3417:   for lt_ac_prog in sed gsed; do
                   3418:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3419:       if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then
                   3420:         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
                   3421:       fi
                   3422:     done
                   3423:   done
                   3424: done
                   3425: lt_ac_max=0
                   3426: lt_ac_count=0
                   3427: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
                   3428: # along with /bin/sed that truncates output.
                   3429: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
                   3430:   test ! -f $lt_ac_sed && continue
                   3431:   cat /dev/null > conftest.in
                   3432:   lt_ac_count=0
                   3433:   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
                   3434:   # Check for GNU sed and select it if it is found.
                   3435:   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
                   3436:     lt_cv_path_SED=$lt_ac_sed
                   3437:     break
                   3438:   fi
                   3439:   while true; do
                   3440:     cat conftest.in conftest.in >conftest.tmp
                   3441:     mv conftest.tmp conftest.in
                   3442:     cp conftest.in conftest.nl
                   3443:     echo >>conftest.nl
                   3444:     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
                   3445:     cmp -s conftest.out conftest.nl || break
                   3446:     # 10000 chars as input seems more than enough
                   3447:     test $lt_ac_count -gt 10 && break
                   3448:     lt_ac_count=`expr $lt_ac_count + 1`
                   3449:     if test $lt_ac_count -gt $lt_ac_max; then
                   3450:       lt_ac_max=$lt_ac_count
                   3451:       lt_cv_path_SED=$lt_ac_sed
                   3452:     fi
                   3453:   done
                   3454: done
                   3455: 
                   3456: fi
                   3457: 
                   3458: SED=$lt_cv_path_SED
                   3459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   3460: $as_echo "$SED" >&6; }
                   3461: 
                   3462: 
                   3463: 
                   3464: 
                   3465: 
                   3466: 
                   3467:   PHP_VAR_SUBST="$PHP_VAR_SUBST EGREP"
                   3468: 
                   3469: 
                   3470: 
                   3471: 
                   3472: 
                   3473:   PHP_VAR_SUBST="$PHP_VAR_SUBST SED"
                   3474: 
                   3475: 
                   3476: 
                   3477:   test -f config.nice && mv config.nice config.nice.old
                   3478:   rm -f config.nice.old
                   3479:   cat >config.nice<<EOF
                   3480: #! /bin/sh
                   3481: #
                   3482: # Created by configure
                   3483: 
                   3484: EOF
                   3485: 
                   3486:   for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
                   3487:     eval val=\$$var
                   3488:     if test -n "$val"; then
                   3489:       echo "$var='$val' \\" >> config.nice
                   3490:     fi
                   3491:   done
                   3492: 
                   3493:   echo "'$0' \\" >> config.nice
                   3494:   if test `expr -- $0 : "'.*"` = 0; then
                   3495:     CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'"
                   3496:   else
                   3497:     CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0"
                   3498:   fi
                   3499:   for arg in $ac_configure_args; do
1.1.1.2 ! misho    3500:     if test `expr -- $arg : "'.*"` = 0; then
        !          3501:       if test `expr -- $arg : "--.*"` = 0; then
        !          3502:         break;
        !          3503:       fi
        !          3504:       echo "'$arg' \\" >> config.nice
        !          3505:       CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '$arg'"
        !          3506:     else
        !          3507:       if test `expr -- $arg : "'--.*"` = 0; then
        !          3508:         break;
        !          3509:       fi
        !          3510:       echo "$arg \\" >> config.nice
        !          3511:       CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $arg"
        !          3512:     fi
1.1       misho    3513:   done
                   3514:   echo '"$@"' >> config.nice
                   3515:   chmod +x config.nice
                   3516:   CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS"
                   3517: 
                   3518: 
                   3519:   PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_COMMAND"
                   3520: 
                   3521: 
                   3522: 
                   3523: 
                   3524: 
                   3525:   PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_OPTIONS"
                   3526: 
                   3527: 
                   3528: 
                   3529: 
                   3530: 
                   3531: ac_aux_dir=
                   3532: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
                   3533:   if test -f "$ac_dir/install-sh"; then
                   3534:     ac_aux_dir=$ac_dir
                   3535:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   3536:     break
                   3537:   elif test -f "$ac_dir/install.sh"; then
                   3538:     ac_aux_dir=$ac_dir
                   3539:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   3540:     break
                   3541:   elif test -f "$ac_dir/shtool"; then
                   3542:     ac_aux_dir=$ac_dir
                   3543:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   3544:     break
                   3545:   fi
                   3546: done
                   3547: if test -z "$ac_aux_dir"; then
                   3548:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
                   3549: fi
                   3550: 
                   3551: # These three variables are undocumented and unsupported,
                   3552: # and are intended to be withdrawn in a future Autoconf release.
                   3553: # They can cause serious problems if a builder's source tree is in a directory
                   3554: # whose full name contains unusual characters.
                   3555: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   3556: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   3557: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
                   3558: 
                   3559: 
                   3560: # Make sure we can run config.sub.
                   3561: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
                   3562:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
                   3563: 
                   3564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   3565: $as_echo_n "checking build system type... " >&6; }
                   3566: if ${ac_cv_build+:} false; then :
                   3567:   $as_echo_n "(cached) " >&6
                   3568: else
                   3569:   ac_build_alias=$build_alias
                   3570: test "x$ac_build_alias" = x &&
                   3571:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   3572: test "x$ac_build_alias" = x &&
                   3573:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
                   3574: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
                   3575:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
                   3576: 
                   3577: fi
                   3578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   3579: $as_echo "$ac_cv_build" >&6; }
                   3580: case $ac_cv_build in
                   3581: *-*-*) ;;
                   3582: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
                   3583: esac
                   3584: build=$ac_cv_build
                   3585: ac_save_IFS=$IFS; IFS='-'
                   3586: set x $ac_cv_build
                   3587: shift
                   3588: build_cpu=$1
                   3589: build_vendor=$2
                   3590: shift; shift
                   3591: # Remember, the first character of IFS is used to create $*,
                   3592: # except with old shells:
                   3593: build_os=$*
                   3594: IFS=$ac_save_IFS
                   3595: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
                   3596: 
                   3597: 
                   3598: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   3599: $as_echo_n "checking host system type... " >&6; }
                   3600: if ${ac_cv_host+:} false; then :
                   3601:   $as_echo_n "(cached) " >&6
                   3602: else
                   3603:   if test "x$host_alias" = x; then
                   3604:   ac_cv_host=$ac_cv_build
                   3605: else
                   3606:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
                   3607:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
                   3608: fi
                   3609: 
                   3610: fi
                   3611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   3612: $as_echo "$ac_cv_host" >&6; }
                   3613: case $ac_cv_host in
                   3614: *-*-*) ;;
                   3615: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
                   3616: esac
                   3617: host=$ac_cv_host
                   3618: ac_save_IFS=$IFS; IFS='-'
                   3619: set x $ac_cv_host
                   3620: shift
                   3621: host_cpu=$1
                   3622: host_vendor=$2
                   3623: shift; shift
                   3624: # Remember, the first character of IFS is used to create $*,
                   3625: # except with old shells:
                   3626: host_os=$*
                   3627: IFS=$ac_save_IFS
                   3628: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
                   3629: 
                   3630: 
                   3631: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   3632: $as_echo_n "checking target system type... " >&6; }
                   3633: if ${ac_cv_target+:} false; then :
                   3634:   $as_echo_n "(cached) " >&6
                   3635: else
                   3636:   if test "x$target_alias" = x; then
                   3637:   ac_cv_target=$ac_cv_host
                   3638: else
                   3639:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
                   3640:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
                   3641: fi
                   3642: 
                   3643: fi
                   3644: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   3645: $as_echo "$ac_cv_target" >&6; }
                   3646: case $ac_cv_target in
                   3647: *-*-*) ;;
                   3648: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
                   3649: esac
                   3650: target=$ac_cv_target
                   3651: ac_save_IFS=$IFS; IFS='-'
                   3652: set x $ac_cv_target
                   3653: shift
                   3654: target_cpu=$1
                   3655: target_vendor=$2
                   3656: shift; shift
                   3657: # Remember, the first character of IFS is used to create $*,
                   3658: # except with old shells:
                   3659: target_os=$*
                   3660: IFS=$ac_save_IFS
                   3661: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   3662: 
                   3663: 
                   3664: # The aliases save the names the user supplied, while $host etc.
                   3665: # will get canonicalized.
                   3666: test -n "$target_alias" &&
                   3667:   test "$program_prefix$program_suffix$program_transform_name" = \
                   3668:     NONENONEs,x,x, &&
                   3669:   program_prefix=${target_alias}-
                   3670: 
                   3671:         if test -z "$host_alias" && test -n "$host"; then
                   3672:     host_alias=$host
                   3673:   fi
                   3674:   if test -z "$host_alias"; then
                   3675:     as_fn_error $? "host_alias is not set!" "$LINENO" 5
                   3676:   fi
                   3677: 
                   3678: 
                   3679: ac_config_headers="$ac_config_headers main/php_config.h"
                   3680: 
                   3681: 
1.1.1.2 ! misho    3682: 
        !          3683: 
1.1       misho    3684: PHP_MAJOR_VERSION=5
1.1.1.2 ! misho    3685: PHP_MINOR_VERSION=4
        !          3686: PHP_RELEASE_VERSION=3
1.1       misho    3687: PHP_EXTRA_VERSION=""
                   3688: PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION"
                   3689: PHP_VERSION_ID=`expr $PHP_MAJOR_VERSION \* 10000 + $PHP_MINOR_VERSION \* 100 + $PHP_RELEASE_VERSION`
                   3690: 
                   3691: 
                   3692:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MAJOR_VERSION"
                   3693: 
                   3694: 
                   3695:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MINOR_VERSION"
                   3696: 
                   3697: 
                   3698:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RELEASE_VERSION"
                   3699: 
                   3700: 
                   3701:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXTRA_VERSION"
                   3702: 
                   3703: 
                   3704: 
                   3705: 
                   3706: echo "/* automatically generated by configure */" > php_version.h.new
                   3707: echo "/* edit configure.in to change version number */" >> php_version.h.new
                   3708: echo "#define PHP_MAJOR_VERSION $PHP_MAJOR_VERSION" >> php_version.h.new
                   3709: echo "#define PHP_MINOR_VERSION $PHP_MINOR_VERSION" >> php_version.h.new
                   3710: echo "#define PHP_RELEASE_VERSION $PHP_RELEASE_VERSION" >> php_version.h.new
                   3711: echo "#define PHP_EXTRA_VERSION \"$PHP_EXTRA_VERSION\"" >> php_version.h.new
                   3712: echo "#define PHP_VERSION \"$PHP_VERSION\"" >> php_version.h.new
                   3713: echo "#define PHP_VERSION_ID $PHP_VERSION_ID" >> php_version.h.new
                   3714: cmp php_version.h.new $srcdir/main/php_version.h >/dev/null 2>&1
                   3715: if test $? -ne 0 ; then
                   3716:   rm -f $srcdir/main/php_version.h && mv php_version.h.new $srcdir/main/php_version.h && \
                   3717:   echo 'Updated main/php_version.h'
                   3718: else
                   3719:   rm -f php_version.h.new
                   3720: fi
                   3721: 
                   3722: 
                   3723: 
                   3724: if test "$with_shared_apache" != "no" && test -n "$with_shared_apache" ; then
                   3725:   as_fn_error $? "--with-shared-apache is not supported. Please refer to the documentation for using APXS" "$LINENO" 5
                   3726: fi
                   3727: 
                   3728: if test -n "$with_apache" && test -n "$with_apxs"; then
                   3729:   as_fn_error $? "--with-apache and --with-apxs cannot be used together" "$LINENO" 5
                   3730: fi
                   3731: 
                   3732: if test -n "$with_apxs2filter" && test -n "$with_apxs2"; then
                   3733:   as_fn_error $? "--with-apxs2filter and --with-apxs2 cannot be used together" "$LINENO" 5
                   3734: fi
                   3735: 
                   3736: 
                   3737: 
                   3738: cwd=`pwd`
                   3739: 
                   3740: php_shtool=$srcdir/build/shtool
                   3741: T_MD=`$php_shtool echo -n -e %B`
                   3742: T_ME=`$php_shtool echo -n -e %b`
                   3743: 
                   3744: 
                   3745: test -d include || $php_shtool mkdir include
                   3746: > Makefile.objects
                   3747: > Makefile.fragments
                   3748: pattern=define
                   3749: $EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/dev/null
                   3750: 
                   3751: 
                   3752: test -z "$CFLAGS" && auto_cflags=1
                   3753: 
                   3754: abs_srcdir=`(cd $srcdir; pwd)`
                   3755: abs_builddir=`pwd`
                   3756: 
                   3757: php_abs_top_srcdir=$abs_srcdir
                   3758: php_abs_top_builddir=$abs_builddir
                   3759: 
                   3760: 
                   3761: $php_shtool mkdir -p libs
                   3762: rm -f libs/*
                   3763: 
                   3764: 
                   3765: ac_ext=c
                   3766: ac_cpp='$CPP $CPPFLAGS'
                   3767: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3768: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3769: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3770: if test -n "$ac_tool_prefix"; then
                   3771:   for ac_prog in cc gcc
                   3772:   do
                   3773:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3774: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3775: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3776: $as_echo_n "checking for $ac_word... " >&6; }
                   3777: if ${ac_cv_prog_CC+:} false; then :
                   3778:   $as_echo_n "(cached) " >&6
                   3779: else
                   3780:   if test -n "$CC"; then
                   3781:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3782: else
                   3783: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3784: for as_dir in $PATH
                   3785: do
                   3786:   IFS=$as_save_IFS
                   3787:   test -z "$as_dir" && as_dir=.
                   3788:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    3789:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3790:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3791:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3792:     break 2
                   3793:   fi
                   3794: done
                   3795:   done
                   3796: IFS=$as_save_IFS
                   3797: 
                   3798: fi
                   3799: fi
                   3800: CC=$ac_cv_prog_CC
                   3801: if test -n "$CC"; then
                   3802:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3803: $as_echo "$CC" >&6; }
                   3804: else
                   3805:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3806: $as_echo "no" >&6; }
                   3807: fi
                   3808: 
                   3809: 
                   3810:     test -n "$CC" && break
                   3811:   done
                   3812: fi
                   3813: if test -z "$CC"; then
                   3814:   ac_ct_CC=$CC
                   3815:   for ac_prog in cc gcc
                   3816: do
                   3817:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3818: set dummy $ac_prog; ac_word=$2
                   3819: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3820: $as_echo_n "checking for $ac_word... " >&6; }
                   3821: if ${ac_cv_prog_ac_ct_CC+:} false; then :
                   3822:   $as_echo_n "(cached) " >&6
                   3823: else
                   3824:   if test -n "$ac_ct_CC"; then
                   3825:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   3826: else
                   3827: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3828: for as_dir in $PATH
                   3829: do
                   3830:   IFS=$as_save_IFS
                   3831:   test -z "$as_dir" && as_dir=.
                   3832:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    3833:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    3834:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3835:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3836:     break 2
                   3837:   fi
                   3838: done
                   3839:   done
                   3840: IFS=$as_save_IFS
                   3841: 
                   3842: fi
                   3843: fi
                   3844: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3845: if test -n "$ac_ct_CC"; then
                   3846:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3847: $as_echo "$ac_ct_CC" >&6; }
                   3848: else
                   3849:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3850: $as_echo "no" >&6; }
                   3851: fi
                   3852: 
                   3853: 
                   3854:   test -n "$ac_ct_CC" && break
                   3855: done
                   3856: 
                   3857:   if test "x$ac_ct_CC" = x; then
                   3858:     CC=""
                   3859:   else
                   3860:     case $cross_compiling:$ac_tool_warned in
                   3861: yes:)
                   3862: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3863: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3864: ac_tool_warned=yes ;;
                   3865: esac
                   3866:     CC=$ac_ct_CC
                   3867:   fi
                   3868: fi
                   3869: 
                   3870: 
                   3871: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3872: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3873: as_fn_error $? "no acceptable C compiler found in \$PATH
                   3874: See \`config.log' for more details" "$LINENO" 5; }
                   3875: 
                   3876: # Provide some information about the compiler.
                   3877: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3878: set X $ac_compile
                   3879: ac_compiler=$2
                   3880: for ac_option in --version -v -V -qversion; do
                   3881:   { { ac_try="$ac_compiler $ac_option >&5"
                   3882: case "(($ac_try" in
                   3883:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3884:   *) ac_try_echo=$ac_try;;
                   3885: esac
                   3886: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3887: $as_echo "$ac_try_echo"; } >&5
                   3888:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   3889:   ac_status=$?
                   3890:   if test -s conftest.err; then
                   3891:     sed '10a\
                   3892: ... rest of stderr output deleted ...
                   3893:          10q' conftest.err >conftest.er1
                   3894:     cat conftest.er1 >&5
                   3895:   fi
                   3896:   rm -f conftest.er1 conftest.err
                   3897:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3898:   test $ac_status = 0; }
                   3899: done
                   3900: 
                   3901: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3902: /* end confdefs.h.  */
                   3903: 
                   3904: int
                   3905: main ()
                   3906: {
                   3907: 
                   3908:   ;
                   3909:   return 0;
                   3910: }
                   3911: _ACEOF
                   3912: ac_clean_files_save=$ac_clean_files
                   3913: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3914: # Try to create an executable without -o first, disregard a.out.
                   3915: # It will help us diagnose broken compilers, and finding out an intuition
                   3916: # of exeext.
                   3917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3918: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3919: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
                   3920: 
                   3921: # The possible output files:
                   3922: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
                   3923: 
                   3924: ac_rmfiles=
                   3925: for ac_file in $ac_files
                   3926: do
                   3927:   case $ac_file in
                   3928:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3929:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3930:   esac
                   3931: done
                   3932: rm -f $ac_rmfiles
                   3933: 
                   3934: if { { ac_try="$ac_link_default"
                   3935: case "(($ac_try" in
                   3936:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3937:   *) ac_try_echo=$ac_try;;
                   3938: esac
                   3939: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3940: $as_echo "$ac_try_echo"; } >&5
                   3941:   (eval "$ac_link_default") 2>&5
                   3942:   ac_status=$?
                   3943:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3944:   test $ac_status = 0; }; then :
                   3945:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3946: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3947: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3948: # so that the user can short-circuit this test for compilers unknown to
                   3949: # Autoconf.
                   3950: for ac_file in $ac_files ''
                   3951: do
                   3952:   test -f "$ac_file" || continue
                   3953:   case $ac_file in
                   3954:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3955:        ;;
                   3956:     [ab].out )
                   3957:        # We found the default executable, but exeext='' is most
                   3958:        # certainly right.
                   3959:        break;;
                   3960:     *.* )
                   3961:        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3962:        then :; else
                   3963:           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3964:        fi
                   3965:        # We set ac_cv_exeext here because the later test for it is not
                   3966:        # safe: cross compilers may not add the suffix if given an `-o'
                   3967:        # argument, so we may need to know it at that point already.
                   3968:        # Even if this section looks crufty: it has the advantage of
                   3969:        # actually working.
                   3970:        break;;
                   3971:     * )
                   3972:        break;;
                   3973:   esac
                   3974: done
                   3975: test "$ac_cv_exeext" = no && ac_cv_exeext=
                   3976: 
                   3977: else
                   3978:   ac_file=''
                   3979: fi
                   3980: if test -z "$ac_file"; then :
                   3981:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3982: $as_echo "no" >&6; }
                   3983: $as_echo "$as_me: failed program was:" >&5
                   3984: sed 's/^/| /' conftest.$ac_ext >&5
                   3985: 
                   3986: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3987: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3988: as_fn_error 77 "C compiler cannot create executables
                   3989: See \`config.log' for more details" "$LINENO" 5; }
                   3990: else
                   3991:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3992: $as_echo "yes" >&6; }
                   3993: fi
                   3994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3995: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3996: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3997: $as_echo "$ac_file" >&6; }
                   3998: ac_exeext=$ac_cv_exeext
                   3999: 
                   4000: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   4001: ac_clean_files=$ac_clean_files_save
                   4002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   4003: $as_echo_n "checking for suffix of executables... " >&6; }
                   4004: if { { ac_try="$ac_link"
                   4005: case "(($ac_try" in
                   4006:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4007:   *) ac_try_echo=$ac_try;;
                   4008: esac
                   4009: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4010: $as_echo "$ac_try_echo"; } >&5
                   4011:   (eval "$ac_link") 2>&5
                   4012:   ac_status=$?
                   4013:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4014:   test $ac_status = 0; }; then :
                   4015:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   4016: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   4017: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   4018: # `rm'.
                   4019: for ac_file in conftest.exe conftest conftest.*; do
                   4020:   test -f "$ac_file" || continue
                   4021:   case $ac_file in
                   4022:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   4023:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   4024:          break;;
                   4025:     * ) break;;
                   4026:   esac
                   4027: done
                   4028: else
                   4029:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   4030: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   4031: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
                   4032: See \`config.log' for more details" "$LINENO" 5; }
                   4033: fi
                   4034: rm -f conftest conftest$ac_cv_exeext
                   4035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   4036: $as_echo "$ac_cv_exeext" >&6; }
                   4037: 
                   4038: rm -f conftest.$ac_ext
                   4039: EXEEXT=$ac_cv_exeext
                   4040: ac_exeext=$EXEEXT
                   4041: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4042: /* end confdefs.h.  */
                   4043: #include <stdio.h>
                   4044: int
                   4045: main ()
                   4046: {
                   4047: FILE *f = fopen ("conftest.out", "w");
                   4048:  return ferror (f) || fclose (f) != 0;
                   4049: 
                   4050:   ;
                   4051:   return 0;
                   4052: }
                   4053: _ACEOF
                   4054: ac_clean_files="$ac_clean_files conftest.out"
                   4055: # Check that the compiler produces executables we can run.  If not, either
                   4056: # the compiler is broken, or we cross compile.
                   4057: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   4058: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   4059: if test "$cross_compiling" != yes; then
                   4060:   { { ac_try="$ac_link"
                   4061: case "(($ac_try" in
                   4062:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4063:   *) ac_try_echo=$ac_try;;
                   4064: esac
                   4065: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4066: $as_echo "$ac_try_echo"; } >&5
                   4067:   (eval "$ac_link") 2>&5
                   4068:   ac_status=$?
                   4069:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4070:   test $ac_status = 0; }
                   4071:   if { ac_try='./conftest$ac_cv_exeext'
                   4072:   { { case "(($ac_try" in
                   4073:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4074:   *) ac_try_echo=$ac_try;;
                   4075: esac
                   4076: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4077: $as_echo "$ac_try_echo"; } >&5
                   4078:   (eval "$ac_try") 2>&5
                   4079:   ac_status=$?
                   4080:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4081:   test $ac_status = 0; }; }; then
                   4082:     cross_compiling=no
                   4083:   else
                   4084:     if test "$cross_compiling" = maybe; then
                   4085:        cross_compiling=yes
                   4086:     else
                   4087:        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   4088: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   4089: as_fn_error $? "cannot run C compiled programs.
                   4090: If you meant to cross compile, use \`--host'.
                   4091: See \`config.log' for more details" "$LINENO" 5; }
                   4092:     fi
                   4093:   fi
                   4094: fi
                   4095: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   4096: $as_echo "$cross_compiling" >&6; }
                   4097: 
                   4098: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   4099: ac_clean_files=$ac_clean_files_save
                   4100: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   4101: $as_echo_n "checking for suffix of object files... " >&6; }
                   4102: if ${ac_cv_objext+:} false; then :
                   4103:   $as_echo_n "(cached) " >&6
                   4104: else
                   4105:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4106: /* end confdefs.h.  */
                   4107: 
                   4108: int
                   4109: main ()
                   4110: {
                   4111: 
                   4112:   ;
                   4113:   return 0;
                   4114: }
                   4115: _ACEOF
                   4116: rm -f conftest.o conftest.obj
                   4117: if { { ac_try="$ac_compile"
                   4118: case "(($ac_try" in
                   4119:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4120:   *) ac_try_echo=$ac_try;;
                   4121: esac
                   4122: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4123: $as_echo "$ac_try_echo"; } >&5
                   4124:   (eval "$ac_compile") 2>&5
                   4125:   ac_status=$?
                   4126:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4127:   test $ac_status = 0; }; then :
                   4128:   for ac_file in conftest.o conftest.obj conftest.*; do
                   4129:   test -f "$ac_file" || continue;
                   4130:   case $ac_file in
                   4131:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   4132:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   4133:        break;;
                   4134:   esac
                   4135: done
                   4136: else
                   4137:   $as_echo "$as_me: failed program was:" >&5
                   4138: sed 's/^/| /' conftest.$ac_ext >&5
                   4139: 
                   4140: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   4141: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   4142: as_fn_error $? "cannot compute suffix of object files: cannot compile
                   4143: See \`config.log' for more details" "$LINENO" 5; }
                   4144: fi
                   4145: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   4146: fi
                   4147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   4148: $as_echo "$ac_cv_objext" >&6; }
                   4149: OBJEXT=$ac_cv_objext
                   4150: ac_objext=$OBJEXT
                   4151: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   4152: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
                   4153: if ${ac_cv_c_compiler_gnu+:} false; then :
                   4154:   $as_echo_n "(cached) " >&6
                   4155: else
                   4156:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4157: /* end confdefs.h.  */
                   4158: 
                   4159: int
                   4160: main ()
                   4161: {
                   4162: #ifndef __GNUC__
                   4163:        choke me
                   4164: #endif
                   4165: 
                   4166:   ;
                   4167:   return 0;
                   4168: }
                   4169: _ACEOF
                   4170: if ac_fn_c_try_compile "$LINENO"; then :
                   4171:   ac_compiler_gnu=yes
                   4172: else
                   4173:   ac_compiler_gnu=no
                   4174: fi
                   4175: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4176: ac_cv_c_compiler_gnu=$ac_compiler_gnu
                   4177: 
                   4178: fi
                   4179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   4180: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   4181: if test $ac_compiler_gnu = yes; then
                   4182:   GCC=yes
                   4183: else
                   4184:   GCC=
                   4185: fi
                   4186: ac_test_CFLAGS=${CFLAGS+set}
                   4187: ac_save_CFLAGS=$CFLAGS
                   4188: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   4189: $as_echo_n "checking whether $CC accepts -g... " >&6; }
                   4190: if ${ac_cv_prog_cc_g+:} false; then :
                   4191:   $as_echo_n "(cached) " >&6
                   4192: else
                   4193:   ac_save_c_werror_flag=$ac_c_werror_flag
                   4194:    ac_c_werror_flag=yes
                   4195:    ac_cv_prog_cc_g=no
                   4196:    CFLAGS="-g"
                   4197:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4198: /* end confdefs.h.  */
                   4199: 
                   4200: int
                   4201: main ()
                   4202: {
                   4203: 
                   4204:   ;
                   4205:   return 0;
                   4206: }
                   4207: _ACEOF
                   4208: if ac_fn_c_try_compile "$LINENO"; then :
                   4209:   ac_cv_prog_cc_g=yes
                   4210: else
                   4211:   CFLAGS=""
                   4212:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4213: /* end confdefs.h.  */
                   4214: 
                   4215: int
                   4216: main ()
                   4217: {
                   4218: 
                   4219:   ;
                   4220:   return 0;
                   4221: }
                   4222: _ACEOF
                   4223: if ac_fn_c_try_compile "$LINENO"; then :
                   4224: 
                   4225: else
                   4226:   ac_c_werror_flag=$ac_save_c_werror_flag
                   4227:         CFLAGS="-g"
                   4228:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4229: /* end confdefs.h.  */
                   4230: 
                   4231: int
                   4232: main ()
                   4233: {
                   4234: 
                   4235:   ;
                   4236:   return 0;
                   4237: }
                   4238: _ACEOF
                   4239: if ac_fn_c_try_compile "$LINENO"; then :
                   4240:   ac_cv_prog_cc_g=yes
                   4241: fi
                   4242: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4243: fi
                   4244: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4245: fi
                   4246: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4247:    ac_c_werror_flag=$ac_save_c_werror_flag
                   4248: fi
                   4249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   4250: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   4251: if test "$ac_test_CFLAGS" = set; then
                   4252:   CFLAGS=$ac_save_CFLAGS
                   4253: elif test $ac_cv_prog_cc_g = yes; then
                   4254:   if test "$GCC" = yes; then
                   4255:     CFLAGS="-g -O2"
                   4256:   else
                   4257:     CFLAGS="-g"
                   4258:   fi
                   4259: else
                   4260:   if test "$GCC" = yes; then
                   4261:     CFLAGS="-O2"
                   4262:   else
                   4263:     CFLAGS=
                   4264:   fi
                   4265: fi
                   4266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   4267: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
                   4268: if ${ac_cv_prog_cc_c89+:} false; then :
                   4269:   $as_echo_n "(cached) " >&6
                   4270: else
                   4271:   ac_cv_prog_cc_c89=no
                   4272: ac_save_CC=$CC
                   4273: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4274: /* end confdefs.h.  */
                   4275: #include <stdarg.h>
                   4276: #include <stdio.h>
1.1.1.2 ! misho    4277: struct stat;
1.1       misho    4278: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   4279: struct buf { int x; };
                   4280: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   4281: static char *e (p, i)
                   4282:      char **p;
                   4283:      int i;
                   4284: {
                   4285:   return p[i];
                   4286: }
                   4287: static char *f (char * (*g) (char **, int), char **p, ...)
                   4288: {
                   4289:   char *s;
                   4290:   va_list v;
                   4291:   va_start (v,p);
                   4292:   s = g (p, va_arg (v,int));
                   4293:   va_end (v);
                   4294:   return s;
                   4295: }
                   4296: 
                   4297: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   4298:    function prototypes and stuff, but not '\xHH' hex character constants.
                   4299:    These don't provoke an error unfortunately, instead are silently treated
                   4300:    as 'x'.  The following induces an error, until -std is added to get
                   4301:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   4302:    array size at least.  It's necessary to write '\x00'==0 to get something
                   4303:    that's true only with -std.  */
                   4304: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
                   4305: 
                   4306: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   4307:    inside strings and character constants.  */
                   4308: #define FOO(x) 'x'
                   4309: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
                   4310: 
                   4311: int test (int i, double x);
                   4312: struct s1 {int (*f) (int a);};
                   4313: struct s2 {int (*f) (double a);};
                   4314: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   4315: int argc;
                   4316: char **argv;
                   4317: int
                   4318: main ()
                   4319: {
                   4320: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                   4321:   ;
                   4322:   return 0;
                   4323: }
                   4324: _ACEOF
                   4325: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   4326:        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   4327: do
                   4328:   CC="$ac_save_CC $ac_arg"
                   4329:   if ac_fn_c_try_compile "$LINENO"; then :
                   4330:   ac_cv_prog_cc_c89=$ac_arg
                   4331: fi
                   4332: rm -f core conftest.err conftest.$ac_objext
                   4333:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   4334: done
                   4335: rm -f conftest.$ac_ext
                   4336: CC=$ac_save_CC
                   4337: 
                   4338: fi
                   4339: # AC_CACHE_VAL
                   4340: case "x$ac_cv_prog_cc_c89" in
                   4341:   x)
                   4342:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   4343: $as_echo "none needed" >&6; } ;;
                   4344:   xno)
                   4345:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   4346: $as_echo "unsupported" >&6; } ;;
                   4347:   *)
                   4348:     CC="$CC $ac_cv_prog_cc_c89"
                   4349:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   4350: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
                   4351: esac
                   4352: if test "x$ac_cv_prog_cc_c89" != xno; then :
                   4353: 
                   4354: fi
                   4355: 
                   4356: ac_ext=c
                   4357: ac_cpp='$CPP $CPPFLAGS'
                   4358: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4359: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4360: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4361: 
                   4362: 
                   4363: ac_ext=c
                   4364: ac_cpp='$CPP $CPPFLAGS'
                   4365: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4366: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4367: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   4369: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   4370: # On Suns, sometimes $CPP names a directory.
                   4371: if test -n "$CPP" && test -d "$CPP"; then
                   4372:   CPP=
                   4373: fi
                   4374: if test -z "$CPP"; then
                   4375:   if ${ac_cv_prog_CPP+:} false; then :
                   4376:   $as_echo_n "(cached) " >&6
                   4377: else
                   4378:       # Double quotes because CPP needs to be expanded
                   4379:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   4380:     do
                   4381:       ac_preproc_ok=false
                   4382: for ac_c_preproc_warn_flag in '' yes
                   4383: do
                   4384:   # Use a header file that comes with gcc, so configuring glibc
                   4385:   # with a fresh cross-compiler works.
                   4386:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   4387:   # <limits.h> exists even on freestanding compilers.
                   4388:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   4389:   # not just through cpp. "Syntax error" is here to catch this case.
                   4390:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4391: /* end confdefs.h.  */
                   4392: #ifdef __STDC__
                   4393: # include <limits.h>
                   4394: #else
                   4395: # include <assert.h>
                   4396: #endif
                   4397:                     Syntax error
                   4398: _ACEOF
                   4399: if ac_fn_c_try_cpp "$LINENO"; then :
                   4400: 
                   4401: else
                   4402:   # Broken: fails on valid input.
                   4403: continue
                   4404: fi
                   4405: rm -f conftest.err conftest.i conftest.$ac_ext
                   4406: 
                   4407:   # OK, works on sane cases.  Now check whether nonexistent headers
                   4408:   # can be detected and how.
                   4409:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4410: /* end confdefs.h.  */
                   4411: #include <ac_nonexistent.h>
                   4412: _ACEOF
                   4413: if ac_fn_c_try_cpp "$LINENO"; then :
                   4414:   # Broken: success on invalid input.
                   4415: continue
                   4416: else
                   4417:   # Passes both tests.
                   4418: ac_preproc_ok=:
                   4419: break
                   4420: fi
                   4421: rm -f conftest.err conftest.i conftest.$ac_ext
                   4422: 
                   4423: done
                   4424: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   4425: rm -f conftest.i conftest.err conftest.$ac_ext
                   4426: if $ac_preproc_ok; then :
                   4427:   break
                   4428: fi
                   4429: 
                   4430:     done
                   4431:     ac_cv_prog_CPP=$CPP
                   4432: 
                   4433: fi
                   4434:   CPP=$ac_cv_prog_CPP
                   4435: else
                   4436:   ac_cv_prog_CPP=$CPP
                   4437: fi
                   4438: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   4439: $as_echo "$CPP" >&6; }
                   4440: ac_preproc_ok=false
                   4441: for ac_c_preproc_warn_flag in '' yes
                   4442: do
                   4443:   # Use a header file that comes with gcc, so configuring glibc
                   4444:   # with a fresh cross-compiler works.
                   4445:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   4446:   # <limits.h> exists even on freestanding compilers.
                   4447:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   4448:   # not just through cpp. "Syntax error" is here to catch this case.
                   4449:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4450: /* end confdefs.h.  */
                   4451: #ifdef __STDC__
                   4452: # include <limits.h>
                   4453: #else
                   4454: # include <assert.h>
                   4455: #endif
                   4456:                     Syntax error
                   4457: _ACEOF
                   4458: if ac_fn_c_try_cpp "$LINENO"; then :
                   4459: 
                   4460: else
                   4461:   # Broken: fails on valid input.
                   4462: continue
                   4463: fi
                   4464: rm -f conftest.err conftest.i conftest.$ac_ext
                   4465: 
                   4466:   # OK, works on sane cases.  Now check whether nonexistent headers
                   4467:   # can be detected and how.
                   4468:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4469: /* end confdefs.h.  */
                   4470: #include <ac_nonexistent.h>
                   4471: _ACEOF
                   4472: if ac_fn_c_try_cpp "$LINENO"; then :
                   4473:   # Broken: success on invalid input.
                   4474: continue
                   4475: else
                   4476:   # Passes both tests.
                   4477: ac_preproc_ok=:
                   4478: break
                   4479: fi
                   4480: rm -f conftest.err conftest.i conftest.$ac_ext
                   4481: 
                   4482: done
                   4483: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   4484: rm -f conftest.i conftest.err conftest.$ac_ext
                   4485: if $ac_preproc_ok; then :
                   4486: 
                   4487: else
                   4488:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   4489: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   4490: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
                   4491: See \`config.log' for more details" "$LINENO" 5; }
                   4492: fi
                   4493: 
                   4494: ac_ext=c
                   4495: ac_cpp='$CPP $CPPFLAGS'
                   4496: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4497: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4498: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4499: 
                   4500: 
                   4501: 
                   4502:   ICC="no"
                   4503:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc" >&5
                   4504: $as_echo_n "checking for icc... " >&6; }
                   4505:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4506: /* end confdefs.h.  */
                   4507: __INTEL_COMPILER
                   4508: _ACEOF
                   4509: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4510:   $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then :
                   4511:   ICC="no"
                   4512:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4513: $as_echo "no" >&6; }
                   4514: else
                   4515:   ICC="yes"
                   4516:     GCC="no"
                   4517:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4518: $as_echo "yes" >&6; }
                   4519: 
                   4520: fi
                   4521: rm -f conftest*
                   4522: 
                   4523: 
                   4524: 
                   4525:   SUNCC="no"
                   4526:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suncc" >&5
                   4527: $as_echo_n "checking for suncc... " >&6; }
                   4528:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4529: /* end confdefs.h.  */
                   4530: __SUNPRO_C
                   4531: _ACEOF
                   4532: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4533:   $EGREP "^__SUNPRO_C" >/dev/null 2>&1; then :
                   4534:   SUNCC="no"
                   4535:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4536: $as_echo "no" >&6; }
                   4537: else
                   4538:   SUNCC="yes"
                   4539:     GCC="no"
                   4540:     test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload"
                   4541:     GCC=""
                   4542:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4543: $as_echo "yes" >&6; }
                   4544: 
                   4545: fi
                   4546: rm -f conftest*
                   4547: 
                   4548: 
                   4549: if test "x$CC" != xcc; then
                   4550:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4551: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
                   4552: else
                   4553:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4554: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
                   4555: fi
                   4556: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4557:                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4558: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
                   4559:   $as_echo_n "(cached) " >&6
                   4560: else
                   4561:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4562: /* end confdefs.h.  */
                   4563: 
                   4564: int
                   4565: main ()
                   4566: {
                   4567: 
                   4568:   ;
                   4569:   return 0;
                   4570: }
                   4571: _ACEOF
                   4572: # Make sure it works both with $CC and with simple cc.
                   4573: # We do the test twice because some compilers refuse to overwrite an
                   4574: # existing .o file with -o, though they will create one.
                   4575: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4576: rm -f conftest2.*
                   4577: if { { case "(($ac_try" in
                   4578:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4579:   *) ac_try_echo=$ac_try;;
                   4580: esac
                   4581: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4582: $as_echo "$ac_try_echo"; } >&5
                   4583:   (eval "$ac_try") 2>&5
                   4584:   ac_status=$?
                   4585:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4586:   test $ac_status = 0; } &&
                   4587:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4588:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4589:   *) ac_try_echo=$ac_try;;
                   4590: esac
                   4591: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4592: $as_echo "$ac_try_echo"; } >&5
                   4593:   (eval "$ac_try") 2>&5
                   4594:   ac_status=$?
                   4595:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4596:   test $ac_status = 0; };
                   4597: then
                   4598:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4599:   if test "x$CC" != xcc; then
                   4600:     # Test first that cc exists at all.
                   4601:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4602:   { { case "(($ac_try" in
                   4603:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4604:   *) ac_try_echo=$ac_try;;
                   4605: esac
                   4606: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4607: $as_echo "$ac_try_echo"; } >&5
                   4608:   (eval "$ac_try") 2>&5
                   4609:   ac_status=$?
                   4610:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4611:   test $ac_status = 0; }; }; then
                   4612:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4613:       rm -f conftest2.*
                   4614:       if { { case "(($ac_try" in
                   4615:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4616:   *) ac_try_echo=$ac_try;;
                   4617: esac
                   4618: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4619: $as_echo "$ac_try_echo"; } >&5
                   4620:   (eval "$ac_try") 2>&5
                   4621:   ac_status=$?
                   4622:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4623:   test $ac_status = 0; } &&
                   4624:         test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4625:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4626:   *) ac_try_echo=$ac_try;;
                   4627: esac
                   4628: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4629: $as_echo "$ac_try_echo"; } >&5
                   4630:   (eval "$ac_try") 2>&5
                   4631:   ac_status=$?
                   4632:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4633:   test $ac_status = 0; };
                   4634:       then
                   4635:        # cc works too.
                   4636:        :
                   4637:       else
                   4638:        # cc exists but doesn't like -o.
                   4639:        eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4640:       fi
                   4641:     fi
                   4642:   fi
                   4643: else
                   4644:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4645: fi
                   4646: rm -f core conftest*
                   4647: 
                   4648: fi
                   4649: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4650:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4651: $as_echo "yes" >&6; }
                   4652: else
                   4653:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4654: $as_echo "no" >&6; }
                   4655: 
                   4656: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
                   4657: 
                   4658: fi
                   4659: 
                   4660: ac_ext=c
                   4661: ac_cpp='$CPP $CPPFLAGS'
                   4662: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4663: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4664: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   4666: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   4667: # On Suns, sometimes $CPP names a directory.
                   4668: if test -n "$CPP" && test -d "$CPP"; then
                   4669:   CPP=
                   4670: fi
                   4671: if test -z "$CPP"; then
                   4672:   if ${ac_cv_prog_CPP+:} false; then :
                   4673:   $as_echo_n "(cached) " >&6
                   4674: else
                   4675:       # Double quotes because CPP needs to be expanded
                   4676:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   4677:     do
                   4678:       ac_preproc_ok=false
                   4679: for ac_c_preproc_warn_flag in '' yes
                   4680: do
                   4681:   # Use a header file that comes with gcc, so configuring glibc
                   4682:   # with a fresh cross-compiler works.
                   4683:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   4684:   # <limits.h> exists even on freestanding compilers.
                   4685:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   4686:   # not just through cpp. "Syntax error" is here to catch this case.
                   4687:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4688: /* end confdefs.h.  */
                   4689: #ifdef __STDC__
                   4690: # include <limits.h>
                   4691: #else
                   4692: # include <assert.h>
                   4693: #endif
                   4694:                     Syntax error
                   4695: _ACEOF
                   4696: if ac_fn_c_try_cpp "$LINENO"; then :
                   4697: 
                   4698: else
                   4699:   # Broken: fails on valid input.
                   4700: continue
                   4701: fi
                   4702: rm -f conftest.err conftest.i conftest.$ac_ext
                   4703: 
                   4704:   # OK, works on sane cases.  Now check whether nonexistent headers
                   4705:   # can be detected and how.
                   4706:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4707: /* end confdefs.h.  */
                   4708: #include <ac_nonexistent.h>
                   4709: _ACEOF
                   4710: if ac_fn_c_try_cpp "$LINENO"; then :
                   4711:   # Broken: success on invalid input.
                   4712: continue
                   4713: else
                   4714:   # Passes both tests.
                   4715: ac_preproc_ok=:
                   4716: break
                   4717: fi
                   4718: rm -f conftest.err conftest.i conftest.$ac_ext
                   4719: 
                   4720: done
                   4721: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   4722: rm -f conftest.i conftest.err conftest.$ac_ext
                   4723: if $ac_preproc_ok; then :
                   4724:   break
                   4725: fi
                   4726: 
                   4727:     done
                   4728:     ac_cv_prog_CPP=$CPP
                   4729: 
                   4730: fi
                   4731:   CPP=$ac_cv_prog_CPP
                   4732: else
                   4733:   ac_cv_prog_CPP=$CPP
                   4734: fi
                   4735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   4736: $as_echo "$CPP" >&6; }
                   4737: ac_preproc_ok=false
                   4738: for ac_c_preproc_warn_flag in '' yes
                   4739: do
                   4740:   # Use a header file that comes with gcc, so configuring glibc
                   4741:   # with a fresh cross-compiler works.
                   4742:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   4743:   # <limits.h> exists even on freestanding compilers.
                   4744:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   4745:   # not just through cpp. "Syntax error" is here to catch this case.
                   4746:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4747: /* end confdefs.h.  */
                   4748: #ifdef __STDC__
                   4749: # include <limits.h>
                   4750: #else
                   4751: # include <assert.h>
                   4752: #endif
                   4753:                     Syntax error
                   4754: _ACEOF
                   4755: if ac_fn_c_try_cpp "$LINENO"; then :
                   4756: 
                   4757: else
                   4758:   # Broken: fails on valid input.
                   4759: continue
                   4760: fi
                   4761: rm -f conftest.err conftest.i conftest.$ac_ext
                   4762: 
                   4763:   # OK, works on sane cases.  Now check whether nonexistent headers
                   4764:   # can be detected and how.
                   4765:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4766: /* end confdefs.h.  */
                   4767: #include <ac_nonexistent.h>
                   4768: _ACEOF
                   4769: if ac_fn_c_try_cpp "$LINENO"; then :
                   4770:   # Broken: success on invalid input.
                   4771: continue
                   4772: else
                   4773:   # Passes both tests.
                   4774: ac_preproc_ok=:
                   4775: break
                   4776: fi
                   4777: rm -f conftest.err conftest.i conftest.$ac_ext
                   4778: 
                   4779: done
                   4780: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   4781: rm -f conftest.i conftest.err conftest.$ac_ext
                   4782: if $ac_preproc_ok; then :
                   4783: 
                   4784: else
                   4785:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   4786: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   4787: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
                   4788: See \`config.log' for more details" "$LINENO" 5; }
                   4789: fi
                   4790: 
                   4791: ac_ext=c
                   4792: ac_cpp='$CPP $CPPFLAGS'
                   4793: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4794: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4795: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4796: 
                   4797: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   4798: $as_echo_n "checking for ANSI C header files... " >&6; }
                   4799: if ${ac_cv_header_stdc+:} false; then :
                   4800:   $as_echo_n "(cached) " >&6
                   4801: else
                   4802:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4803: /* end confdefs.h.  */
                   4804: #include <stdlib.h>
                   4805: #include <stdarg.h>
                   4806: #include <string.h>
                   4807: #include <float.h>
                   4808: 
                   4809: int
                   4810: main ()
                   4811: {
                   4812: 
                   4813:   ;
                   4814:   return 0;
                   4815: }
                   4816: _ACEOF
                   4817: if ac_fn_c_try_compile "$LINENO"; then :
                   4818:   ac_cv_header_stdc=yes
                   4819: else
                   4820:   ac_cv_header_stdc=no
                   4821: fi
                   4822: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4823: 
                   4824: if test $ac_cv_header_stdc = yes; then
                   4825:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   4826:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4827: /* end confdefs.h.  */
                   4828: #include <string.h>
                   4829: 
                   4830: _ACEOF
                   4831: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4832:   $EGREP "memchr" >/dev/null 2>&1; then :
                   4833: 
                   4834: else
                   4835:   ac_cv_header_stdc=no
                   4836: fi
                   4837: rm -f conftest*
                   4838: 
                   4839: fi
                   4840: 
                   4841: if test $ac_cv_header_stdc = yes; then
                   4842:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   4843:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4844: /* end confdefs.h.  */
                   4845: #include <stdlib.h>
                   4846: 
                   4847: _ACEOF
                   4848: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4849:   $EGREP "free" >/dev/null 2>&1; then :
                   4850: 
                   4851: else
                   4852:   ac_cv_header_stdc=no
                   4853: fi
                   4854: rm -f conftest*
                   4855: 
                   4856: fi
                   4857: 
                   4858: if test $ac_cv_header_stdc = yes; then
                   4859:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   4860:   if test "$cross_compiling" = yes; then :
                   4861:   :
                   4862: else
                   4863:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4864: /* end confdefs.h.  */
                   4865: #include <ctype.h>
                   4866: #include <stdlib.h>
                   4867: #if ((' ' & 0x0FF) == 0x020)
                   4868: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   4869: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   4870: #else
                   4871: # define ISLOWER(c) \
                   4872:                   (('a' <= (c) && (c) <= 'i') \
                   4873:                     || ('j' <= (c) && (c) <= 'r') \
                   4874:                     || ('s' <= (c) && (c) <= 'z'))
                   4875: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   4876: #endif
                   4877: 
                   4878: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   4879: int
                   4880: main ()
                   4881: {
                   4882:   int i;
                   4883:   for (i = 0; i < 256; i++)
                   4884:     if (XOR (islower (i), ISLOWER (i))
                   4885:        || toupper (i) != TOUPPER (i))
                   4886:       return 2;
                   4887:   return 0;
                   4888: }
                   4889: _ACEOF
                   4890: if ac_fn_c_try_run "$LINENO"; then :
                   4891: 
                   4892: else
                   4893:   ac_cv_header_stdc=no
                   4894: fi
                   4895: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   4896:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   4897: fi
                   4898: 
                   4899: fi
                   4900: fi
                   4901: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   4902: $as_echo "$ac_cv_header_stdc" >&6; }
                   4903: if test $ac_cv_header_stdc = yes; then
                   4904: 
                   4905: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
                   4906: 
                   4907: fi
                   4908: 
                   4909: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   4910: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   4911:                  inttypes.h stdint.h unistd.h
                   4912: do :
                   4913:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   4914: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   4915: "
                   4916: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   4917:   cat >>confdefs.h <<_ACEOF
                   4918: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   4919: _ACEOF
                   4920: 
                   4921: fi
                   4922: 
                   4923: done
                   4924: 
                   4925: 
                   4926: 
                   4927:   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
                   4928: if test "x$ac_cv_header_minix_config_h" = xyes; then :
                   4929:   MINIX=yes
                   4930: else
                   4931:   MINIX=
                   4932: fi
                   4933: 
                   4934: 
                   4935:   if test "$MINIX" = yes; then
                   4936: 
                   4937: $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
                   4938: 
                   4939: 
                   4940: $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
                   4941: 
                   4942: 
                   4943: $as_echo "#define _MINIX 1" >>confdefs.h
                   4944: 
                   4945:   fi
                   4946: 
                   4947: 
                   4948:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
                   4949: $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
                   4950: if ${ac_cv_safe_to_define___extensions__+:} false; then :
                   4951:   $as_echo_n "(cached) " >&6
                   4952: else
                   4953:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4954: /* end confdefs.h.  */
                   4955: 
1.1.1.2 ! misho    4956: #         define __EXTENSIONS__ 1
        !          4957:           $ac_includes_default
1.1       misho    4958: int
                   4959: main ()
                   4960: {
                   4961: 
                   4962:   ;
                   4963:   return 0;
                   4964: }
                   4965: _ACEOF
                   4966: if ac_fn_c_try_compile "$LINENO"; then :
                   4967:   ac_cv_safe_to_define___extensions__=yes
                   4968: else
                   4969:   ac_cv_safe_to_define___extensions__=no
                   4970: fi
                   4971: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4972: fi
                   4973: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
                   4974: $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
                   4975:   test $ac_cv_safe_to_define___extensions__ = yes &&
                   4976:     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
                   4977: 
                   4978:   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
                   4979: 
                   4980:   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
                   4981: 
                   4982:   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
                   4983: 
                   4984:   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
                   4985: 
                   4986: 
                   4987: 
                   4988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   4989: $as_echo_n "checking whether ln -s works... " >&6; }
                   4990: LN_S=$as_ln_s
                   4991: if test "$LN_S" = "ln -s"; then
                   4992:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4993: $as_echo "yes" >&6; }
                   4994: else
                   4995:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   4996: $as_echo "no, using $LN_S" >&6; }
                   4997: fi
                   4998: 
                   4999: 
                   5000: 
                   5001: php_with_libdir=lib
                   5002: 
                   5003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system library directory" >&5
                   5004: $as_echo_n "checking for system library directory... " >&6; }
                   5005: 
                   5006: # Check whether --with-libdir was given.
                   5007: if test "${with_libdir+set}" = set; then :
                   5008:   withval=$with_libdir; PHP_LIBDIR=$withval
                   5009: else
                   5010: 
                   5011:   PHP_LIBDIR=lib
                   5012: 
                   5013: 
                   5014: fi
                   5015: 
                   5016: 
                   5017: ext_output=$PHP_LIBDIR
                   5018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   5019: $as_echo "$ext_output" >&6; }
                   5020: 
                   5021: 
                   5022: 
                   5023: 
                   5024: 
                   5025: php_enable_rpath=yes
                   5026: 
                   5027: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable runpaths" >&5
                   5028: $as_echo_n "checking whether to enable runpaths... " >&6; }
                   5029: # Check whether --enable-rpath was given.
                   5030: if test "${enable_rpath+set}" = set; then :
                   5031:   enableval=$enable_rpath; PHP_RPATH=$enableval
                   5032: else
                   5033: 
                   5034:   PHP_RPATH=yes
                   5035: 
                   5036: 
                   5037: fi
                   5038: 
                   5039: 
                   5040: ext_output=$PHP_RPATH
                   5041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   5042: $as_echo "$ext_output" >&6; }
                   5043: 
                   5044: 
                   5045: 
                   5046: 
                   5047: 
                   5048: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -R" >&5
                   5049: $as_echo_n "checking if compiler supports -R... " >&6; }
                   5050: if ${php_cv_cc_dashr+:} false; then :
                   5051:   $as_echo_n "(cached) " >&6
                   5052: else
                   5053: 
                   5054:   SAVE_LIBS=$LIBS
                   5055:   LIBS="-R /usr/$PHP_LIBDIR $LIBS"
                   5056:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5057: /* end confdefs.h.  */
                   5058: 
                   5059: int
                   5060: main ()
                   5061: {
                   5062: 
                   5063:   ;
                   5064:   return 0;
                   5065: }
                   5066: _ACEOF
                   5067: if ac_fn_c_try_link "$LINENO"; then :
                   5068:   php_cv_cc_dashr=yes
                   5069: else
                   5070:   php_cv_cc_dashr=no
                   5071: fi
                   5072: rm -f core conftest.err conftest.$ac_objext \
                   5073:     conftest$ac_exeext conftest.$ac_ext
                   5074:   LIBS=$SAVE_LIBS
                   5075: fi
                   5076: 
                   5077: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_dashr" >&5
                   5078: $as_echo "$php_cv_cc_dashr" >&6; }
                   5079: if test $php_cv_cc_dashr = "yes"; then
                   5080:   ld_runpath_switch=-R
                   5081: else
                   5082:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Wl,-rpath," >&5
                   5083: $as_echo_n "checking if compiler supports -Wl,-rpath,... " >&6; }
                   5084:   if ${php_cv_cc_rpath+:} false; then :
                   5085:   $as_echo_n "(cached) " >&6
                   5086: else
                   5087: 
                   5088:     SAVE_LIBS=$LIBS
                   5089:     LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS"
                   5090:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5091: /* end confdefs.h.  */
                   5092: 
                   5093: int
                   5094: main ()
                   5095: {
                   5096: 
                   5097:   ;
                   5098:   return 0;
                   5099: }
                   5100: _ACEOF
                   5101: if ac_fn_c_try_link "$LINENO"; then :
                   5102:   php_cv_cc_rpath=yes
                   5103: else
                   5104:   php_cv_cc_rpath=no
                   5105: fi
                   5106: rm -f core conftest.err conftest.$ac_objext \
                   5107:     conftest$ac_exeext conftest.$ac_ext
                   5108:     LIBS=$SAVE_LIBS
                   5109: fi
                   5110: 
                   5111:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_rpath" >&5
                   5112: $as_echo "$php_cv_cc_rpath" >&6; }
                   5113:   if test $php_cv_cc_rpath = "yes"; then
                   5114:     ld_runpath_switch=-Wl,-rpath,
                   5115:   else
                   5116:         ld_runpath_switch=-L
                   5117:   fi
                   5118: fi
                   5119: if test "$PHP_RPATH" = "no"; then
                   5120:   ld_runpath_switch=
                   5121: fi
                   5122: 
                   5123: 
                   5124: 
                   5125:   for ac_prog in gawk nawk awk mawk
                   5126: do
                   5127:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   5128: set dummy $ac_prog; ac_word=$2
                   5129: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   5130: $as_echo_n "checking for $ac_word... " >&6; }
                   5131: if ${ac_cv_prog_AWK+:} false; then :
                   5132:   $as_echo_n "(cached) " >&6
                   5133: else
                   5134:   if test -n "$AWK"; then
                   5135:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   5136: else
                   5137: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5138: as_dummy="/usr/xpg4/bin/:$PATH"
                   5139: for as_dir in $as_dummy
                   5140: do
                   5141:   IFS=$as_save_IFS
                   5142:   test -z "$as_dir" && as_dir=.
                   5143:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    5144:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    5145:     ac_cv_prog_AWK="$ac_prog"
                   5146:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   5147:     break 2
                   5148:   fi
                   5149: done
                   5150:   done
                   5151: IFS=$as_save_IFS
                   5152: 
                   5153: fi
                   5154: fi
                   5155: AWK=$ac_cv_prog_AWK
                   5156: if test -n "$AWK"; then
                   5157:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   5158: $as_echo "$AWK" >&6; }
                   5159: else
                   5160:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5161: $as_echo "no" >&6; }
                   5162: fi
                   5163: 
                   5164: 
                   5165:   test -n "$AWK" && break
                   5166: done
                   5167: test -n "$AWK" || AWK="bork"
                   5168: 
                   5169:   case "$AWK" in
                   5170:     *mawk)
                   5171:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5
                   5172: $as_echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;}
                   5173:       ;;
                   5174:     *gawk)
                   5175:       ;;
                   5176:     bork)
                   5177:       as_fn_error $? "Could not find awk; Install GNU awk" "$LINENO" 5
                   5178:       ;;
                   5179:     *)
                   5180:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $AWK is broken" >&5
                   5181: $as_echo_n "checking if $AWK is broken... " >&6; }
                   5182:       if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then
                   5183:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5184: $as_echo "yes" >&6; }
                   5185:         as_fn_error $? "You should install GNU awk" "$LINENO" 5
                   5186:       else
                   5187:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5188: $as_echo "no" >&6; }
                   5189:       fi
                   5190:       ;;
                   5191:   esac
                   5192: 
                   5193:   PHP_VAR_SUBST="$PHP_VAR_SUBST AWK"
                   5194: 
                   5195: 
                   5196: 
                   5197:   for ac_prog in 'bison -y' byacc
                   5198: do
                   5199:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   5200: set dummy $ac_prog; ac_word=$2
                   5201: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   5202: $as_echo_n "checking for $ac_word... " >&6; }
                   5203: if ${ac_cv_prog_YACC+:} false; then :
                   5204:   $as_echo_n "(cached) " >&6
                   5205: else
                   5206:   if test -n "$YACC"; then
                   5207:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   5208: else
                   5209: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5210: for as_dir in $PATH
                   5211: do
                   5212:   IFS=$as_save_IFS
                   5213:   test -z "$as_dir" && as_dir=.
                   5214:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    5215:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    5216:     ac_cv_prog_YACC="$ac_prog"
                   5217:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   5218:     break 2
                   5219:   fi
                   5220: done
                   5221:   done
                   5222: IFS=$as_save_IFS
                   5223: 
                   5224: fi
                   5225: fi
                   5226: YACC=$ac_cv_prog_YACC
                   5227: if test -n "$YACC"; then
                   5228:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
                   5229: $as_echo "$YACC" >&6; }
                   5230: else
                   5231:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5232: $as_echo "no" >&6; }
                   5233: fi
                   5234: 
                   5235: 
                   5236:   test -n "$YACC" && break
                   5237: done
                   5238: test -n "$YACC" || YACC="yacc"
                   5239: 
                   5240: 
                   5241:   # we only support certain bison versions
                   5242:   bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5"
                   5243: 
                   5244:   # for standalone build of Zend Engine
                   5245:   test -z "$SED" && SED=sed
                   5246: 
                   5247:   bison_version=none
                   5248:   if test "$YACC"; then
                   5249:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5
                   5250: $as_echo_n "checking for bison version... " >&6; }
                   5251: if ${php_cv_bison_version+:} false; then :
                   5252:   $as_echo_n "(cached) " >&6
                   5253: else
                   5254: 
                   5255:       bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z`
                   5256:       php_cv_bison_version=invalid
                   5257:       if test -n "$bison_version_vars"; then
                   5258:         set $bison_version_vars
                   5259:         bison_version="${1}.${2}"
                   5260:         for bison_check_version in $bison_version_list; do
                   5261:           if test "$bison_version" = "$bison_check_version"; then
                   5262:             php_cv_bison_version="$bison_check_version (ok)"
                   5263:             break
                   5264:           fi
                   5265:         done
                   5266:       fi
                   5267: 
                   5268: fi
                   5269: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_bison_version" >&5
                   5270: $as_echo "$php_cv_bison_version" >&6; }
                   5271:   fi
                   5272:   case $php_cv_bison_version in
                   5273:     ""|invalid)
                   5274:       bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
                   5275:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $bison_msg" >&5
                   5276: $as_echo "$as_me: WARNING: $bison_msg" >&2;}
                   5277:       YACC="exit 0;"
                   5278:       ;;
                   5279:   esac
                   5280: 
                   5281: 
                   5282:   PHP_VAR_SUBST="$PHP_VAR_SUBST YACC"
                   5283: 
                   5284: 
                   5285: 
                   5286:   # Extract the first word of "re2c", so it can be a program name with args.
                   5287: set dummy re2c; ac_word=$2
                   5288: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   5289: $as_echo_n "checking for $ac_word... " >&6; }
                   5290: if ${ac_cv_prog_RE2C+:} false; then :
                   5291:   $as_echo_n "(cached) " >&6
                   5292: else
                   5293:   if test -n "$RE2C"; then
                   5294:   ac_cv_prog_RE2C="$RE2C" # Let the user override the test.
                   5295: else
                   5296: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5297: for as_dir in $PATH
                   5298: do
                   5299:   IFS=$as_save_IFS
                   5300:   test -z "$as_dir" && as_dir=.
                   5301:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    5302:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    5303:     ac_cv_prog_RE2C="re2c"
                   5304:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   5305:     break 2
                   5306:   fi
                   5307: done
                   5308:   done
                   5309: IFS=$as_save_IFS
                   5310: 
                   5311: fi
                   5312: fi
                   5313: RE2C=$ac_cv_prog_RE2C
                   5314: if test -n "$RE2C"; then
                   5315:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RE2C" >&5
                   5316: $as_echo "$RE2C" >&6; }
                   5317: else
                   5318:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5319: $as_echo "no" >&6; }
                   5320: fi
                   5321: 
                   5322: 
                   5323:   if test -n "$RE2C"; then
                   5324:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re2c version" >&5
                   5325: $as_echo_n "checking for re2c version... " >&6; }
                   5326: if ${php_cv_re2c_version+:} false; then :
                   5327:   $as_echo_n "(cached) " >&6
                   5328: else
                   5329: 
                   5330:       re2c_vernum=`$RE2C --vernum 2>/dev/null`
                   5331:       if test -z "$re2c_vernum" || test "$re2c_vernum" -lt "1304"; then
                   5332:         php_cv_re2c_version=invalid
                   5333:       else
                   5334:         php_cv_re2c_version="`$RE2C --version | cut -d ' ' -f 2  2>/dev/null` (ok)"
                   5335:       fi
                   5336: 
                   5337: fi
                   5338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_re2c_version" >&5
                   5339: $as_echo "$php_cv_re2c_version" >&6; }
                   5340:   fi
                   5341:   case $php_cv_re2c_version in
                   5342:     ""|invalid)
                   5343:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&5
                   5344: $as_echo "$as_me: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&2;}
                   5345:       RE2C="exit 0;"
                   5346:       ;;
                   5347:   esac
                   5348: 
                   5349:   PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C"
                   5350: 
                   5351: 
                   5352: 
                   5353: case $php_cv_bison_version in
                   5354:   ""|invalid)
                   5355:     if ! test -f "$abs_srcdir/Zend/zend_language_parser.h" || ! test -f "$abs_srcdir/Zend/zend_language_parser.c" ; then
1.1.1.2 ! misho    5356:       as_fn_error $? "bison is required to build PHP/Zend when building a GIT checkout!" "$LINENO" 5
1.1       misho    5357:     fi
                   5358:     ;;
                   5359: esac
                   5360: 
                   5361: 
                   5362: php_enable_re2c_cgoto=no
                   5363: 
                   5364: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable computed goto gcc extension with re2c" >&5
                   5365: $as_echo_n "checking whether to enable computed goto gcc extension with re2c... " >&6; }
                   5366: # Check whether --enable-re2c-cgoto was given.
                   5367: if test "${enable_re2c_cgoto+set}" = set; then :
                   5368:   enableval=$enable_re2c_cgoto; PHP_RE2C_CGOTO=$enableval
                   5369: else
                   5370: 
                   5371:   PHP_RE2C_CGOTO=no
                   5372: 
                   5373: 
                   5374: fi
                   5375: 
                   5376: 
                   5377: ext_output=$PHP_RE2C_CGOTO
                   5378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   5379: $as_echo "$ext_output" >&6; }
                   5380: 
                   5381: 
                   5382: 
                   5383: 
                   5384: if test "$PHP_RE2C_CGOTO" = "no"; then
                   5385:   RE2C_FLAGS=""
                   5386: else
                   5387:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether re2c -g works" >&5
                   5388: $as_echo_n "checking whether re2c -g works... " >&6; }
                   5389:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5390: /* end confdefs.h.  */
                   5391: 
                   5392: int
                   5393: main ()
                   5394: {
                   5395: 
                   5396: int main(int argc, const char **argv)
                   5397: {
                   5398:   argc = argc;
                   5399:   argv = argv;
                   5400: label1:
                   5401: label2:
                   5402:   static void *adr[] = { &&label1, &&label2};
                   5403:   goto *adr[0];
                   5404:   return 0;
                   5405: }
                   5406: 
                   5407:   ;
                   5408:   return 0;
                   5409: }
                   5410: _ACEOF
                   5411: if ac_fn_c_try_compile "$LINENO"; then :
                   5412: 
                   5413:     RE2C_FLAGS=""
                   5414:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5415: $as_echo "no" >&6; }
                   5416: 
                   5417: else
                   5418: 
                   5419:     RE2C_FLAGS="-g"
                   5420:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5421: $as_echo "yes" >&6; }
                   5422: 
                   5423: fi
                   5424: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   5425: fi
                   5426: 
                   5427:   PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C_FLAGS"
                   5428: 
                   5429: 
                   5430: 
                   5431: case $host_cpu in
                   5432:   alpha*)
                   5433:     if test "$GCC" = "yes"; then
                   5434:       CFLAGS="$CFLAGS -mieee"
                   5435:     else
                   5436:       CFLAGS="$CFLAGS -ieee"
                   5437:     fi
                   5438:     ;;
                   5439:   sparc*)
                   5440:     if test "$SUNCC" = "yes"; then
                   5441:       CFLAGS="$CFLAGS -xmemalign=8s"
                   5442:     fi
                   5443:     ;;
                   5444: esac
                   5445: 
                   5446: if test "$GCC" = "yes"; then
                   5447:   case $host_alias in
                   5448:   *darwin*)
                   5449:     GCC_MAJOR_VERSION=`$CC -dumpversion | /usr/bin/sed -nE '1s/([0-9]+)\.[0-9]+\..*/\1/;1p'`
                   5450:     ;;
                   5451:   *)
                   5452:     GCC_MAJOR_VERSION=`$CC --version | $SED -n '1s/[^0-9]*//;1s/\..*//;1p'`
                   5453:     ;;
                   5454:   esac
                   5455:   if test $GCC_MAJOR_VERSION -ge 4; then
                   5456:     CFLAGS="$CFLAGS -fvisibility=hidden"
                   5457:   fi
                   5458: fi
                   5459: 
                   5460: case $host_alias in
                   5461:   *solaris*)
                   5462:     CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
                   5463:     if test "${enable_libgcc+set}" != "set" && test "$GCC" = "yes"; then
                   5464:       enable_libgcc=yes
                   5465:     fi
                   5466:     ;;
                   5467:   *dgux*)
                   5468:     CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR"
                   5469:     ;;
                   5470:   *darwin*|*rhapsody*)
                   5471:     if test -n "$GCC"; then
                   5472: 
                   5473:   gcc_arg_name=ac_cv_gcc_arg_no_cpp_precomp
                   5474:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -no-cpp-precomp" >&5
                   5475: $as_echo_n "checking whether $CC supports -no-cpp-precomp... " >&6; }
                   5476: if ${ac_cv_gcc_arg_no_cpp_precomp+:} false; then :
                   5477:   $as_echo_n "(cached) " >&6
                   5478: else
                   5479: 
                   5480:   echo 'void somefunc() { };' > conftest.c
                   5481:   cmd='$CC -no-cpp-precomp -c conftest.c'
                   5482:   if eval $cmd 2>&1 | $EGREP -e -no-cpp-precomp >/dev/null ; then
                   5483:     ac_result=no
                   5484:   else
                   5485:     ac_result=yes
                   5486:   fi
                   5487:   eval $gcc_arg_name=$ac_result
                   5488:   rm -f conftest.*
                   5489: 
                   5490: fi
                   5491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_no_cpp_precomp" >&5
                   5492: $as_echo "$ac_cv_gcc_arg_no_cpp_precomp" >&6; }
                   5493:   if eval test "\$$gcc_arg_name" = "yes"; then
                   5494:     gcc_no_cpp_precomp=yes
                   5495:   else
                   5496:     :
                   5497: 
                   5498:   fi
                   5499: 
                   5500:       if test "$gcc_no_cpp_precomp" = "yes"; then
                   5501:         CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
                   5502:       fi
                   5503:     fi
                   5504:     php_multiple_shlib_versions_ok=yes
                   5505:     ;;
                   5506:   *beos*)
                   5507:     beos_threads=1
                   5508:     LIBS="$LIBS -lbe -lroot"
                   5509:     ;;
                   5510:   *mips*)
                   5511:     CPPFLAGS="$CPPFLAGS -D_XPG_IV"
                   5512:     ;;
                   5513:   *hpux*)
                   5514:     if test "$GCC" = "yes"; then
                   5515:       CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
                   5516:     fi
                   5517:     ;;
                   5518:   *netware*)
                   5519: 
                   5520:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   5521:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   5522:   php_c_post=
                   5523:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   5524:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   5525:   php_cxx_post=
                   5526:   php_lo=lo
                   5527: 
                   5528:   case $with_pic in
                   5529:     yes) pic_setting='-prefer-pic';;
                   5530:     no)  pic_setting='-prefer-non-pic';;
                   5531:   esac
                   5532: 
                   5533:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   5534:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   5535:   shared_c_post=
                   5536:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   5537:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   5538:   shared_cxx_post=
                   5539:   shared_lo=lo
                   5540: 
                   5541: 
                   5542: 
                   5543:   case /main in
                   5544:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   5545:   /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   5546:   *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   5547:   esac
                   5548: 
                   5549: 
                   5550: 
                   5551:   b_c_pre=$php_c_pre
                   5552:   b_cxx_pre=$php_cxx_pre
                   5553:   b_c_meta=$php_c_meta
                   5554:   b_cxx_meta=$php_cxx_meta
                   5555:   b_c_post=$php_c_post
                   5556:   b_cxx_post=$php_cxx_post
                   5557:   b_lo=$php_lo
                   5558: 
                   5559: 
                   5560:   old_IFS=$IFS
                   5561:   for ac_src in internal_functions.c; do
                   5562: 
                   5563:       IFS=.
                   5564:       set $ac_src
                   5565:       ac_obj=$1
                   5566:       IFS=$old_IFS
                   5567: 
                   5568:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   5569: 
                   5570:       case $ac_src in
                   5571:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   5572:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   5573:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   5574:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   5575:       esac
                   5576: 
                   5577:     cat >>Makefile.objects<<EOF
                   5578: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   5579:        $ac_comp
                   5580: EOF
                   5581:   done
                   5582: 
                   5583: 
                   5584: 
                   5585: 
                   5586:   case win32 in
                   5587:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   5588:   /*) ac_srcdir=`echo "win32"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   5589:   *) ac_srcdir="$abs_srcdir/win32/"; ac_bdir="win32/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   5590:   esac
                   5591: 
                   5592: 
                   5593: 
                   5594:   b_c_pre=$php_c_pre
                   5595:   b_cxx_pre=$php_cxx_pre
                   5596:   b_c_meta=$php_c_meta
                   5597:   b_cxx_meta=$php_cxx_meta
                   5598:   b_c_post=$php_c_post
                   5599:   b_cxx_post=$php_cxx_post
                   5600:   b_lo=$php_lo
                   5601: 
                   5602: 
                   5603:   old_IFS=$IFS
                   5604:   for ac_src in sendmail.c; do
                   5605: 
                   5606:       IFS=.
                   5607:       set $ac_src
                   5608:       ac_obj=$1
                   5609:       IFS=$old_IFS
                   5610: 
                   5611:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   5612: 
                   5613:       case $ac_src in
                   5614:         *.c) ac_comp="$b_c_pre -I$CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   5615:         *.s) ac_comp="$b_c_pre -I$CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   5616:         *.S) ac_comp="$b_c_pre -I$CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   5617:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -I$CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   5618:       esac
                   5619: 
                   5620:     cat >>Makefile.objects<<EOF
                   5621: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   5622:        $ac_comp
                   5623: EOF
                   5624:   done
                   5625: 
                   5626: 
                   5627:     PHP5LIB_SHARED_LIBADD=\$\(EXTRA_LIBS\)
                   5628:     EXTENSION_DIR=sys:/php$PHP_MAJOR_VERSION/ext
                   5629: 
                   5630:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP5LIB_SHARED_LIBADD"
                   5631: 
                   5632: 
                   5633:   install_modules="install-modules"
                   5634: 
                   5635:   case $host_alias in
                   5636:     *aix*)
                   5637:       suffix=so
                   5638:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o 'netware'/php5lib.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS) $(PHP5LIB_SHARED_LIBADD) && mv -f 'netware'/.libs/php5lib.so 'netware'/php5lib.so'
                   5639:       ;;
                   5640:     *netware*)
                   5641:       suffix=nlm
                   5642:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS)  $(PHP5LIB_SHARED_LIBADD)'
                   5643:       ;;
                   5644:     *)
                   5645:       suffix=la
                   5646:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS) $(PHP5LIB_SHARED_LIBADD)'
                   5647:       ;;
                   5648:   esac
                   5649: 
                   5650:   if test "x" = "xyes"; then
                   5651:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/php5lib.$suffix"
                   5652:   else
                   5653:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/php5lib.$suffix"
                   5654:   fi
                   5655: 
                   5656:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_GLOBAL_OBJS"
                   5657: 
                   5658:   cat >>Makefile.objects<<EOF
                   5659: \$(phplibdir)/php5lib.$suffix: netware/php5lib.$suffix
                   5660:        \$(LIBTOOL) --mode=install cp netware/php5lib.$suffix \$(phplibdir)
                   5661: 
                   5662: netware/php5lib.$suffix: \$(PHP_GLOBAL_OBJS) \$(PHP5LIB_SHARED_DEPENDENCIES)
                   5663:        $link_cmd
                   5664: 
                   5665: EOF
                   5666: 
                   5667:     ;;
                   5668: esac
                   5669: 
                   5670: # Disable PIC mode by default where it is known to be safe to do so,
                   5671: # to avoid the performance hit from the lost register
                   5672: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force non-PIC code in shared modules" >&5
                   5673: $as_echo_n "checking whether to force non-PIC code in shared modules... " >&6; }
                   5674: case $host_alias in
                   5675:   i?86-*-linux*|i?86-*-freebsd*)
                   5676:     if test "${with_pic+set}" != "set" || test "$with_pic" = "no"; then
                   5677:       with_pic=no
                   5678:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5679: $as_echo "yes" >&6; }
                   5680:     else
                   5681:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5682: $as_echo "no" >&6; }
                   5683:     fi
                   5684:     ;;
                   5685:   *)
                   5686:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5687: $as_echo "no" >&6; }
                   5688:     ;;
                   5689: esac
                   5690: 
                   5691: 
                   5692: 
                   5693: 
                   5694: 
                   5695: 
                   5696: 
                   5697: 
                   5698: 
                   5699: 
                   5700: 
                   5701: 
                   5702: 
                   5703: 
                   5704: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/urandom exists" >&5
                   5705: $as_echo_n "checking whether /dev/urandom exists... " >&6; }
                   5706: if test -r "/dev/urandom" && test -c "/dev/urandom"; then
                   5707: 
                   5708: $as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h
                   5709: 
                   5710:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5711: $as_echo "yes" >&6; }
                   5712: else
                   5713:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5714: $as_echo "no" >&6; }
1.1.1.2 ! misho    5715:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/arandom exists" >&5
        !          5716: $as_echo_n "checking whether /dev/arandom exists... " >&6; }
        !          5717:   if test -r "/dev/arandom" && test -c "/dev/arandom"; then
1.1       misho    5718: 
1.1.1.2 ! misho    5719: $as_echo "#define HAVE_DEV_ARANDOM 1" >>confdefs.h
1.1       misho    5720: 
1.1.1.2 ! misho    5721:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
        !          5722: $as_echo "yes" >&6; }
        !          5723:   else
        !          5724:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
        !          5725: $as_echo "no" >&6; }
        !          5726:   fi
        !          5727: fi
1.1       misho    5728: 
                   5729: 
                   5730: 
                   5731: 
                   5732: 
                   5733: 
                   5734: 
                   5735: 
                   5736: 
                   5737: 
                   5738: 
                   5739: 
                   5740: 
                   5741: 
                   5742: 
                   5743: 
                   5744: 
                   5745: 
                   5746: 
                   5747: 
                   5748: 
                   5749: 
                   5750: 
                   5751: # Check whether --enable- was given.
                   5752: if test "${enable_+set}" = set; then :
                   5753:   enableval=$enable_;
                   5754: fi
                   5755: 
                   5756: 
                   5757: 
                   5758: 
                   5759: 
                   5760:   PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME"
                   5761: 
                   5762: 
                   5763: 
                   5764: 
                   5765: 
                   5766:   PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_DL_SUFFIX_NAME"
                   5767: 
                   5768: 
                   5769: 
                   5770:  SHLIB_SUFFIX_NAME=so
                   5771:  SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME
                   5772:  case $host_alias in
                   5773:  *hpux*)
                   5774:    SHLIB_SUFFIX_NAME=sl
                   5775:    SHLIB_DL_SUFFIX_NAME=sl
                   5776:    ;;
                   5777:  *darwin*)
                   5778:    SHLIB_SUFFIX_NAME=dylib
                   5779:    SHLIB_DL_SUFFIX_NAME=so
                   5780:    ;;
                   5781:  esac
                   5782: 
                   5783: 
                   5784:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   5785:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   5786:   php_c_post=
                   5787:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   5788:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   5789:   php_cxx_post=
                   5790:   php_lo=lo
                   5791: 
                   5792:   case $with_pic in
                   5793:     yes) pic_setting='-prefer-pic';;
                   5794:     no)  pic_setting='-prefer-non-pic';;
                   5795:   esac
                   5796: 
                   5797:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   5798:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   5799:   shared_c_post=
                   5800:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   5801:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   5802:   shared_cxx_post=
                   5803:   shared_lo=lo
                   5804: 
1.1.1.2 ! misho    5805: PHP_SAPI=none
1.1       misho    5806: 
                   5807: 
                   5808: 
                   5809: SAPI_SHARED=libs/libphp$PHP_MAJOR_VERSION.$SHLIB_DL_SUFFIX_NAME
                   5810: SAPI_STATIC=libs/libphp$PHP_MAJOR_VERSION.a
                   5811: SAPI_LIBTOOL=libphp$PHP_MAJOR_VERSION.la
                   5812: 
                   5813: 
                   5814:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   5815: $as_echo "" >&6; }
                   5816:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring SAPI modules${T_ME}" >&5
                   5817: $as_echo "${T_MD}Configuring SAPI modules${T_ME}" >&6; }
                   5818: 
                   5819: 
                   5820: 
                   5821: 
                   5822: 
                   5823: php_with_aolserver=no
                   5824: 
                   5825: 
                   5826: 
                   5827: # Check whether --with-aolserver was given.
                   5828: if test "${with_aolserver+set}" = set; then :
                   5829:   withval=$with_aolserver; PHP_AOLSERVER=$withval
                   5830: else
                   5831: 
                   5832:   PHP_AOLSERVER=no
                   5833: 
                   5834: 
                   5835: fi
                   5836: 
                   5837: 
                   5838: ext_output=$PHP_AOLSERVER
                   5839: 
                   5840: 
                   5841: 
                   5842: 
                   5843: 
                   5844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AOLserver support" >&5
                   5845: $as_echo_n "checking for AOLserver support... " >&6; }
                   5846: 
                   5847: if test "$PHP_AOLSERVER" != "no"; then
                   5848:   if test -d "$PHP_AOLSERVER/include"; then
                   5849:     PHP_AOLSERVER_SRC=$PHP_AOLSERVER
                   5850:   fi
                   5851:   if test -z "$PHP_AOLSERVER_SRC" || test ! -d $PHP_AOLSERVER_SRC/include; then
                   5852:     as_fn_error $? "Please specify the path to the source distribution of AOLserver using --with-aolserver-src=DIR" "$LINENO" 5
                   5853:   fi
                   5854:   if test ! -d $PHP_AOLSERVER/bin ; then
                   5855:     as_fn_error $? "Please specify the path to the root of AOLserver using --with-aolserver=DIR" "$LINENO" 5
                   5856:   fi
                   5857: 
                   5858:   enable_maintainer_zts=yes
                   5859:   if test "$pthreads_working" != "yes"; then
                   5860:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
                   5861:   fi
                   5862: 
                   5863: 
                   5864:   if test "$PHP_AOLSERVER_SRC/include" != "/usr/include"; then
                   5865: 
                   5866:   if test -z "$PHP_AOLSERVER_SRC/include" || echo "$PHP_AOLSERVER_SRC/include" | grep '^/' >/dev/null ; then
                   5867:     ai_p=$PHP_AOLSERVER_SRC/include
                   5868:   else
                   5869: 
                   5870:     ep_dir="`echo $PHP_AOLSERVER_SRC/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   5871: 
                   5872:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   5873:     ai_p="$ep_realdir/`basename \"$PHP_AOLSERVER_SRC/include\"`"
                   5874:   fi
                   5875: 
                   5876: 
                   5877: 
                   5878:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   5879: 
                   5880:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   5881:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   5882:     eval "INCLUDEPATH$unique=set"
                   5883: 
                   5884:       if test ""; then
                   5885:         INCLUDES="-I$ai_p $INCLUDES"
                   5886:       else
                   5887:         INCLUDES="$INCLUDES -I$ai_p"
                   5888:       fi
                   5889: 
                   5890:   fi
                   5891: 
                   5892:   fi
                   5893: 
                   5894: 
                   5895: $as_echo "#define HAVE_AOLSERVER 1" >>confdefs.h
                   5896: 
                   5897: 
1.1.1.2 ! misho    5898:   if test "shared" = "program"; then
        !          5899:     PHP_BINARIES="$PHP_BINARIES aolserver"
        !          5900:   elif test "$PHP_SAPI" != "none"; then
        !          5901:     as_fn_error $? "
1.1       misho    5902: +--------------------------------------------------------------------+
                   5903: |                        *** ATTENTION ***                           |
                   5904: |                                                                    |
                   5905: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    5906: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    5907: +--------------------------------------------------------------------+
                   5908: " "$LINENO" 5
1.1.1.2 ! misho    5909:   else
        !          5910:     PHP_SAPI=aolserver
1.1       misho    5911:   fi
                   5912: 
                   5913: 
                   5914: 
1.1.1.2 ! misho    5915:     BUILD_DIR="$BUILD_DIR sapi/aolserver"
        !          5916: 
        !          5917: 
        !          5918: 
        !          5919:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS aolserver"
        !          5920: 
        !          5921: 
        !          5922:     case "shared" in
        !          5923:     static)
        !          5924: 
1.1       misho    5925:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   5926:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   5927:   php_c_post=
                   5928:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   5929:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   5930:   php_cxx_post=
                   5931:   php_lo=lo
                   5932: 
                   5933:   case $with_pic in
                   5934:     yes) pic_setting='-prefer-pic';;
                   5935:     no)  pic_setting='-prefer-non-pic';;
                   5936:   esac
                   5937: 
                   5938:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   5939:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   5940:   shared_c_post=
                   5941:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   5942:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   5943:   shared_cxx_post=
                   5944:   shared_lo=lo
                   5945: 
                   5946:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    5947:   php_sapi_module=static
1.1       misho    5948: ;;
1.1.1.2 ! misho    5949:     shared)
1.1       misho    5950: 
                   5951:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   5952:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   5953:   php_c_post=
                   5954:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   5955:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   5956:   php_cxx_post=
                   5957:   php_lo=lo
                   5958: 
                   5959:   case $with_pic in
                   5960:     yes) pic_setting='-prefer-pic';;
                   5961:     no)  pic_setting='-prefer-non-pic';;
                   5962:   esac
                   5963: 
                   5964:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   5965:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   5966:   shared_c_post=
                   5967:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   5968:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   5969:   shared_cxx_post=
                   5970:   shared_lo=lo
                   5971: 
                   5972:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    5973:   php_sapi_module=shared
1.1       misho    5974: 
                   5975:   php_c_pre=$shared_c_pre
                   5976:   php_c_meta=$shared_c_meta
                   5977:   php_c_post=$shared_c_post
                   5978:   php_cxx_pre=$shared_cxx_pre
                   5979:   php_cxx_meta=$shared_cxx_meta
                   5980:   php_cxx_post=$shared_cxx_post
                   5981:   php_lo=$shared_lo
                   5982: ;;
1.1.1.2 ! misho    5983:     bundle)
1.1       misho    5984: 
                   5985:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   5986:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   5987:   php_c_post=
                   5988:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   5989:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   5990:   php_cxx_post=
                   5991:   php_lo=lo
                   5992: 
                   5993:   case $with_pic in
                   5994:     yes) pic_setting='-prefer-pic';;
                   5995:     no)  pic_setting='-prefer-non-pic';;
                   5996:   esac
                   5997: 
                   5998:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   5999:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   6000:   shared_c_post=
                   6001:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6002:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   6003:   shared_cxx_post=
                   6004:   shared_lo=lo
                   6005: 
                   6006:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    6007:   php_sapi_module=static
1.1       misho    6008: ;;
1.1.1.2 ! misho    6009:     esac
        !          6010:     install_sapi="install-sapi"
1.1       misho    6011: 
                   6012: 
                   6013:   case sapi/aolserver in
                   6014:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   6015:   /*) ac_srcdir=`echo "sapi/aolserver"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   6016:   *) ac_srcdir="$abs_srcdir/sapi/aolserver/"; ac_bdir="sapi/aolserver/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   6017:   esac
                   6018: 
                   6019: 
                   6020: 
                   6021:   b_c_pre=$php_c_pre
                   6022:   b_cxx_pre=$php_cxx_pre
                   6023:   b_c_meta=$php_c_meta
                   6024:   b_cxx_meta=$php_cxx_meta
                   6025:   b_c_post=$php_c_post
                   6026:   b_cxx_post=$php_cxx_post
                   6027:   b_lo=$php_lo
                   6028: 
                   6029: 
                   6030:   old_IFS=$IFS
                   6031:   for ac_src in aolserver.c; do
                   6032: 
                   6033:       IFS=.
                   6034:       set $ac_src
                   6035:       ac_obj=$1
                   6036:       IFS=$old_IFS
                   6037: 
                   6038:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   6039: 
                   6040:       case $ac_src in
                   6041:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   6042:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   6043:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   6044:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   6045:       esac
                   6046: 
                   6047:     cat >>Makefile.objects<<EOF
                   6048: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   6049:        $ac_comp
                   6050: EOF
                   6051:   done
                   6052: 
                   6053: 
                   6054: 
1.1.1.2 ! misho    6055: 
1.1       misho    6056:   INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_AOLSERVER/bin/"
                   6057: fi
                   6058: 
                   6059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_AOLSERVER" >&5
                   6060: $as_echo "$PHP_AOLSERVER" >&6; }
                   6061: 
                   6062: 
                   6063: 
                   6064: 
                   6065: 
                   6066: php_with_apxs=no
                   6067: 
                   6068: 
                   6069: 
                   6070: # Check whether --with-apxs was given.
                   6071: if test "${with_apxs+set}" = set; then :
                   6072:   withval=$with_apxs; PHP_APXS=$withval
                   6073: else
                   6074: 
                   6075:   PHP_APXS=no
                   6076: 
                   6077: 
                   6078: fi
                   6079: 
                   6080: 
                   6081: ext_output=$PHP_APXS
                   6082: 
                   6083: 
                   6084: 
                   6085: 
                   6086: 
                   6087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x module support via DSO through APXS" >&5
                   6088: $as_echo_n "checking for Apache 1.x module support via DSO through APXS... " >&6; }
                   6089: 
                   6090: if test "$PHP_APXS" != "no"; then
                   6091:   if test "$PHP_APXS" = "yes"; then
                   6092:     APXS=apxs
                   6093:     $APXS -q CFLAGS >/dev/null 2>&1
                   6094:     if test "$?" != "0" && test -x /usr/sbin/apxs; then #SUSE 6.x
                   6095:       APXS=/usr/sbin/apxs
                   6096:     fi
                   6097:   else
                   6098: 
                   6099:   if test -z "$PHP_APXS" || echo "$PHP_APXS" | grep '^/' >/dev/null ; then
                   6100:     APXS=$PHP_APXS
                   6101:   else
                   6102: 
                   6103:     ep_dir="`echo $PHP_APXS|$SED 's%/*[^/][^/]*/*$%%'`"
                   6104: 
                   6105:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   6106:     APXS="$ep_realdir/`basename \"$PHP_APXS\"`"
                   6107:   fi
                   6108: 
                   6109:   fi
                   6110: 
                   6111:   $APXS -q CFLAGS >/dev/null 2>&1
                   6112:   if test "$?" != "0"; then
                   6113:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   6114: $as_echo "" >&6; }
                   6115:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   6116: $as_echo "" >&6; }
                   6117:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I was not able to successfully run APXS.  Possible reasons:" >&5
                   6118: $as_echo "Sorry, I was not able to successfully run APXS.  Possible reasons:" >&6; }
                   6119:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   6120: $as_echo "" >&6; }
                   6121:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1.  Perl is not installed;" >&5
                   6122: $as_echo "1.  Perl is not installed;" >&6; }
                   6123:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.  Apache was not compiled with DSO support (--enable-module=so);" >&5
                   6124: $as_echo "2.  Apache was not compiled with DSO support (--enable-module=so);" >&6; }
                   6125:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs" >&5
                   6126: $as_echo "3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs" >&6; }
                   6127:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows" >&5
                   6128: $as_echo "The output of $APXS follows" >&6; }
                   6129:     $APXS -q CFLAGS
                   6130:     as_fn_error $? "Aborting" "$LINENO" 5
                   6131:   fi
                   6132: 
                   6133:   APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@"
                   6134:   APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
                   6135:   APXS_CFLAGS=`$APXS -q CFLAGS`
                   6136:   APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
                   6137:   APACHE_INCLUDE=-I$APXS_INCLUDEDIR
                   6138: 
                   6139:   # Test that we're trying to configure with apache 1.x
                   6140: 
                   6141:   ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
                   6142:   ac_IFS=$IFS
                   6143: IFS="- /.
                   6144: "
                   6145:   set $ac_output
                   6146:   IFS=$ac_IFS
                   6147: 
                   6148:   APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
                   6149: 
                   6150:   if test "$APACHE_VERSION" -ge 2000000; then
                   6151:     as_fn_error $? "You have enabled Apache 1.3 support while your server is Apache 2.  Please use the appropiate switch --with-apxs2" "$LINENO" 5
                   6152:   fi
                   6153: 
                   6154:   for flag in $APXS_CFLAGS; do
                   6155:     case $flag in
                   6156:     -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
                   6157:     esac
                   6158:   done
                   6159: 
                   6160:   case $host_alias in
                   6161:   *aix*)
                   6162:     APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
                   6163:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
                   6164:     PHP_AIX_LDFLAGS="-Wl,-brtl"
                   6165:     build_type=shared
                   6166:     ;;
                   6167:   *darwin*)
                   6168:     MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD"
                   6169: 
                   6170:   PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
                   6171: 
                   6172:     SAPI_SHARED=libs/libphp5.so
                   6173:     build_type=bundle
                   6174:     ;;
                   6175:   *)
                   6176:     build_type=shared
                   6177:     ;;
                   6178:   esac
                   6179: 
                   6180: 
1.1.1.2 ! misho    6181:   if test "$build_type" = "program"; then
        !          6182:     PHP_BINARIES="$PHP_BINARIES apache"
        !          6183:   elif test "$PHP_SAPI" != "none"; then
        !          6184:     as_fn_error $? "
1.1       misho    6185: +--------------------------------------------------------------------+
                   6186: |                        *** ATTENTION ***                           |
                   6187: |                                                                    |
                   6188: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    6189: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    6190: +--------------------------------------------------------------------+
                   6191: " "$LINENO" 5
1.1.1.2 ! misho    6192:   else
        !          6193:     PHP_SAPI=apache
1.1       misho    6194:   fi
                   6195: 
                   6196: 
                   6197: 
1.1.1.2 ! misho    6198:     BUILD_DIR="$BUILD_DIR sapi/apache"
        !          6199: 
        !          6200: 
        !          6201: 
        !          6202:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache"
        !          6203: 
        !          6204: 
        !          6205:     case "$build_type" in
        !          6206:     static)
        !          6207: 
1.1       misho    6208:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6209:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   6210:   php_c_post=
                   6211:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6212:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   6213:   php_cxx_post=
                   6214:   php_lo=lo
                   6215: 
                   6216:   case $with_pic in
                   6217:     yes) pic_setting='-prefer-pic';;
                   6218:     no)  pic_setting='-prefer-non-pic';;
                   6219:   esac
                   6220: 
                   6221:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6222:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   6223:   shared_c_post=
                   6224:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6225:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   6226:   shared_cxx_post=
                   6227:   shared_lo=lo
                   6228: 
                   6229:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    6230:   php_sapi_module=static
1.1       misho    6231: ;;
1.1.1.2 ! misho    6232:     shared)
1.1       misho    6233: 
                   6234:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6235:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   6236:   php_c_post=
                   6237:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6238:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   6239:   php_cxx_post=
                   6240:   php_lo=lo
                   6241: 
                   6242:   case $with_pic in
                   6243:     yes) pic_setting='-prefer-pic';;
                   6244:     no)  pic_setting='-prefer-non-pic';;
                   6245:   esac
                   6246: 
                   6247:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6248:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   6249:   shared_c_post=
                   6250:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6251:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   6252:   shared_cxx_post=
                   6253:   shared_lo=lo
                   6254: 
                   6255:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    6256:   php_sapi_module=shared
1.1       misho    6257: 
                   6258:   php_c_pre=$shared_c_pre
                   6259:   php_c_meta=$shared_c_meta
                   6260:   php_c_post=$shared_c_post
                   6261:   php_cxx_pre=$shared_cxx_pre
                   6262:   php_cxx_meta=$shared_cxx_meta
                   6263:   php_cxx_post=$shared_cxx_post
                   6264:   php_lo=$shared_lo
                   6265: ;;
1.1.1.2 ! misho    6266:     bundle)
1.1       misho    6267: 
                   6268:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6269:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   6270:   php_c_post=
                   6271:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6272:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   6273:   php_cxx_post=
                   6274:   php_lo=lo
                   6275: 
                   6276:   case $with_pic in
                   6277:     yes) pic_setting='-prefer-pic';;
                   6278:     no)  pic_setting='-prefer-non-pic';;
                   6279:   esac
                   6280: 
                   6281:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6282:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   6283:   shared_c_post=
                   6284:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6285:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   6286:   shared_cxx_post=
                   6287:   shared_lo=lo
                   6288: 
                   6289:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    6290:   php_sapi_module=static
1.1       misho    6291: ;;
1.1.1.2 ! misho    6292:     esac
        !          6293:     install_sapi="install-sapi"
1.1       misho    6294: 
                   6295: 
                   6296:   case sapi/apache in
                   6297:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   6298:   /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   6299:   *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   6300:   esac
                   6301: 
                   6302: 
                   6303: 
                   6304:   b_c_pre=$php_c_pre
                   6305:   b_cxx_pre=$php_cxx_pre
                   6306:   b_c_meta=$php_c_meta
                   6307:   b_cxx_meta=$php_cxx_meta
                   6308:   b_c_post=$php_c_post
                   6309:   b_cxx_post=$php_cxx_post
                   6310:   b_lo=$php_lo
                   6311: 
                   6312: 
                   6313:   old_IFS=$IFS
                   6314:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
                   6315: 
                   6316:       IFS=.
                   6317:       set $ac_src
                   6318:       ac_obj=$1
                   6319:       IFS=$old_IFS
                   6320: 
                   6321:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   6322: 
                   6323:       case $ac_src in
                   6324:         *.c) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   6325:         *.s) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   6326:         *.S) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   6327:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   6328:       esac
                   6329: 
                   6330:     cat >>Makefile.objects<<EOF
                   6331: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   6332:        $ac_comp
                   6333: EOF
                   6334:   done
                   6335: 
                   6336: 
                   6337: 
                   6338: 
1.1.1.2 ! misho    6339: 
1.1       misho    6340:   # Test whether apxs support -S option
                   6341:   $APXS -q -S CFLAGS="$APXS_CFLAGS" CFLAGS >/dev/null 2>&1
                   6342: 
                   6343:   if test "$?" != "0"; then
                   6344:     APACHE_INSTALL="$APXS -i -a -n php5 $SAPI_SHARED" # Old apxs does not have -S option
                   6345:   else
                   6346:     APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
                   6347:     if test -z `$APXS -q SYSCONFDIR`; then
                   6348:       APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
                   6349:                        $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
                   6350:                              -i -n php5 $SAPI_SHARED"
                   6351:     else
                   6352:       APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
                   6353:       APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
                   6354:                       \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
                   6355:                        $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
                   6356:                              -S SYSCONFDIR='$APXS_SYSCONFDIR' \
                   6357:                              -i -a -n php5 $SAPI_SHARED"
                   6358:     fi
                   6359:   fi
                   6360: 
                   6361:   if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then
                   6362:     PHP_APXS_BROKEN=yes
                   6363:   fi
                   6364:   STRONGHOLD=
                   6365: 
                   6366: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
                   6367: 
                   6368: 
                   6369: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
                   6370: 
                   6371: 
                   6372: $as_echo "#define HAVE_APACHE 1" >>confdefs.h
                   6373: 
                   6374:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6375: $as_echo "yes" >&6; }
                   6376: else
                   6377:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6378: $as_echo "no" >&6; }
                   6379: fi
                   6380: 
                   6381: 
                   6382: php_with_apache=no
                   6383: 
                   6384: 
                   6385: 
                   6386: # Check whether --with-apache was given.
                   6387: if test "${with_apache+set}" = set; then :
                   6388:   withval=$with_apache; PHP_APACHE=$withval
                   6389: else
                   6390: 
                   6391:   PHP_APACHE=no
                   6392: 
                   6393: 
                   6394: fi
                   6395: 
                   6396: 
                   6397: ext_output=$PHP_APACHE
                   6398: 
                   6399: 
                   6400: 
                   6401: 
                   6402: 
                   6403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x module support" >&5
                   6404: $as_echo_n "checking for Apache 1.x module support... " >&6; }
                   6405: 
                   6406: if test "$PHP_SAPI" != "apache" && test "$PHP_APACHE" != "no"; then
                   6407: 
                   6408:   if test "$PHP_APACHE" = "yes"; then
                   6409:     # Apache's default directory
                   6410:     PHP_APACHE=/usr/local/apache
                   6411:   fi
                   6412: 
                   6413:   APACHE_INSTALL_FILES="\$(srcdir)/sapi/apache/mod_php5.* sapi/apache/libphp5.module"
                   6414: 
                   6415: 
                   6416: $as_echo "#define HAVE_APACHE 1" >>confdefs.h
                   6417: 
                   6418:   APACHE_MODULE=yes
                   6419: 
                   6420:   if test -z "$PHP_APACHE" || echo "$PHP_APACHE" | grep '^/' >/dev/null ; then
                   6421:     PHP_APACHE=$PHP_APACHE
                   6422:   else
                   6423: 
                   6424:     ep_dir="`echo $PHP_APACHE|$SED 's%/*[^/][^/]*/*$%%'`"
                   6425: 
                   6426:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   6427:     PHP_APACHE="$ep_realdir/`basename \"$PHP_APACHE\"`"
                   6428:   fi
                   6429: 
                   6430:   # For Apache 1.2.x
                   6431:   if test -f $PHP_APACHE/src/httpd.h; then
                   6432:     APACHE_INCLUDE=-I$PHP_APACHE/src
                   6433:     APACHE_TARGET=$PHP_APACHE/src
                   6434: 
1.1.1.2 ! misho    6435:   if test "static" = "program"; then
        !          6436:     PHP_BINARIES="$PHP_BINARIES apache"
        !          6437:   elif test "$PHP_SAPI" != "none"; then
        !          6438:     as_fn_error $? "
1.1       misho    6439: +--------------------------------------------------------------------+
                   6440: |                        *** ATTENTION ***                           |
                   6441: |                                                                    |
                   6442: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    6443: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    6444: +--------------------------------------------------------------------+
                   6445: " "$LINENO" 5
1.1.1.2 ! misho    6446:   else
        !          6447:     PHP_SAPI=apache
1.1       misho    6448:   fi
                   6449: 
                   6450: 
                   6451: 
1.1.1.2 ! misho    6452:     BUILD_DIR="$BUILD_DIR sapi/apache"
        !          6453: 
        !          6454: 
        !          6455: 
        !          6456:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache"
        !          6457: 
        !          6458: 
        !          6459:     case "static" in
        !          6460:     static)
        !          6461: 
1.1       misho    6462:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6463:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   6464:   php_c_post=
                   6465:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6466:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   6467:   php_cxx_post=
                   6468:   php_lo=lo
                   6469: 
                   6470:   case $with_pic in
                   6471:     yes) pic_setting='-prefer-pic';;
                   6472:     no)  pic_setting='-prefer-non-pic';;
                   6473:   esac
                   6474: 
                   6475:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6476:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   6477:   shared_c_post=
                   6478:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6479:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   6480:   shared_cxx_post=
                   6481:   shared_lo=lo
                   6482: 
                   6483:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    6484:   php_sapi_module=static
1.1       misho    6485: ;;
1.1.1.2 ! misho    6486:     shared)
1.1       misho    6487: 
                   6488:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6489:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   6490:   php_c_post=
                   6491:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6492:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   6493:   php_cxx_post=
                   6494:   php_lo=lo
                   6495: 
                   6496:   case $with_pic in
                   6497:     yes) pic_setting='-prefer-pic';;
                   6498:     no)  pic_setting='-prefer-non-pic';;
                   6499:   esac
                   6500: 
                   6501:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6502:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   6503:   shared_c_post=
                   6504:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6505:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   6506:   shared_cxx_post=
                   6507:   shared_lo=lo
                   6508: 
                   6509:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    6510:   php_sapi_module=shared
1.1       misho    6511: 
                   6512:   php_c_pre=$shared_c_pre
                   6513:   php_c_meta=$shared_c_meta
                   6514:   php_c_post=$shared_c_post
                   6515:   php_cxx_pre=$shared_cxx_pre
                   6516:   php_cxx_meta=$shared_cxx_meta
                   6517:   php_cxx_post=$shared_cxx_post
                   6518:   php_lo=$shared_lo
                   6519: ;;
1.1.1.2 ! misho    6520:     bundle)
1.1       misho    6521: 
                   6522:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6523:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   6524:   php_c_post=
                   6525:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6526:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   6527:   php_cxx_post=
                   6528:   php_lo=lo
                   6529: 
                   6530:   case $with_pic in
                   6531:     yes) pic_setting='-prefer-pic';;
                   6532:     no)  pic_setting='-prefer-non-pic';;
                   6533:   esac
                   6534: 
                   6535:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6536:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   6537:   shared_c_post=
                   6538:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6539:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   6540:   shared_cxx_post=
                   6541:   shared_lo=lo
                   6542: 
                   6543:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    6544:   php_sapi_module=static
1.1       misho    6545: ;;
1.1.1.2 ! misho    6546:     esac
        !          6547:     install_sapi="install-sapi"
1.1       misho    6548: 
                   6549: 
                   6550:   case sapi/apache in
                   6551:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   6552:   /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   6553:   *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   6554:   esac
                   6555: 
                   6556: 
                   6557: 
                   6558:   b_c_pre=$php_c_pre
                   6559:   b_cxx_pre=$php_cxx_pre
                   6560:   b_c_meta=$php_c_meta
                   6561:   b_cxx_meta=$php_cxx_meta
                   6562:   b_c_post=$php_c_post
                   6563:   b_cxx_post=$php_cxx_post
                   6564:   b_lo=$php_lo
                   6565: 
                   6566: 
                   6567:   old_IFS=$IFS
                   6568:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
                   6569: 
                   6570:       IFS=.
                   6571:       set $ac_src
                   6572:       ac_obj=$1
                   6573:       IFS=$old_IFS
                   6574: 
                   6575:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   6576: 
                   6577:       case $ac_src in
                   6578:         *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   6579:         *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   6580:         *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   6581:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   6582:       esac
                   6583: 
                   6584:     cat >>Makefile.objects<<EOF
                   6585: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   6586:        $ac_comp
                   6587: EOF
                   6588:   done
                   6589: 
                   6590: 
                   6591: 
1.1.1.2 ! misho    6592: 
1.1       misho    6593:     APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_INSTALL_FILES $APACHE_TARGET"
                   6594:     PHP_LIBS="-L. -lphp3"
                   6595:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.2.x" >&5
                   6596: $as_echo "yes - Apache 1.2.x" >&6; }
                   6597:     STRONGHOLD=
                   6598:     if test -f $PHP_APACHE/src/ap_config.h; then
                   6599: 
                   6600: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
                   6601: 
                   6602:     fi
                   6603:   # For Apache 2.0.x
                   6604:   elif test -f $PHP_APACHE/include/httpd.h && test -f $PHP_APACHE/srclib/apr/include/apr_general.h ; then
                   6605:     as_fn_error $? "Use --with-apxs2 with Apache 2.x!" "$LINENO" 5
                   6606:   # For Apache 1.3.x
                   6607:   elif test -f $PHP_APACHE/src/main/httpd.h; then
                   6608:     APACHE_HAS_REGEX=1
                   6609:     APACHE_INCLUDE="-I$PHP_APACHE/src/main -I$PHP_APACHE/src/os/unix -I$PHP_APACHE/src/ap"
                   6610:     APACHE_TARGET=$PHP_APACHE/src/modules/php5
                   6611:     if test ! -d $APACHE_TARGET; then
                   6612:       mkdir $APACHE_TARGET
                   6613:     fi
                   6614: 
1.1.1.2 ! misho    6615:   if test "static" = "program"; then
        !          6616:     PHP_BINARIES="$PHP_BINARIES apache"
        !          6617:   elif test "$PHP_SAPI" != "none"; then
        !          6618:     as_fn_error $? "
1.1       misho    6619: +--------------------------------------------------------------------+
                   6620: |                        *** ATTENTION ***                           |
                   6621: |                                                                    |
                   6622: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    6623: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    6624: +--------------------------------------------------------------------+
                   6625: " "$LINENO" 5
1.1.1.2 ! misho    6626:   else
        !          6627:     PHP_SAPI=apache
1.1       misho    6628:   fi
                   6629: 
                   6630: 
                   6631: 
1.1.1.2 ! misho    6632:     BUILD_DIR="$BUILD_DIR sapi/apache"
        !          6633: 
        !          6634: 
        !          6635: 
        !          6636:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache"
        !          6637: 
        !          6638: 
        !          6639:     case "static" in
        !          6640:     static)
        !          6641: 
1.1       misho    6642:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6643:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   6644:   php_c_post=
                   6645:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6646:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   6647:   php_cxx_post=
                   6648:   php_lo=lo
                   6649: 
                   6650:   case $with_pic in
                   6651:     yes) pic_setting='-prefer-pic';;
                   6652:     no)  pic_setting='-prefer-non-pic';;
                   6653:   esac
                   6654: 
                   6655:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6656:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   6657:   shared_c_post=
                   6658:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6659:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   6660:   shared_cxx_post=
                   6661:   shared_lo=lo
                   6662: 
                   6663:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    6664:   php_sapi_module=static
1.1       misho    6665: ;;
1.1.1.2 ! misho    6666:     shared)
1.1       misho    6667: 
                   6668:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6669:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   6670:   php_c_post=
                   6671:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6672:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   6673:   php_cxx_post=
                   6674:   php_lo=lo
                   6675: 
                   6676:   case $with_pic in
                   6677:     yes) pic_setting='-prefer-pic';;
                   6678:     no)  pic_setting='-prefer-non-pic';;
                   6679:   esac
                   6680: 
                   6681:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6682:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   6683:   shared_c_post=
                   6684:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6685:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   6686:   shared_cxx_post=
                   6687:   shared_lo=lo
                   6688: 
                   6689:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    6690:   php_sapi_module=shared
1.1       misho    6691: 
                   6692:   php_c_pre=$shared_c_pre
                   6693:   php_c_meta=$shared_c_meta
                   6694:   php_c_post=$shared_c_post
                   6695:   php_cxx_pre=$shared_cxx_pre
                   6696:   php_cxx_meta=$shared_cxx_meta
                   6697:   php_cxx_post=$shared_cxx_post
                   6698:   php_lo=$shared_lo
                   6699: ;;
1.1.1.2 ! misho    6700:     bundle)
1.1       misho    6701: 
                   6702:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6703:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   6704:   php_c_post=
                   6705:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6706:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   6707:   php_cxx_post=
                   6708:   php_lo=lo
                   6709: 
                   6710:   case $with_pic in
                   6711:     yes) pic_setting='-prefer-pic';;
                   6712:     no)  pic_setting='-prefer-non-pic';;
                   6713:   esac
                   6714: 
                   6715:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6716:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   6717:   shared_c_post=
                   6718:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6719:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   6720:   shared_cxx_post=
                   6721:   shared_lo=lo
                   6722: 
                   6723:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    6724:   php_sapi_module=static
1.1       misho    6725: ;;
1.1.1.2 ! misho    6726:     esac
        !          6727:     install_sapi="install-sapi"
1.1       misho    6728: 
                   6729: 
                   6730:   case sapi/apache in
                   6731:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   6732:   /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   6733:   *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   6734:   esac
                   6735: 
                   6736: 
                   6737: 
                   6738:   b_c_pre=$php_c_pre
                   6739:   b_cxx_pre=$php_cxx_pre
                   6740:   b_c_meta=$php_c_meta
                   6741:   b_cxx_meta=$php_cxx_meta
                   6742:   b_c_post=$php_c_post
                   6743:   b_cxx_post=$php_cxx_post
                   6744:   b_lo=$php_lo
                   6745: 
                   6746: 
                   6747:   old_IFS=$IFS
                   6748:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
                   6749: 
                   6750:       IFS=.
                   6751:       set $ac_src
                   6752:       ac_obj=$1
                   6753:       IFS=$old_IFS
                   6754: 
                   6755:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   6756: 
                   6757:       case $ac_src in
                   6758:         *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   6759:         *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   6760:         *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   6761:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   6762:       esac
                   6763: 
                   6764:     cat >>Makefile.objects<<EOF
                   6765: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   6766:        $ac_comp
                   6767: EOF
                   6768:   done
                   6769: 
                   6770: 
                   6771: 
1.1.1.2 ! misho    6772: 
1.1       misho    6773:     APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET; cp $srcdir/sapi/apache/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/sapi/apache/apMakefile.libdir $APACHE_TARGET/Makefile.libdir"
                   6774:     PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
                   6775:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.3.x" >&5
                   6776: $as_echo "yes - Apache 1.3.x" >&6; }
                   6777:     STRONGHOLD=
                   6778:     if test -f $PHP_APACHE/src/include/ap_config.h; then
                   6779: 
                   6780: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
                   6781: 
                   6782:     fi
                   6783:     if test -f $PHP_APACHE/src/include/ap_compat.h; then
                   6784: 
                   6785: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
                   6786: 
                   6787:       if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then
                   6788:         as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
                   6789:       fi
                   6790:     elif test -f $PHP_APACHE/src/include/compat.h; then
                   6791: 
                   6792: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
                   6793: 
                   6794:     fi
                   6795:   # Also for Apache 1.3.x
                   6796:   elif test -f $PHP_APACHE/src/include/httpd.h; then
                   6797:     APACHE_HAS_REGEX=1
                   6798:     APACHE_INCLUDE="-I$PHP_APACHE/src/include -I$PHP_APACHE/src/os/unix"
                   6799:     APACHE_TARGET=$PHP_APACHE/src/modules/php5
                   6800:     if test ! -d $APACHE_TARGET; then
                   6801:       mkdir $APACHE_TARGET
                   6802:     fi
                   6803: 
1.1.1.2 ! misho    6804:   if test "static" = "program"; then
        !          6805:     PHP_BINARIES="$PHP_BINARIES apache"
        !          6806:   elif test "$PHP_SAPI" != "none"; then
        !          6807:     as_fn_error $? "
1.1       misho    6808: +--------------------------------------------------------------------+
                   6809: |                        *** ATTENTION ***                           |
                   6810: |                                                                    |
                   6811: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    6812: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    6813: +--------------------------------------------------------------------+
                   6814: " "$LINENO" 5
1.1.1.2 ! misho    6815:   else
        !          6816:     PHP_SAPI=apache
1.1       misho    6817:   fi
                   6818: 
                   6819: 
                   6820: 
1.1.1.2 ! misho    6821:     BUILD_DIR="$BUILD_DIR sapi/apache"
        !          6822: 
        !          6823: 
        !          6824: 
        !          6825:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache"
        !          6826: 
        !          6827: 
        !          6828:     case "static" in
        !          6829:     static)
        !          6830: 
1.1       misho    6831:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6832:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   6833:   php_c_post=
                   6834:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6835:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   6836:   php_cxx_post=
                   6837:   php_lo=lo
                   6838: 
                   6839:   case $with_pic in
                   6840:     yes) pic_setting='-prefer-pic';;
                   6841:     no)  pic_setting='-prefer-non-pic';;
                   6842:   esac
                   6843: 
                   6844:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6845:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   6846:   shared_c_post=
                   6847:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6848:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   6849:   shared_cxx_post=
                   6850:   shared_lo=lo
                   6851: 
                   6852:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    6853:   php_sapi_module=static
1.1       misho    6854: ;;
1.1.1.2 ! misho    6855:     shared)
1.1       misho    6856: 
                   6857:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6858:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   6859:   php_c_post=
                   6860:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6861:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   6862:   php_cxx_post=
                   6863:   php_lo=lo
                   6864: 
                   6865:   case $with_pic in
                   6866:     yes) pic_setting='-prefer-pic';;
                   6867:     no)  pic_setting='-prefer-non-pic';;
                   6868:   esac
                   6869: 
                   6870:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6871:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   6872:   shared_c_post=
                   6873:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6874:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   6875:   shared_cxx_post=
                   6876:   shared_lo=lo
                   6877: 
                   6878:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    6879:   php_sapi_module=shared
1.1       misho    6880: 
                   6881:   php_c_pre=$shared_c_pre
                   6882:   php_c_meta=$shared_c_meta
                   6883:   php_c_post=$shared_c_post
                   6884:   php_cxx_pre=$shared_cxx_pre
                   6885:   php_cxx_meta=$shared_cxx_meta
                   6886:   php_cxx_post=$shared_cxx_post
                   6887:   php_lo=$shared_lo
                   6888: ;;
1.1.1.2 ! misho    6889:     bundle)
1.1       misho    6890: 
                   6891:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6892:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   6893:   php_c_post=
                   6894:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6895:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   6896:   php_cxx_post=
                   6897:   php_lo=lo
                   6898: 
                   6899:   case $with_pic in
                   6900:     yes) pic_setting='-prefer-pic';;
                   6901:     no)  pic_setting='-prefer-non-pic';;
                   6902:   esac
                   6903: 
                   6904:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   6905:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   6906:   shared_c_post=
                   6907:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   6908:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   6909:   shared_cxx_post=
                   6910:   shared_lo=lo
                   6911: 
                   6912:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    6913:   php_sapi_module=static
1.1       misho    6914: ;;
1.1.1.2 ! misho    6915:     esac
        !          6916:     install_sapi="install-sapi"
1.1       misho    6917: 
                   6918: 
                   6919:   case sapi/apache in
                   6920:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   6921:   /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   6922:   *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   6923:   esac
                   6924: 
                   6925: 
                   6926: 
                   6927:   b_c_pre=$php_c_pre
                   6928:   b_cxx_pre=$php_cxx_pre
                   6929:   b_c_meta=$php_c_meta
                   6930:   b_cxx_meta=$php_cxx_meta
                   6931:   b_c_post=$php_c_post
                   6932:   b_cxx_post=$php_cxx_post
                   6933:   b_lo=$php_lo
                   6934: 
                   6935: 
                   6936:   old_IFS=$IFS
                   6937:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
                   6938: 
                   6939:       IFS=.
                   6940:       set $ac_src
                   6941:       ac_obj=$1
                   6942:       IFS=$old_IFS
                   6943: 
                   6944:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   6945: 
                   6946:       case $ac_src in
                   6947:         *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   6948:         *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   6949:         *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   6950:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   6951:       esac
                   6952: 
                   6953:     cat >>Makefile.objects<<EOF
                   6954: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   6955:        $ac_comp
                   6956: EOF
                   6957:   done
                   6958: 
                   6959: 
                   6960: 
1.1.1.2 ! misho    6961: 
1.1       misho    6962:     PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
                   6963:     APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET; cp $srcdir/sapi/apache/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/sapi/apache/apMakefile.libdir $APACHE_TARGET/Makefile.libdir"
                   6964:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.3.x" >&5
                   6965: $as_echo "yes - Apache 1.3.x" >&6; }
                   6966:     STRONGHOLD=
                   6967:     if test -f $PHP_APACHE/src/include/ap_config.h; then
                   6968: 
                   6969: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
                   6970: 
                   6971:     fi
                   6972:     if test -f $PHP_APACHE/src/include/ap_compat.h; then
                   6973: 
                   6974: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
                   6975: 
                   6976:       if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then
                   6977:         as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
                   6978:       fi
                   6979:     elif test -f $PHP_APACHE/src/include/compat.h; then
                   6980: 
                   6981: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
                   6982: 
                   6983:     fi
                   6984:   # For StrongHold 2.2
                   6985:   elif test -f $PHP_APACHE/apache/httpd.h; then
                   6986:     APACHE_INCLUDE="-I$PHP_APACHE/apache -I$PHP_APACHE/ssl/include"
                   6987:     APACHE_TARGET=$PHP_APACHE/apache
                   6988: 
1.1.1.2 ! misho    6989:   if test "static" = "program"; then
        !          6990:     PHP_BINARIES="$PHP_BINARIES apache"
        !          6991:   elif test "$PHP_SAPI" != "none"; then
        !          6992:     as_fn_error $? "
1.1       misho    6993: +--------------------------------------------------------------------+
                   6994: |                        *** ATTENTION ***                           |
                   6995: |                                                                    |
                   6996: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    6997: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    6998: +--------------------------------------------------------------------+
                   6999: " "$LINENO" 5
1.1.1.2 ! misho    7000:   else
        !          7001:     PHP_SAPI=apache
1.1       misho    7002:   fi
                   7003: 
                   7004: 
                   7005: 
1.1.1.2 ! misho    7006:     BUILD_DIR="$BUILD_DIR sapi/apache"
        !          7007: 
        !          7008: 
        !          7009: 
        !          7010:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache"
        !          7011: 
        !          7012: 
        !          7013:     case "static" in
        !          7014:     static)
        !          7015: 
1.1       misho    7016:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7017:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   7018:   php_c_post=
                   7019:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7020:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   7021:   php_cxx_post=
                   7022:   php_lo=lo
                   7023: 
                   7024:   case $with_pic in
                   7025:     yes) pic_setting='-prefer-pic';;
                   7026:     no)  pic_setting='-prefer-non-pic';;
                   7027:   esac
                   7028: 
                   7029:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7030:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   7031:   shared_c_post=
                   7032:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7033:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   7034:   shared_cxx_post=
                   7035:   shared_lo=lo
                   7036: 
                   7037:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    7038:   php_sapi_module=static
1.1       misho    7039: ;;
1.1.1.2 ! misho    7040:     shared)
1.1       misho    7041: 
                   7042:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7043:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   7044:   php_c_post=
                   7045:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7046:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   7047:   php_cxx_post=
                   7048:   php_lo=lo
                   7049: 
                   7050:   case $with_pic in
                   7051:     yes) pic_setting='-prefer-pic';;
                   7052:     no)  pic_setting='-prefer-non-pic';;
                   7053:   esac
                   7054: 
                   7055:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7056:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   7057:   shared_c_post=
                   7058:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7059:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   7060:   shared_cxx_post=
                   7061:   shared_lo=lo
                   7062: 
                   7063:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    7064:   php_sapi_module=shared
1.1       misho    7065: 
                   7066:   php_c_pre=$shared_c_pre
                   7067:   php_c_meta=$shared_c_meta
                   7068:   php_c_post=$shared_c_post
                   7069:   php_cxx_pre=$shared_cxx_pre
                   7070:   php_cxx_meta=$shared_cxx_meta
                   7071:   php_cxx_post=$shared_cxx_post
                   7072:   php_lo=$shared_lo
                   7073: ;;
1.1.1.2 ! misho    7074:     bundle)
1.1       misho    7075: 
                   7076:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7077:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   7078:   php_c_post=
                   7079:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7080:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   7081:   php_cxx_post=
                   7082:   php_lo=lo
                   7083: 
                   7084:   case $with_pic in
                   7085:     yes) pic_setting='-prefer-pic';;
                   7086:     no)  pic_setting='-prefer-non-pic';;
                   7087:   esac
                   7088: 
                   7089:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7090:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   7091:   shared_c_post=
                   7092:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7093:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   7094:   shared_cxx_post=
                   7095:   shared_lo=lo
                   7096: 
                   7097:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    7098:   php_sapi_module=static
1.1       misho    7099: ;;
1.1.1.2 ! misho    7100:     esac
        !          7101:     install_sapi="install-sapi"
1.1       misho    7102: 
                   7103: 
                   7104:   case sapi/apache in
                   7105:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   7106:   /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   7107:   *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   7108:   esac
                   7109: 
                   7110: 
                   7111: 
                   7112:   b_c_pre=$php_c_pre
                   7113:   b_cxx_pre=$php_cxx_pre
                   7114:   b_c_meta=$php_c_meta
                   7115:   b_cxx_meta=$php_cxx_meta
                   7116:   b_c_post=$php_c_post
                   7117:   b_cxx_post=$php_cxx_post
                   7118:   b_lo=$php_lo
                   7119: 
                   7120: 
                   7121:   old_IFS=$IFS
                   7122:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
                   7123: 
                   7124:       IFS=.
                   7125:       set $ac_src
                   7126:       ac_obj=$1
                   7127:       IFS=$old_IFS
                   7128: 
                   7129:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   7130: 
                   7131:       case $ac_src in
                   7132:         *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   7133:         *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   7134:         *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   7135:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   7136:       esac
                   7137: 
                   7138:     cat >>Makefile.objects<<EOF
                   7139: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   7140:        $ac_comp
                   7141: EOF
                   7142:   done
                   7143: 
                   7144: 
                   7145: 
1.1.1.2 ! misho    7146: 
1.1       misho    7147:     PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
                   7148:     APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET"
                   7149:     STRONGHOLD=-DSTRONGHOLD=1
                   7150:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - StrongHold" >&5
                   7151: $as_echo "yes - StrongHold" >&6; }
                   7152:     if test -f $PHP_APACHE/apache/ap_config.h; then
                   7153: 
                   7154: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
                   7155: 
                   7156:     fi
                   7157:     if test -f $PHP_APACHE/src/ap_compat.h; then
                   7158: 
                   7159: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
                   7160: 
                   7161:       if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then
                   7162:         as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
                   7163:       fi
                   7164:     elif test -f $PHP_APACHE/src/compat.h; then
                   7165: 
                   7166: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
                   7167: 
                   7168:     fi
                   7169:   else
                   7170:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7171: $as_echo "no" >&6; }
                   7172:     as_fn_error $? "Invalid Apache directory - unable to find httpd.h under $PHP_APACHE" "$LINENO" 5
                   7173:   fi
                   7174: else
                   7175:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7176: $as_echo "no" >&6; }
                   7177: fi
                   7178: 
                   7179: # compatibility
                   7180: if test -z "$enable_mod_charset" && test "$with_mod_charset"; then
                   7181:   enable_mod_charset=$with_mod_charset
                   7182: fi
                   7183: 
                   7184: 
                   7185: php_enable_mod_charset=no
                   7186: 
                   7187: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apache charset compatibility option" >&5
                   7188: $as_echo_n "checking whether to enable Apache charset compatibility option... " >&6; }
                   7189: # Check whether --enable-mod-charset was given.
                   7190: if test "${enable_mod_charset+set}" = set; then :
                   7191:   enableval=$enable_mod_charset; PHP_MOD_CHARSET=$enableval
                   7192: else
                   7193: 
                   7194:   PHP_MOD_CHARSET=no
                   7195: 
                   7196: 
                   7197: fi
                   7198: 
                   7199: 
                   7200: ext_output=$PHP_MOD_CHARSET
                   7201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   7202: $as_echo "$ext_output" >&6; }
                   7203: 
                   7204: 
                   7205: 
                   7206: 
                   7207: if test "$PHP_MOD_CHARSET" = "yes"; then
                   7208: 
                   7209: $as_echo "#define USE_TRANSFER_TABLES 1" >>confdefs.h
                   7210: 
                   7211: fi
                   7212: 
                   7213: if test "$APACHE_MODULE" = "yes"; then
                   7214: 
                   7215:   if test -n "$GCC"; then
                   7216: 
                   7217:   gcc_arg_name=ac_cv_gcc_arg_rdynamic
                   7218:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5
                   7219: $as_echo_n "checking whether $CC supports -rdynamic... " >&6; }
                   7220: if ${ac_cv_gcc_arg_rdynamic+:} false; then :
                   7221:   $as_echo_n "(cached) " >&6
                   7222: else
                   7223: 
                   7224:   echo 'void somefunc() { };' > conftest.c
                   7225:   cmd='$CC -rdynamic -c conftest.c'
                   7226:   if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then
                   7227:     ac_result=no
                   7228:   else
                   7229:     ac_result=yes
                   7230:   fi
                   7231:   eval $gcc_arg_name=$ac_result
                   7232:   rm -f conftest.*
                   7233: 
                   7234: fi
                   7235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_rdynamic" >&5
                   7236: $as_echo "$ac_cv_gcc_arg_rdynamic" >&6; }
                   7237:   if eval test "\$$gcc_arg_name" = "yes"; then
                   7238:     gcc_rdynamic=yes
                   7239:   else
                   7240:     :
                   7241: 
                   7242:   fi
                   7243: 
                   7244:     if test "$gcc_rdynamic" = "yes"; then
                   7245:       PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
                   7246:     fi
                   7247:   fi
                   7248: 
                   7249:   $php_shtool mkdir -p sapi/apache
                   7250: 
                   7251:   PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/apache/libphp5.module"
                   7252: 
                   7253: fi
                   7254: 
                   7255: if test -n "$APACHE_INSTALL"; then
                   7256:   if test "x$APXS" != "x" -a "`uname -sv`" = "AIX 4" -a "$GCC" != "yes"; then
                   7257:     APXS_EXP=-bE:sapi/apache/mod_php5.exp
                   7258:   fi
                   7259: 
                   7260: 
                   7261: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member fd in BUFF *" >&5
                   7262: $as_echo_n "checking for member fd in BUFF *... " >&6; }
                   7263: if ${ac_cv_php_fd_in_buff+:} false; then :
                   7264:   $as_echo_n "(cached) " >&6
                   7265: else
                   7266: 
                   7267:   save=$CPPFLAGS
                   7268:   if test -n "$APXS_INCLUDEDIR"; then
                   7269:     CPPFLAGS="$CPPFLAGS -I$APXS_INCLUDEDIR"
                   7270:   else
                   7271:     CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE"
                   7272:   fi
                   7273:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7274: /* end confdefs.h.  */
                   7275: #include <httpd.h>
                   7276: int
                   7277: main ()
                   7278: {
                   7279: conn_rec *c; int fd = c->client->fd;
                   7280:   ;
                   7281:   return 0;
                   7282: }
                   7283: _ACEOF
                   7284: if ac_fn_c_try_compile "$LINENO"; then :
                   7285: 
                   7286:     ac_cv_php_fd_in_buff=yes
                   7287: else
                   7288:   ac_cv_php_fd_in_buff=no
                   7289: fi
                   7290: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7291:   CPPFLAGS=$save
                   7292: 
                   7293: fi
                   7294: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_fd_in_buff" >&5
                   7295: $as_echo "$ac_cv_php_fd_in_buff" >&6; }
                   7296: if test "$ac_cv_php_fd_in_buff" = "yes"; then
                   7297: 
                   7298: $as_echo "#define PHP_APACHE_HAVE_CLIENT_FD 1" >>confdefs.h
                   7299: 
                   7300: fi
                   7301: 
                   7302:   INSTALL_IT=$APACHE_INSTALL
                   7303: 
                   7304: 
                   7305:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_EXP"
                   7306: 
                   7307: 
                   7308:   PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INCLUDE"
                   7309: 
                   7310: 
                   7311:   PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_TARGET"
                   7312: 
                   7313: 
                   7314:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
                   7315: 
                   7316: 
                   7317:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_LDFLAGS"
                   7318: 
                   7319: 
                   7320:   PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INSTALL"
                   7321: 
                   7322: 
                   7323:   PHP_VAR_SUBST="$PHP_VAR_SUBST STRONGHOLD"
                   7324: 
                   7325: fi
                   7326: 
                   7327: 
                   7328: 
                   7329: 
                   7330: php_with_apxs2filter=no
                   7331: 
                   7332: 
                   7333: 
                   7334: # Check whether --with-apxs2filter was given.
                   7335: if test "${with_apxs2filter+set}" = set; then :
                   7336:   withval=$with_apxs2filter; PHP_APXS2FILTER=$withval
                   7337: else
                   7338: 
                   7339:   PHP_APXS2FILTER=no
                   7340: 
                   7341: 
                   7342: fi
                   7343: 
                   7344: 
                   7345: ext_output=$PHP_APXS2FILTER
                   7346: 
                   7347: 
                   7348: 
                   7349: 
                   7350: 
                   7351: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 2.0 filter-module support via DSO through APXS" >&5
                   7352: $as_echo_n "checking for Apache 2.0 filter-module support via DSO through APXS... " >&6; }
                   7353: 
                   7354: if test "$PHP_APXS2FILTER" != "no"; then
                   7355:   if test "$PHP_APXS2FILTER" = "yes"; then
                   7356:     APXS=apxs
                   7357:     $APXS -q CFLAGS >/dev/null 2>&1
                   7358:     if test "$?" != "0" && test -x /usr/sbin/apxs; then
                   7359:       APXS=/usr/sbin/apxs
                   7360:     fi
                   7361:   else
                   7362: 
                   7363:   if test -z "$PHP_APXS2FILTER" || echo "$PHP_APXS2FILTER" | grep '^/' >/dev/null ; then
                   7364:     APXS=$PHP_APXS2FILTER
                   7365:   else
                   7366: 
                   7367:     ep_dir="`echo $PHP_APXS2FILTER|$SED 's%/*[^/][^/]*/*$%%'`"
                   7368: 
                   7369:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   7370:     APXS="$ep_realdir/`basename \"$PHP_APXS2FILTER\"`"
                   7371:   fi
                   7372: 
                   7373:   fi
                   7374: 
                   7375:   $APXS -q CFLAGS >/dev/null 2>&1
                   7376:   if test "$?" != "0"; then
                   7377:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   7378: $as_echo "" >&6; }
                   7379:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   7380: $as_echo "" >&6; }
                   7381:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I cannot run apxs.  Possible reasons follow:" >&5
                   7382: $as_echo "Sorry, I cannot run apxs.  Possible reasons follow:" >&6; }
                   7383:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   7384: $as_echo "" >&6; }
                   7385:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed" >&5
                   7386: $as_echo "1. Perl is not installed" >&6; }
                   7387:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. apxs was not found. Try to pass the path using --with-apxs2filter=/path/to/apxs" >&5
                   7388: $as_echo "2. apxs was not found. Try to pass the path using --with-apxs2filter=/path/to/apxs" >&6; }
                   7389:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5
                   7390: $as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; }
                   7391:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   7392: $as_echo "" >&6; }
                   7393:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5
                   7394: $as_echo "The output of $APXS follows:" >&6; }
                   7395:     $APXS -q CFLAGS
                   7396:     as_fn_error $? "Aborting" "$LINENO" 5
                   7397:   fi
                   7398: 
                   7399:   APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
                   7400:   APXS_BINDIR=`$APXS -q BINDIR`
                   7401:   APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
                   7402:   APXS_CFLAGS=`$APXS -q CFLAGS`
                   7403:   APU_BINDIR=`$APXS -q APU_BINDIR`
                   7404:   APR_BINDIR=`$APXS -q APR_BINDIR`
                   7405: 
                   7406:   # Pick up ap[ru]-N-config if using httpd >=2.1
                   7407:   APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null ||
                   7408:     echo $APR_BINDIR/apr-config`
                   7409:   APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null ||
                   7410:     echo $APU_BINDIR/apu-config`
                   7411: 
                   7412:   APR_CFLAGS="`$APR_CONFIG --cppflags --includes`"
                   7413:   APU_CFLAGS="`$APU_CONFIG --includes`"
                   7414: 
                   7415:   for flag in $APXS_CFLAGS; do
                   7416:     case $flag in
                   7417:     -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
                   7418:     esac
                   7419:   done
                   7420: 
                   7421:   APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS"
                   7422: 
                   7423:   # Test that we're trying to configure with apache 2.x
                   7424: 
                   7425:   ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
                   7426:   ac_IFS=$IFS
                   7427: IFS="- /.
                   7428: "
                   7429:   set $ac_output
                   7430:   IFS=$ac_IFS
                   7431: 
                   7432:   APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
                   7433: 
                   7434:   if test "$APACHE_VERSION" -le 2000000; then
                   7435:     as_fn_error $? "You have enabled Apache 2 support while your server is Apache 1.3.  Please use the appropiate switch --with-apxs (without the 2)" "$LINENO" 5
                   7436:   elif test "$APACHE_VERSION" -lt 2000040; then
                   7437:     as_fn_error $? "Please note that Apache version >= 2.0.40 is required" "$LINENO" 5
                   7438:   fi
                   7439: 
                   7440:   APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
                   7441:   if test -z `$APXS -q SYSCONFDIR`; then
                   7442:     INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
                   7443:                  $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
                   7444:                        -i -n php5"
                   7445:   else
                   7446:     APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
                   7447:     INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
                   7448:                 \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
                   7449:                  $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
                   7450:                        -S SYSCONFDIR='$APXS_SYSCONFDIR' \
                   7451:                        -i -a -n php5"
                   7452:   fi
                   7453: 
                   7454:   case $host_alias in
                   7455:   *aix*)
                   7456:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
                   7457: 
1.1.1.2 ! misho    7458:   if test "shared" = "program"; then
        !          7459:     PHP_BINARIES="$PHP_BINARIES apache2filter"
        !          7460:   elif test "$PHP_SAPI" != "none"; then
        !          7461:     as_fn_error $? "
1.1       misho    7462: +--------------------------------------------------------------------+
                   7463: |                        *** ATTENTION ***                           |
                   7464: |                                                                    |
                   7465: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    7466: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    7467: +--------------------------------------------------------------------+
                   7468: " "$LINENO" 5
1.1.1.2 ! misho    7469:   else
        !          7470:     PHP_SAPI=apache2filter
1.1       misho    7471:   fi
                   7472: 
                   7473: 
                   7474: 
1.1.1.2 ! misho    7475:     BUILD_DIR="$BUILD_DIR sapi/apache2filter"
        !          7476: 
        !          7477: 
        !          7478: 
        !          7479:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2filter"
        !          7480: 
        !          7481: 
        !          7482:     case "shared" in
        !          7483:     static)
        !          7484: 
1.1       misho    7485:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7486:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   7487:   php_c_post=
                   7488:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7489:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   7490:   php_cxx_post=
                   7491:   php_lo=lo
                   7492: 
                   7493:   case $with_pic in
                   7494:     yes) pic_setting='-prefer-pic';;
                   7495:     no)  pic_setting='-prefer-non-pic';;
                   7496:   esac
                   7497: 
                   7498:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7499:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   7500:   shared_c_post=
                   7501:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7502:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   7503:   shared_cxx_post=
                   7504:   shared_lo=lo
                   7505: 
                   7506:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    7507:   php_sapi_module=static
1.1       misho    7508: ;;
1.1.1.2 ! misho    7509:     shared)
1.1       misho    7510: 
                   7511:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7512:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   7513:   php_c_post=
                   7514:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7515:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   7516:   php_cxx_post=
                   7517:   php_lo=lo
                   7518: 
                   7519:   case $with_pic in
                   7520:     yes) pic_setting='-prefer-pic';;
                   7521:     no)  pic_setting='-prefer-non-pic';;
                   7522:   esac
                   7523: 
                   7524:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7525:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   7526:   shared_c_post=
                   7527:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7528:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   7529:   shared_cxx_post=
                   7530:   shared_lo=lo
                   7531: 
                   7532:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    7533:   php_sapi_module=shared
1.1       misho    7534: 
                   7535:   php_c_pre=$shared_c_pre
                   7536:   php_c_meta=$shared_c_meta
                   7537:   php_c_post=$shared_c_post
                   7538:   php_cxx_pre=$shared_cxx_pre
                   7539:   php_cxx_meta=$shared_cxx_meta
                   7540:   php_cxx_post=$shared_cxx_post
                   7541:   php_lo=$shared_lo
                   7542: ;;
1.1.1.2 ! misho    7543:     bundle)
1.1       misho    7544: 
                   7545:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7546:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   7547:   php_c_post=
                   7548:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7549:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   7550:   php_cxx_post=
                   7551:   php_lo=lo
                   7552: 
                   7553:   case $with_pic in
                   7554:     yes) pic_setting='-prefer-pic';;
                   7555:     no)  pic_setting='-prefer-non-pic';;
                   7556:   esac
                   7557: 
                   7558:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7559:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   7560:   shared_c_post=
                   7561:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7562:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   7563:   shared_cxx_post=
                   7564:   shared_lo=lo
                   7565: 
                   7566:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    7567:   php_sapi_module=static
1.1       misho    7568: ;;
1.1.1.2 ! misho    7569:     esac
        !          7570:     install_sapi="install-sapi"
1.1       misho    7571: 
                   7572: 
                   7573:   case sapi/apache2filter in
                   7574:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   7575:   /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   7576:   *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   7577:   esac
                   7578: 
                   7579: 
                   7580: 
                   7581:   b_c_pre=$php_c_pre
                   7582:   b_cxx_pre=$php_cxx_pre
                   7583:   b_c_meta=$php_c_meta
                   7584:   b_cxx_meta=$php_cxx_meta
                   7585:   b_c_post=$php_c_post
                   7586:   b_cxx_post=$php_cxx_post
                   7587:   b_lo=$php_lo
                   7588: 
                   7589: 
                   7590:   old_IFS=$IFS
                   7591:   for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
                   7592: 
                   7593:       IFS=.
                   7594:       set $ac_src
                   7595:       ac_obj=$1
                   7596:       IFS=$old_IFS
                   7597: 
                   7598:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   7599: 
                   7600:       case $ac_src in
                   7601:         *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   7602:         *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   7603:         *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   7604:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   7605:       esac
                   7606: 
                   7607:     cat >>Makefile.objects<<EOF
                   7608: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   7609:        $ac_comp
                   7610: EOF
                   7611:   done
                   7612: 
                   7613: 
                   7614: 
1.1.1.2 ! misho    7615: 
1.1       misho    7616:     INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
                   7617:     ;;
                   7618:   *darwin*)
                   7619:                     if test -x "$APR_CONFIG"; then
                   7620:         MH_BUNDLE_FLAGS="`$APR_CONFIG --ldflags --link-ld --libs`"
                   7621:     fi
                   7622:     if test -x "$APU_CONFIG"; then
                   7623:         MH_BUNDLE_FLAGS="`$APU_CONFIG --ldflags --link-ld --libs` $MH_BUNDLE_FLAGS"
                   7624:     fi
                   7625:     MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD $MH_BUNDLE_FLAGS"
                   7626: 
                   7627:   PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
                   7628: 
                   7629: 
1.1.1.2 ! misho    7630:   if test "bundle" = "program"; then
        !          7631:     PHP_BINARIES="$PHP_BINARIES apache2filter"
        !          7632:   elif test "$PHP_SAPI" != "none"; then
        !          7633:     as_fn_error $? "
1.1       misho    7634: +--------------------------------------------------------------------+
                   7635: |                        *** ATTENTION ***                           |
                   7636: |                                                                    |
                   7637: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    7638: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    7639: +--------------------------------------------------------------------+
                   7640: " "$LINENO" 5
1.1.1.2 ! misho    7641:   else
        !          7642:     PHP_SAPI=apache2filter
1.1       misho    7643:   fi
                   7644: 
                   7645: 
                   7646: 
1.1.1.2 ! misho    7647:     BUILD_DIR="$BUILD_DIR sapi/apache2filter"
        !          7648: 
        !          7649: 
        !          7650: 
        !          7651:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2filter"
        !          7652: 
        !          7653: 
        !          7654:     case "bundle" in
        !          7655:     static)
        !          7656: 
1.1       misho    7657:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7658:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   7659:   php_c_post=
                   7660:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7661:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   7662:   php_cxx_post=
                   7663:   php_lo=lo
                   7664: 
                   7665:   case $with_pic in
                   7666:     yes) pic_setting='-prefer-pic';;
                   7667:     no)  pic_setting='-prefer-non-pic';;
                   7668:   esac
                   7669: 
                   7670:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7671:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   7672:   shared_c_post=
                   7673:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7674:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   7675:   shared_cxx_post=
                   7676:   shared_lo=lo
                   7677: 
                   7678:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    7679:   php_sapi_module=static
1.1       misho    7680: ;;
1.1.1.2 ! misho    7681:     shared)
1.1       misho    7682: 
                   7683:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7684:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   7685:   php_c_post=
                   7686:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7687:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   7688:   php_cxx_post=
                   7689:   php_lo=lo
                   7690: 
                   7691:   case $with_pic in
                   7692:     yes) pic_setting='-prefer-pic';;
                   7693:     no)  pic_setting='-prefer-non-pic';;
                   7694:   esac
                   7695: 
                   7696:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7697:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   7698:   shared_c_post=
                   7699:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7700:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   7701:   shared_cxx_post=
                   7702:   shared_lo=lo
                   7703: 
                   7704:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    7705:   php_sapi_module=shared
1.1       misho    7706: 
                   7707:   php_c_pre=$shared_c_pre
                   7708:   php_c_meta=$shared_c_meta
                   7709:   php_c_post=$shared_c_post
                   7710:   php_cxx_pre=$shared_cxx_pre
                   7711:   php_cxx_meta=$shared_cxx_meta
                   7712:   php_cxx_post=$shared_cxx_post
                   7713:   php_lo=$shared_lo
                   7714: ;;
1.1.1.2 ! misho    7715:     bundle)
1.1       misho    7716: 
                   7717:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7718:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   7719:   php_c_post=
                   7720:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7721:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   7722:   php_cxx_post=
                   7723:   php_lo=lo
                   7724: 
                   7725:   case $with_pic in
                   7726:     yes) pic_setting='-prefer-pic';;
                   7727:     no)  pic_setting='-prefer-non-pic';;
                   7728:   esac
                   7729: 
                   7730:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7731:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   7732:   shared_c_post=
                   7733:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7734:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   7735:   shared_cxx_post=
                   7736:   shared_lo=lo
                   7737: 
                   7738:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    7739:   php_sapi_module=static
1.1       misho    7740: ;;
1.1.1.2 ! misho    7741:     esac
        !          7742:     install_sapi="install-sapi"
1.1       misho    7743: 
                   7744: 
                   7745:   case sapi/apache2filter in
                   7746:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   7747:   /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   7748:   *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   7749:   esac
                   7750: 
                   7751: 
                   7752: 
                   7753:   b_c_pre=$php_c_pre
                   7754:   b_cxx_pre=$php_cxx_pre
                   7755:   b_c_meta=$php_c_meta
                   7756:   b_cxx_meta=$php_cxx_meta
                   7757:   b_c_post=$php_c_post
                   7758:   b_cxx_post=$php_cxx_post
                   7759:   b_lo=$php_lo
                   7760: 
                   7761: 
                   7762:   old_IFS=$IFS
                   7763:   for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
                   7764: 
                   7765:       IFS=.
                   7766:       set $ac_src
                   7767:       ac_obj=$1
                   7768:       IFS=$old_IFS
                   7769: 
                   7770:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   7771: 
                   7772:       case $ac_src in
                   7773:         *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   7774:         *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   7775:         *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   7776:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   7777:       esac
                   7778: 
                   7779:     cat >>Makefile.objects<<EOF
                   7780: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   7781:        $ac_comp
                   7782: EOF
                   7783:   done
                   7784: 
                   7785: 
                   7786: 
1.1.1.2 ! misho    7787: 
1.1       misho    7788:     SAPI_SHARED=libs/libphp5.so
                   7789:     INSTALL_IT="$INSTALL_IT $SAPI_SHARED"
                   7790:     ;;
                   7791:   *beos*)
                   7792:     if test -f _APP_; then `rm _APP_`; fi
                   7793:     `ln -s $APXS_BINDIR/httpd _APP_`
                   7794:     EXTRA_LIBS="$EXTRA_LIBS _APP_"
                   7795: 
1.1.1.2 ! misho    7796:   if test "shared" = "program"; then
        !          7797:     PHP_BINARIES="$PHP_BINARIES apache2filter"
        !          7798:   elif test "$PHP_SAPI" != "none"; then
        !          7799:     as_fn_error $? "
1.1       misho    7800: +--------------------------------------------------------------------+
                   7801: |                        *** ATTENTION ***                           |
                   7802: |                                                                    |
                   7803: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    7804: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    7805: +--------------------------------------------------------------------+
                   7806: " "$LINENO" 5
1.1.1.2 ! misho    7807:   else
        !          7808:     PHP_SAPI=apache2filter
1.1       misho    7809:   fi
                   7810: 
                   7811: 
                   7812: 
1.1.1.2 ! misho    7813:     BUILD_DIR="$BUILD_DIR sapi/apache2filter"
        !          7814: 
        !          7815: 
        !          7816: 
        !          7817:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2filter"
        !          7818: 
        !          7819: 
        !          7820:     case "shared" in
        !          7821:     static)
        !          7822: 
1.1       misho    7823:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7824:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   7825:   php_c_post=
                   7826:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7827:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   7828:   php_cxx_post=
                   7829:   php_lo=lo
                   7830: 
                   7831:   case $with_pic in
                   7832:     yes) pic_setting='-prefer-pic';;
                   7833:     no)  pic_setting='-prefer-non-pic';;
                   7834:   esac
                   7835: 
                   7836:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7837:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   7838:   shared_c_post=
                   7839:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7840:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   7841:   shared_cxx_post=
                   7842:   shared_lo=lo
                   7843: 
                   7844:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    7845:   php_sapi_module=static
1.1       misho    7846: ;;
1.1.1.2 ! misho    7847:     shared)
1.1       misho    7848: 
                   7849:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7850:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   7851:   php_c_post=
                   7852:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7853:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   7854:   php_cxx_post=
                   7855:   php_lo=lo
                   7856: 
                   7857:   case $with_pic in
                   7858:     yes) pic_setting='-prefer-pic';;
                   7859:     no)  pic_setting='-prefer-non-pic';;
                   7860:   esac
                   7861: 
                   7862:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7863:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   7864:   shared_c_post=
                   7865:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7866:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   7867:   shared_cxx_post=
                   7868:   shared_lo=lo
                   7869: 
                   7870:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    7871:   php_sapi_module=shared
1.1       misho    7872: 
                   7873:   php_c_pre=$shared_c_pre
                   7874:   php_c_meta=$shared_c_meta
                   7875:   php_c_post=$shared_c_post
                   7876:   php_cxx_pre=$shared_cxx_pre
                   7877:   php_cxx_meta=$shared_cxx_meta
                   7878:   php_cxx_post=$shared_cxx_post
                   7879:   php_lo=$shared_lo
                   7880: ;;
1.1.1.2 ! misho    7881:     bundle)
1.1       misho    7882: 
                   7883:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7884:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   7885:   php_c_post=
                   7886:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7887:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   7888:   php_cxx_post=
                   7889:   php_lo=lo
                   7890: 
                   7891:   case $with_pic in
                   7892:     yes) pic_setting='-prefer-pic';;
                   7893:     no)  pic_setting='-prefer-non-pic';;
                   7894:   esac
                   7895: 
                   7896:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7897:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   7898:   shared_c_post=
                   7899:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7900:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   7901:   shared_cxx_post=
                   7902:   shared_lo=lo
                   7903: 
                   7904:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    7905:   php_sapi_module=static
1.1       misho    7906: ;;
1.1.1.2 ! misho    7907:     esac
        !          7908:     install_sapi="install-sapi"
1.1       misho    7909: 
                   7910: 
                   7911:   case sapi/apache2filter in
                   7912:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   7913:   /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   7914:   *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   7915:   esac
                   7916: 
                   7917: 
                   7918: 
                   7919:   b_c_pre=$php_c_pre
                   7920:   b_cxx_pre=$php_cxx_pre
                   7921:   b_c_meta=$php_c_meta
                   7922:   b_cxx_meta=$php_cxx_meta
                   7923:   b_c_post=$php_c_post
                   7924:   b_cxx_post=$php_cxx_post
                   7925:   b_lo=$php_lo
                   7926: 
                   7927: 
                   7928:   old_IFS=$IFS
                   7929:   for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
                   7930: 
                   7931:       IFS=.
                   7932:       set $ac_src
                   7933:       ac_obj=$1
                   7934:       IFS=$old_IFS
                   7935: 
                   7936:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   7937: 
                   7938:       case $ac_src in
                   7939:         *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   7940:         *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   7941:         *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   7942:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   7943:       esac
                   7944: 
                   7945:     cat >>Makefile.objects<<EOF
                   7946: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   7947:        $ac_comp
                   7948: EOF
                   7949:   done
                   7950: 
                   7951: 
                   7952: 
1.1.1.2 ! misho    7953: 
1.1       misho    7954:     INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
                   7955:     ;;
                   7956:   *)
                   7957: 
1.1.1.2 ! misho    7958:   if test "shared" = "program"; then
        !          7959:     PHP_BINARIES="$PHP_BINARIES apache2filter"
        !          7960:   elif test "$PHP_SAPI" != "none"; then
        !          7961:     as_fn_error $? "
1.1       misho    7962: +--------------------------------------------------------------------+
                   7963: |                        *** ATTENTION ***                           |
                   7964: |                                                                    |
                   7965: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    7966: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    7967: +--------------------------------------------------------------------+
                   7968: " "$LINENO" 5
1.1.1.2 ! misho    7969:   else
        !          7970:     PHP_SAPI=apache2filter
1.1       misho    7971:   fi
                   7972: 
                   7973: 
                   7974: 
1.1.1.2 ! misho    7975:     BUILD_DIR="$BUILD_DIR sapi/apache2filter"
        !          7976: 
        !          7977: 
        !          7978: 
        !          7979:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2filter"
        !          7980: 
        !          7981: 
        !          7982:     case "shared" in
        !          7983:     static)
        !          7984: 
1.1       misho    7985:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7986:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   7987:   php_c_post=
                   7988:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   7989:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   7990:   php_cxx_post=
                   7991:   php_lo=lo
                   7992: 
                   7993:   case $with_pic in
                   7994:     yes) pic_setting='-prefer-pic';;
                   7995:     no)  pic_setting='-prefer-non-pic';;
                   7996:   esac
                   7997: 
                   7998:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   7999:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   8000:   shared_c_post=
                   8001:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8002:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   8003:   shared_cxx_post=
                   8004:   shared_lo=lo
                   8005: 
                   8006:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    8007:   php_sapi_module=static
1.1       misho    8008: ;;
1.1.1.2 ! misho    8009:     shared)
1.1       misho    8010: 
                   8011:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8012:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   8013:   php_c_post=
                   8014:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8015:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   8016:   php_cxx_post=
                   8017:   php_lo=lo
                   8018: 
                   8019:   case $with_pic in
                   8020:     yes) pic_setting='-prefer-pic';;
                   8021:     no)  pic_setting='-prefer-non-pic';;
                   8022:   esac
                   8023: 
                   8024:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8025:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   8026:   shared_c_post=
                   8027:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8028:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   8029:   shared_cxx_post=
                   8030:   shared_lo=lo
                   8031: 
                   8032:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    8033:   php_sapi_module=shared
1.1       misho    8034: 
                   8035:   php_c_pre=$shared_c_pre
                   8036:   php_c_meta=$shared_c_meta
                   8037:   php_c_post=$shared_c_post
                   8038:   php_cxx_pre=$shared_cxx_pre
                   8039:   php_cxx_meta=$shared_cxx_meta
                   8040:   php_cxx_post=$shared_cxx_post
                   8041:   php_lo=$shared_lo
                   8042: ;;
1.1.1.2 ! misho    8043:     bundle)
1.1       misho    8044: 
                   8045:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8046:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   8047:   php_c_post=
                   8048:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8049:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   8050:   php_cxx_post=
                   8051:   php_lo=lo
                   8052: 
                   8053:   case $with_pic in
                   8054:     yes) pic_setting='-prefer-pic';;
                   8055:     no)  pic_setting='-prefer-non-pic';;
                   8056:   esac
                   8057: 
                   8058:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8059:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   8060:   shared_c_post=
                   8061:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8062:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   8063:   shared_cxx_post=
                   8064:   shared_lo=lo
                   8065: 
                   8066:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    8067:   php_sapi_module=static
1.1       misho    8068: ;;
1.1.1.2 ! misho    8069:     esac
        !          8070:     install_sapi="install-sapi"
1.1       misho    8071: 
                   8072: 
                   8073:   case sapi/apache2filter in
                   8074:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   8075:   /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   8076:   *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   8077:   esac
                   8078: 
                   8079: 
                   8080: 
                   8081:   b_c_pre=$php_c_pre
                   8082:   b_cxx_pre=$php_cxx_pre
                   8083:   b_c_meta=$php_c_meta
                   8084:   b_cxx_meta=$php_cxx_meta
                   8085:   b_c_post=$php_c_post
                   8086:   b_cxx_post=$php_cxx_post
                   8087:   b_lo=$php_lo
                   8088: 
                   8089: 
                   8090:   old_IFS=$IFS
                   8091:   for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
                   8092: 
                   8093:       IFS=.
                   8094:       set $ac_src
                   8095:       ac_obj=$1
                   8096:       IFS=$old_IFS
                   8097: 
                   8098:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   8099: 
                   8100:       case $ac_src in
                   8101:         *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   8102:         *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   8103:         *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   8104:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   8105:       esac
                   8106: 
                   8107:     cat >>Makefile.objects<<EOF
                   8108: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   8109:        $ac_comp
                   8110: EOF
                   8111:   done
                   8112: 
                   8113: 
                   8114: 
1.1.1.2 ! misho    8115: 
1.1       misho    8116:     INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
                   8117:     ;;
                   8118:   esac
                   8119: 
1.1.1.2 ! misho    8120:   if test "$APACHE_VERSION" -lt 2004001; then
        !          8121:     APXS_MPM=`$APXS -q MPM_NAME`
        !          8122:     if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
        !          8123: 
        !          8124:   enable_maintainer_zts=yes
        !          8125:   if test "$pthreads_working" != "yes"; then
        !          8126:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
        !          8127:   fi
        !          8128: 
        !          8129:     fi
        !          8130:   else
        !          8131:     APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'`
        !          8132:     if test -n "$APACHE_THREADED_MPM"; then
1.1       misho    8133: 
                   8134:   enable_maintainer_zts=yes
                   8135:   if test "$pthreads_working" != "yes"; then
                   8136:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
                   8137:   fi
                   8138: 
1.1.1.2 ! misho    8139:     fi
1.1       misho    8140:   fi
                   8141:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   8142: $as_echo "yes" >&6; }
                   8143: 
                   8144:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
                   8145: 
                   8146: else
                   8147:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8148: $as_echo "no" >&6; }
                   8149: fi
                   8150: 
                   8151: 
                   8152: 
                   8153: 
                   8154: php_with_apxs2=no
                   8155: 
                   8156: 
                   8157: 
                   8158: # Check whether --with-apxs2 was given.
                   8159: if test "${with_apxs2+set}" = set; then :
                   8160:   withval=$with_apxs2; PHP_APXS2=$withval
                   8161: else
                   8162: 
                   8163:   PHP_APXS2=no
                   8164: 
                   8165: 
                   8166: fi
                   8167: 
                   8168: 
                   8169: ext_output=$PHP_APXS2
                   8170: 
                   8171: 
                   8172: 
                   8173: 
                   8174: 
                   8175: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 2.0 handler-module support via DSO through APXS" >&5
                   8176: $as_echo_n "checking for Apache 2.0 handler-module support via DSO through APXS... " >&6; }
                   8177: 
                   8178: if test "$PHP_APXS2" != "no"; then
                   8179:   if test "$PHP_APXS2" = "yes"; then
                   8180:     APXS=apxs
                   8181:     $APXS -q CFLAGS >/dev/null 2>&1
                   8182:     if test "$?" != "0" && test -x /usr/sbin/apxs; then
                   8183:       APXS=/usr/sbin/apxs
                   8184:     fi
                   8185:   else
                   8186: 
                   8187:   if test -z "$PHP_APXS2" || echo "$PHP_APXS2" | grep '^/' >/dev/null ; then
                   8188:     APXS=$PHP_APXS2
                   8189:   else
                   8190: 
                   8191:     ep_dir="`echo $PHP_APXS2|$SED 's%/*[^/][^/]*/*$%%'`"
                   8192: 
                   8193:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   8194:     APXS="$ep_realdir/`basename \"$PHP_APXS2\"`"
                   8195:   fi
                   8196: 
                   8197:   fi
                   8198: 
                   8199:   $APXS -q CFLAGS >/dev/null 2>&1
                   8200:   if test "$?" != "0"; then
                   8201:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   8202: $as_echo "" >&6; }
                   8203:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   8204: $as_echo "" >&6; }
                   8205:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I cannot run apxs.  Possible reasons follow:" >&5
                   8206: $as_echo "Sorry, I cannot run apxs.  Possible reasons follow:" >&6; }
                   8207:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   8208: $as_echo "" >&6; }
                   8209:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed" >&5
                   8210: $as_echo "1. Perl is not installed" >&6; }
                   8211:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&5
                   8212: $as_echo "2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&6; }
                   8213:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5
                   8214: $as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; }
                   8215:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   8216: $as_echo "" >&6; }
                   8217:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5
                   8218: $as_echo "The output of $APXS follows:" >&6; }
                   8219:     $APXS -q CFLAGS
                   8220:     as_fn_error $? "Aborting" "$LINENO" 5
                   8221:   fi
                   8222: 
                   8223:   APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
                   8224:   APXS_BINDIR=`$APXS -q BINDIR`
                   8225:   APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
                   8226:   APXS_CFLAGS=`$APXS -q CFLAGS`
                   8227:   APU_BINDIR=`$APXS -q APU_BINDIR`
                   8228:   APR_BINDIR=`$APXS -q APR_BINDIR`
                   8229: 
                   8230:   # Pick up ap[ru]-N-config if using httpd >=2.1
                   8231:   APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null ||
                   8232:     echo $APR_BINDIR/apr-config`
                   8233:   APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null ||
                   8234:     echo $APU_BINDIR/apu-config`
                   8235: 
                   8236:   APR_CFLAGS="`$APR_CONFIG --cppflags --includes`"
                   8237:   APU_CFLAGS="`$APU_CONFIG --includes`"
                   8238: 
                   8239:   for flag in $APXS_CFLAGS; do
                   8240:     case $flag in
                   8241:     -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
                   8242:     esac
                   8243:   done
                   8244: 
                   8245:   APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS"
                   8246: 
                   8247:   # Test that we're trying to configure with apache 2.x
                   8248: 
                   8249:   ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
                   8250:   ac_IFS=$IFS
                   8251: IFS="- /.
                   8252: "
                   8253:   set $ac_output
                   8254:   IFS=$ac_IFS
                   8255: 
                   8256:   APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
                   8257: 
                   8258:   if test "$APACHE_VERSION" -le 2000000; then
                   8259:     as_fn_error $? "You have enabled Apache 2 support while your server is Apache 1.3.  Please use the appropiate switch --with-apxs (without the 2)" "$LINENO" 5
                   8260:   elif test "$APACHE_VERSION" -lt 2000044; then
                   8261:     as_fn_error $? "Please note that Apache version >= 2.0.44 is required" "$LINENO" 5
                   8262:   fi
                   8263: 
                   8264:   APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
                   8265:   if test -z `$APXS -q SYSCONFDIR`; then
                   8266:     INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
                   8267:                  $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
                   8268:                        -i -n php5"
                   8269:   else
                   8270:     APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
                   8271:     INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
                   8272:                 \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
                   8273:                  $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
                   8274:                        -S SYSCONFDIR='$APXS_SYSCONFDIR' \
                   8275:                        -i -a -n php5"
                   8276:   fi
                   8277: 
                   8278:   case $host_alias in
                   8279:   *aix*)
                   8280:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
                   8281: 
1.1.1.2 ! misho    8282:   if test "shared" = "program"; then
        !          8283:     PHP_BINARIES="$PHP_BINARIES apache2handler"
        !          8284:   elif test "$PHP_SAPI" != "none"; then
        !          8285:     as_fn_error $? "
1.1       misho    8286: +--------------------------------------------------------------------+
                   8287: |                        *** ATTENTION ***                           |
                   8288: |                                                                    |
                   8289: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    8290: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    8291: +--------------------------------------------------------------------+
                   8292: " "$LINENO" 5
1.1.1.2 ! misho    8293:   else
        !          8294:     PHP_SAPI=apache2handler
1.1       misho    8295:   fi
                   8296: 
                   8297: 
                   8298: 
1.1.1.2 ! misho    8299:     BUILD_DIR="$BUILD_DIR sapi/apache2handler"
        !          8300: 
        !          8301: 
        !          8302: 
        !          8303:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler"
        !          8304: 
        !          8305: 
        !          8306:     case "shared" in
        !          8307:     static)
        !          8308: 
1.1       misho    8309:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8310:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   8311:   php_c_post=
                   8312:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8313:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   8314:   php_cxx_post=
                   8315:   php_lo=lo
                   8316: 
                   8317:   case $with_pic in
                   8318:     yes) pic_setting='-prefer-pic';;
                   8319:     no)  pic_setting='-prefer-non-pic';;
                   8320:   esac
                   8321: 
                   8322:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8323:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   8324:   shared_c_post=
                   8325:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8326:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   8327:   shared_cxx_post=
                   8328:   shared_lo=lo
                   8329: 
                   8330:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    8331:   php_sapi_module=static
1.1       misho    8332: ;;
1.1.1.2 ! misho    8333:     shared)
1.1       misho    8334: 
                   8335:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8336:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   8337:   php_c_post=
                   8338:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8339:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   8340:   php_cxx_post=
                   8341:   php_lo=lo
                   8342: 
                   8343:   case $with_pic in
                   8344:     yes) pic_setting='-prefer-pic';;
                   8345:     no)  pic_setting='-prefer-non-pic';;
                   8346:   esac
                   8347: 
                   8348:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8349:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   8350:   shared_c_post=
                   8351:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8352:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   8353:   shared_cxx_post=
                   8354:   shared_lo=lo
                   8355: 
                   8356:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    8357:   php_sapi_module=shared
1.1       misho    8358: 
                   8359:   php_c_pre=$shared_c_pre
                   8360:   php_c_meta=$shared_c_meta
                   8361:   php_c_post=$shared_c_post
                   8362:   php_cxx_pre=$shared_cxx_pre
                   8363:   php_cxx_meta=$shared_cxx_meta
                   8364:   php_cxx_post=$shared_cxx_post
                   8365:   php_lo=$shared_lo
                   8366: ;;
1.1.1.2 ! misho    8367:     bundle)
1.1       misho    8368: 
                   8369:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8370:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   8371:   php_c_post=
                   8372:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8373:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   8374:   php_cxx_post=
                   8375:   php_lo=lo
                   8376: 
                   8377:   case $with_pic in
                   8378:     yes) pic_setting='-prefer-pic';;
                   8379:     no)  pic_setting='-prefer-non-pic';;
                   8380:   esac
                   8381: 
                   8382:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8383:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   8384:   shared_c_post=
                   8385:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8386:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   8387:   shared_cxx_post=
                   8388:   shared_lo=lo
                   8389: 
                   8390:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    8391:   php_sapi_module=static
1.1       misho    8392: ;;
1.1.1.2 ! misho    8393:     esac
        !          8394:     install_sapi="install-sapi"
1.1       misho    8395: 
                   8396: 
                   8397:   case sapi/apache2handler in
                   8398:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   8399:   /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   8400:   *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   8401:   esac
                   8402: 
                   8403: 
                   8404: 
                   8405:   b_c_pre=$php_c_pre
                   8406:   b_cxx_pre=$php_cxx_pre
                   8407:   b_c_meta=$php_c_meta
                   8408:   b_cxx_meta=$php_cxx_meta
                   8409:   b_c_post=$php_c_post
                   8410:   b_cxx_post=$php_cxx_post
                   8411:   b_lo=$php_lo
                   8412: 
                   8413: 
                   8414:   old_IFS=$IFS
                   8415:   for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
                   8416: 
                   8417:       IFS=.
                   8418:       set $ac_src
                   8419:       ac_obj=$1
                   8420:       IFS=$old_IFS
                   8421: 
                   8422:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   8423: 
                   8424:       case $ac_src in
                   8425:         *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   8426:         *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   8427:         *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   8428:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   8429:       esac
                   8430: 
                   8431:     cat >>Makefile.objects<<EOF
                   8432: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   8433:        $ac_comp
                   8434: EOF
                   8435:   done
                   8436: 
                   8437: 
                   8438: 
1.1.1.2 ! misho    8439: 
1.1       misho    8440:     INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
                   8441:     ;;
                   8442:   *darwin*)
                   8443:                     if test -x "$APR_CONFIG"; then
                   8444:         MH_BUNDLE_FLAGS="`$APR_CONFIG --ldflags --link-ld --libs`"
                   8445:     fi
                   8446:     if test -x "$APU_CONFIG"; then
                   8447:         MH_BUNDLE_FLAGS="`$APU_CONFIG --ldflags --link-ld --libs` $MH_BUNDLE_FLAGS"
                   8448:     fi
                   8449:     MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD $MH_BUNDLE_FLAGS"
                   8450: 
                   8451:   PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
                   8452: 
                   8453: 
1.1.1.2 ! misho    8454:   if test "bundle" = "program"; then
        !          8455:     PHP_BINARIES="$PHP_BINARIES apache2handler"
        !          8456:   elif test "$PHP_SAPI" != "none"; then
        !          8457:     as_fn_error $? "
1.1       misho    8458: +--------------------------------------------------------------------+
                   8459: |                        *** ATTENTION ***                           |
                   8460: |                                                                    |
                   8461: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    8462: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    8463: +--------------------------------------------------------------------+
                   8464: " "$LINENO" 5
1.1.1.2 ! misho    8465:   else
        !          8466:     PHP_SAPI=apache2handler
1.1       misho    8467:   fi
                   8468: 
                   8469: 
                   8470: 
1.1.1.2 ! misho    8471:     BUILD_DIR="$BUILD_DIR sapi/apache2handler"
        !          8472: 
        !          8473: 
        !          8474: 
        !          8475:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler"
        !          8476: 
        !          8477: 
        !          8478:     case "bundle" in
        !          8479:     static)
        !          8480: 
1.1       misho    8481:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8482:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   8483:   php_c_post=
                   8484:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8485:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   8486:   php_cxx_post=
                   8487:   php_lo=lo
                   8488: 
                   8489:   case $with_pic in
                   8490:     yes) pic_setting='-prefer-pic';;
                   8491:     no)  pic_setting='-prefer-non-pic';;
                   8492:   esac
                   8493: 
                   8494:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8495:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   8496:   shared_c_post=
                   8497:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8498:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   8499:   shared_cxx_post=
                   8500:   shared_lo=lo
                   8501: 
                   8502:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    8503:   php_sapi_module=static
1.1       misho    8504: ;;
1.1.1.2 ! misho    8505:     shared)
1.1       misho    8506: 
                   8507:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8508:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   8509:   php_c_post=
                   8510:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8511:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   8512:   php_cxx_post=
                   8513:   php_lo=lo
                   8514: 
                   8515:   case $with_pic in
                   8516:     yes) pic_setting='-prefer-pic';;
                   8517:     no)  pic_setting='-prefer-non-pic';;
                   8518:   esac
                   8519: 
                   8520:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8521:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   8522:   shared_c_post=
                   8523:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8524:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   8525:   shared_cxx_post=
                   8526:   shared_lo=lo
                   8527: 
                   8528:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    8529:   php_sapi_module=shared
1.1       misho    8530: 
                   8531:   php_c_pre=$shared_c_pre
                   8532:   php_c_meta=$shared_c_meta
                   8533:   php_c_post=$shared_c_post
                   8534:   php_cxx_pre=$shared_cxx_pre
                   8535:   php_cxx_meta=$shared_cxx_meta
                   8536:   php_cxx_post=$shared_cxx_post
                   8537:   php_lo=$shared_lo
                   8538: ;;
1.1.1.2 ! misho    8539:     bundle)
1.1       misho    8540: 
                   8541:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8542:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   8543:   php_c_post=
                   8544:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8545:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   8546:   php_cxx_post=
                   8547:   php_lo=lo
                   8548: 
                   8549:   case $with_pic in
                   8550:     yes) pic_setting='-prefer-pic';;
                   8551:     no)  pic_setting='-prefer-non-pic';;
                   8552:   esac
                   8553: 
                   8554:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8555:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   8556:   shared_c_post=
                   8557:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8558:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   8559:   shared_cxx_post=
                   8560:   shared_lo=lo
                   8561: 
                   8562:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    8563:   php_sapi_module=static
1.1       misho    8564: ;;
1.1.1.2 ! misho    8565:     esac
        !          8566:     install_sapi="install-sapi"
1.1       misho    8567: 
                   8568: 
                   8569:   case sapi/apache2handler in
                   8570:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   8571:   /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   8572:   *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   8573:   esac
                   8574: 
                   8575: 
                   8576: 
                   8577:   b_c_pre=$php_c_pre
                   8578:   b_cxx_pre=$php_cxx_pre
                   8579:   b_c_meta=$php_c_meta
                   8580:   b_cxx_meta=$php_cxx_meta
                   8581:   b_c_post=$php_c_post
                   8582:   b_cxx_post=$php_cxx_post
                   8583:   b_lo=$php_lo
                   8584: 
                   8585: 
                   8586:   old_IFS=$IFS
                   8587:   for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
                   8588: 
                   8589:       IFS=.
                   8590:       set $ac_src
                   8591:       ac_obj=$1
                   8592:       IFS=$old_IFS
                   8593: 
                   8594:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   8595: 
                   8596:       case $ac_src in
                   8597:         *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   8598:         *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   8599:         *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   8600:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   8601:       esac
                   8602: 
                   8603:     cat >>Makefile.objects<<EOF
                   8604: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   8605:        $ac_comp
                   8606: EOF
                   8607:   done
                   8608: 
                   8609: 
                   8610: 
1.1.1.2 ! misho    8611: 
1.1       misho    8612:     SAPI_SHARED=libs/libphp5.so
                   8613:     INSTALL_IT="$INSTALL_IT $SAPI_SHARED"
                   8614:     ;;
                   8615:   *beos*)
                   8616:     if test -f _APP_; then `rm _APP_`; fi
                   8617:     `ln -s $APXS_BINDIR/httpd _APP_`
                   8618:     EXTRA_LIBS="$EXTRA_LIBS _APP_"
                   8619: 
1.1.1.2 ! misho    8620:   if test "shared" = "program"; then
        !          8621:     PHP_BINARIES="$PHP_BINARIES apache2handler"
        !          8622:   elif test "$PHP_SAPI" != "none"; then
        !          8623:     as_fn_error $? "
1.1       misho    8624: +--------------------------------------------------------------------+
                   8625: |                        *** ATTENTION ***                           |
                   8626: |                                                                    |
                   8627: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    8628: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    8629: +--------------------------------------------------------------------+
                   8630: " "$LINENO" 5
1.1.1.2 ! misho    8631:   else
        !          8632:     PHP_SAPI=apache2handler
1.1       misho    8633:   fi
                   8634: 
                   8635: 
                   8636: 
1.1.1.2 ! misho    8637:     BUILD_DIR="$BUILD_DIR sapi/apache2handler"
        !          8638: 
        !          8639: 
        !          8640: 
        !          8641:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler"
        !          8642: 
        !          8643: 
        !          8644:     case "shared" in
        !          8645:     static)
        !          8646: 
1.1       misho    8647:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8648:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   8649:   php_c_post=
                   8650:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8651:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   8652:   php_cxx_post=
                   8653:   php_lo=lo
                   8654: 
                   8655:   case $with_pic in
                   8656:     yes) pic_setting='-prefer-pic';;
                   8657:     no)  pic_setting='-prefer-non-pic';;
                   8658:   esac
                   8659: 
                   8660:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8661:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   8662:   shared_c_post=
                   8663:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8664:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   8665:   shared_cxx_post=
                   8666:   shared_lo=lo
                   8667: 
                   8668:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    8669:   php_sapi_module=static
1.1       misho    8670: ;;
1.1.1.2 ! misho    8671:     shared)
1.1       misho    8672: 
                   8673:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8674:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   8675:   php_c_post=
                   8676:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8677:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   8678:   php_cxx_post=
                   8679:   php_lo=lo
                   8680: 
                   8681:   case $with_pic in
                   8682:     yes) pic_setting='-prefer-pic';;
                   8683:     no)  pic_setting='-prefer-non-pic';;
                   8684:   esac
                   8685: 
                   8686:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8687:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   8688:   shared_c_post=
                   8689:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8690:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   8691:   shared_cxx_post=
                   8692:   shared_lo=lo
                   8693: 
                   8694:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    8695:   php_sapi_module=shared
1.1       misho    8696: 
                   8697:   php_c_pre=$shared_c_pre
                   8698:   php_c_meta=$shared_c_meta
                   8699:   php_c_post=$shared_c_post
                   8700:   php_cxx_pre=$shared_cxx_pre
                   8701:   php_cxx_meta=$shared_cxx_meta
                   8702:   php_cxx_post=$shared_cxx_post
                   8703:   php_lo=$shared_lo
                   8704: ;;
1.1.1.2 ! misho    8705:     bundle)
1.1       misho    8706: 
                   8707:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8708:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   8709:   php_c_post=
                   8710:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8711:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   8712:   php_cxx_post=
                   8713:   php_lo=lo
                   8714: 
                   8715:   case $with_pic in
                   8716:     yes) pic_setting='-prefer-pic';;
                   8717:     no)  pic_setting='-prefer-non-pic';;
                   8718:   esac
                   8719: 
                   8720:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8721:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   8722:   shared_c_post=
                   8723:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8724:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   8725:   shared_cxx_post=
                   8726:   shared_lo=lo
                   8727: 
                   8728:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    8729:   php_sapi_module=static
1.1       misho    8730: ;;
1.1.1.2 ! misho    8731:     esac
        !          8732:     install_sapi="install-sapi"
1.1       misho    8733: 
                   8734: 
                   8735:   case sapi/apache2handler in
                   8736:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   8737:   /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   8738:   *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   8739:   esac
                   8740: 
                   8741: 
                   8742: 
                   8743:   b_c_pre=$php_c_pre
                   8744:   b_cxx_pre=$php_cxx_pre
                   8745:   b_c_meta=$php_c_meta
                   8746:   b_cxx_meta=$php_cxx_meta
                   8747:   b_c_post=$php_c_post
                   8748:   b_cxx_post=$php_cxx_post
                   8749:   b_lo=$php_lo
                   8750: 
                   8751: 
                   8752:   old_IFS=$IFS
                   8753:   for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
                   8754: 
                   8755:       IFS=.
                   8756:       set $ac_src
                   8757:       ac_obj=$1
                   8758:       IFS=$old_IFS
                   8759: 
                   8760:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   8761: 
                   8762:       case $ac_src in
                   8763:         *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   8764:         *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   8765:         *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   8766:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   8767:       esac
                   8768: 
                   8769:     cat >>Makefile.objects<<EOF
                   8770: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   8771:        $ac_comp
                   8772: EOF
                   8773:   done
                   8774: 
                   8775: 
                   8776: 
1.1.1.2 ! misho    8777: 
1.1       misho    8778:     INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
                   8779:     ;;
                   8780:   *)
                   8781: 
1.1.1.2 ! misho    8782:   if test "shared" = "program"; then
        !          8783:     PHP_BINARIES="$PHP_BINARIES apache2handler"
        !          8784:   elif test "$PHP_SAPI" != "none"; then
        !          8785:     as_fn_error $? "
1.1       misho    8786: +--------------------------------------------------------------------+
                   8787: |                        *** ATTENTION ***                           |
                   8788: |                                                                    |
                   8789: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    8790: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    8791: +--------------------------------------------------------------------+
                   8792: " "$LINENO" 5
1.1.1.2 ! misho    8793:   else
        !          8794:     PHP_SAPI=apache2handler
1.1       misho    8795:   fi
                   8796: 
                   8797: 
                   8798: 
1.1.1.2 ! misho    8799:     BUILD_DIR="$BUILD_DIR sapi/apache2handler"
        !          8800: 
        !          8801: 
        !          8802: 
        !          8803:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler"
        !          8804: 
        !          8805: 
        !          8806:     case "shared" in
        !          8807:     static)
        !          8808: 
1.1       misho    8809:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8810:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   8811:   php_c_post=
                   8812:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8813:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   8814:   php_cxx_post=
                   8815:   php_lo=lo
                   8816: 
                   8817:   case $with_pic in
                   8818:     yes) pic_setting='-prefer-pic';;
                   8819:     no)  pic_setting='-prefer-non-pic';;
                   8820:   esac
                   8821: 
                   8822:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8823:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   8824:   shared_c_post=
                   8825:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8826:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   8827:   shared_cxx_post=
                   8828:   shared_lo=lo
                   8829: 
                   8830:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    8831:   php_sapi_module=static
1.1       misho    8832: ;;
1.1.1.2 ! misho    8833:     shared)
1.1       misho    8834: 
                   8835:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8836:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   8837:   php_c_post=
                   8838:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8839:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   8840:   php_cxx_post=
                   8841:   php_lo=lo
                   8842: 
                   8843:   case $with_pic in
                   8844:     yes) pic_setting='-prefer-pic';;
                   8845:     no)  pic_setting='-prefer-non-pic';;
                   8846:   esac
                   8847: 
                   8848:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8849:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   8850:   shared_c_post=
                   8851:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8852:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   8853:   shared_cxx_post=
                   8854:   shared_lo=lo
                   8855: 
                   8856:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    8857:   php_sapi_module=shared
1.1       misho    8858: 
                   8859:   php_c_pre=$shared_c_pre
                   8860:   php_c_meta=$shared_c_meta
                   8861:   php_c_post=$shared_c_post
                   8862:   php_cxx_pre=$shared_cxx_pre
                   8863:   php_cxx_meta=$shared_cxx_meta
                   8864:   php_cxx_post=$shared_cxx_post
                   8865:   php_lo=$shared_lo
                   8866: ;;
1.1.1.2 ! misho    8867:     bundle)
1.1       misho    8868: 
                   8869:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8870:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   8871:   php_c_post=
                   8872:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8873:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   8874:   php_cxx_post=
                   8875:   php_lo=lo
                   8876: 
                   8877:   case $with_pic in
                   8878:     yes) pic_setting='-prefer-pic';;
                   8879:     no)  pic_setting='-prefer-non-pic';;
                   8880:   esac
                   8881: 
                   8882:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   8883:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   8884:   shared_c_post=
                   8885:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   8886:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   8887:   shared_cxx_post=
                   8888:   shared_lo=lo
                   8889: 
                   8890:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    8891:   php_sapi_module=static
1.1       misho    8892: ;;
1.1.1.2 ! misho    8893:     esac
        !          8894:     install_sapi="install-sapi"
1.1       misho    8895: 
                   8896: 
                   8897:   case sapi/apache2handler in
                   8898:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   8899:   /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   8900:   *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   8901:   esac
                   8902: 
                   8903: 
                   8904: 
                   8905:   b_c_pre=$php_c_pre
                   8906:   b_cxx_pre=$php_cxx_pre
                   8907:   b_c_meta=$php_c_meta
                   8908:   b_cxx_meta=$php_cxx_meta
                   8909:   b_c_post=$php_c_post
                   8910:   b_cxx_post=$php_cxx_post
                   8911:   b_lo=$php_lo
                   8912: 
                   8913: 
                   8914:   old_IFS=$IFS
                   8915:   for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
                   8916: 
                   8917:       IFS=.
                   8918:       set $ac_src
                   8919:       ac_obj=$1
                   8920:       IFS=$old_IFS
                   8921: 
                   8922:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   8923: 
                   8924:       case $ac_src in
                   8925:         *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   8926:         *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   8927:         *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   8928:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   8929:       esac
                   8930: 
                   8931:     cat >>Makefile.objects<<EOF
                   8932: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   8933:        $ac_comp
                   8934: EOF
                   8935:   done
                   8936: 
                   8937: 
                   8938: 
1.1.1.2 ! misho    8939: 
1.1       misho    8940:     INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
                   8941:     ;;
                   8942:   esac
                   8943: 
1.1.1.2 ! misho    8944:   if test "$APACHE_VERSION" -lt 2004001; then
        !          8945:     APXS_MPM=`$APXS -q MPM_NAME`
        !          8946:     if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
        !          8947: 
        !          8948:   enable_maintainer_zts=yes
        !          8949:   if test "$pthreads_working" != "yes"; then
        !          8950:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
        !          8951:   fi
        !          8952: 
        !          8953:     fi
        !          8954:   else
        !          8955:     APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'`
        !          8956:     if test -n "$APACHE_THREADED_MPM"; then
1.1       misho    8957: 
                   8958:   enable_maintainer_zts=yes
                   8959:   if test "$pthreads_working" != "yes"; then
                   8960:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
                   8961:   fi
                   8962: 
1.1.1.2 ! misho    8963:     fi
1.1       misho    8964:   fi
                   8965:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   8966: $as_echo "yes" >&6; }
                   8967: 
                   8968:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
                   8969: 
                   8970: else
                   8971:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8972: $as_echo "no" >&6; }
                   8973: fi
                   8974: 
                   8975: 
                   8976: 
                   8977: 
                   8978: 
                   8979: php_with_apache_hooks=no
                   8980: 
                   8981: 
                   8982: 
                   8983: # Check whether --with-apache-hooks was given.
                   8984: if test "${with_apache_hooks+set}" = set; then :
                   8985:   withval=$with_apache_hooks; PHP_APACHE_HOOKS=$withval
                   8986: else
                   8987: 
                   8988:   PHP_APACHE_HOOKS=no
                   8989: 
                   8990: 
                   8991: fi
                   8992: 
                   8993: 
                   8994: ext_output=$PHP_APACHE_HOOKS
                   8995: 
                   8996: 
                   8997: 
                   8998: 
                   8999: 
                   9000: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x (hooks) module support via DSO through APXS" >&5
                   9001: $as_echo_n "checking for Apache 1.x (hooks) module support via DSO through APXS... " >&6; }
                   9002: 
                   9003: if test "$PHP_APACHE_HOOKS" != "no"; then
                   9004:   if test "$PHP_APACHE_HOOKS" = "yes"; then
                   9005:     APXS=apxs
                   9006:     $APXS -q CFLAGS >/dev/null 2>&1
                   9007:     if test "$?" != "0" && test -x /usr/sbin/apxs; then #SUSE 6.x
                   9008:       APXS=/usr/sbin/apxs
                   9009:     fi
                   9010:   else
                   9011: 
                   9012:   if test -z "$PHP_APACHE_HOOKS" || echo "$PHP_APACHE_HOOKS" | grep '^/' >/dev/null ; then
                   9013:     APXS=$PHP_APACHE_HOOKS
                   9014:   else
                   9015: 
                   9016:     ep_dir="`echo $PHP_APACHE_HOOKS|$SED 's%/*[^/][^/]*/*$%%'`"
                   9017: 
                   9018:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   9019:     APXS="$ep_realdir/`basename \"$PHP_APACHE_HOOKS\"`"
                   9020:   fi
                   9021: 
                   9022:   fi
                   9023: 
                   9024:   $APXS -q CFLAGS >/dev/null 2>&1
                   9025:   if test "$?" != "0"; then
                   9026:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   9027: $as_echo "" >&6; }
                   9028:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   9029: $as_echo "" >&6; }
                   9030:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I was not able to successfully run APXS.  Possible reasons:" >&5
                   9031: $as_echo "Sorry, I was not able to successfully run APXS.  Possible reasons:" >&6; }
                   9032:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   9033: $as_echo "" >&6; }
                   9034:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1.  Perl is not installed;" >&5
                   9035: $as_echo "1.  Perl is not installed;" >&6; }
                   9036:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.  Apache was not compiled with DSO support (--enable-module=so);" >&5
                   9037: $as_echo "2.  Apache was not compiled with DSO support (--enable-module=so);" >&6; }
                   9038:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs" >&5
                   9039: $as_echo "3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs" >&6; }
                   9040:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows" >&5
                   9041: $as_echo "The output of $APXS follows" >&6; }
                   9042:     $APXS -q CFLAGS
                   9043:     as_fn_error $? "Aborting" "$LINENO" 5
                   9044:   fi
                   9045: 
                   9046:   APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@"
                   9047:   APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
                   9048:   APXS_CFLAGS=`$APXS -q CFLAGS`
                   9049:   APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
                   9050:   APACHE_INCLUDE=-I$APXS_INCLUDEDIR
                   9051: 
                   9052:   # Test that we're trying to configure with apache 1.x
                   9053: 
                   9054:   ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
                   9055:   ac_IFS=$IFS
                   9056: IFS="- /.
                   9057: "
                   9058:   set $ac_output
                   9059:   IFS=$ac_IFS
                   9060: 
                   9061:   APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
                   9062: 
                   9063:   if test "$APACHE_VERSION" -ge 2000000; then
                   9064:     as_fn_error $? "You have enabled Apache 1.3 support while your server is Apache 2.  Please use the appropiate switch --with-apxs2" "$LINENO" 5
                   9065:   fi
                   9066: 
                   9067:   for flag in $APXS_CFLAGS; do
                   9068:     case $flag in
                   9069:     -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
                   9070:     esac
                   9071:   done
                   9072: 
                   9073:   case $host_alias in
                   9074:   *aix*)
                   9075:     APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
                   9076:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
                   9077:     PHP_AIX_LDFLAGS="-Wl,-brtl"
                   9078:     build_type=shared
                   9079:     ;;
                   9080:   *darwin*)
                   9081:     MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD"
                   9082: 
                   9083:   PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
                   9084: 
                   9085:     SAPI_SHARED=libs/libphp5.so
                   9086:     build_type=bundle
                   9087:     ;;
                   9088:   *)
                   9089:     build_type=shared
                   9090:     ;;
                   9091:   esac
                   9092: 
                   9093: 
1.1.1.2 ! misho    9094:   if test "$build_type" = "program"; then
        !          9095:     PHP_BINARIES="$PHP_BINARIES apache_hooks"
        !          9096:   elif test "$PHP_SAPI" != "none"; then
        !          9097:     as_fn_error $? "
1.1       misho    9098: +--------------------------------------------------------------------+
                   9099: |                        *** ATTENTION ***                           |
                   9100: |                                                                    |
                   9101: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    9102: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    9103: +--------------------------------------------------------------------+
                   9104: " "$LINENO" 5
1.1.1.2 ! misho    9105:   else
        !          9106:     PHP_SAPI=apache_hooks
1.1       misho    9107:   fi
                   9108: 
                   9109: 
                   9110: 
1.1.1.2 ! misho    9111:     BUILD_DIR="$BUILD_DIR sapi/apache_hooks"
        !          9112: 
        !          9113: 
        !          9114: 
        !          9115:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks"
        !          9116: 
        !          9117: 
        !          9118:     case "$build_type" in
        !          9119:     static)
        !          9120: 
1.1       misho    9121:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9122:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   9123:   php_c_post=
                   9124:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9125:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   9126:   php_cxx_post=
                   9127:   php_lo=lo
                   9128: 
                   9129:   case $with_pic in
                   9130:     yes) pic_setting='-prefer-pic';;
                   9131:     no)  pic_setting='-prefer-non-pic';;
                   9132:   esac
                   9133: 
                   9134:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9135:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   9136:   shared_c_post=
                   9137:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9138:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   9139:   shared_cxx_post=
                   9140:   shared_lo=lo
                   9141: 
                   9142:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    9143:   php_sapi_module=static
1.1       misho    9144: ;;
1.1.1.2 ! misho    9145:     shared)
1.1       misho    9146: 
                   9147:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9148:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   9149:   php_c_post=
                   9150:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9151:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   9152:   php_cxx_post=
                   9153:   php_lo=lo
                   9154: 
                   9155:   case $with_pic in
                   9156:     yes) pic_setting='-prefer-pic';;
                   9157:     no)  pic_setting='-prefer-non-pic';;
                   9158:   esac
                   9159: 
                   9160:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9161:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   9162:   shared_c_post=
                   9163:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9164:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   9165:   shared_cxx_post=
                   9166:   shared_lo=lo
                   9167: 
                   9168:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    9169:   php_sapi_module=shared
1.1       misho    9170: 
                   9171:   php_c_pre=$shared_c_pre
                   9172:   php_c_meta=$shared_c_meta
                   9173:   php_c_post=$shared_c_post
                   9174:   php_cxx_pre=$shared_cxx_pre
                   9175:   php_cxx_meta=$shared_cxx_meta
                   9176:   php_cxx_post=$shared_cxx_post
                   9177:   php_lo=$shared_lo
                   9178: ;;
1.1.1.2 ! misho    9179:     bundle)
1.1       misho    9180: 
                   9181:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9182:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   9183:   php_c_post=
                   9184:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9185:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   9186:   php_cxx_post=
                   9187:   php_lo=lo
                   9188: 
                   9189:   case $with_pic in
                   9190:     yes) pic_setting='-prefer-pic';;
                   9191:     no)  pic_setting='-prefer-non-pic';;
                   9192:   esac
                   9193: 
                   9194:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9195:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   9196:   shared_c_post=
                   9197:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9198:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   9199:   shared_cxx_post=
                   9200:   shared_lo=lo
                   9201: 
                   9202:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    9203:   php_sapi_module=static
1.1       misho    9204: ;;
1.1.1.2 ! misho    9205:     esac
        !          9206:     install_sapi="install-sapi"
1.1       misho    9207: 
                   9208: 
                   9209:   case sapi/apache_hooks in
                   9210:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   9211:   /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   9212:   *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   9213:   esac
                   9214: 
                   9215: 
                   9216: 
                   9217:   b_c_pre=$php_c_pre
                   9218:   b_cxx_pre=$php_cxx_pre
                   9219:   b_c_meta=$php_c_meta
                   9220:   b_cxx_meta=$php_cxx_meta
                   9221:   b_c_post=$php_c_post
                   9222:   b_cxx_post=$php_cxx_post
                   9223:   b_lo=$php_lo
                   9224: 
                   9225: 
                   9226:   old_IFS=$IFS
                   9227:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
                   9228: 
                   9229:       IFS=.
                   9230:       set $ac_src
                   9231:       ac_obj=$1
                   9232:       IFS=$old_IFS
                   9233: 
                   9234:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   9235: 
                   9236:       case $ac_src in
                   9237:         *.c) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   9238:         *.s) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   9239:         *.S) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   9240:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   9241:       esac
                   9242: 
                   9243:     cat >>Makefile.objects<<EOF
                   9244: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   9245:        $ac_comp
                   9246: EOF
                   9247:   done
                   9248: 
                   9249: 
                   9250: 
                   9251: 
1.1.1.2 ! misho    9252: 
1.1       misho    9253:   # Test whether apxs support -S option
                   9254:   $APXS -q -S CFLAGS="$APXS_CFLAGS" CFLAGS >/dev/null 2>&1
                   9255: 
                   9256:   if test "$?" != "0"; then
                   9257:     APACHE_HOOKS_INSTALL="$APXS -i -a -n php5 $SAPI_SHARED" # Old apxs does not have -S option
                   9258:   else
                   9259:     APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
                   9260:     if test -z `$APXS -q SYSCONFDIR`; then
                   9261:       APACHE_HOOKS_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
                   9262:                        $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
                   9263:                              -i -n php5 $SAPI_SHARED"
                   9264:     else
                   9265:       APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
                   9266:       APACHE_HOOKS_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
                   9267:                       \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
                   9268:                        $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
                   9269:                              -S SYSCONFDIR='$APXS_SYSCONFDIR' \
                   9270:                              -i -a -n php5 $SAPI_SHARED"
                   9271:     fi
                   9272:   fi
                   9273: 
                   9274:   if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then
                   9275:     PHP_APXS_BROKEN=yes
                   9276:   fi
                   9277:   STRONGHOLD=
                   9278: 
                   9279: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
                   9280: 
                   9281: 
                   9282: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
                   9283: 
                   9284: 
                   9285: $as_echo "#define HAVE_APACHE_HOOKS 1" >>confdefs.h
                   9286: 
                   9287:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9288: $as_echo "yes" >&6; }
                   9289: else
                   9290:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9291: $as_echo "no" >&6; }
                   9292: fi
                   9293: 
                   9294: 
                   9295: php_with_apache_hooks_static=no
                   9296: 
                   9297: 
                   9298: 
                   9299: # Check whether --with-apache-hooks-static was given.
                   9300: if test "${with_apache_hooks_static+set}" = set; then :
                   9301:   withval=$with_apache_hooks_static; PHP_APACHE_HOOKS_STATIC=$withval
                   9302: else
                   9303: 
                   9304:   PHP_APACHE_HOOKS_STATIC=no
                   9305: 
                   9306: 
                   9307: fi
                   9308: 
                   9309: 
                   9310: ext_output=$PHP_APACHE_HOOKS_STATIC
                   9311: 
                   9312: 
                   9313: 
                   9314: 
                   9315: 
                   9316: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x (hooks) module support" >&5
                   9317: $as_echo_n "checking for Apache 1.x (hooks) module support... " >&6; }
                   9318: 
                   9319: if test "$PHP_SAPI" != "apache" && test "$PHP_SAPI" != "apache_hooks" && test "$PHP_APACHE_HOOKS_STATIC" != "no"; then
                   9320: 
                   9321:   if test "$PHP_APACHE_HOOKS_STATIC" = "yes"; then
                   9322:     # Apache's default directory
                   9323:     PHP_APACHE_HOOKS_STATIC=/usr/local/apache
                   9324:   fi
                   9325: 
                   9326:   APACHE_HOOKS_INSTALL_FILES="\$(srcdir)/sapi/apache_hooks/mod_php5.* sapi/apache_hooks/libphp5.module"
                   9327: 
                   9328: 
                   9329: $as_echo "#define HAVE_APACHE 1" >>confdefs.h
                   9330: 
                   9331:   APACHE_HOOKS_MODULE=yes
                   9332: 
                   9333:   if test -z "$PHP_APACHE_HOOKS_STATIC" || echo "$PHP_APACHE_HOOKS_STATIC" | grep '^/' >/dev/null ; then
                   9334:     PHP_APACHE_HOOKS_STATIC=$PHP_APACHE_HOOKS_STATIC
                   9335:   else
                   9336: 
                   9337:     ep_dir="`echo $PHP_APACHE_HOOKS_STATIC|$SED 's%/*[^/][^/]*/*$%%'`"
                   9338: 
                   9339:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   9340:     PHP_APACHE_HOOKS_STATIC="$ep_realdir/`basename \"$PHP_APACHE_HOOKS_STATIC\"`"
                   9341:   fi
                   9342: 
                   9343:   # For Apache 1.2.x
                   9344:   if test -f $PHP_APACHE_HOOKS_STATIC/src/httpd.h; then
                   9345:     APACHE_INCLUDE=-I$PHP_APACHE_HOOKS_STATIC/src
                   9346:     APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src
                   9347: 
1.1.1.2 ! misho    9348:   if test "static" = "program"; then
        !          9349:     PHP_BINARIES="$PHP_BINARIES apache_hooks"
        !          9350:   elif test "$PHP_SAPI" != "none"; then
        !          9351:     as_fn_error $? "
1.1       misho    9352: +--------------------------------------------------------------------+
                   9353: |                        *** ATTENTION ***                           |
                   9354: |                                                                    |
                   9355: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    9356: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    9357: +--------------------------------------------------------------------+
                   9358: " "$LINENO" 5
1.1.1.2 ! misho    9359:   else
        !          9360:     PHP_SAPI=apache_hooks
1.1       misho    9361:   fi
                   9362: 
                   9363: 
                   9364: 
1.1.1.2 ! misho    9365:     BUILD_DIR="$BUILD_DIR sapi/apache_hooks"
        !          9366: 
        !          9367: 
        !          9368: 
        !          9369:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks"
        !          9370: 
        !          9371: 
        !          9372:     case "static" in
        !          9373:     static)
        !          9374: 
1.1       misho    9375:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9376:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   9377:   php_c_post=
                   9378:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9379:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   9380:   php_cxx_post=
                   9381:   php_lo=lo
                   9382: 
                   9383:   case $with_pic in
                   9384:     yes) pic_setting='-prefer-pic';;
                   9385:     no)  pic_setting='-prefer-non-pic';;
                   9386:   esac
                   9387: 
                   9388:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9389:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   9390:   shared_c_post=
                   9391:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9392:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   9393:   shared_cxx_post=
                   9394:   shared_lo=lo
                   9395: 
                   9396:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    9397:   php_sapi_module=static
1.1       misho    9398: ;;
1.1.1.2 ! misho    9399:     shared)
1.1       misho    9400: 
                   9401:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9402:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   9403:   php_c_post=
                   9404:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9405:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   9406:   php_cxx_post=
                   9407:   php_lo=lo
                   9408: 
                   9409:   case $with_pic in
                   9410:     yes) pic_setting='-prefer-pic';;
                   9411:     no)  pic_setting='-prefer-non-pic';;
                   9412:   esac
                   9413: 
                   9414:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9415:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   9416:   shared_c_post=
                   9417:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9418:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   9419:   shared_cxx_post=
                   9420:   shared_lo=lo
                   9421: 
                   9422:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    9423:   php_sapi_module=shared
1.1       misho    9424: 
                   9425:   php_c_pre=$shared_c_pre
                   9426:   php_c_meta=$shared_c_meta
                   9427:   php_c_post=$shared_c_post
                   9428:   php_cxx_pre=$shared_cxx_pre
                   9429:   php_cxx_meta=$shared_cxx_meta
                   9430:   php_cxx_post=$shared_cxx_post
                   9431:   php_lo=$shared_lo
                   9432: ;;
1.1.1.2 ! misho    9433:     bundle)
1.1       misho    9434: 
                   9435:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9436:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   9437:   php_c_post=
                   9438:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9439:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   9440:   php_cxx_post=
                   9441:   php_lo=lo
                   9442: 
                   9443:   case $with_pic in
                   9444:     yes) pic_setting='-prefer-pic';;
                   9445:     no)  pic_setting='-prefer-non-pic';;
                   9446:   esac
                   9447: 
                   9448:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9449:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   9450:   shared_c_post=
                   9451:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9452:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   9453:   shared_cxx_post=
                   9454:   shared_lo=lo
                   9455: 
                   9456:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    9457:   php_sapi_module=static
1.1       misho    9458: ;;
1.1.1.2 ! misho    9459:     esac
        !          9460:     install_sapi="install-sapi"
1.1       misho    9461: 
1.1.1.2 ! misho    9462: 
        !          9463:   case sapi/apache_hooks in
        !          9464:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          9465:   /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          9466:   *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    9467:   esac
                   9468: 
                   9469: 
                   9470: 
                   9471:   b_c_pre=$php_c_pre
                   9472:   b_cxx_pre=$php_cxx_pre
                   9473:   b_c_meta=$php_c_meta
                   9474:   b_cxx_meta=$php_cxx_meta
                   9475:   b_c_post=$php_c_post
                   9476:   b_cxx_post=$php_cxx_post
                   9477:   b_lo=$php_lo
                   9478: 
                   9479: 
                   9480:   old_IFS=$IFS
                   9481:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
                   9482: 
                   9483:       IFS=.
                   9484:       set $ac_src
                   9485:       ac_obj=$1
                   9486:       IFS=$old_IFS
                   9487: 
                   9488:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   9489: 
                   9490:       case $ac_src in
                   9491:         *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   9492:         *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   9493:         *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   9494:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   9495:       esac
                   9496: 
                   9497:     cat >>Makefile.objects<<EOF
                   9498: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   9499:        $ac_comp
                   9500: EOF
                   9501:   done
                   9502: 
                   9503: 
                   9504: 
1.1.1.2 ! misho    9505: 
1.1       misho    9506:     APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET"
                   9507:     PHP_LIBS="-L. -lphp3"
                   9508:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.2.x" >&5
                   9509: $as_echo "yes - Apache 1.2.x" >&6; }
                   9510:     STRONGHOLD=
                   9511:     if test -f $PHP_APACHE_HOOKS_STATIC/src/ap_config.h; then
                   9512: 
                   9513: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
                   9514: 
                   9515:     fi
                   9516:   # For Apache 2.0.x
                   9517:   elif test -f $PHP_APACHE_HOOKS_STATIC/include/httpd.h && test -f $PHP_APACHE_HOOKS_STATIC/srclib/apr/include/apr_general.h ; then
                   9518:     as_fn_error $? "Use --with-apxs2 with Apache 2.x!" "$LINENO" 5
                   9519:   # For Apache 1.3.x
                   9520:   elif test -f $PHP_APACHE_HOOKS_STATIC/src/main/httpd.h; then
                   9521:     APACHE_HAS_REGEX=1
                   9522:     APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/src/main -I$PHP_APACHE_HOOKS_STATIC/src/os/unix -I$PHP_APACHE_HOOKS_STATIC/src/ap"
                   9523:     APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src/modules/php5
                   9524:     if test ! -d $APACHE_TARGET; then
                   9525:       mkdir $APACHE_TARGET
                   9526:     fi
                   9527: 
1.1.1.2 ! misho    9528:   if test "static" = "program"; then
        !          9529:     PHP_BINARIES="$PHP_BINARIES apache_hooks"
        !          9530:   elif test "$PHP_SAPI" != "none"; then
        !          9531:     as_fn_error $? "
1.1       misho    9532: +--------------------------------------------------------------------+
                   9533: |                        *** ATTENTION ***                           |
                   9534: |                                                                    |
                   9535: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    9536: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    9537: +--------------------------------------------------------------------+
                   9538: " "$LINENO" 5
1.1.1.2 ! misho    9539:   else
        !          9540:     PHP_SAPI=apache_hooks
1.1       misho    9541:   fi
                   9542: 
                   9543: 
                   9544: 
1.1.1.2 ! misho    9545:     BUILD_DIR="$BUILD_DIR sapi/apache_hooks"
        !          9546: 
        !          9547: 
        !          9548: 
        !          9549:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks"
        !          9550: 
        !          9551: 
        !          9552:     case "static" in
        !          9553:     static)
        !          9554: 
1.1       misho    9555:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9556:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   9557:   php_c_post=
                   9558:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9559:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   9560:   php_cxx_post=
                   9561:   php_lo=lo
                   9562: 
                   9563:   case $with_pic in
                   9564:     yes) pic_setting='-prefer-pic';;
                   9565:     no)  pic_setting='-prefer-non-pic';;
                   9566:   esac
                   9567: 
                   9568:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9569:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   9570:   shared_c_post=
                   9571:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9572:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   9573:   shared_cxx_post=
                   9574:   shared_lo=lo
                   9575: 
                   9576:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    9577:   php_sapi_module=static
1.1       misho    9578: ;;
1.1.1.2 ! misho    9579:     shared)
1.1       misho    9580: 
                   9581:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9582:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   9583:   php_c_post=
                   9584:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9585:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   9586:   php_cxx_post=
                   9587:   php_lo=lo
                   9588: 
                   9589:   case $with_pic in
                   9590:     yes) pic_setting='-prefer-pic';;
                   9591:     no)  pic_setting='-prefer-non-pic';;
                   9592:   esac
                   9593: 
                   9594:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9595:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   9596:   shared_c_post=
                   9597:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9598:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   9599:   shared_cxx_post=
                   9600:   shared_lo=lo
                   9601: 
                   9602:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    9603:   php_sapi_module=shared
1.1       misho    9604: 
                   9605:   php_c_pre=$shared_c_pre
                   9606:   php_c_meta=$shared_c_meta
                   9607:   php_c_post=$shared_c_post
                   9608:   php_cxx_pre=$shared_cxx_pre
                   9609:   php_cxx_meta=$shared_cxx_meta
                   9610:   php_cxx_post=$shared_cxx_post
                   9611:   php_lo=$shared_lo
                   9612: ;;
1.1.1.2 ! misho    9613:     bundle)
1.1       misho    9614: 
                   9615:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9616:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   9617:   php_c_post=
                   9618:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9619:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   9620:   php_cxx_post=
                   9621:   php_lo=lo
                   9622: 
                   9623:   case $with_pic in
                   9624:     yes) pic_setting='-prefer-pic';;
                   9625:     no)  pic_setting='-prefer-non-pic';;
                   9626:   esac
                   9627: 
                   9628:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9629:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   9630:   shared_c_post=
                   9631:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9632:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   9633:   shared_cxx_post=
                   9634:   shared_lo=lo
                   9635: 
                   9636:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    9637:   php_sapi_module=static
1.1       misho    9638: ;;
1.1.1.2 ! misho    9639:     esac
        !          9640:     install_sapi="install-sapi"
1.1       misho    9641: 
                   9642: 
                   9643:   case sapi/apache_hooks in
                   9644:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   9645:   /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   9646:   *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   9647:   esac
                   9648: 
                   9649: 
                   9650: 
                   9651:   b_c_pre=$php_c_pre
                   9652:   b_cxx_pre=$php_cxx_pre
                   9653:   b_c_meta=$php_c_meta
                   9654:   b_cxx_meta=$php_cxx_meta
                   9655:   b_c_post=$php_c_post
                   9656:   b_cxx_post=$php_cxx_post
                   9657:   b_lo=$php_lo
                   9658: 
                   9659: 
                   9660:   old_IFS=$IFS
                   9661:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
                   9662: 
                   9663:       IFS=.
                   9664:       set $ac_src
                   9665:       ac_obj=$1
                   9666:       IFS=$old_IFS
                   9667: 
                   9668:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   9669: 
                   9670:       case $ac_src in
                   9671:         *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   9672:         *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   9673:         *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   9674:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   9675:       esac
                   9676: 
                   9677:     cat >>Makefile.objects<<EOF
                   9678: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   9679:        $ac_comp
                   9680: EOF
                   9681:   done
                   9682: 
                   9683: 
                   9684: 
1.1.1.2 ! misho    9685: 
1.1       misho    9686:     APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET; cp $srcdir/sapi/apache_hooks/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/sapi/apache_hooks/apMakefile.libdir $APACHE_TARGET/Makefile.libdir"
                   9687:     PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
                   9688:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.3.x" >&5
                   9689: $as_echo "yes - Apache 1.3.x" >&6; }
                   9690:     STRONGHOLD=
                   9691:     if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config.h; then
                   9692: 
                   9693: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
                   9694: 
                   9695:     fi
                   9696:     if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_compat.h; then
                   9697: 
                   9698: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
                   9699: 
                   9700:       if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then
                   9701:         as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
                   9702:       fi
                   9703:     elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then
                   9704: 
                   9705: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
                   9706: 
                   9707:     fi
                   9708:   # Also for Apache 1.3.x
                   9709:   elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/httpd.h; then
                   9710:     APACHE_HAS_REGEX=1
                   9711:     APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/src/include -I$PHP_APACHE_HOOKS_STATIC/src/os/unix"
                   9712:     APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src/modules/php5
                   9713:     if test ! -d $APACHE_TARGET; then
                   9714:       mkdir $APACHE_TARGET
                   9715:     fi
                   9716: 
1.1.1.2 ! misho    9717:   if test "static" = "program"; then
        !          9718:     PHP_BINARIES="$PHP_BINARIES apache_hooks"
        !          9719:   elif test "$PHP_SAPI" != "none"; then
        !          9720:     as_fn_error $? "
1.1       misho    9721: +--------------------------------------------------------------------+
                   9722: |                        *** ATTENTION ***                           |
                   9723: |                                                                    |
                   9724: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    9725: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    9726: +--------------------------------------------------------------------+
                   9727: " "$LINENO" 5
1.1.1.2 ! misho    9728:   else
        !          9729:     PHP_SAPI=apache_hooks
1.1       misho    9730:   fi
                   9731: 
                   9732: 
                   9733: 
1.1.1.2 ! misho    9734:     BUILD_DIR="$BUILD_DIR sapi/apache_hooks"
        !          9735: 
        !          9736: 
        !          9737: 
        !          9738:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks"
        !          9739: 
        !          9740: 
        !          9741:     case "static" in
        !          9742:     static)
        !          9743: 
1.1       misho    9744:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9745:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   9746:   php_c_post=
                   9747:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9748:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   9749:   php_cxx_post=
                   9750:   php_lo=lo
                   9751: 
                   9752:   case $with_pic in
                   9753:     yes) pic_setting='-prefer-pic';;
                   9754:     no)  pic_setting='-prefer-non-pic';;
                   9755:   esac
                   9756: 
                   9757:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9758:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   9759:   shared_c_post=
                   9760:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9761:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   9762:   shared_cxx_post=
                   9763:   shared_lo=lo
                   9764: 
                   9765:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    9766:   php_sapi_module=static
1.1       misho    9767: ;;
1.1.1.2 ! misho    9768:     shared)
1.1       misho    9769: 
                   9770:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9771:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   9772:   php_c_post=
                   9773:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9774:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   9775:   php_cxx_post=
                   9776:   php_lo=lo
                   9777: 
                   9778:   case $with_pic in
                   9779:     yes) pic_setting='-prefer-pic';;
                   9780:     no)  pic_setting='-prefer-non-pic';;
                   9781:   esac
                   9782: 
                   9783:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9784:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   9785:   shared_c_post=
                   9786:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9787:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   9788:   shared_cxx_post=
                   9789:   shared_lo=lo
                   9790: 
                   9791:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    9792:   php_sapi_module=shared
1.1       misho    9793: 
                   9794:   php_c_pre=$shared_c_pre
                   9795:   php_c_meta=$shared_c_meta
                   9796:   php_c_post=$shared_c_post
                   9797:   php_cxx_pre=$shared_cxx_pre
                   9798:   php_cxx_meta=$shared_cxx_meta
                   9799:   php_cxx_post=$shared_cxx_post
                   9800:   php_lo=$shared_lo
                   9801: ;;
1.1.1.2 ! misho    9802:     bundle)
1.1       misho    9803: 
                   9804:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9805:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   9806:   php_c_post=
                   9807:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9808:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   9809:   php_cxx_post=
                   9810:   php_lo=lo
                   9811: 
                   9812:   case $with_pic in
                   9813:     yes) pic_setting='-prefer-pic';;
                   9814:     no)  pic_setting='-prefer-non-pic';;
                   9815:   esac
                   9816: 
                   9817:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9818:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   9819:   shared_c_post=
                   9820:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9821:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   9822:   shared_cxx_post=
                   9823:   shared_lo=lo
                   9824: 
                   9825:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    9826:   php_sapi_module=static
1.1       misho    9827: ;;
1.1.1.2 ! misho    9828:     esac
        !          9829:     install_sapi="install-sapi"
1.1       misho    9830: 
                   9831: 
                   9832:   case sapi/apache_hooks in
                   9833:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   9834:   /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   9835:   *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   9836:   esac
                   9837: 
                   9838: 
                   9839: 
                   9840:   b_c_pre=$php_c_pre
                   9841:   b_cxx_pre=$php_cxx_pre
                   9842:   b_c_meta=$php_c_meta
                   9843:   b_cxx_meta=$php_cxx_meta
                   9844:   b_c_post=$php_c_post
                   9845:   b_cxx_post=$php_cxx_post
                   9846:   b_lo=$php_lo
                   9847: 
                   9848: 
                   9849:   old_IFS=$IFS
                   9850:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
                   9851: 
                   9852:       IFS=.
                   9853:       set $ac_src
                   9854:       ac_obj=$1
                   9855:       IFS=$old_IFS
                   9856: 
                   9857:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   9858: 
                   9859:       case $ac_src in
                   9860:         *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   9861:         *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   9862:         *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   9863:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   9864:       esac
                   9865: 
                   9866:     cat >>Makefile.objects<<EOF
                   9867: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   9868:        $ac_comp
                   9869: EOF
                   9870:   done
                   9871: 
                   9872: 
                   9873: 
1.1.1.2 ! misho    9874: 
1.1       misho    9875:     PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
                   9876:     APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET; cp $srcdir/sapi/apache_hooks/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/sapi/apache_hooks/apMakefile.libdir $APACHE_TARGET/Makefile.libdir"
                   9877:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.3.x" >&5
                   9878: $as_echo "yes - Apache 1.3.x" >&6; }
                   9879:     STRONGHOLD=
                   9880:     if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config.h; then
                   9881: 
                   9882: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
                   9883: 
                   9884:     fi
                   9885:     if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_compat.h; then
                   9886: 
                   9887: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
                   9888: 
                   9889:       if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then
                   9890:         as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
                   9891:       fi
                   9892:     elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then
                   9893: 
                   9894: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
                   9895: 
                   9896:     fi
                   9897:   # For StrongHold 2.2
                   9898:   elif test -f $PHP_APACHE_HOOKS_STATIC/apache/httpd.h; then
                   9899:     APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/apache -I$PHP_APACHE_HOOKS_STATIC/ssl/include"
                   9900:     APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/apache
                   9901: 
1.1.1.2 ! misho    9902:   if test "static" = "program"; then
        !          9903:     PHP_BINARIES="$PHP_BINARIES apache_hooks"
        !          9904:   elif test "$PHP_SAPI" != "none"; then
        !          9905:     as_fn_error $? "
1.1       misho    9906: +--------------------------------------------------------------------+
                   9907: |                        *** ATTENTION ***                           |
                   9908: |                                                                    |
                   9909: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    9910: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    9911: +--------------------------------------------------------------------+
                   9912: " "$LINENO" 5
1.1.1.2 ! misho    9913:   else
        !          9914:     PHP_SAPI=apache_hooks
1.1       misho    9915:   fi
                   9916: 
                   9917: 
                   9918: 
1.1.1.2 ! misho    9919:     BUILD_DIR="$BUILD_DIR sapi/apache_hooks"
        !          9920: 
        !          9921: 
        !          9922: 
        !          9923:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks"
        !          9924: 
        !          9925: 
        !          9926:     case "static" in
        !          9927:     static)
        !          9928: 
1.1       misho    9929:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9930:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   9931:   php_c_post=
                   9932:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9933:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   9934:   php_cxx_post=
                   9935:   php_lo=lo
                   9936: 
                   9937:   case $with_pic in
                   9938:     yes) pic_setting='-prefer-pic';;
                   9939:     no)  pic_setting='-prefer-non-pic';;
                   9940:   esac
                   9941: 
                   9942:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9943:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   9944:   shared_c_post=
                   9945:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9946:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   9947:   shared_cxx_post=
                   9948:   shared_lo=lo
                   9949: 
                   9950:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    9951:   php_sapi_module=static
1.1       misho    9952: ;;
1.1.1.2 ! misho    9953:     shared)
1.1       misho    9954: 
                   9955:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9956:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   9957:   php_c_post=
                   9958:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9959:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   9960:   php_cxx_post=
                   9961:   php_lo=lo
                   9962: 
                   9963:   case $with_pic in
                   9964:     yes) pic_setting='-prefer-pic';;
                   9965:     no)  pic_setting='-prefer-non-pic';;
                   9966:   esac
                   9967: 
                   9968:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9969:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   9970:   shared_c_post=
                   9971:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9972:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   9973:   shared_cxx_post=
                   9974:   shared_lo=lo
                   9975: 
                   9976:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    9977:   php_sapi_module=shared
1.1       misho    9978: 
                   9979:   php_c_pre=$shared_c_pre
                   9980:   php_c_meta=$shared_c_meta
                   9981:   php_c_post=$shared_c_post
                   9982:   php_cxx_pre=$shared_cxx_pre
                   9983:   php_cxx_meta=$shared_cxx_meta
                   9984:   php_cxx_post=$shared_cxx_post
                   9985:   php_lo=$shared_lo
                   9986: ;;
1.1.1.2 ! misho    9987:     bundle)
1.1       misho    9988: 
                   9989:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   9990:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   9991:   php_c_post=
                   9992:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   9993:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   9994:   php_cxx_post=
                   9995:   php_lo=lo
                   9996: 
                   9997:   case $with_pic in
                   9998:     yes) pic_setting='-prefer-pic';;
                   9999:     no)  pic_setting='-prefer-non-pic';;
                   10000:   esac
                   10001: 
                   10002:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   10003:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   10004:   shared_c_post=
                   10005:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   10006:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   10007:   shared_cxx_post=
                   10008:   shared_lo=lo
                   10009: 
                   10010:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    10011:   php_sapi_module=static
1.1       misho    10012: ;;
1.1.1.2 ! misho    10013:     esac
        !          10014:     install_sapi="install-sapi"
1.1       misho    10015: 
                   10016: 
                   10017:   case sapi/apache_hooks in
                   10018:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   10019:   /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   10020:   *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   10021:   esac
                   10022: 
                   10023: 
                   10024: 
                   10025:   b_c_pre=$php_c_pre
                   10026:   b_cxx_pre=$php_cxx_pre
                   10027:   b_c_meta=$php_c_meta
                   10028:   b_cxx_meta=$php_cxx_meta
                   10029:   b_c_post=$php_c_post
                   10030:   b_cxx_post=$php_cxx_post
                   10031:   b_lo=$php_lo
                   10032: 
                   10033: 
                   10034:   old_IFS=$IFS
                   10035:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
                   10036: 
                   10037:       IFS=.
                   10038:       set $ac_src
                   10039:       ac_obj=$1
                   10040:       IFS=$old_IFS
                   10041: 
                   10042:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   10043: 
                   10044:       case $ac_src in
                   10045:         *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   10046:         *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   10047:         *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   10048:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   10049:       esac
                   10050: 
                   10051:     cat >>Makefile.objects<<EOF
                   10052: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   10053:        $ac_comp
                   10054: EOF
                   10055:   done
                   10056: 
                   10057: 
                   10058: 
1.1.1.2 ! misho    10059: 
1.1       misho    10060:     PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
                   10061:     APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET"
                   10062:     STRONGHOLD=-DSTRONGHOLD=1
                   10063:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - StrongHold" >&5
                   10064: $as_echo "yes - StrongHold" >&6; }
                   10065:     if test -f $PHP_APACHE_HOOKS_STATIC/apache/ap_config.h; then
                   10066: 
                   10067: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
                   10068: 
                   10069:     fi
                   10070:     if test -f $PHP_APACHE_HOOKS_STATIC/src/ap_compat.h; then
                   10071: 
                   10072: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
                   10073: 
                   10074:       if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then
                   10075:         as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
                   10076:       fi
                   10077:     elif test -f $PHP_APACHE_HOOKS_STATIC/src/compat.h; then
                   10078: 
                   10079: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
                   10080: 
                   10081:     fi
                   10082:   else
                   10083:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   10084: $as_echo "no" >&6; }
                   10085:     as_fn_error $? "Invalid Apache directory - unable to find httpd.h under $PHP_APACHE_HOOKS_STATIC" "$LINENO" 5
                   10086:   fi
                   10087: else
                   10088:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   10089: $as_echo "no" >&6; }
                   10090: fi
                   10091: 
                   10092: # compatibility
                   10093: if test -z "$enable_mod_charset" && test "$with_mod_charset"; then
                   10094:   enable_mod_charset=$with_mod_charset
                   10095: fi
                   10096: 
                   10097: 
                   10098: php_enable_mod_charset=no
                   10099: 
                   10100: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apache charset compatibility option" >&5
                   10101: $as_echo_n "checking whether to enable Apache charset compatibility option... " >&6; }
                   10102: # Check whether --enable-mod-charset was given.
                   10103: if test "${enable_mod_charset+set}" = set; then :
                   10104:   enableval=$enable_mod_charset; PHP_MOD_CHARSET=$enableval
                   10105: else
                   10106: 
                   10107:   PHP_MOD_CHARSET=no
                   10108: 
                   10109: 
                   10110: fi
                   10111: 
                   10112: 
                   10113: ext_output=$PHP_MOD_CHARSET
                   10114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   10115: $as_echo "$ext_output" >&6; }
                   10116: 
                   10117: 
                   10118: 
                   10119: 
                   10120: if test "$PHP_MOD_CHARSET" = "yes"; then
                   10121: 
                   10122: $as_echo "#define USE_TRANSFER_TABLES 1" >>confdefs.h
                   10123: 
                   10124: fi
                   10125: 
                   10126: if test "$APACHE_HOOKS_MODULE" = "yes"; then
                   10127: 
                   10128:   if test -n "$GCC"; then
                   10129: 
                   10130:   gcc_arg_name=ac_cv_gcc_arg_rdynamic
                   10131:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5
                   10132: $as_echo_n "checking whether $CC supports -rdynamic... " >&6; }
                   10133: if ${ac_cv_gcc_arg_rdynamic+:} false; then :
                   10134:   $as_echo_n "(cached) " >&6
                   10135: else
                   10136: 
                   10137:   echo 'void somefunc() { };' > conftest.c
                   10138:   cmd='$CC -rdynamic -c conftest.c'
                   10139:   if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then
                   10140:     ac_result=no
                   10141:   else
                   10142:     ac_result=yes
                   10143:   fi
                   10144:   eval $gcc_arg_name=$ac_result
                   10145:   rm -f conftest.*
                   10146: 
                   10147: fi
                   10148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_rdynamic" >&5
                   10149: $as_echo "$ac_cv_gcc_arg_rdynamic" >&6; }
                   10150:   if eval test "\$$gcc_arg_name" = "yes"; then
                   10151:     gcc_rdynamic=yes
                   10152:   else
                   10153:     :
                   10154: 
                   10155:   fi
                   10156: 
                   10157:     if test "$gcc_rdynamic" = "yes"; then
                   10158:       PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
                   10159:     fi
                   10160:   fi
                   10161: 
                   10162:   $php_shtool mkdir -p sapi/apache_hooks
                   10163: 
                   10164:   PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/apache_hooks/libphp5.module"
                   10165: 
                   10166: fi
                   10167: 
                   10168: if test -n "$APACHE_HOOKS_INSTALL"; then
                   10169:   if test "x$APXS" != "x" -a "`uname -sv`" = "AIX 4" -a "$GCC" != "yes"; then
                   10170:     APXS_EXP=-bE:sapi/apache_hooks/mod_php5.exp
                   10171:   fi
                   10172: 
                   10173: 
                   10174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member fd in BUFF *" >&5
                   10175: $as_echo_n "checking for member fd in BUFF *... " >&6; }
                   10176: if ${ac_cv_php_fd_in_buff+:} false; then :
                   10177:   $as_echo_n "(cached) " >&6
                   10178: else
                   10179: 
                   10180:   save=$CPPFLAGS
                   10181:   if test -n "$APXS_INCLUDEDIR"; then
                   10182:     CPPFLAGS="$CPPFLAGS -I$APXS_INCLUDEDIR"
                   10183:   else
                   10184:     CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE"
                   10185:   fi
                   10186:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   10187: /* end confdefs.h.  */
                   10188: #include <httpd.h>
                   10189: int
                   10190: main ()
                   10191: {
                   10192: conn_rec *c; int fd = c->client->fd;
                   10193:   ;
                   10194:   return 0;
                   10195: }
                   10196: _ACEOF
                   10197: if ac_fn_c_try_compile "$LINENO"; then :
                   10198: 
                   10199:     ac_cv_php_fd_in_buff=yes
                   10200: else
                   10201:   ac_cv_php_fd_in_buff=no
                   10202: fi
                   10203: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   10204:   CPPFLAGS=$save
                   10205: 
                   10206: fi
                   10207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_fd_in_buff" >&5
                   10208: $as_echo "$ac_cv_php_fd_in_buff" >&6; }
                   10209: if test "$ac_cv_php_fd_in_buff" = "yes"; then
                   10210: 
                   10211: $as_echo "#define PHP_APACHE_HAVE_CLIENT_FD 1" >>confdefs.h
                   10212: 
                   10213: fi
                   10214: 
                   10215:   INSTALL_IT=$APACHE_HOOKS_INSTALL
                   10216: 
                   10217: 
                   10218:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_EXP"
                   10219: 
                   10220: 
                   10221:   PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INCLUDE"
                   10222: 
                   10223: 
                   10224:   PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_TARGET"
                   10225: 
                   10226: 
                   10227:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
                   10228: 
                   10229: 
                   10230:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_LDFLAGS"
                   10231: 
                   10232: 
                   10233:   PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_HOOKS_INSTALL"
                   10234: 
                   10235: 
                   10236:   PHP_VAR_SUBST="$PHP_VAR_SUBST STRONGHOLD"
                   10237: 
                   10238: fi
                   10239: 
                   10240: 
                   10241: 
                   10242: RESULT=no
                   10243: 
                   10244: php_with_caudium=no
                   10245: 
                   10246: 
                   10247: 
                   10248: # Check whether --with-caudium was given.
                   10249: if test "${with_caudium+set}" = set; then :
                   10250:   withval=$with_caudium; PHP_CAUDIUM=$withval
                   10251: else
                   10252: 
                   10253:   PHP_CAUDIUM=no
                   10254: 
                   10255: 
                   10256: fi
                   10257: 
                   10258: 
                   10259: ext_output=$PHP_CAUDIUM
                   10260: 
                   10261: 
                   10262: 
                   10263: 
                   10264: 
                   10265: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Caudium support" >&5
                   10266: $as_echo_n "checking for Caudium support... " >&6; }
                   10267: 
                   10268: if test "$PHP_CAUDIUM" != "no"; then
                   10269:   if test "$prefix" = "NONE"; then CPREF=/usr/local/; fi
                   10270:   if test ! -d $PHP_CAUDIUM ; then
                   10271:     if test "$prefix" = "NONE"; then
                   10272:       PHP_CAUDIUM=/usr/local/caudium/server/
                   10273:     else
                   10274:       PHP_CAUDIUM=$prefix/caudium/server/
                   10275:     fi
                   10276:   fi
                   10277:   if test -f $PHP_CAUDIUM/bin/caudium; then
                   10278:     PIKE=$PHP_CAUDIUM/bin/caudium
                   10279:   elif test -f $PHP_CAUDIUM/bin/pike; then
                   10280:     PIKE=$PHP_CAUDIUM/bin/pike
                   10281:   else
                   10282:     as_fn_error $? "Could not find a pike in $PHP_CAUDIUM/bin/" "$LINENO" 5
                   10283:   fi
                   10284:   if $PIKE -e 'float v; int rel;sscanf(version(), "Pike v%f release %d", v, rel);v += rel/10000.0; if(v < 7.0268) exit(1); exit(0);'; then
                   10285:     PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'`
                   10286:     PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,' `
                   10287:     if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then
                   10288:       as_fn_error $? "Failed to figure out Pike module and include directories" "$LINENO" 5
                   10289:     fi
                   10290:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   10291: $as_echo "yes" >&6; }
                   10292:     PIKE=`echo $PIKE | pike -e 'int tries=100;
                   10293:        string orig,pike=Stdio.File("stdin")->read()-"\n";
                   10294:        orig=pike;
                   10295:        if(search(orig, "/"))
                   10296:          orig = combine_path(getcwd(), orig);
                   10297:        while(!catch(pike=readlink(pike)) && tries--)
                   10298:          ;
                   10299:        write(combine_path(dirname(orig), pike)); '`
                   10300: 
                   10301:   if test "$PIKE_INCLUDE_DIR" != "/usr/include"; then
                   10302: 
                   10303:   if test -z "$PIKE_INCLUDE_DIR" || echo "$PIKE_INCLUDE_DIR" | grep '^/' >/dev/null ; then
                   10304:     ai_p=$PIKE_INCLUDE_DIR
                   10305:   else
                   10306: 
                   10307:     ep_dir="`echo $PIKE_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   10308: 
                   10309:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   10310:     ai_p="$ep_realdir/`basename \"$PIKE_INCLUDE_DIR\"`"
                   10311:   fi
                   10312: 
                   10313: 
                   10314: 
                   10315:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   10316: 
                   10317:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   10318:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   10319:     eval "INCLUDEPATH$unique=set"
                   10320: 
                   10321:       if test ""; then
                   10322:         INCLUDES="-I$ai_p $INCLUDES"
                   10323:       else
                   10324:         INCLUDES="$INCLUDES -I$ai_p"
                   10325:       fi
                   10326: 
                   10327:   fi
                   10328: 
                   10329:   fi
                   10330: 
                   10331:     if test "$prefix" != "NONE"; then
                   10332:       PIKE_C_INCLUDE=$prefix/include/`basename $PIKE`
                   10333:     else
                   10334:       PIKE_C_INCLUDE=/usr/local/include/`basename $PIKE`
                   10335:     fi
                   10336:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C includes in $PIKE_C_INCLUDE" >&5
                   10337: $as_echo_n "checking for C includes in $PIKE_C_INCLUDE... " >&6; }
                   10338:     if test -f $PIKE_C_INCLUDE/version.h; then
                   10339:       PIKE_TEST_VER=`$PIKE -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);'`
                   10340:       ###### VERSION MATCH CHECK #######
                   10341:       PMAJOR="^#define PIKE_MAJOR_VERSION"
                   10342:       PMINOR="^#define PIKE_MINOR_VERSION"
                   10343:       PBUILD="^#define PIKE_BUILD_VERSION"
                   10344: 
                   10345:       PIKE_CMAJOR_VERSION=0
                   10346:       PIKE_CMINOR_VERSION=0
                   10347:       PIKE_CBUILD_VERSION=0
                   10348: 
                   10349:       PIKE_CMAJOR_VERSION=`grep "$PMAJOR" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'`
                   10350:       if test -z "$PIKE_CMAJOR_VERSION"; then
                   10351:         if test -n "`grep f_version $PIKE_C_INCLUDE/version.h`"; then
                   10352:           PIKE_CMAJOR_VERSION=6
                   10353:         fi
                   10354:       else
                   10355:         PIKE_CMINOR_VERSION=`grep "$PMINOR" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'`
                   10356:         PIKE_CBUILD_VERSION=`grep "$PBUILD" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'`
                   10357:       fi
                   10358: 
                   10359:       if test "$PIKE_TEST_VER" = "${PIKE_CMAJOR_VERSION}.${PIKE_CMINOR_VERSION}.${PIKE_CBUILD_VERSION}"; then
                   10360: 
                   10361:   if test "$PIKE_C_INCLUDE" != "/usr/include"; then
                   10362: 
                   10363:   if test -z "$PIKE_C_INCLUDE" || echo "$PIKE_C_INCLUDE" | grep '^/' >/dev/null ; then
                   10364:     ai_p=$PIKE_C_INCLUDE
                   10365:   else
                   10366: 
                   10367:     ep_dir="`echo $PIKE_C_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
                   10368: 
                   10369:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   10370:     ai_p="$ep_realdir/`basename \"$PIKE_C_INCLUDE\"`"
                   10371:   fi
                   10372: 
                   10373: 
                   10374: 
                   10375:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   10376: 
                   10377:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   10378:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   10379:     eval "INCLUDEPATH$unique=set"
                   10380: 
                   10381:       if test ""; then
                   10382:         INCLUDES="-I$ai_p $INCLUDES"
                   10383:       else
                   10384:         INCLUDES="$INCLUDES -I$ai_p"
                   10385:       fi
                   10386: 
                   10387:   fi
                   10388: 
                   10389:   fi
                   10390: 
                   10391:         PIKE_INCLUDE_DIR="$PIKE_INCLUDE_DIR, $PIKE_C_INCLUDE"
                   10392:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
                   10393: $as_echo "found" >&6; }
                   10394:       else
                   10395:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: version mismatch" >&5
                   10396: $as_echo "version mismatch" >&6; }
                   10397:       fi
                   10398:     else
                   10399:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   10400: $as_echo "not found" >&6; }
                   10401:     fi
                   10402:   else
                   10403:     as_fn_error $? "Caudium PHP5 requires Pike 7.0 or newer" "$LINENO" 5
                   10404:   fi
                   10405:   PIKE_VERSION=`$PIKE -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);'`
                   10406: 
                   10407: $as_echo "#define HAVE_CAUDIUM 1" >>confdefs.h
                   10408: 
                   10409: 
1.1.1.2 ! misho    10410:   if test "shared" = "program"; then
        !          10411:     PHP_BINARIES="$PHP_BINARIES caudium"
        !          10412:   elif test "$PHP_SAPI" != "none"; then
        !          10413:     as_fn_error $? "
1.1       misho    10414: +--------------------------------------------------------------------+
                   10415: |                        *** ATTENTION ***                           |
                   10416: |                                                                    |
                   10417: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    10418: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    10419: +--------------------------------------------------------------------+
                   10420: " "$LINENO" 5
1.1.1.2 ! misho    10421:   else
        !          10422:     PHP_SAPI=caudium
1.1       misho    10423:   fi
                   10424: 
                   10425: 
                   10426: 
1.1.1.2 ! misho    10427:     BUILD_DIR="$BUILD_DIR sapi/caudium"
        !          10428: 
        !          10429: 
        !          10430: 
        !          10431:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS caudium"
        !          10432: 
        !          10433: 
        !          10434:     case "shared" in
        !          10435:     static)
        !          10436: 
1.1       misho    10437:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   10438:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   10439:   php_c_post=
                   10440:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   10441:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   10442:   php_cxx_post=
                   10443:   php_lo=lo
                   10444: 
                   10445:   case $with_pic in
                   10446:     yes) pic_setting='-prefer-pic';;
                   10447:     no)  pic_setting='-prefer-non-pic';;
                   10448:   esac
                   10449: 
                   10450:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   10451:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   10452:   shared_c_post=
                   10453:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   10454:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   10455:   shared_cxx_post=
                   10456:   shared_lo=lo
                   10457: 
                   10458:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    10459:   php_sapi_module=static
1.1       misho    10460: ;;
1.1.1.2 ! misho    10461:     shared)
1.1       misho    10462: 
                   10463:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   10464:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   10465:   php_c_post=
                   10466:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   10467:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   10468:   php_cxx_post=
                   10469:   php_lo=lo
                   10470: 
                   10471:   case $with_pic in
                   10472:     yes) pic_setting='-prefer-pic';;
                   10473:     no)  pic_setting='-prefer-non-pic';;
                   10474:   esac
                   10475: 
                   10476:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   10477:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   10478:   shared_c_post=
                   10479:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   10480:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   10481:   shared_cxx_post=
                   10482:   shared_lo=lo
                   10483: 
                   10484:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    10485:   php_sapi_module=shared
1.1       misho    10486: 
                   10487:   php_c_pre=$shared_c_pre
                   10488:   php_c_meta=$shared_c_meta
                   10489:   php_c_post=$shared_c_post
                   10490:   php_cxx_pre=$shared_cxx_pre
                   10491:   php_cxx_meta=$shared_cxx_meta
                   10492:   php_cxx_post=$shared_cxx_post
                   10493:   php_lo=$shared_lo
                   10494: ;;
1.1.1.2 ! misho    10495:     bundle)
1.1       misho    10496: 
                   10497:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   10498:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   10499:   php_c_post=
                   10500:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   10501:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   10502:   php_cxx_post=
                   10503:   php_lo=lo
                   10504: 
                   10505:   case $with_pic in
                   10506:     yes) pic_setting='-prefer-pic';;
                   10507:     no)  pic_setting='-prefer-non-pic';;
                   10508:   esac
                   10509: 
                   10510:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   10511:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   10512:   shared_c_post=
                   10513:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   10514:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   10515:   shared_cxx_post=
                   10516:   shared_lo=lo
                   10517: 
                   10518:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    10519:   php_sapi_module=static
1.1       misho    10520: ;;
1.1.1.2 ! misho    10521:     esac
        !          10522:     install_sapi="install-sapi"
1.1       misho    10523: 
                   10524: 
                   10525:   case sapi/caudium in
                   10526:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   10527:   /*) ac_srcdir=`echo "sapi/caudium"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   10528:   *) ac_srcdir="$abs_srcdir/sapi/caudium/"; ac_bdir="sapi/caudium/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   10529:   esac
                   10530: 
                   10531: 
                   10532: 
                   10533:   b_c_pre=$php_c_pre
                   10534:   b_cxx_pre=$php_cxx_pre
                   10535:   b_c_meta=$php_c_meta
                   10536:   b_cxx_meta=$php_cxx_meta
                   10537:   b_c_post=$php_c_post
                   10538:   b_cxx_post=$php_cxx_post
                   10539:   b_lo=$php_lo
                   10540: 
                   10541: 
                   10542:   old_IFS=$IFS
                   10543:   for ac_src in caudium.c; do
                   10544: 
                   10545:       IFS=.
                   10546:       set $ac_src
                   10547:       ac_obj=$1
                   10548:       IFS=$old_IFS
                   10549: 
                   10550:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   10551: 
                   10552:       case $ac_src in
                   10553:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   10554:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   10555:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   10556:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   10557:       esac
                   10558: 
                   10559:     cat >>Makefile.objects<<EOF
                   10560: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   10561:        $ac_comp
                   10562: EOF
                   10563:   done
                   10564: 
                   10565: 
                   10566: 
1.1.1.2 ! misho    10567: 
1.1       misho    10568:   INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PHP_CAUDIUM/lib/$PIKE_VERSION/PHP5.so"
                   10569:   RESULT="  *** Pike binary used:         $PIKE
                   10570:   *** Pike include dir(s) used: $PIKE_INCLUDE_DIR
                   10571:   *** Pike version:             $PIKE_VERSION"
                   10572: 
                   10573:   enable_maintainer_zts=yes
                   10574:   if test "$pthreads_working" != "yes"; then
                   10575:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
                   10576:   fi
                   10577: 
                   10578: fi
                   10579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESULT" >&5
                   10580: $as_echo "$RESULT" >&6; }
                   10581: 
                   10582: 
                   10583: 
                   10584: 
                   10585: php_enable_cli=yes
                   10586: 
                   10587: 
                   10588: # Check whether --enable-cli was given.
                   10589: if test "${enable_cli+set}" = set; then :
                   10590:   enableval=$enable_cli; PHP_CLI=$enableval
                   10591: else
                   10592: 
                   10593:   PHP_CLI=yes
                   10594: 
                   10595: 
                   10596: fi
                   10597: 
                   10598: 
                   10599: ext_output=$PHP_CLI
                   10600: 
                   10601: 
                   10602: 
                   10603: 
                   10604: 
                   10605: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLI build" >&5
                   10606: $as_echo_n "checking for CLI build... " >&6; }
                   10607: if test "$PHP_CLI" != "no"; then
                   10608: 
                   10609:   src=$abs_srcdir/sapi/cli/Makefile.frag
1.1.1.2 ! misho    10610:   ac_srcdir=$ext_srcdir
        !          10611:   ac_builddir=$ext_builddir
1.1       misho    10612:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
                   10613: 
                   10614: 
1.1.1.2 ! misho    10615:     SAPI_CLI_PATH=sapi/cli/php
        !          10616: 
        !          10617: 
        !          10618:   if test "program" = "program"; then
        !          10619:     PHP_BINARIES="$PHP_BINARIES cli"
        !          10620:   elif test "$PHP_SAPI" != "none"; then
        !          10621:     as_fn_error $? "
        !          10622: +--------------------------------------------------------------------+
        !          10623: |                        *** ATTENTION ***                           |
        !          10624: |                                                                    |
        !          10625: | You've configured multiple SAPIs to be build. You can build only   |
        !          10626: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
        !          10627: +--------------------------------------------------------------------+
        !          10628: " "$LINENO" 5
        !          10629:   else
        !          10630:     PHP_SAPI=cli
        !          10631:   fi
        !          10632: 
        !          10633: 
        !          10634: 
        !          10635:     BUILD_DIR="$BUILD_DIR sapi/cli"
        !          10636: 
        !          10637: 
        !          10638: 
        !          10639:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cli"
        !          10640: 
        !          10641: 
        !          10642: 
        !          10643:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
        !          10644:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
        !          10645:   php_c_post=
        !          10646:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
        !          10647:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
        !          10648:   php_cxx_post=
        !          10649:   php_lo=lo
        !          10650: 
        !          10651:   case $with_pic in
        !          10652:     yes) pic_setting='-prefer-pic';;
        !          10653:     no)  pic_setting='-prefer-non-pic';;
        !          10654:   esac
        !          10655: 
        !          10656:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
        !          10657:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
        !          10658:   shared_c_post=
        !          10659:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
        !          10660:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
        !          10661:   shared_cxx_post=
        !          10662:   shared_lo=lo
        !          10663: 
        !          10664:     install_binaries="install-binaries"
        !          10665:     install_binary_targets="$install_binary_targets install-cli"
        !          10666: 
        !          10667:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CLI_OBJS"
        !          10668: 
        !          10669: 
        !          10670:   case sapi/cli in
        !          10671:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          10672:   /*) ac_srcdir=`echo "sapi/cli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          10673:   *) ac_srcdir="$abs_srcdir/sapi/cli/"; ac_bdir="sapi/cli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
        !          10674:   esac
        !          10675: 
        !          10676: 
        !          10677: 
        !          10678:   b_c_pre=$php_c_pre
        !          10679:   b_cxx_pre=$php_cxx_pre
        !          10680:   b_c_meta=$php_c_meta
        !          10681:   b_cxx_meta=$php_cxx_meta
        !          10682:   b_c_post=$php_c_post
        !          10683:   b_cxx_post=$php_cxx_post
        !          10684:   b_lo=$php_lo
        !          10685: 
        !          10686: 
        !          10687:   old_IFS=$IFS
        !          10688:   for ac_src in php_cli.c php_http_parser.c php_cli_server.c; do
        !          10689: 
        !          10690:       IFS=.
        !          10691:       set $ac_src
        !          10692:       ac_obj=$1
        !          10693:       IFS=$old_IFS
        !          10694: 
        !          10695:       PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
        !          10696: 
        !          10697:       case $ac_src in
        !          10698:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          10699:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          10700:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          10701:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
        !          10702:       esac
        !          10703: 
        !          10704:     cat >>Makefile.objects<<EOF
        !          10705: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
        !          10706:        $ac_comp
        !          10707: EOF
        !          10708:   done
        !          10709: 
        !          10710: 
1.1       misho    10711: 
                   10712: 
                   10713:   case $host_alias in
                   10714:   *aix*)
1.1.1.2 ! misho    10715:     if test "$php_sapi_module" = "shared"; then
        !          10716:       BUILD_CLI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/.libs\/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
1.1       misho    10717:     else
1.1.1.2 ! misho    10718:       BUILD_CLI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
1.1       misho    10719:     fi
                   10720:     ;;
                   10721:   *darwin*)
1.1.1.2 ! misho    10722:     BUILD_CLI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_CLI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
1.1       misho    10723:     ;;
                   10724:   *netware*)
1.1.1.2 ! misho    10725:     BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -Lnetware -lphp5lib -o \$(SAPI_CLI_PATH)"
1.1       misho    10726:     ;;
                   10727:   *)
1.1.1.2 ! misho    10728:     BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
1.1       misho    10729:     ;;
                   10730:   esac
                   10731: 
1.1.1.2 ! misho    10732:     PHP_EXECUTABLE="\$(top_builddir)/\$(SAPI_CLI_PATH)"
1.1       misho    10733: 
1.1.1.2 ! misho    10734:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE"
        !          10735: 
        !          10736: 
        !          10737: 
        !          10738:   PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CLI_PATH"
1.1       misho    10739: 
                   10740: 
1.1.1.2 ! misho    10741:   PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CLI"
        !          10742: 
1.1       misho    10743: 
                   10744: 
                   10745:   PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cli/php.1"
                   10746: 
                   10747: fi
                   10748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CLI" >&5
                   10749: $as_echo "$PHP_CLI" >&6; }
                   10750: 
                   10751: 
                   10752: 
                   10753: php_with_continuity=no
                   10754: 
                   10755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Continuity support" >&5
                   10756: $as_echo_n "checking for Continuity support... " >&6; }
                   10757: 
                   10758: # Check whether --with-continuity was given.
                   10759: if test "${with_continuity+set}" = set; then :
                   10760:   withval=$with_continuity; PHP_CONTINUITY=$withval
                   10761: else
                   10762: 
                   10763:   PHP_CONTINUITY=no
                   10764: 
                   10765: 
                   10766: fi
                   10767: 
                   10768: 
                   10769: ext_output=$PHP_CONTINUITY
                   10770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   10771: $as_echo "$ext_output" >&6; }
                   10772: 
                   10773: 
                   10774: 
                   10775: 
                   10776: if test "$PHP_CONTINUITY" != "no"; then
                   10777:   if test ! -d $PHP_CONTINUITY; then
                   10778:     as_fn_error $? "Please specify the path to the root of your Continuity server using --with-continuity=DIR" "$LINENO" 5
                   10779:   fi
                   10780:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Continuity include files" >&5
                   10781: $as_echo_n "checking for Continuity include files... " >&6; }
                   10782:   if test -d $PHP_CONTINUITY/include ; then
                   10783:     CAPI_INCLUDE=$PHP_CONTINUITY/include
                   10784:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Continuity Binary Distribution" >&5
                   10785: $as_echo "Continuity Binary Distribution" >&6; }
                   10786:   else
                   10787:     as_fn_error $? "Cannot find your CAPI include files in either DIR/src or DIR/include" "$LINENO" 5
                   10788:   fi
                   10789: 
                   10790: 
1.1.1.2 ! misho    10791:   if test "shared" = "program"; then
        !          10792:     PHP_BINARIES="$PHP_BINARIES continuity"
        !          10793:   elif test "$PHP_SAPI" != "none"; then
        !          10794:     as_fn_error $? "
1.1       misho    10795: +--------------------------------------------------------------------+
                   10796: |                        *** ATTENTION ***                           |
                   10797: |                                                                    |
                   10798: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    10799: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    10800: +--------------------------------------------------------------------+
                   10801: " "$LINENO" 5
1.1.1.2 ! misho    10802:   else
        !          10803:     PHP_SAPI=continuity
1.1       misho    10804:   fi
                   10805: 
                   10806: 
                   10807: 
1.1.1.2 ! misho    10808:     BUILD_DIR="$BUILD_DIR sapi/continuity"
        !          10809: 
        !          10810: 
        !          10811: 
        !          10812:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS continuity"
        !          10813: 
        !          10814: 
        !          10815:     case "shared" in
        !          10816:     static)
        !          10817: 
1.1       misho    10818:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   10819:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   10820:   php_c_post=
                   10821:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   10822:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   10823:   php_cxx_post=
                   10824:   php_lo=lo
                   10825: 
                   10826:   case $with_pic in
                   10827:     yes) pic_setting='-prefer-pic';;
                   10828:     no)  pic_setting='-prefer-non-pic';;
                   10829:   esac
                   10830: 
                   10831:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   10832:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   10833:   shared_c_post=
                   10834:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   10835:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   10836:   shared_cxx_post=
                   10837:   shared_lo=lo
                   10838: 
                   10839:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    10840:   php_sapi_module=static
1.1       misho    10841: ;;
1.1.1.2 ! misho    10842:     shared)
1.1       misho    10843: 
                   10844:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   10845:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   10846:   php_c_post=
                   10847:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   10848:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   10849:   php_cxx_post=
                   10850:   php_lo=lo
                   10851: 
                   10852:   case $with_pic in
                   10853:     yes) pic_setting='-prefer-pic';;
                   10854:     no)  pic_setting='-prefer-non-pic';;
                   10855:   esac
                   10856: 
                   10857:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   10858:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   10859:   shared_c_post=
                   10860:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   10861:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   10862:   shared_cxx_post=
                   10863:   shared_lo=lo
                   10864: 
                   10865:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    10866:   php_sapi_module=shared
1.1       misho    10867: 
                   10868:   php_c_pre=$shared_c_pre
                   10869:   php_c_meta=$shared_c_meta
                   10870:   php_c_post=$shared_c_post
                   10871:   php_cxx_pre=$shared_cxx_pre
                   10872:   php_cxx_meta=$shared_cxx_meta
                   10873:   php_cxx_post=$shared_cxx_post
                   10874:   php_lo=$shared_lo
                   10875: ;;
1.1.1.2 ! misho    10876:     bundle)
1.1       misho    10877: 
                   10878:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   10879:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   10880:   php_c_post=
                   10881:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   10882:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   10883:   php_cxx_post=
                   10884:   php_lo=lo
                   10885: 
                   10886:   case $with_pic in
                   10887:     yes) pic_setting='-prefer-pic';;
                   10888:     no)  pic_setting='-prefer-non-pic';;
                   10889:   esac
                   10890: 
                   10891:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   10892:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   10893:   shared_c_post=
                   10894:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   10895:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   10896:   shared_cxx_post=
                   10897:   shared_lo=lo
                   10898: 
                   10899:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    10900:   php_sapi_module=static
1.1       misho    10901: ;;
1.1.1.2 ! misho    10902:     esac
        !          10903:     install_sapi="install-sapi"
1.1       misho    10904: 
                   10905: 
                   10906:   case sapi/continuity in
                   10907:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   10908:   /*) ac_srcdir=`echo "sapi/continuity"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   10909:   *) ac_srcdir="$abs_srcdir/sapi/continuity/"; ac_bdir="sapi/continuity/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   10910:   esac
                   10911: 
                   10912: 
                   10913: 
                   10914:   b_c_pre=$php_c_pre
                   10915:   b_cxx_pre=$php_cxx_pre
                   10916:   b_c_meta=$php_c_meta
                   10917:   b_cxx_meta=$php_cxx_meta
                   10918:   b_c_post=$php_c_post
                   10919:   b_cxx_post=$php_cxx_post
                   10920:   b_lo=$php_lo
                   10921: 
                   10922: 
                   10923:   old_IFS=$IFS
                   10924:   for ac_src in capi.c; do
                   10925: 
                   10926:       IFS=.
                   10927:       set $ac_src
                   10928:       ac_obj=$1
                   10929:       IFS=$old_IFS
                   10930: 
                   10931:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   10932: 
                   10933:       case $ac_src in
                   10934:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   10935:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   10936:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   10937:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   10938:       esac
                   10939: 
                   10940:     cat >>Makefile.objects<<EOF
                   10941: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   10942:        $ac_comp
                   10943: EOF
                   10944:   done
                   10945: 
                   10946: 
                   10947: 
                   10948: 
1.1.1.2 ! misho    10949: 
1.1       misho    10950:   if test "$CAPI_INCLUDE" != "/usr/include"; then
                   10951: 
                   10952:   if test -z "$CAPI_INCLUDE" || echo "$CAPI_INCLUDE" | grep '^/' >/dev/null ; then
                   10953:     ai_p=$CAPI_INCLUDE
                   10954:   else
                   10955: 
                   10956:     ep_dir="`echo $CAPI_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
                   10957: 
                   10958:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   10959:     ai_p="$ep_realdir/`basename \"$CAPI_INCLUDE\"`"
                   10960:   fi
                   10961: 
                   10962: 
                   10963: 
                   10964:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   10965: 
                   10966:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   10967:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   10968:     eval "INCLUDEPATH$unique=set"
                   10969: 
                   10970:       if test ""; then
                   10971:         INCLUDES="-I$ai_p $INCLUDES"
                   10972:       else
                   10973:         INCLUDES="$INCLUDES -I$ai_p"
                   10974:       fi
                   10975: 
                   10976:   fi
                   10977: 
                   10978:   fi
                   10979: 
                   10980: 
                   10981:   enable_maintainer_zts=yes
                   10982:   if test "$pthreads_working" != "yes"; then
                   10983:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
                   10984:   fi
                   10985: 
                   10986: 
                   10987: $as_echo "#define HAVE_CONTINUITY 1" >>confdefs.h
                   10988: 
                   10989:   INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_CONTINUITY/lib/"
                   10990: fi
                   10991: 
                   10992: 
                   10993: 
                   10994: 
                   10995: php_enable_embed=no
                   10996: 
                   10997: 
                   10998: # Check whether --enable-embed was given.
                   10999: if test "${enable_embed+set}" = set; then :
                   11000:   enableval=$enable_embed; PHP_EMBED=$enableval
                   11001: else
                   11002: 
                   11003:   PHP_EMBED=no
                   11004: 
                   11005: 
                   11006: fi
                   11007: 
                   11008: 
                   11009: ext_output=$PHP_EMBED
                   11010: 
                   11011: 
                   11012: 
                   11013: 
                   11014: 
                   11015: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for embedded SAPI library support" >&5
                   11016: $as_echo_n "checking for embedded SAPI library support... " >&6; }
                   11017: 
                   11018: if test "$PHP_EMBED" != "no"; then
                   11019:   case "$PHP_EMBED" in
                   11020:     yes|shared)
                   11021:       PHP_EMBED_TYPE=shared
                   11022:       INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib"
                   11023:       ;;
                   11024:     static)
                   11025:       PHP_EMBED_TYPE=static
                   11026:       INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0644 $SAPI_STATIC \$(INSTALL_ROOT)\$(prefix)/lib"
                   11027:       ;;
                   11028:     *)
                   11029:       PHP_EMBED_TYPE=no
                   11030:       ;;
                   11031:   esac
                   11032:   if test "$PHP_EMBED_TYPE" != "no"; then
                   11033: 
1.1.1.2 ! misho    11034:   if test "$PHP_EMBED_TYPE" = "program"; then
        !          11035:     PHP_BINARIES="$PHP_BINARIES embed"
        !          11036:   elif test "$PHP_SAPI" != "none"; then
        !          11037:     as_fn_error $? "
1.1       misho    11038: +--------------------------------------------------------------------+
                   11039: |                        *** ATTENTION ***                           |
                   11040: |                                                                    |
                   11041: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    11042: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    11043: +--------------------------------------------------------------------+
                   11044: " "$LINENO" 5
1.1.1.2 ! misho    11045:   else
        !          11046:     PHP_SAPI=embed
1.1       misho    11047:   fi
                   11048: 
                   11049: 
                   11050: 
1.1.1.2 ! misho    11051:     BUILD_DIR="$BUILD_DIR sapi/embed"
        !          11052: 
        !          11053: 
        !          11054: 
        !          11055:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS embed"
        !          11056: 
        !          11057: 
        !          11058:     case "$PHP_EMBED_TYPE" in
        !          11059:     static)
        !          11060: 
1.1       misho    11061:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   11062:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   11063:   php_c_post=
                   11064:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   11065:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   11066:   php_cxx_post=
                   11067:   php_lo=lo
                   11068: 
                   11069:   case $with_pic in
                   11070:     yes) pic_setting='-prefer-pic';;
                   11071:     no)  pic_setting='-prefer-non-pic';;
                   11072:   esac
                   11073: 
                   11074:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   11075:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   11076:   shared_c_post=
                   11077:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   11078:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   11079:   shared_cxx_post=
                   11080:   shared_lo=lo
                   11081: 
                   11082:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    11083:   php_sapi_module=static
1.1       misho    11084: ;;
1.1.1.2 ! misho    11085:     shared)
1.1       misho    11086: 
                   11087:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   11088:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   11089:   php_c_post=
                   11090:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   11091:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   11092:   php_cxx_post=
                   11093:   php_lo=lo
                   11094: 
                   11095:   case $with_pic in
                   11096:     yes) pic_setting='-prefer-pic';;
                   11097:     no)  pic_setting='-prefer-non-pic';;
                   11098:   esac
                   11099: 
                   11100:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   11101:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   11102:   shared_c_post=
                   11103:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   11104:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   11105:   shared_cxx_post=
                   11106:   shared_lo=lo
                   11107: 
                   11108:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    11109:   php_sapi_module=shared
1.1       misho    11110: 
                   11111:   php_c_pre=$shared_c_pre
                   11112:   php_c_meta=$shared_c_meta
                   11113:   php_c_post=$shared_c_post
                   11114:   php_cxx_pre=$shared_cxx_pre
                   11115:   php_cxx_meta=$shared_cxx_meta
                   11116:   php_cxx_post=$shared_cxx_post
                   11117:   php_lo=$shared_lo
                   11118: ;;
1.1.1.2 ! misho    11119:     bundle)
1.1       misho    11120: 
                   11121:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   11122:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   11123:   php_c_post=
                   11124:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   11125:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   11126:   php_cxx_post=
                   11127:   php_lo=lo
                   11128: 
                   11129:   case $with_pic in
                   11130:     yes) pic_setting='-prefer-pic';;
                   11131:     no)  pic_setting='-prefer-non-pic';;
                   11132:   esac
                   11133: 
                   11134:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   11135:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   11136:   shared_c_post=
                   11137:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   11138:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   11139:   shared_cxx_post=
                   11140:   shared_lo=lo
                   11141: 
                   11142:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    11143:   php_sapi_module=static
1.1       misho    11144: ;;
1.1.1.2 ! misho    11145:     esac
        !          11146:     install_sapi="install-sapi"
1.1       misho    11147: 
                   11148: 
                   11149:   case sapi/embed in
                   11150:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   11151:   /*) ac_srcdir=`echo "sapi/embed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   11152:   *) ac_srcdir="$abs_srcdir/sapi/embed/"; ac_bdir="sapi/embed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   11153:   esac
                   11154: 
                   11155: 
                   11156: 
                   11157:   b_c_pre=$php_c_pre
                   11158:   b_cxx_pre=$php_cxx_pre
                   11159:   b_c_meta=$php_c_meta
                   11160:   b_cxx_meta=$php_cxx_meta
                   11161:   b_c_post=$php_c_post
                   11162:   b_cxx_post=$php_cxx_post
                   11163:   b_lo=$php_lo
                   11164: 
                   11165: 
                   11166:   old_IFS=$IFS
                   11167:   for ac_src in php_embed.c; do
                   11168: 
                   11169:       IFS=.
                   11170:       set $ac_src
                   11171:       ac_obj=$1
                   11172:       IFS=$old_IFS
                   11173: 
                   11174:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   11175: 
                   11176:       case $ac_src in
                   11177:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   11178:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   11179:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   11180:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   11181:       esac
                   11182: 
                   11183:     cat >>Makefile.objects<<EOF
                   11184: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   11185:        $ac_comp
                   11186: EOF
                   11187:   done
                   11188: 
                   11189: 
                   11190: 
                   11191: 
                   11192: 
1.1.1.2 ! misho    11193: 
1.1       misho    11194:     for header_file in sapi/embed/php_embed.h; do
                   11195: 
                   11196: 
                   11197:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
                   11198: 
                   11199:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   11200:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   11201:     eval "INSTALLHEADERS$unique=set"
                   11202: 
                   11203:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
                   11204: 
                   11205:   fi
                   11206: 
                   11207:     done
                   11208: 
                   11209: 
                   11210:   fi
                   11211:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_EMBED_TYPE" >&5
                   11212: $as_echo "$PHP_EMBED_TYPE" >&6; }
                   11213: else
                   11214:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   11215: $as_echo "no" >&6; }
                   11216: fi
                   11217: 
                   11218: 
                   11219: 
                   11220: 
                   11221: php_enable_fpm=no
                   11222: 
                   11223: 
                   11224: # Check whether --enable-fpm was given.
                   11225: if test "${enable_fpm+set}" = set; then :
                   11226:   enableval=$enable_fpm; PHP_FPM=$enableval
                   11227: else
                   11228: 
                   11229:   PHP_FPM=no
                   11230: 
                   11231: 
                   11232: fi
                   11233: 
                   11234: 
                   11235: ext_output=$PHP_FPM
                   11236: 
                   11237: 
                   11238: 
                   11239: 
                   11240: 
                   11241: 
                   11242: 
                   11243: 
                   11244: 
                   11245: 
                   11246: 
                   11247: 
                   11248: 
                   11249: 
                   11250: 
                   11251: 
                   11252: 
                   11253: 
                   11254: 
                   11255: 
                   11256: 
                   11257: 
                   11258: 
                   11259: 
                   11260: 
                   11261: 
                   11262: 
                   11263: 
                   11264: 
                   11265: 
                   11266: 
                   11267: 
                   11268: 
                   11269: 
                   11270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPM build" >&5
                   11271: $as_echo_n "checking for FPM build... " >&6; }
                   11272: if test "$PHP_FPM" != "no"; then
                   11273:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_FPM" >&5
                   11274: $as_echo "$PHP_FPM" >&6; }
                   11275: 
                   11276: 
                   11277:   for ac_func in setenv clearenv setproctitle
                   11278: do :
                   11279:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   11280: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   11281: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   11282:   cat >>confdefs.h <<_ACEOF
                   11283: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   11284: _ACEOF
                   11285: 
                   11286: fi
                   11287: done
                   11288: 
                   11289: 
                   11290:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
                   11291: $as_echo_n "checking for library containing socket... " >&6; }
                   11292: if ${ac_cv_search_socket+:} false; then :
                   11293:   $as_echo_n "(cached) " >&6
                   11294: else
                   11295:   ac_func_search_save_LIBS=$LIBS
                   11296: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11297: /* end confdefs.h.  */
                   11298: 
                   11299: /* Override any GCC internal prototype to avoid an error.
                   11300:    Use char because int might match the return type of a GCC
                   11301:    builtin and then its argument prototype would still apply.  */
                   11302: #ifdef __cplusplus
                   11303: extern "C"
                   11304: #endif
                   11305: char socket ();
                   11306: int
                   11307: main ()
                   11308: {
                   11309: return socket ();
                   11310:   ;
                   11311:   return 0;
                   11312: }
                   11313: _ACEOF
                   11314: for ac_lib in '' socket; do
                   11315:   if test -z "$ac_lib"; then
                   11316:     ac_res="none required"
                   11317:   else
                   11318:     ac_res=-l$ac_lib
                   11319:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   11320:   fi
                   11321:   if ac_fn_c_try_link "$LINENO"; then :
                   11322:   ac_cv_search_socket=$ac_res
                   11323: fi
                   11324: rm -f core conftest.err conftest.$ac_objext \
                   11325:     conftest$ac_exeext
                   11326:   if ${ac_cv_search_socket+:} false; then :
                   11327:   break
                   11328: fi
                   11329: done
                   11330: if ${ac_cv_search_socket+:} false; then :
                   11331: 
                   11332: else
                   11333:   ac_cv_search_socket=no
                   11334: fi
                   11335: rm conftest.$ac_ext
                   11336: LIBS=$ac_func_search_save_LIBS
                   11337: fi
                   11338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
                   11339: $as_echo "$ac_cv_search_socket" >&6; }
                   11340: ac_res=$ac_cv_search_socket
                   11341: if test "$ac_res" != no; then :
                   11342:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   11343: 
                   11344: fi
                   11345: 
                   11346:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
                   11347: $as_echo_n "checking for library containing inet_addr... " >&6; }
                   11348: if ${ac_cv_search_inet_addr+:} false; then :
                   11349:   $as_echo_n "(cached) " >&6
                   11350: else
                   11351:   ac_func_search_save_LIBS=$LIBS
                   11352: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11353: /* end confdefs.h.  */
                   11354: 
                   11355: /* Override any GCC internal prototype to avoid an error.
                   11356:    Use char because int might match the return type of a GCC
                   11357:    builtin and then its argument prototype would still apply.  */
                   11358: #ifdef __cplusplus
                   11359: extern "C"
                   11360: #endif
                   11361: char inet_addr ();
                   11362: int
                   11363: main ()
                   11364: {
                   11365: return inet_addr ();
                   11366:   ;
                   11367:   return 0;
                   11368: }
                   11369: _ACEOF
                   11370: for ac_lib in '' nsl; do
                   11371:   if test -z "$ac_lib"; then
                   11372:     ac_res="none required"
                   11373:   else
                   11374:     ac_res=-l$ac_lib
                   11375:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   11376:   fi
                   11377:   if ac_fn_c_try_link "$LINENO"; then :
                   11378:   ac_cv_search_inet_addr=$ac_res
                   11379: fi
                   11380: rm -f core conftest.err conftest.$ac_objext \
                   11381:     conftest$ac_exeext
                   11382:   if ${ac_cv_search_inet_addr+:} false; then :
                   11383:   break
                   11384: fi
                   11385: done
                   11386: if ${ac_cv_search_inet_addr+:} false; then :
                   11387: 
                   11388: else
                   11389:   ac_cv_search_inet_addr=no
                   11390: fi
                   11391: rm conftest.$ac_ext
                   11392: LIBS=$ac_func_search_save_LIBS
                   11393: fi
                   11394: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
                   11395: $as_echo "$ac_cv_search_inet_addr" >&6; }
                   11396: ac_res=$ac_cv_search_inet_addr
                   11397: if test "$ac_res" != no; then :
                   11398:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   11399: 
                   11400: fi
                   11401: 
                   11402: 
                   11403:   for ac_header in errno.h fcntl.h stdio.h stdlib.h unistd.h sys/uio.h
                   11404: do :
                   11405:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   11406: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   11407: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   11408:   cat >>confdefs.h <<_ACEOF
                   11409: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   11410: _ACEOF
                   11411: 
                   11412: fi
                   11413: 
                   11414: done
                   11415: 
                   11416:   for ac_header in sys/select.h sys/socket.h sys/time.h
                   11417: do :
                   11418:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   11419: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   11420: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   11421:   cat >>confdefs.h <<_ACEOF
                   11422: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   11423: _ACEOF
                   11424: 
                   11425: fi
                   11426: 
                   11427: done
                   11428: 
                   11429:   for ac_header in arpa/inet.h netinet/in.h
                   11430: do :
                   11431:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   11432: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   11433: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   11434:   cat >>confdefs.h <<_ACEOF
                   11435: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   11436: _ACEOF
                   11437: 
                   11438: fi
                   11439: 
                   11440: done
                   11441: 
                   11442: 
                   11443: 
                   11444:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl" >&5
                   11445: $as_echo_n "checking for prctl... " >&6; }
                   11446: 
                   11447:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11448: /* end confdefs.h.  */
                   11449:  #include <sys/prctl.h>
                   11450: int
                   11451: main ()
                   11452: {
                   11453: prctl(0, 0, 0, 0, 0);
                   11454:   ;
                   11455:   return 0;
                   11456: }
                   11457: _ACEOF
                   11458: if ac_fn_c_try_compile "$LINENO"; then :
                   11459: 
                   11460: 
                   11461: $as_echo "#define HAVE_PRCTL 1" >>confdefs.h
                   11462: 
                   11463:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   11464: $as_echo "yes" >&6; }
                   11465: 
                   11466: else
                   11467: 
                   11468:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   11469: $as_echo "no" >&6; }
                   11470: 
                   11471: fi
                   11472: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   11473: 
                   11474: 
                   11475:   have_clock_gettime=no
                   11476: 
                   11477:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime" >&5
                   11478: $as_echo_n "checking for clock_gettime... " >&6; }
                   11479: 
                   11480:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11481: /* end confdefs.h.  */
                   11482:  #include <time.h>
                   11483: int
                   11484: main ()
                   11485: {
                   11486: struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);
                   11487:   ;
                   11488:   return 0;
                   11489: }
                   11490: _ACEOF
                   11491: if ac_fn_c_try_link "$LINENO"; then :
                   11492: 
                   11493:     have_clock_gettime=yes
                   11494:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   11495: $as_echo "yes" >&6; }
                   11496: 
                   11497: else
                   11498: 
                   11499:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   11500: $as_echo "no" >&6; }
                   11501: 
                   11502: fi
                   11503: rm -f core conftest.err conftest.$ac_objext \
                   11504:     conftest$ac_exeext conftest.$ac_ext
                   11505: 
                   11506:   if test "$have_clock_gettime" = "no"; then
                   11507:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
                   11508: $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
                   11509: 
                   11510:     SAVED_LIBS="$LIBS"
                   11511:     LIBS="$LIBS -lrt"
                   11512: 
                   11513:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11514: /* end confdefs.h.  */
                   11515:  #include <time.h>
                   11516: int
                   11517: main ()
                   11518: {
                   11519: struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);
                   11520:   ;
                   11521:   return 0;
                   11522: }
                   11523: _ACEOF
                   11524: if ac_fn_c_try_link "$LINENO"; then :
                   11525: 
                   11526:       have_clock_gettime=yes
                   11527:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   11528: $as_echo "yes" >&6; }
                   11529: 
                   11530: else
                   11531: 
                   11532:       LIBS="$SAVED_LIBS"
                   11533:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   11534: $as_echo "no" >&6; }
                   11535: 
                   11536: fi
                   11537: rm -f core conftest.err conftest.$ac_objext \
                   11538:     conftest$ac_exeext conftest.$ac_ext
                   11539:   fi
                   11540: 
                   11541:   if test "$have_clock_gettime" = "yes"; then
                   11542: 
                   11543: $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
                   11544: 
                   11545:   fi
                   11546: 
                   11547:   have_clock_get_time=no
                   11548: 
                   11549:   if test "$have_clock_gettime" = "no"; then
                   11550:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_get_time" >&5
                   11551: $as_echo_n "checking for clock_get_time... " >&6; }
                   11552: 
                   11553:     if test "$cross_compiling" = yes; then :
                   11554:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   11555: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   11556: as_fn_error $? "cannot run test program while cross compiling
                   11557: See \`config.log' for more details" "$LINENO" 5; }
                   11558: else
                   11559:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11560: /* end confdefs.h.  */
                   11561:  #include <mach/mach.h>
                   11562:       #include <mach/clock.h>
                   11563:       #include <mach/mach_error.h>
                   11564: 
                   11565:       int main()
                   11566:       {
                   11567:         kern_return_t ret; clock_serv_t aClock; mach_timespec_t aTime;
                   11568:         ret = host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &aClock);
                   11569: 
                   11570:         if (ret != KERN_SUCCESS) {
                   11571:           return 1;
                   11572:         }
                   11573: 
                   11574:         ret = clock_get_time(aClock, &aTime);
                   11575:         if (ret != KERN_SUCCESS) {
                   11576:           return 2;
                   11577:         }
                   11578: 
                   11579:         return 0;
                   11580:       }
                   11581: 
                   11582: _ACEOF
                   11583: if ac_fn_c_try_run "$LINENO"; then :
                   11584: 
                   11585:       have_clock_get_time=yes
                   11586:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   11587: $as_echo "yes" >&6; }
                   11588: 
                   11589: else
                   11590: 
                   11591:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   11592: $as_echo "no" >&6; }
                   11593: 
                   11594: fi
                   11595: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   11596:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   11597: fi
                   11598: 
                   11599:   fi
                   11600: 
                   11601:   if test "$have_clock_get_time" = "yes"; then
                   11602: 
                   11603: $as_echo "#define HAVE_CLOCK_GET_TIME 1" >>confdefs.h
                   11604: 
                   11605:   fi
                   11606: 
                   11607: 
                   11608:   have_ptrace=no
                   11609:   have_broken_ptrace=no
                   11610: 
                   11611:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrace" >&5
                   11612: $as_echo_n "checking for ptrace... " >&6; }
                   11613: 
                   11614:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11615: /* end confdefs.h.  */
                   11616: 
                   11617:     #include <sys/types.h>
                   11618:     #include <sys/ptrace.h>
                   11619: int
                   11620: main ()
                   11621: {
                   11622: ptrace(0, 0, (void *) 0, 0);
                   11623:   ;
                   11624:   return 0;
                   11625: }
                   11626: _ACEOF
                   11627: if ac_fn_c_try_compile "$LINENO"; then :
                   11628: 
                   11629:     have_ptrace=yes
                   11630:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   11631: $as_echo "yes" >&6; }
                   11632: 
                   11633: else
                   11634: 
                   11635:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   11636: $as_echo "no" >&6; }
                   11637: 
                   11638: fi
                   11639: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   11640: 
                   11641:   if test "$have_ptrace" = "yes"; then
                   11642:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ptrace works" >&5
                   11643: $as_echo_n "checking whether ptrace works... " >&6; }
                   11644: 
                   11645:     if test "$cross_compiling" = yes; then :
                   11646:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   11647: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   11648: as_fn_error $? "cannot run test program while cross compiling
                   11649: See \`config.log' for more details" "$LINENO" 5; }
                   11650: else
                   11651:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11652: /* end confdefs.h.  */
                   11653: 
                   11654:       #include <unistd.h>
                   11655:       #include <signal.h>
                   11656:       #include <sys/wait.h>
                   11657:       #include <sys/types.h>
                   11658:       #include <sys/ptrace.h>
                   11659:       #include <errno.h>
                   11660: 
                   11661:       #if !defined(PTRACE_ATTACH) && defined(PT_ATTACH)
                   11662:       #define PTRACE_ATTACH PT_ATTACH
                   11663:       #endif
                   11664: 
                   11665:       #if !defined(PTRACE_DETACH) && defined(PT_DETACH)
                   11666:       #define PTRACE_DETACH PT_DETACH
                   11667:       #endif
                   11668: 
                   11669:       #if !defined(PTRACE_PEEKDATA) && defined(PT_READ_D)
                   11670:       #define PTRACE_PEEKDATA PT_READ_D
                   11671:       #endif
                   11672: 
                   11673:       int main()
                   11674:       {
                   11675:         long v1 = (unsigned int) -1; /* copy will fail if sizeof(long) == 8 and we've got "int ptrace()" */
                   11676:         long v2;
                   11677:         pid_t child;
                   11678:         int status;
                   11679: 
                   11680:         if ( (child = fork()) ) { /* parent */
                   11681:           int ret = 0;
                   11682: 
                   11683:           if (0 > ptrace(PTRACE_ATTACH, child, 0, 0)) {
                   11684:             return 2;
                   11685:           }
                   11686: 
                   11687:           waitpid(child, &status, 0);
                   11688: 
                   11689:       #ifdef PT_IO
                   11690:           struct ptrace_io_desc ptio = {
                   11691:             .piod_op = PIOD_READ_D,
                   11692:             .piod_offs = &v1,
                   11693:             .piod_addr = &v2,
                   11694:             .piod_len = sizeof(v1)
                   11695:           };
                   11696: 
                   11697:           if (0 > ptrace(PT_IO, child, (void *) &ptio, 0)) {
                   11698:             ret = 3;
                   11699:           }
                   11700:       #else
                   11701:           errno = 0;
                   11702: 
                   11703:           v2 = ptrace(PTRACE_PEEKDATA, child, (void *) &v1, 0);
                   11704: 
                   11705:           if (errno) {
                   11706:             ret = 4;
                   11707:           }
                   11708:       #endif
                   11709:           ptrace(PTRACE_DETACH, child, (void *) 1, 0);
                   11710: 
                   11711:           kill(child, SIGKILL);
                   11712: 
                   11713:           return ret ? ret : (v1 != v2);
                   11714:         }
                   11715:         else { /* child */
                   11716:           sleep(10);
                   11717:           return 0;
                   11718:         }
                   11719:       }
                   11720: 
                   11721: _ACEOF
                   11722: if ac_fn_c_try_run "$LINENO"; then :
                   11723: 
                   11724:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   11725: $as_echo "yes" >&6; }
                   11726: 
                   11727: else
                   11728: 
                   11729:       have_ptrace=no
                   11730:       have_broken_ptrace=yes
                   11731:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   11732: $as_echo "no" >&6; }
                   11733: 
                   11734: fi
                   11735: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   11736:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   11737: fi
                   11738: 
                   11739:   fi
                   11740: 
                   11741:   if test "$have_ptrace" = "yes"; then
                   11742: 
                   11743: $as_echo "#define HAVE_PTRACE 1" >>confdefs.h
                   11744: 
                   11745:   fi
                   11746: 
                   11747:   have_mach_vm_read=no
                   11748: 
                   11749:   if test "$have_broken_ptrace" = "yes"; then
                   11750:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mach_vm_read" >&5
                   11751: $as_echo_n "checking for mach_vm_read... " >&6; }
                   11752: 
                   11753:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11754: /* end confdefs.h.  */
                   11755:  #include <mach/mach.h>
                   11756:       #include <mach/mach_vm.h>
                   11757: 
                   11758: int
                   11759: main ()
                   11760: {
                   11761: 
                   11762:       mach_vm_read((vm_map_t)0, (mach_vm_address_t)0, (mach_vm_size_t)0, (vm_offset_t *)0, (mach_msg_type_number_t*)0);
                   11763: 
                   11764:   ;
                   11765:   return 0;
                   11766: }
                   11767: _ACEOF
                   11768: if ac_fn_c_try_compile "$LINENO"; then :
                   11769: 
                   11770:       have_mach_vm_read=yes
                   11771:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   11772: $as_echo "yes" >&6; }
                   11773: 
                   11774: else
                   11775: 
                   11776:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   11777: $as_echo "no" >&6; }
                   11778: 
                   11779: fi
                   11780: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   11781:   fi
                   11782: 
                   11783:   if test "$have_mach_vm_read" = "yes"; then
                   11784: 
                   11785: $as_echo "#define HAVE_MACH_VM_READ 1" >>confdefs.h
                   11786: 
                   11787:   fi
                   11788: 
                   11789:   proc_mem_file=""
                   11790: 
                   11791:   if test -r /proc/$$/mem ; then
                   11792:     proc_mem_file="mem"
                   11793:   else
                   11794:     if test -r /proc/$$/as ; then
                   11795:       proc_mem_file="as"
                   11796:     fi
                   11797:   fi
                   11798: 
                   11799:   if test -n "$proc_mem_file" ; then
                   11800:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proc mem file" >&5
                   11801: $as_echo_n "checking for proc mem file... " >&6; }
                   11802: 
                   11803:     if test "$cross_compiling" = yes; then :
                   11804:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   11805: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   11806: as_fn_error $? "cannot run test program while cross compiling
                   11807: See \`config.log' for more details" "$LINENO" 5; }
                   11808: else
                   11809:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11810: /* end confdefs.h.  */
                   11811: 
                   11812:       #define _GNU_SOURCE
                   11813:       #define _FILE_OFFSET_BITS 64
                   11814:       #include <stdint.h>
                   11815:       #include <unistd.h>
                   11816:       #include <sys/types.h>
                   11817:       #include <sys/stat.h>
                   11818:       #include <fcntl.h>
                   11819:       #include <stdio.h>
                   11820:       int main()
                   11821:       {
                   11822:         long v1 = (unsigned int) -1, v2 = 0;
                   11823:         char buf[128];
                   11824:         int fd;
                   11825:         sprintf(buf, "/proc/%d/$proc_mem_file", getpid());
                   11826:         fd = open(buf, O_RDONLY);
                   11827:         if (0 > fd) {
                   11828:           return 1;
                   11829:         }
                   11830:         if (sizeof(long) != pread(fd, &v2, sizeof(long), (uintptr_t) &v1)) {
                   11831:           close(fd);
                   11832:           return 1;
                   11833:         }
                   11834:         close(fd);
                   11835:         return v1 != v2;
                   11836:       }
                   11837: 
                   11838: _ACEOF
                   11839: if ac_fn_c_try_run "$LINENO"; then :
                   11840: 
                   11841:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proc_mem_file" >&5
                   11842: $as_echo "$proc_mem_file" >&6; }
                   11843: 
                   11844: else
                   11845: 
                   11846:       proc_mem_file=""
                   11847:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   11848: $as_echo "no" >&6; }
                   11849: 
                   11850: fi
                   11851: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   11852:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   11853: fi
                   11854: 
                   11855:   fi
                   11856: 
                   11857:   if test -n "$proc_mem_file"; then
                   11858: 
                   11859: cat >>confdefs.h <<_ACEOF
                   11860: #define PROC_MEM_FILE "$proc_mem_file"
                   11861: _ACEOF
                   11862: 
                   11863:   fi
                   11864: 
                   11865:   fpm_trace_type=""
                   11866: 
                   11867:   if test "$have_ptrace" = "yes"; then
                   11868:     fpm_trace_type=ptrace
                   11869: 
                   11870:   elif test -n "$proc_mem_file"; then
                   11871:     fpm_trace_type=pread
                   11872: 
                   11873:   elif test "$have_mach_vm_read" = "yes" ; then
                   11874:     fpm_trace_type=mach
                   11875: 
                   11876:   else
                   11877:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&5
                   11878: $as_echo "$as_me: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&2;}
                   11879:   fi
                   11880: 
                   11881: 
                   11882: 
                   11883:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5
                   11884: $as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
                   11885:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11886: /* end confdefs.h.  */
                   11887: 
                   11888: int
                   11889: main ()
                   11890: {
                   11891: 
                   11892:     int variable = 1;
                   11893:     return (__sync_bool_compare_and_swap(&variable, 1, 2)
                   11894:            && __sync_add_and_fetch(&variable, 1)) ? 1 : 0;
                   11895: 
                   11896:   ;
                   11897:   return 0;
                   11898: }
                   11899: _ACEOF
                   11900: if ac_fn_c_try_link "$LINENO"; then :
                   11901: 
                   11902:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   11903: $as_echo "yes" >&6; }
                   11904: 
                   11905: $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
                   11906: 
                   11907: 
                   11908: else
                   11909: 
                   11910:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   11911: $as_echo "no" >&6; }
                   11912: 
                   11913: fi
                   11914: rm -f core conftest.err conftest.$ac_objext \
                   11915:     conftest$ac_exeext conftest.$ac_ext
                   11916: 
                   11917: 
                   11918:   have_lq=no
                   11919: 
                   11920:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_INFO" >&5
                   11921: $as_echo_n "checking for TCP_INFO... " >&6; }
                   11922: 
                   11923:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11924: /* end confdefs.h.  */
                   11925:  #include <netinet/tcp.h>
                   11926: int
                   11927: main ()
                   11928: {
                   11929: struct tcp_info ti; ti.tcpi_sacked = 0; int x = TCP_INFO;
                   11930:   ;
                   11931:   return 0;
                   11932: }
                   11933: _ACEOF
                   11934: if ac_fn_c_try_compile "$LINENO"; then :
                   11935: 
                   11936:     have_lq=tcp_info
                   11937:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   11938: $as_echo "yes" >&6; }
                   11939: 
                   11940: else
                   11941: 
                   11942:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   11943: $as_echo "no" >&6; }
                   11944: 
                   11945: fi
                   11946: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   11947: 
                   11948:   if test "$have_lq" = "tcp_info"; then
                   11949: 
                   11950: $as_echo "#define HAVE_LQ_TCP_INFO 1" >>confdefs.h
                   11951: 
                   11952:   fi
                   11953: 
                   11954:   if test "$have_lq" = "no" ; then
                   11955:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_LISTENQLEN" >&5
                   11956: $as_echo_n "checking for SO_LISTENQLEN... " >&6; }
                   11957: 
                   11958:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11959: /* end confdefs.h.  */
                   11960:  #include <sys/socket.h>
                   11961: int
                   11962: main ()
                   11963: {
                   11964: int x = SO_LISTENQLIMIT; int y = SO_LISTENQLEN;
                   11965:   ;
                   11966:   return 0;
                   11967: }
                   11968: _ACEOF
                   11969: if ac_fn_c_try_compile "$LINENO"; then :
                   11970: 
                   11971:       have_lq=so_listenq
                   11972:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   11973: $as_echo "yes" >&6; }
                   11974: 
                   11975: else
                   11976: 
                   11977:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   11978: $as_echo "no" >&6; }
                   11979: 
                   11980: fi
                   11981: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   11982: 
                   11983:     if test "$have_lq" = "so_listenq"; then
                   11984: 
                   11985: $as_echo "#define HAVE_LQ_SO_LISTENQ 1" >>confdefs.h
                   11986: 
                   11987:     fi
                   11988:   fi
                   11989: 
                   11990: 
                   11991:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
                   11992: $as_echo_n "checking for sysconf... " >&6; }
                   11993: 
                   11994:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   11995: /* end confdefs.h.  */
                   11996:  #include <unistd.h>
                   11997: int
                   11998: main ()
                   11999: {
                   12000: sysconf(_SC_CLK_TCK);
                   12001:   ;
                   12002:   return 0;
                   12003: }
                   12004: _ACEOF
                   12005: if ac_fn_c_try_compile "$LINENO"; then :
                   12006: 
                   12007: 
                   12008: $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
                   12009: 
                   12010:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   12011: $as_echo "yes" >&6; }
                   12012: 
                   12013: else
                   12014: 
                   12015:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   12016: $as_echo "no" >&6; }
                   12017: 
                   12018: fi
                   12019: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   12020: 
                   12021: 
                   12022:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times" >&5
                   12023: $as_echo_n "checking for times... " >&6; }
                   12024: 
                   12025:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   12026: /* end confdefs.h.  */
                   12027:  #include <sys/times.h>
                   12028: int
                   12029: main ()
                   12030: {
                   12031: struct tms t; times(&t);
                   12032:   ;
                   12033:   return 0;
                   12034: }
                   12035: _ACEOF
                   12036: if ac_fn_c_try_compile "$LINENO"; then :
                   12037: 
                   12038: 
                   12039: $as_echo "#define HAVE_TIMES 1" >>confdefs.h
                   12040: 
                   12041:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   12042: $as_echo "yes" >&6; }
                   12043: 
                   12044: else
                   12045: 
                   12046:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   12047: $as_echo "no" >&6; }
                   12048: 
                   12049: fi
                   12050: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   12051: 
                   12052: 
                   12053:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
                   12054: $as_echo_n "checking for kqueue... " >&6; }
                   12055: 
                   12056:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   12057: /* end confdefs.h.  */
                   12058: 
                   12059:                #include <sys/types.h>
                   12060:                #include <sys/event.h>
                   12061:                #include <sys/time.h>
                   12062: 
                   12063: int
                   12064: main ()
                   12065: {
                   12066: 
                   12067:                int kfd;
                   12068:                struct kevent k;
                   12069:                kfd = kqueue();
                   12070:                /* 0 -> STDIN_FILENO */
                   12071:                EV_SET(&k, 0, EVFILT_READ , EV_ADD | EV_CLEAR, 0, 0, NULL);
                   12072: 
                   12073:   ;
                   12074:   return 0;
                   12075: }
                   12076: _ACEOF
                   12077: if ac_fn_c_try_compile "$LINENO"; then :
                   12078: 
                   12079: 
                   12080: $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
                   12081: 
                   12082:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   12083: $as_echo "yes" >&6; }
                   12084: 
                   12085: else
                   12086: 
                   12087:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   12088: $as_echo "no" >&6; }
                   12089: 
                   12090: fi
                   12091: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   12092: 
                   12093: 
                   12094:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port framework" >&5
                   12095: $as_echo_n "checking for port framework... " >&6; }
                   12096: 
                   12097:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   12098: /* end confdefs.h.  */
                   12099: 
                   12100:                #include <port.h>
                   12101: 
                   12102: int
                   12103: main ()
                   12104: {
                   12105: 
                   12106:                int port;
                   12107: 
                   12108:                port = port_create();
                   12109:                if (port < 0) {
                   12110:                        return 1;
                   12111:                }
                   12112: 
                   12113:   ;
                   12114:   return 0;
                   12115: }
                   12116: _ACEOF
                   12117: if ac_fn_c_try_compile "$LINENO"; then :
                   12118: 
                   12119: 
                   12120: $as_echo "#define HAVE_PORT 1" >>confdefs.h
                   12121: 
                   12122:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   12123: $as_echo "yes" >&6; }
                   12124: 
                   12125: else
                   12126: 
                   12127:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   12128: $as_echo "no" >&6; }
                   12129: 
                   12130: fi
                   12131: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   12132: 
                   12133: 
                   12134:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
                   12135: $as_echo_n "checking for /dev/poll... " >&6; }
                   12136: 
                   12137:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   12138: /* end confdefs.h.  */
                   12139: 
                   12140:                #include <stdio.h>
                   12141:                #include <sys/devpoll.h>
                   12142: 
                   12143: int
                   12144: main ()
                   12145: {
                   12146: 
                   12147:                int n, dp;
                   12148:                struct dvpoll dvp;
                   12149:                dp = 0;
                   12150:                dvp.dp_fds = NULL;
                   12151:                dvp.dp_nfds = 0;
                   12152:                dvp.dp_timeout = 0;
                   12153:                n = ioctl(dp, DP_POLL, &dvp)
                   12154: 
                   12155:   ;
                   12156:   return 0;
                   12157: }
                   12158: _ACEOF
                   12159: if ac_fn_c_try_compile "$LINENO"; then :
                   12160: 
                   12161: 
                   12162: $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
                   12163: 
                   12164:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   12165: $as_echo "yes" >&6; }
                   12166: 
                   12167: else
                   12168: 
                   12169:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   12170: $as_echo "no" >&6; }
                   12171: 
                   12172: fi
                   12173: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   12174: 
                   12175: 
                   12176:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
                   12177: $as_echo_n "checking for epoll... " >&6; }
                   12178: 
                   12179:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   12180: /* end confdefs.h.  */
                   12181: 
                   12182:                #include <sys/epoll.h>
                   12183: 
                   12184: int
                   12185: main ()
                   12186: {
                   12187: 
                   12188:                int epollfd;
                   12189:                struct epoll_event e;
                   12190: 
                   12191:                epollfd = epoll_create(1);
                   12192:                if (epollfd < 0) {
                   12193:                        return 1;
                   12194:                }
                   12195: 
                   12196:                e.events = EPOLLIN | EPOLLET;
                   12197:                e.data.fd = 0;
                   12198: 
                   12199:                if (epoll_ctl(epollfd, EPOLL_CTL_ADD, 0, &e) == -1) {
                   12200:                        return 1;
                   12201:                }
                   12202: 
                   12203:                e.events = 0;
                   12204:                if (epoll_wait(epollfd, &e, 1, 1) < 0) {
                   12205:                        return 1;
                   12206:                }
                   12207: 
                   12208:   ;
                   12209:   return 0;
                   12210: }
                   12211: _ACEOF
                   12212: if ac_fn_c_try_compile "$LINENO"; then :
                   12213: 
                   12214: 
                   12215: $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
                   12216: 
                   12217:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   12218: $as_echo "yes" >&6; }
                   12219: 
                   12220: else
                   12221: 
                   12222:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   12223: $as_echo "no" >&6; }
                   12224: 
                   12225: fi
                   12226: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   12227: 
                   12228: 
                   12229:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll" >&5
                   12230: $as_echo_n "checking for poll... " >&6; }
                   12231: 
                   12232:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   12233: /* end confdefs.h.  */
                   12234: 
                   12235:                #include <poll.h>
                   12236: 
                   12237: int
                   12238: main ()
                   12239: {
                   12240: 
                   12241:                struct pollfd fds[2];
                   12242: 
                   12243:                fds[0].fd = 0;
                   12244:                fds[0].events = POLLIN;
                   12245: 
                   12246:                fds[1].fd = 0;
                   12247:                fds[1].events = POLLIN;
                   12248: 
                   12249:                 poll(fds, 2, 1);
                   12250: 
                   12251:   ;
                   12252:   return 0;
                   12253: }
                   12254: _ACEOF
                   12255: if ac_fn_c_try_compile "$LINENO"; then :
                   12256: 
                   12257: 
                   12258: $as_echo "#define HAVE_POLL 1" >>confdefs.h
                   12259: 
                   12260:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   12261: $as_echo "yes" >&6; }
                   12262: 
                   12263: else
                   12264: 
                   12265:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   12266: $as_echo "no" >&6; }
                   12267: 
                   12268: fi
                   12269: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   12270: 
                   12271: 
                   12272:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
                   12273: $as_echo_n "checking for select... " >&6; }
                   12274: 
                   12275:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   12276: /* end confdefs.h.  */
                   12277: 
                   12278:                /* According to POSIX.1-2001 */
                   12279:                #include <sys/select.h>
                   12280: 
                   12281:                /* According to earlier standards */
                   12282:                #include <sys/time.h>
                   12283:                #include <sys/types.h>
                   12284:                #include <unistd.h>
                   12285: 
                   12286: int
                   12287: main ()
                   12288: {
                   12289: 
                   12290:                fd_set fds;
                   12291:                struct timeval t;
                   12292:                t.tv_sec = 0;
                   12293:                t.tv_usec = 42;
                   12294:                FD_ZERO(&fds);
                   12295:                /* 0 -> STDIN_FILENO */
                   12296:                FD_SET(0, &fds);
                   12297:                select(FD_SETSIZE, &fds, NULL, NULL, &t);
                   12298: 
                   12299:   ;
                   12300:   return 0;
                   12301: }
                   12302: _ACEOF
                   12303: if ac_fn_c_try_compile "$LINENO"; then :
                   12304: 
                   12305: 
                   12306: $as_echo "#define HAVE_SELECT 1" >>confdefs.h
                   12307: 
                   12308:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   12309: $as_echo "yes" >&6; }
                   12310: 
                   12311: else
                   12312: 
                   12313:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   12314: $as_echo "no" >&6; }
                   12315: 
                   12316: fi
                   12317: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   12318: 
                   12319: 
                   12320: 
                   12321: php_with_fpm_user=nobody
                   12322: 
                   12323: 
                   12324: 
                   12325: # Check whether --with-fpm-user was given.
                   12326: if test "${with_fpm_user+set}" = set; then :
                   12327:   withval=$with_fpm_user; PHP_FPM_USER=$withval
                   12328: else
                   12329: 
                   12330:   PHP_FPM_USER=nobody
                   12331: 
                   12332: 
                   12333: fi
                   12334: 
                   12335: 
                   12336: ext_output=$PHP_FPM_USER
                   12337: 
                   12338: 
                   12339: 
                   12340: 
                   12341: 
                   12342: 
                   12343: php_with_fpm_group=nobody
                   12344: 
                   12345: 
                   12346: 
                   12347: # Check whether --with-fpm-group was given.
                   12348: if test "${with_fpm_group+set}" = set; then :
                   12349:   withval=$with_fpm_group; PHP_FPM_GROUP=$withval
                   12350: else
                   12351: 
                   12352:   PHP_FPM_GROUP=nobody
                   12353: 
                   12354: 
                   12355: fi
                   12356: 
                   12357: 
                   12358: ext_output=$PHP_FPM_GROUP
                   12359: 
                   12360: 
                   12361: 
                   12362: 
                   12363: 
                   12364:   if test -z "$PHP_FPM_USER" -o "$PHP_FPM_USER" = "yes" -o "$PHP_FPM_USER" = "no"; then
                   12365:     php_fpm_user="nobody"
                   12366:   else
                   12367:     php_fpm_user="$PHP_FPM_USER"
                   12368:   fi
                   12369: 
                   12370:   if test -z "$PHP_FPM_GROUP" -o "$PHP_FPM_GROUP" = "yes" -o "$PHP_FPM_GROUP" = "no"; then
                   12371:     php_fpm_group="nobody"
                   12372:   else
                   12373:     php_fpm_group="$PHP_FPM_GROUP"
                   12374:   fi
                   12375: 
                   12376: 
                   12377: 
                   12378:   PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_user"
                   12379: 
                   12380: 
                   12381: 
                   12382: 
                   12383: 
                   12384:   PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_group"
                   12385: 
                   12386: 
                   12387: 
                   12388:   php_fpm_sysconfdir=`eval echo $sysconfdir`
                   12389: 
                   12390: 
                   12391:   PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_sysconfdir"
                   12392: 
                   12393: 
                   12394: 
                   12395:   php_fpm_localstatedir=`eval echo $localstatedir`
                   12396: 
                   12397: 
                   12398:   PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_localstatedir"
                   12399: 
                   12400: 
                   12401: 
                   12402:   php_fpm_prefix=`eval echo $prefix`
                   12403: 
                   12404: 
                   12405:   PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_prefix"
                   12406: 
                   12407: 
                   12408: 
                   12409: 
                   12410: 
                   12411: cat >>confdefs.h <<_ACEOF
                   12412: #define PHP_FPM_USER "$php_fpm_user"
                   12413: _ACEOF
                   12414: 
                   12415: 
                   12416: cat >>confdefs.h <<_ACEOF
                   12417: #define PHP_FPM_GROUP "$php_fpm_group"
                   12418: _ACEOF
                   12419: 
                   12420: 
                   12421: 
1.1.1.2 ! misho    12422: 
        !          12423:     BUILD_DIR="$BUILD_DIR sapi/fpm/fpm"
        !          12424: 
        !          12425: 
        !          12426: 
        !          12427: 
        !          12428:     BUILD_DIR="$BUILD_DIR sapi/fpm/fpm/events"
        !          12429: 
        !          12430: 
        !          12431: 
1.1       misho    12432:   PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.8 sapi/fpm/status.html"
                   12433: 
                   12434: 
                   12435:   src=$abs_srcdir/sapi/fpm/Makefile.frag
1.1.1.2 ! misho    12436:   ac_srcdir=$ext_srcdir
        !          12437:   ac_builddir=$ext_builddir
1.1       misho    12438:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
                   12439: 
                   12440: 
                   12441:   SAPI_FPM_PATH=sapi/fpm/php-fpm
                   12442: 
                   12443:   if test "$fpm_trace_type" && test -f "$abs_srcdir/sapi/fpm/fpm/fpm_trace_$fpm_trace_type.c"; then
                   12444:     PHP_FPM_TRACE_FILES="fpm/fpm_trace.c fpm/fpm_trace_$fpm_trace_type.c"
                   12445:   fi
                   12446: 
                   12447:   PHP_FPM_CFLAGS="-I$abs_srcdir/sapi/fpm"
                   12448: 
                   12449:   PHP_FPM_FILES="fpm/fastcgi.c \
                   12450:     fpm/fpm.c \
                   12451:     fpm/fpm_children.c \
                   12452:     fpm/fpm_cleanup.c \
                   12453:     fpm/fpm_clock.c \
                   12454:     fpm/fpm_conf.c \
                   12455:     fpm/fpm_env.c \
                   12456:     fpm/fpm_events.c \
                   12457:                fpm/fpm_log.c \
                   12458:     fpm/fpm_main.c \
                   12459:     fpm/fpm_php.c \
                   12460:     fpm/fpm_php_trace.c \
                   12461:     fpm/fpm_process_ctl.c \
                   12462:     fpm/fpm_request.c \
                   12463:     fpm/fpm_shm.c \
                   12464:     fpm/fpm_scoreboard.c \
                   12465:     fpm/fpm_signals.c \
                   12466:     fpm/fpm_sockets.c \
                   12467:     fpm/fpm_status.c \
                   12468:     fpm/fpm_stdio.c \
                   12469:     fpm/fpm_unix.c \
                   12470:     fpm/fpm_worker_pool.c \
                   12471:     fpm/zlog.c \
                   12472:                fpm/events/select.c \
                   12473:                fpm/events/poll.c \
                   12474:                fpm/events/epoll.c \
                   12475:                fpm/events/kqueue.c \
                   12476:                fpm/events/devpoll.c \
                   12477:                fpm/events/port.c \
                   12478:   "
                   12479: 
                   12480: 
1.1.1.2 ! misho    12481:   if test "program" = "program"; then
        !          12482:     PHP_BINARIES="$PHP_BINARIES fpm"
        !          12483:   elif test "$PHP_SAPI" != "none"; then
        !          12484:     as_fn_error $? "
        !          12485: +--------------------------------------------------------------------+
        !          12486: |                        *** ATTENTION ***                           |
        !          12487: |                                                                    |
        !          12488: | You've configured multiple SAPIs to be build. You can build only   |
        !          12489: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
        !          12490: +--------------------------------------------------------------------+
        !          12491: " "$LINENO" 5
        !          12492:   else
        !          12493:     PHP_SAPI=fpm
        !          12494:   fi
1.1       misho    12495: 
                   12496: 
                   12497: 
1.1.1.2 ! misho    12498:     BUILD_DIR="$BUILD_DIR sapi/fpm"
1.1       misho    12499: 
                   12500: 
                   12501: 
1.1.1.2 ! misho    12502:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS fpm"
1.1       misho    12503: 
                   12504: 
                   12505: 
1.1.1.2 ! misho    12506:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
        !          12507:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
        !          12508:   php_c_post=
        !          12509:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
        !          12510:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
        !          12511:   php_cxx_post=
        !          12512:   php_lo=lo
1.1       misho    12513: 
1.1.1.2 ! misho    12514:   case $with_pic in
        !          12515:     yes) pic_setting='-prefer-pic';;
        !          12516:     no)  pic_setting='-prefer-non-pic';;
        !          12517:   esac
        !          12518: 
        !          12519:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
        !          12520:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
        !          12521:   shared_c_post=
        !          12522:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
        !          12523:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
        !          12524:   shared_cxx_post=
        !          12525:   shared_lo=lo
1.1       misho    12526: 
1.1.1.2 ! misho    12527:     install_binaries="install-binaries"
        !          12528:     install_binary_targets="$install_binary_targets install-fpm"
1.1       misho    12529: 
1.1.1.2 ! misho    12530:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FPM_OBJS"
1.1       misho    12531: 
                   12532: 
1.1.1.2 ! misho    12533:   case sapi/fpm in
1.1       misho    12534:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    12535:   /*) ac_srcdir=`echo "sapi/fpm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          12536:   *) ac_srcdir="$abs_srcdir/sapi/fpm/"; ac_bdir="sapi/fpm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    12537:   esac
                   12538: 
                   12539: 
                   12540: 
                   12541:   b_c_pre=$php_c_pre
                   12542:   b_cxx_pre=$php_cxx_pre
                   12543:   b_c_meta=$php_c_meta
                   12544:   b_cxx_meta=$php_cxx_meta
                   12545:   b_c_post=$php_c_post
                   12546:   b_cxx_post=$php_cxx_post
                   12547:   b_lo=$php_lo
                   12548: 
                   12549: 
                   12550:   old_IFS=$IFS
1.1.1.2 ! misho    12551:   for ac_src in $PHP_FPM_FILES $PHP_FPM_TRACE_FILES; do
1.1       misho    12552: 
                   12553:       IFS=.
                   12554:       set $ac_src
                   12555:       ac_obj=$1
                   12556:       IFS=$old_IFS
                   12557: 
                   12558:       PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
                   12559: 
                   12560:       case $ac_src in
1.1.1.2 ! misho    12561:         *.c) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          12562:         *.s) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          12563:         *.S) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          12564:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $PHP_FPM_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
1.1       misho    12565:       esac
                   12566: 
                   12567:     cat >>Makefile.objects<<EOF
                   12568: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   12569:        $ac_comp
                   12570: EOF
                   12571:   done
                   12572: 
                   12573: 
                   12574: 
1.1.1.2 ! misho    12575: 
1.1       misho    12576:   case $host_alias in
                   12577:       *aix*)
1.1.1.2 ! misho    12578:         BUILD_FPM="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FPM_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
1.1       misho    12579:         ;;
                   12580:       *darwin*)
1.1.1.2 ! misho    12581:         BUILD_FPM="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_FPM_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
1.1       misho    12582:       ;;
                   12583:       *)
1.1.1.2 ! misho    12584:         BUILD_FPM="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
1.1       misho    12585:       ;;
                   12586:   esac
                   12587: 
                   12588: 
1.1.1.2 ! misho    12589:   PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_FPM_PATH"
1.1       misho    12590: 
                   12591: 
1.1.1.2 ! misho    12592:   PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_FPM"
1.1       misho    12593: 
                   12594: 
                   12595: else
                   12596:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   12597: $as_echo "no" >&6; }
                   12598: fi
                   12599: 
                   12600: 
                   12601: 
                   12602: php_with_isapi=no
                   12603: 
                   12604: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zeus ISAPI support" >&5
                   12605: $as_echo_n "checking for Zeus ISAPI support... " >&6; }
                   12606: 
                   12607: # Check whether --with-isapi was given.
                   12608: if test "${with_isapi+set}" = set; then :
                   12609:   withval=$with_isapi; PHP_ISAPI=$withval
                   12610: else
                   12611: 
                   12612:   PHP_ISAPI=no
                   12613: 
                   12614: 
                   12615: fi
                   12616: 
                   12617: 
                   12618: ext_output=$PHP_ISAPI
                   12619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   12620: $as_echo "$ext_output" >&6; }
                   12621: 
                   12622: 
                   12623: 
                   12624: 
                   12625: if test "$PHP_ISAPI" != "no"; then
                   12626:   if test "$PHP_ISAPI" = "yes"; then
                   12627:     ZEUSPATH=/usr/local/zeus # the default
                   12628:   else
                   12629:     ZEUSPATH=$PHP_ISAPI
                   12630:   fi
                   12631:   test -f "$ZEUSPATH/web/include/httpext.h" || as_fn_error $? "Unable to find httpext.h in $ZEUSPATH/web/include" "$LINENO" 5
                   12632: 
                   12633:   enable_maintainer_zts=yes
                   12634:   if test "$pthreads_working" != "yes"; then
                   12635:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
                   12636:   fi
                   12637: 
                   12638: 
                   12639: $as_echo "#define WITH_ZEUS 1" >>confdefs.h
                   12640: 
                   12641: 
                   12642:   if test "$ZEUSPATH/web/include" != "/usr/include"; then
                   12643: 
                   12644:   if test -z "$ZEUSPATH/web/include" || echo "$ZEUSPATH/web/include" | grep '^/' >/dev/null ; then
                   12645:     ai_p=$ZEUSPATH/web/include
                   12646:   else
                   12647: 
                   12648:     ep_dir="`echo $ZEUSPATH/web/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   12649: 
                   12650:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   12651:     ai_p="$ep_realdir/`basename \"$ZEUSPATH/web/include\"`"
                   12652:   fi
                   12653: 
                   12654: 
                   12655: 
                   12656:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   12657: 
                   12658:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   12659:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   12660:     eval "INCLUDEPATH$unique=set"
                   12661: 
                   12662:       if test ""; then
                   12663:         INCLUDES="-I$ai_p $INCLUDES"
                   12664:       else
                   12665:         INCLUDES="$INCLUDES -I$ai_p"
                   12666:       fi
                   12667: 
                   12668:   fi
                   12669: 
                   12670:   fi
                   12671: 
                   12672: 
1.1.1.2 ! misho    12673:   if test "shared" = "program"; then
        !          12674:     PHP_BINARIES="$PHP_BINARIES isapi"
        !          12675:   elif test "$PHP_SAPI" != "none"; then
        !          12676:     as_fn_error $? "
1.1       misho    12677: +--------------------------------------------------------------------+
                   12678: |                        *** ATTENTION ***                           |
                   12679: |                                                                    |
                   12680: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    12681: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    12682: +--------------------------------------------------------------------+
                   12683: " "$LINENO" 5
1.1.1.2 ! misho    12684:   else
        !          12685:     PHP_SAPI=isapi
1.1       misho    12686:   fi
                   12687: 
                   12688: 
                   12689: 
1.1.1.2 ! misho    12690:     BUILD_DIR="$BUILD_DIR sapi/isapi"
        !          12691: 
        !          12692: 
        !          12693: 
        !          12694:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS isapi"
        !          12695: 
        !          12696: 
        !          12697:     case "shared" in
        !          12698:     static)
        !          12699: 
1.1       misho    12700:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   12701:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   12702:   php_c_post=
                   12703:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   12704:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   12705:   php_cxx_post=
                   12706:   php_lo=lo
                   12707: 
                   12708:   case $with_pic in
                   12709:     yes) pic_setting='-prefer-pic';;
                   12710:     no)  pic_setting='-prefer-non-pic';;
                   12711:   esac
                   12712: 
                   12713:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   12714:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   12715:   shared_c_post=
                   12716:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   12717:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   12718:   shared_cxx_post=
                   12719:   shared_lo=lo
                   12720: 
                   12721:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    12722:   php_sapi_module=static
1.1       misho    12723: ;;
1.1.1.2 ! misho    12724:     shared)
1.1       misho    12725: 
                   12726:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   12727:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   12728:   php_c_post=
                   12729:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   12730:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   12731:   php_cxx_post=
                   12732:   php_lo=lo
                   12733: 
                   12734:   case $with_pic in
                   12735:     yes) pic_setting='-prefer-pic';;
                   12736:     no)  pic_setting='-prefer-non-pic';;
                   12737:   esac
                   12738: 
                   12739:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   12740:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   12741:   shared_c_post=
                   12742:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   12743:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   12744:   shared_cxx_post=
                   12745:   shared_lo=lo
                   12746: 
                   12747:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    12748:   php_sapi_module=shared
1.1       misho    12749: 
                   12750:   php_c_pre=$shared_c_pre
                   12751:   php_c_meta=$shared_c_meta
                   12752:   php_c_post=$shared_c_post
                   12753:   php_cxx_pre=$shared_cxx_pre
                   12754:   php_cxx_meta=$shared_cxx_meta
                   12755:   php_cxx_post=$shared_cxx_post
                   12756:   php_lo=$shared_lo
                   12757: ;;
1.1.1.2 ! misho    12758:     bundle)
1.1       misho    12759: 
                   12760:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   12761:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   12762:   php_c_post=
                   12763:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   12764:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   12765:   php_cxx_post=
                   12766:   php_lo=lo
                   12767: 
                   12768:   case $with_pic in
                   12769:     yes) pic_setting='-prefer-pic';;
                   12770:     no)  pic_setting='-prefer-non-pic';;
                   12771:   esac
                   12772: 
                   12773:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   12774:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   12775:   shared_c_post=
                   12776:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   12777:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   12778:   shared_cxx_post=
                   12779:   shared_lo=lo
                   12780: 
                   12781:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    12782:   php_sapi_module=static
1.1       misho    12783: ;;
1.1.1.2 ! misho    12784:     esac
        !          12785:     install_sapi="install-sapi"
1.1       misho    12786: 
                   12787: 
                   12788:   case sapi/isapi in
                   12789:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   12790:   /*) ac_srcdir=`echo "sapi/isapi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   12791:   *) ac_srcdir="$abs_srcdir/sapi/isapi/"; ac_bdir="sapi/isapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   12792:   esac
                   12793: 
                   12794: 
                   12795: 
                   12796:   b_c_pre=$php_c_pre
                   12797:   b_cxx_pre=$php_cxx_pre
                   12798:   b_c_meta=$php_c_meta
                   12799:   b_cxx_meta=$php_cxx_meta
                   12800:   b_c_post=$php_c_post
                   12801:   b_cxx_post=$php_cxx_post
                   12802:   b_lo=$php_lo
                   12803: 
                   12804: 
                   12805:   old_IFS=$IFS
                   12806:   for ac_src in php5isapi.c; do
                   12807: 
                   12808:       IFS=.
                   12809:       set $ac_src
                   12810:       ac_obj=$1
                   12811:       IFS=$old_IFS
                   12812: 
                   12813:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   12814: 
                   12815:       case $ac_src in
                   12816:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   12817:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   12818:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   12819:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   12820:       esac
                   12821: 
                   12822:     cat >>Makefile.objects<<EOF
                   12823: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   12824:        $ac_comp
                   12825: EOF
                   12826:   done
                   12827: 
                   12828: 
                   12829: 
1.1.1.2 ! misho    12830: 
1.1       misho    12831:   INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$ZEUSPATH/web/bin/"
                   12832: fi
                   12833: 
                   12834: 
                   12835: 
                   12836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LiteSpeed support" >&5
                   12837: $as_echo_n "checking for LiteSpeed support... " >&6; }
                   12838: 
                   12839: 
                   12840: php_with_litespeed=no
                   12841: 
                   12842: 
                   12843: 
                   12844: # Check whether --with-litespeed was given.
                   12845: if test "${with_litespeed+set}" = set; then :
                   12846:   withval=$with_litespeed; PHP_LITESPEED=$withval
                   12847: else
                   12848: 
                   12849:   PHP_LITESPEED=no
                   12850:   test "$PHP_ENABLE_ALL" && PHP_LITESPEED=$PHP_ENABLE_ALL
                   12851: 
                   12852: fi
                   12853: 
                   12854: 
                   12855: 
                   12856: ext_output="yes, shared"
                   12857: ext_shared=yes
                   12858: case $PHP_LITESPEED in
                   12859: shared,*)
                   12860:   PHP_LITESPEED=`echo "$PHP_LITESPEED"|$SED 's/^shared,//'`
                   12861:   ;;
                   12862: shared)
                   12863:   PHP_LITESPEED=yes
                   12864:   ;;
                   12865: no)
                   12866:   ext_output=no
                   12867:   ext_shared=no
                   12868:   ;;
                   12869: *)
                   12870:   ext_output=yes
                   12871:   ext_shared=no
                   12872:   ;;
                   12873: esac
                   12874: 
                   12875: 
                   12876: 
                   12877: 
                   12878: 
                   12879: 
                   12880: 
                   12881: 
                   12882: if test "$PHP_LITESPEED" != "no"; then
                   12883: 
                   12884:   src=$abs_srcdir/sapi/litespeed/Makefile.frag
                   12885:   ac_srcdir=$abs_srcdir/sapi/litespeed
                   12886:   ac_builddir=sapi/litespeed
                   12887:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
                   12888: 
                   12889:   SAPI_LITESPEED_PATH=sapi/litespeed/php
                   12890: 
1.1.1.2 ! misho    12891:   if test "program" = "program"; then
        !          12892:     PHP_BINARIES="$PHP_BINARIES litespeed"
        !          12893:   elif test "$PHP_SAPI" != "none"; then
        !          12894:     as_fn_error $? "
1.1       misho    12895: +--------------------------------------------------------------------+
                   12896: |                        *** ATTENTION ***                           |
                   12897: |                                                                    |
                   12898: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    12899: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    12900: +--------------------------------------------------------------------+
                   12901: " "$LINENO" 5
1.1.1.2 ! misho    12902:   else
        !          12903:     PHP_SAPI=litespeed
1.1       misho    12904:   fi
                   12905: 
                   12906: 
                   12907: 
1.1.1.2 ! misho    12908:     BUILD_DIR="$BUILD_DIR sapi/litespeed"
1.1       misho    12909: 
                   12910: 
                   12911: 
1.1.1.2 ! misho    12912:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS litespeed"
1.1       misho    12913: 
                   12914: 
                   12915: 
                   12916:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   12917:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   12918:   php_c_post=
                   12919:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   12920:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   12921:   php_cxx_post=
                   12922:   php_lo=lo
                   12923: 
                   12924:   case $with_pic in
                   12925:     yes) pic_setting='-prefer-pic';;
                   12926:     no)  pic_setting='-prefer-non-pic';;
                   12927:   esac
                   12928: 
                   12929:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   12930:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   12931:   shared_c_post=
                   12932:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   12933:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   12934:   shared_cxx_post=
                   12935:   shared_lo=lo
                   12936: 
1.1.1.2 ! misho    12937:     install_binaries="install-binaries"
        !          12938:     install_binary_targets="$install_binary_targets install-litespeed"
1.1       misho    12939: 
1.1.1.2 ! misho    12940:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LITESPEED_OBJS"
1.1       misho    12941: 
                   12942: 
                   12943:   case sapi/litespeed in
                   12944:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   12945:   /*) ac_srcdir=`echo "sapi/litespeed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   12946:   *) ac_srcdir="$abs_srcdir/sapi/litespeed/"; ac_bdir="sapi/litespeed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   12947:   esac
                   12948: 
                   12949: 
                   12950: 
                   12951:   b_c_pre=$php_c_pre
                   12952:   b_cxx_pre=$php_cxx_pre
                   12953:   b_c_meta=$php_c_meta
                   12954:   b_cxx_meta=$php_cxx_meta
                   12955:   b_c_post=$php_c_post
                   12956:   b_cxx_post=$php_cxx_post
                   12957:   b_lo=$php_lo
                   12958: 
                   12959: 
                   12960:   old_IFS=$IFS
                   12961:   for ac_src in lsapi_main.c lsapilib.c; do
                   12962: 
                   12963:       IFS=.
                   12964:       set $ac_src
                   12965:       ac_obj=$1
                   12966:       IFS=$old_IFS
                   12967: 
1.1.1.2 ! misho    12968:       PHP_LITESPEED_OBJS="$PHP_LITESPEED_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    12969: 
                   12970:       case $ac_src in
                   12971:         *.c) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   12972:         *.s) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   12973:         *.S) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   12974:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre "" $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   12975:       esac
                   12976: 
                   12977:     cat >>Makefile.objects<<EOF
                   12978: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   12979:        $ac_comp
                   12980: EOF
                   12981:   done
                   12982: 
                   12983: 
                   12984: 
                   12985:   case $host_alias in
                   12986:   *darwin*)
1.1.1.2 ! misho    12987:     BUILD_LITESPEED="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_LITESPEED_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
1.1       misho    12988:     ;;
                   12989:   *cygwin*)
                   12990:     SAPI_LITESPEED_PATH=sapi/litespeed/php.exe
1.1.1.2 ! misho    12991:     BUILD_LITESPEED="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_LITESPEED_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
1.1       misho    12992:     ;;
                   12993:   *)
1.1.1.2 ! misho    12994:     BUILD_LITESPEED="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_LITESPEED_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
1.1       misho    12995:     ;;
                   12996:   esac
                   12997: 
                   12998: 
1.1.1.2 ! misho    12999:   PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_LITESPEED_PATH"
        !          13000: 
        !          13001: 
1.1       misho    13002:   PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_LITESPEED"
                   13003: 
                   13004: fi
                   13005: 
                   13006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_LITESPEED" >&5
                   13007: $as_echo "$PHP_LITESPEED" >&6; }
                   13008: 
                   13009: 
                   13010: 
                   13011: php_with_milter=no
                   13012: 
                   13013: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Milter support" >&5
                   13014: $as_echo_n "checking for Milter support... " >&6; }
                   13015: 
                   13016: # Check whether --with-milter was given.
                   13017: if test "${with_milter+set}" = set; then :
                   13018:   withval=$with_milter; PHP_MILTER=$withval
                   13019: else
                   13020: 
                   13021:   PHP_MILTER=no
                   13022: 
                   13023: 
                   13024: fi
                   13025: 
                   13026: 
                   13027: ext_output=$PHP_MILTER
                   13028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   13029: $as_echo "$ext_output" >&6; }
                   13030: 
                   13031: 
                   13032: 
                   13033: 
                   13034: if test "$PHP_MILTER" != "no"; then
                   13035:   if test "$PHP_MILTER" = "yes"; then
                   13036:     if test -f /usr/lib/libmilter.a ; then
                   13037:       MILTERPATH=/usr/lib
                   13038:     else
                   13039:       if test -f /usr/lib/libmilter/libmilter.a ; then
                   13040:         MILTERPATH=/usr/lib/libmilter
                   13041:       else
                   13042:         as_fn_error $? "Unable to find libmilter.a" "$LINENO" 5
                   13043:       fi
                   13044:     fi
                   13045:   else
                   13046:     MILTERPATH=$PHP_MILTER
                   13047:   fi
                   13048: 
                   13049:   SAPI_MILTER_PATH=sapi/milter/php-milter
                   13050: 
                   13051:   enable_maintainer_zts=yes
                   13052:   if test "$pthreads_working" != "yes"; then
                   13053:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
                   13054:   fi
                   13055: 
                   13056: 
                   13057:   src=$abs_srcdir/sapi/milter/Makefile.frag
                   13058:   ac_srcdir=$ext_srcdir
                   13059:   ac_builddir=$ext_builddir
                   13060:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
                   13061: 
                   13062: 
1.1.1.2 ! misho    13063:   if test "program" = "program"; then
        !          13064:     PHP_BINARIES="$PHP_BINARIES milter"
        !          13065:   elif test "$PHP_SAPI" != "none"; then
        !          13066:     as_fn_error $? "
1.1       misho    13067: +--------------------------------------------------------------------+
                   13068: |                        *** ATTENTION ***                           |
                   13069: |                                                                    |
                   13070: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    13071: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    13072: +--------------------------------------------------------------------+
                   13073: " "$LINENO" 5
1.1.1.2 ! misho    13074:   else
        !          13075:     PHP_SAPI=milter
1.1       misho    13076:   fi
                   13077: 
                   13078: 
                   13079: 
1.1.1.2 ! misho    13080:     BUILD_DIR="$BUILD_DIR sapi/milter"
1.1       misho    13081: 
                   13082: 
                   13083: 
1.1.1.2 ! misho    13084:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS milter"
1.1       misho    13085: 
                   13086: 
                   13087: 
                   13088:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13089:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   13090:   php_c_post=
                   13091:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13092:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   13093:   php_cxx_post=
                   13094:   php_lo=lo
                   13095: 
                   13096:   case $with_pic in
                   13097:     yes) pic_setting='-prefer-pic';;
                   13098:     no)  pic_setting='-prefer-non-pic';;
                   13099:   esac
                   13100: 
                   13101:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13102:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   13103:   shared_c_post=
                   13104:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13105:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   13106:   shared_cxx_post=
                   13107:   shared_lo=lo
                   13108: 
1.1.1.2 ! misho    13109:     install_binaries="install-binaries"
        !          13110:     install_binary_targets="$install_binary_targets install-milter"
1.1       misho    13111: 
1.1.1.2 ! misho    13112:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MILTER_OBJS"
1.1       misho    13113: 
                   13114: 
                   13115:   case sapi/milter in
                   13116:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   13117:   /*) ac_srcdir=`echo "sapi/milter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   13118:   *) ac_srcdir="$abs_srcdir/sapi/milter/"; ac_bdir="sapi/milter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   13119:   esac
                   13120: 
                   13121: 
                   13122: 
                   13123:   b_c_pre=$php_c_pre
                   13124:   b_cxx_pre=$php_cxx_pre
                   13125:   b_c_meta=$php_c_meta
                   13126:   b_cxx_meta=$php_cxx_meta
                   13127:   b_c_post=$php_c_post
                   13128:   b_cxx_post=$php_cxx_post
                   13129:   b_lo=$php_lo
                   13130: 
                   13131: 
                   13132:   old_IFS=$IFS
                   13133:   for ac_src in php_milter.c getopt.c; do
                   13134: 
                   13135:       IFS=.
                   13136:       set $ac_src
                   13137:       ac_obj=$1
                   13138:       IFS=$old_IFS
                   13139: 
1.1.1.2 ! misho    13140:       PHP_MILTER_OBJS="$PHP_MILTER_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    13141: 
                   13142:       case $ac_src in
                   13143:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   13144:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   13145:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   13146:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   13147:       esac
                   13148: 
                   13149:     cat >>Makefile.objects<<EOF
                   13150: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   13151:        $ac_comp
                   13152: EOF
                   13153:   done
                   13154: 
                   13155: 
                   13156: 
                   13157: 
                   13158: 
                   13159:   if test -n "$MILTERPATH"; then
                   13160: 
                   13161:   if test "$MILTERPATH" != "/usr/$PHP_LIBDIR" && test "$MILTERPATH" != "/usr/lib"; then
                   13162: 
                   13163:   if test -z "$MILTERPATH" || echo "$MILTERPATH" | grep '^/' >/dev/null ; then
                   13164:     ai_p=$MILTERPATH
                   13165:   else
                   13166: 
                   13167:     ep_dir="`echo $MILTERPATH|$SED 's%/*[^/][^/]*/*$%%'`"
                   13168: 
                   13169:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   13170:     ai_p="$ep_realdir/`basename \"$MILTERPATH\"`"
                   13171:   fi
                   13172: 
                   13173: 
                   13174: 
                   13175: 
                   13176: 
                   13177:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   13178: 
                   13179:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   13180:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   13181:     eval "LIBPATH$unique=set"
                   13182: 
                   13183:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   13184:     LDFLAGS="$LDFLAGS -L$ai_p"
                   13185:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   13186: 
                   13187:   fi
                   13188: 
                   13189: 
                   13190: 
                   13191:   fi
                   13192: 
                   13193:   fi
                   13194: 
                   13195: 
                   13196:   case milter in
                   13197:   c|c_r|pthread*) ;;
                   13198:   *)
                   13199:       LIBS="-lmilter $LIBS"
                   13200:    ;;
                   13201:   esac
                   13202: 
                   13203: 
                   13204: 
                   13205: 
1.1.1.2 ! misho    13206:   BUILD_MILTER="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_MILTER_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_MILTER_PATH)"
1.1       misho    13207: 
                   13208:   PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_MILTER_PATH"
                   13209: 
                   13210: 
                   13211:   PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_MILTER"
                   13212: 
                   13213: fi
                   13214: 
                   13215: 
                   13216: 
                   13217: php_with_nsapi=no
                   13218: 
                   13219: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSAPI support" >&5
                   13220: $as_echo_n "checking for NSAPI support... " >&6; }
                   13221: 
                   13222: # Check whether --with-nsapi was given.
                   13223: if test "${with_nsapi+set}" = set; then :
                   13224:   withval=$with_nsapi; PHP_NSAPI=$withval
                   13225: else
                   13226: 
                   13227:   PHP_NSAPI=no
                   13228: 
                   13229: 
                   13230: fi
                   13231: 
                   13232: 
                   13233: ext_output=$PHP_NSAPI
                   13234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   13235: $as_echo "$ext_output" >&6; }
                   13236: 
                   13237: 
                   13238: 
                   13239: 
                   13240: if test "$PHP_NSAPI" != "no"; then
                   13241:   if test ! -d $PHP_NSAPI/bin ; then
                   13242:     as_fn_error $? "Please specify the path to the root of your Netscape/iPlanet/Sun Webserver using --with-nsapi=DIR" "$LINENO" 5
                   13243:   fi
                   13244:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSAPI include files" >&5
                   13245: $as_echo_n "checking for NSAPI include files... " >&6; }
                   13246:   if test -d $PHP_NSAPI/include ; then
                   13247:     NSAPI_INC_DIR="$PHP_NSAPI/include"
                   13248:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Netscape 3.x / Sun 7.x style" >&5
                   13249: $as_echo "Netscape 3.x / Sun 7.x style" >&6; }
                   13250:     for ac_header in $NSAPI_INC_DIR/nsapi.h
                   13251: do :
                   13252:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   13253: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   13254: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   13255:   cat >>confdefs.h <<_ACEOF
                   13256: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   13257: _ACEOF
                   13258: 
                   13259: fi
                   13260: 
                   13261: done
                   13262: 
                   13263:     NSAPI_INCLUDE="-I$NSAPI_INC_DIR"
                   13264:   fi
                   13265:   if test -d $PHP_NSAPI/plugins/include ; then
                   13266:     NSAPI_INC_DIR="$PHP_NSAPI/plugins/include"
                   13267:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: iPlanet 4.x / Sun 6.x style" >&5
                   13268: $as_echo "iPlanet 4.x / Sun 6.x style" >&6; }
                   13269:     for ac_header in $NSAPI_INC_DIR/nsapi.h
                   13270: do :
                   13271:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   13272: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   13273: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   13274:   cat >>confdefs.h <<_ACEOF
                   13275: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   13276: _ACEOF
                   13277: 
                   13278: fi
                   13279: 
                   13280: done
                   13281: 
                   13282:     NSAPI_INCLUDE="$NSAPI_INCLUDE -I$NSAPI_INC_DIR"
                   13283:   fi
                   13284:   if test -z "$NSAPI_INCLUDE"; then
                   13285:     as_fn_error $? "Please check you have nsapi.h in either $PHP_NSAPI/include or $PHP_NSAPI/plugins/include" "$LINENO" 5
                   13286:   fi
                   13287: 
                   13288: 
                   13289:   for ac_i in $NSAPI_INCLUDE; do
                   13290:     case $ac_i in
                   13291:     -I*)
                   13292:       ac_ii=`echo $ac_i|cut -c 3-`
                   13293: 
                   13294:   if test "$ac_ii" != "/usr/include"; then
                   13295: 
                   13296:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   13297:     ai_p=$ac_ii
                   13298:   else
                   13299: 
                   13300:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   13301: 
                   13302:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   13303:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   13304:   fi
                   13305: 
                   13306: 
                   13307: 
                   13308:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   13309: 
                   13310:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   13311:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   13312:     eval "INCLUDEPATH$unique=set"
                   13313: 
                   13314:       if test ""; then
                   13315:         INCLUDES="-I$ai_p $INCLUDES"
                   13316:       else
                   13317:         INCLUDES="$INCLUDES -I$ai_p"
                   13318:       fi
                   13319: 
                   13320:   fi
                   13321: 
                   13322:   fi
                   13323: 
                   13324:     ;;
                   13325:     esac
                   13326:   done
                   13327: 
                   13328: 
                   13329:   enable_maintainer_zts=yes
                   13330:   if test "$pthreads_working" != "yes"; then
                   13331:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
                   13332:   fi
                   13333: 
                   13334: 
                   13335: $as_echo "#define HAVE_NSAPI 1" >>confdefs.h
                   13336: 
                   13337: 
1.1.1.2 ! misho    13338:   if test "shared" = "program"; then
        !          13339:     PHP_BINARIES="$PHP_BINARIES nsapi"
        !          13340:   elif test "$PHP_SAPI" != "none"; then
        !          13341:     as_fn_error $? "
1.1       misho    13342: +--------------------------------------------------------------------+
                   13343: |                        *** ATTENTION ***                           |
                   13344: |                                                                    |
                   13345: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    13346: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    13347: +--------------------------------------------------------------------+
                   13348: " "$LINENO" 5
1.1.1.2 ! misho    13349:   else
        !          13350:     PHP_SAPI=nsapi
1.1       misho    13351:   fi
                   13352: 
                   13353: 
                   13354: 
1.1.1.2 ! misho    13355:     BUILD_DIR="$BUILD_DIR sapi/nsapi"
        !          13356: 
        !          13357: 
        !          13358: 
        !          13359:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS nsapi"
        !          13360: 
        !          13361: 
        !          13362:     case "shared" in
        !          13363:     static)
        !          13364: 
1.1       misho    13365:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13366:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   13367:   php_c_post=
                   13368:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13369:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   13370:   php_cxx_post=
                   13371:   php_lo=lo
                   13372: 
                   13373:   case $with_pic in
                   13374:     yes) pic_setting='-prefer-pic';;
                   13375:     no)  pic_setting='-prefer-non-pic';;
                   13376:   esac
                   13377: 
                   13378:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13379:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   13380:   shared_c_post=
                   13381:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13382:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   13383:   shared_cxx_post=
                   13384:   shared_lo=lo
                   13385: 
                   13386:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    13387:   php_sapi_module=static
1.1       misho    13388: ;;
1.1.1.2 ! misho    13389:     shared)
1.1       misho    13390: 
                   13391:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13392:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   13393:   php_c_post=
                   13394:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13395:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   13396:   php_cxx_post=
                   13397:   php_lo=lo
                   13398: 
                   13399:   case $with_pic in
                   13400:     yes) pic_setting='-prefer-pic';;
                   13401:     no)  pic_setting='-prefer-non-pic';;
                   13402:   esac
                   13403: 
                   13404:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13405:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   13406:   shared_c_post=
                   13407:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13408:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   13409:   shared_cxx_post=
                   13410:   shared_lo=lo
                   13411: 
                   13412:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    13413:   php_sapi_module=shared
1.1       misho    13414: 
                   13415:   php_c_pre=$shared_c_pre
                   13416:   php_c_meta=$shared_c_meta
                   13417:   php_c_post=$shared_c_post
                   13418:   php_cxx_pre=$shared_cxx_pre
                   13419:   php_cxx_meta=$shared_cxx_meta
                   13420:   php_cxx_post=$shared_cxx_post
                   13421:   php_lo=$shared_lo
                   13422: ;;
1.1.1.2 ! misho    13423:     bundle)
1.1       misho    13424: 
                   13425:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13426:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   13427:   php_c_post=
                   13428:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13429:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   13430:   php_cxx_post=
                   13431:   php_lo=lo
                   13432: 
                   13433:   case $with_pic in
                   13434:     yes) pic_setting='-prefer-pic';;
                   13435:     no)  pic_setting='-prefer-non-pic';;
                   13436:   esac
                   13437: 
                   13438:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13439:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   13440:   shared_c_post=
                   13441:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13442:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   13443:   shared_cxx_post=
                   13444:   shared_lo=lo
                   13445: 
                   13446:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    13447:   php_sapi_module=static
1.1       misho    13448: ;;
1.1.1.2 ! misho    13449:     esac
        !          13450:     install_sapi="install-sapi"
1.1       misho    13451: 
                   13452: 
                   13453:   case sapi/nsapi in
                   13454:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   13455:   /*) ac_srcdir=`echo "sapi/nsapi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   13456:   *) ac_srcdir="$abs_srcdir/sapi/nsapi/"; ac_bdir="sapi/nsapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   13457:   esac
                   13458: 
                   13459: 
                   13460: 
                   13461:   b_c_pre=$php_c_pre
                   13462:   b_cxx_pre=$php_cxx_pre
                   13463:   b_c_meta=$php_c_meta
                   13464:   b_cxx_meta=$php_cxx_meta
                   13465:   b_c_post=$php_c_post
                   13466:   b_cxx_post=$php_cxx_post
                   13467:   b_lo=$php_lo
                   13468: 
                   13469: 
                   13470:   old_IFS=$IFS
                   13471:   for ac_src in nsapi.c; do
                   13472: 
                   13473:       IFS=.
                   13474:       set $ac_src
                   13475:       ac_obj=$1
                   13476:       IFS=$old_IFS
                   13477: 
                   13478:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   13479: 
                   13480:       case $ac_src in
                   13481:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   13482:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   13483:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   13484:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   13485:       esac
                   13486: 
                   13487:     cat >>Makefile.objects<<EOF
                   13488: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   13489:        $ac_comp
                   13490: EOF
                   13491:   done
                   13492: 
                   13493: 
                   13494: 
1.1.1.2 ! misho    13495: 
1.1       misho    13496:   INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_NSAPI/bin/"
                   13497: fi
                   13498: 
                   13499: 
                   13500: 
                   13501: 
                   13502: 
                   13503: php_with_phttpd=no
                   13504: 
                   13505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHTTPD support" >&5
                   13506: $as_echo_n "checking for PHTTPD support... " >&6; }
                   13507: 
                   13508: # Check whether --with-phttpd was given.
                   13509: if test "${with_phttpd+set}" = set; then :
                   13510:   withval=$with_phttpd; PHP_PHTTPD=$withval
                   13511: else
                   13512: 
                   13513:   PHP_PHTTPD=no
                   13514: 
                   13515: 
                   13516: fi
                   13517: 
                   13518: 
                   13519: ext_output=$PHP_PHTTPD
                   13520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   13521: $as_echo "$ext_output" >&6; }
                   13522: 
                   13523: 
                   13524: 
                   13525: 
                   13526: if test "$PHP_PHTTPD" != "no"; then
                   13527:   if test ! -d $PHP_PHTTPD ; then
                   13528:     as_fn_error $? "You did not specify a directory" "$LINENO" 5
                   13529:   fi
                   13530: 
                   13531:   enable_maintainer_zts=yes
                   13532:   if test "$pthreads_working" != "yes"; then
                   13533:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
                   13534:   fi
                   13535: 
                   13536: 
                   13537:   if test "$PHP_PHTTPD/include" != "/usr/include"; then
                   13538: 
                   13539:   if test -z "$PHP_PHTTPD/include" || echo "$PHP_PHTTPD/include" | grep '^/' >/dev/null ; then
                   13540:     ai_p=$PHP_PHTTPD/include
                   13541:   else
                   13542: 
                   13543:     ep_dir="`echo $PHP_PHTTPD/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   13544: 
                   13545:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   13546:     ai_p="$ep_realdir/`basename \"$PHP_PHTTPD/include\"`"
                   13547:   fi
                   13548: 
                   13549: 
                   13550: 
                   13551:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   13552: 
                   13553:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   13554:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   13555:     eval "INCLUDEPATH$unique=set"
                   13556: 
                   13557:       if test ""; then
                   13558:         INCLUDES="-I$ai_p $INCLUDES"
                   13559:       else
                   13560:         INCLUDES="$INCLUDES -I$ai_p"
                   13561:       fi
                   13562: 
                   13563:   fi
                   13564: 
                   13565:   fi
                   13566: 
                   13567: 
                   13568: $as_echo "#define HAVE_PHTTPD 1" >>confdefs.h
                   13569: 
                   13570: 
1.1.1.2 ! misho    13571:   if test "shared" = "program"; then
        !          13572:     PHP_BINARIES="$PHP_BINARIES phttpd"
        !          13573:   elif test "$PHP_SAPI" != "none"; then
        !          13574:     as_fn_error $? "
1.1       misho    13575: +--------------------------------------------------------------------+
                   13576: |                        *** ATTENTION ***                           |
                   13577: |                                                                    |
                   13578: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    13579: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    13580: +--------------------------------------------------------------------+
                   13581: " "$LINENO" 5
1.1.1.2 ! misho    13582:   else
        !          13583:     PHP_SAPI=phttpd
1.1       misho    13584:   fi
                   13585: 
                   13586: 
                   13587: 
1.1.1.2 ! misho    13588:     BUILD_DIR="$BUILD_DIR sapi/phttpd"
        !          13589: 
        !          13590: 
        !          13591: 
        !          13592:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS phttpd"
        !          13593: 
        !          13594: 
        !          13595:     case "shared" in
        !          13596:     static)
        !          13597: 
1.1       misho    13598:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13599:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   13600:   php_c_post=
                   13601:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13602:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   13603:   php_cxx_post=
                   13604:   php_lo=lo
                   13605: 
                   13606:   case $with_pic in
                   13607:     yes) pic_setting='-prefer-pic';;
                   13608:     no)  pic_setting='-prefer-non-pic';;
                   13609:   esac
                   13610: 
                   13611:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13612:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   13613:   shared_c_post=
                   13614:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13615:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   13616:   shared_cxx_post=
                   13617:   shared_lo=lo
                   13618: 
                   13619:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    13620:   php_sapi_module=static
1.1       misho    13621: ;;
1.1.1.2 ! misho    13622:     shared)
1.1       misho    13623: 
                   13624:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13625:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   13626:   php_c_post=
                   13627:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13628:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   13629:   php_cxx_post=
                   13630:   php_lo=lo
                   13631: 
                   13632:   case $with_pic in
                   13633:     yes) pic_setting='-prefer-pic';;
                   13634:     no)  pic_setting='-prefer-non-pic';;
                   13635:   esac
                   13636: 
                   13637:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13638:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   13639:   shared_c_post=
                   13640:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13641:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   13642:   shared_cxx_post=
                   13643:   shared_lo=lo
                   13644: 
                   13645:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    13646:   php_sapi_module=shared
1.1       misho    13647: 
                   13648:   php_c_pre=$shared_c_pre
                   13649:   php_c_meta=$shared_c_meta
                   13650:   php_c_post=$shared_c_post
                   13651:   php_cxx_pre=$shared_cxx_pre
                   13652:   php_cxx_meta=$shared_cxx_meta
                   13653:   php_cxx_post=$shared_cxx_post
                   13654:   php_lo=$shared_lo
                   13655: ;;
1.1.1.2 ! misho    13656:     bundle)
1.1       misho    13657: 
                   13658:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13659:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   13660:   php_c_post=
                   13661:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13662:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   13663:   php_cxx_post=
                   13664:   php_lo=lo
                   13665: 
                   13666:   case $with_pic in
                   13667:     yes) pic_setting='-prefer-pic';;
                   13668:     no)  pic_setting='-prefer-non-pic';;
                   13669:   esac
                   13670: 
                   13671:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13672:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   13673:   shared_c_post=
                   13674:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13675:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   13676:   shared_cxx_post=
                   13677:   shared_lo=lo
                   13678: 
                   13679:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    13680:   php_sapi_module=static
1.1       misho    13681: ;;
1.1.1.2 ! misho    13682:     esac
        !          13683:     install_sapi="install-sapi"
1.1       misho    13684: 
                   13685: 
                   13686:   case sapi/phttpd in
                   13687:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   13688:   /*) ac_srcdir=`echo "sapi/phttpd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   13689:   *) ac_srcdir="$abs_srcdir/sapi/phttpd/"; ac_bdir="sapi/phttpd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   13690:   esac
                   13691: 
                   13692: 
                   13693: 
                   13694:   b_c_pre=$php_c_pre
                   13695:   b_cxx_pre=$php_cxx_pre
                   13696:   b_c_meta=$php_c_meta
                   13697:   b_cxx_meta=$php_cxx_meta
                   13698:   b_c_post=$php_c_post
                   13699:   b_cxx_post=$php_cxx_post
                   13700:   b_lo=$php_lo
                   13701: 
                   13702: 
                   13703:   old_IFS=$IFS
                   13704:   for ac_src in phttpd.c; do
                   13705: 
                   13706:       IFS=.
                   13707:       set $ac_src
                   13708:       ac_obj=$1
                   13709:       IFS=$old_IFS
                   13710: 
                   13711:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   13712: 
                   13713:       case $ac_src in
                   13714:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   13715:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   13716:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   13717:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   13718:       esac
                   13719: 
                   13720:     cat >>Makefile.objects<<EOF
                   13721: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   13722:        $ac_comp
                   13723: EOF
                   13724:   done
                   13725: 
                   13726: 
                   13727: 
1.1.1.2 ! misho    13728: 
1.1       misho    13729:   INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_PHTTPD/modules/"
                   13730: fi
                   13731: 
                   13732: 
                   13733: 
                   13734: 
                   13735: php_with_pi3web=no
                   13736: 
                   13737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pi3Web support" >&5
                   13738: $as_echo_n "checking for Pi3Web support... " >&6; }
                   13739: 
                   13740: # Check whether --with-pi3web was given.
                   13741: if test "${with_pi3web+set}" = set; then :
                   13742:   withval=$with_pi3web; PHP_PI3WEB=$withval
                   13743: else
                   13744: 
                   13745:   PHP_PI3WEB=no
                   13746: 
                   13747: 
                   13748: fi
                   13749: 
                   13750: 
                   13751: ext_output=$PHP_PI3WEB
                   13752: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   13753: $as_echo "$ext_output" >&6; }
                   13754: 
                   13755: 
                   13756: 
                   13757: 
                   13758: if test "$PHP_PI3WEB" != "no"; then
                   13759:   if test "$PHP_PI3WEB" = "yes"; then
                   13760:     PI3PATH=../.. # the default
                   13761:   else
                   13762:     PI3PATH=$PHP_PI3WEB
                   13763:   fi
                   13764:   test -f "$PI3PATH/PiAPI/PiAPI.h" || as_fn_error $? "Unable to find PiAPI.h in $PI3PATH/PiAPI" "$LINENO" 5
                   13765: 
                   13766:   enable_maintainer_zts=yes
                   13767:   if test "$pthreads_working" != "yes"; then
                   13768:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
                   13769:   fi
                   13770: 
                   13771: 
                   13772: $as_echo "#define WITH_PI3WEB 1" >>confdefs.h
                   13773: 
                   13774: 
                   13775:   if test "$PI3PATH/PiAPI" != "/usr/include"; then
                   13776: 
                   13777:   if test -z "$PI3PATH/PiAPI" || echo "$PI3PATH/PiAPI" | grep '^/' >/dev/null ; then
                   13778:     ai_p=$PI3PATH/PiAPI
                   13779:   else
                   13780: 
                   13781:     ep_dir="`echo $PI3PATH/PiAPI|$SED 's%/*[^/][^/]*/*$%%'`"
                   13782: 
                   13783:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   13784:     ai_p="$ep_realdir/`basename \"$PI3PATH/PiAPI\"`"
                   13785:   fi
                   13786: 
                   13787: 
                   13788: 
                   13789:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   13790: 
                   13791:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   13792:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   13793:     eval "INCLUDEPATH$unique=set"
                   13794: 
                   13795:       if test ""; then
                   13796:         INCLUDES="-I$ai_p $INCLUDES"
                   13797:       else
                   13798:         INCLUDES="$INCLUDES -I$ai_p"
                   13799:       fi
                   13800: 
                   13801:   fi
                   13802: 
                   13803:   fi
                   13804: 
                   13805: 
                   13806:   if test "$PI3PATH/Pi2API" != "/usr/include"; then
                   13807: 
                   13808:   if test -z "$PI3PATH/Pi2API" || echo "$PI3PATH/Pi2API" | grep '^/' >/dev/null ; then
                   13809:     ai_p=$PI3PATH/Pi2API
                   13810:   else
                   13811: 
                   13812:     ep_dir="`echo $PI3PATH/Pi2API|$SED 's%/*[^/][^/]*/*$%%'`"
                   13813: 
                   13814:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   13815:     ai_p="$ep_realdir/`basename \"$PI3PATH/Pi2API\"`"
                   13816:   fi
                   13817: 
                   13818: 
                   13819: 
                   13820:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   13821: 
                   13822:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   13823:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   13824:     eval "INCLUDEPATH$unique=set"
                   13825: 
                   13826:       if test ""; then
                   13827:         INCLUDES="-I$ai_p $INCLUDES"
                   13828:       else
                   13829:         INCLUDES="$INCLUDES -I$ai_p"
                   13830:       fi
                   13831: 
                   13832:   fi
                   13833: 
                   13834:   fi
                   13835: 
                   13836: 
                   13837:   if test "$PI3PATH/Pi3API" != "/usr/include"; then
                   13838: 
                   13839:   if test -z "$PI3PATH/Pi3API" || echo "$PI3PATH/Pi3API" | grep '^/' >/dev/null ; then
                   13840:     ai_p=$PI3PATH/Pi3API
                   13841:   else
                   13842: 
                   13843:     ep_dir="`echo $PI3PATH/Pi3API|$SED 's%/*[^/][^/]*/*$%%'`"
                   13844: 
                   13845:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   13846:     ai_p="$ep_realdir/`basename \"$PI3PATH/Pi3API\"`"
                   13847:   fi
                   13848: 
                   13849: 
                   13850: 
                   13851:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   13852: 
                   13853:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   13854:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   13855:     eval "INCLUDEPATH$unique=set"
                   13856: 
                   13857:       if test ""; then
                   13858:         INCLUDES="-I$ai_p $INCLUDES"
                   13859:       else
                   13860:         INCLUDES="$INCLUDES -I$ai_p"
                   13861:       fi
                   13862: 
                   13863:   fi
                   13864: 
                   13865:   fi
                   13866: 
                   13867: 
                   13868:   if test "$PI3PATH/PHP5" != "/usr/include"; then
                   13869: 
                   13870:   if test -z "$PI3PATH/PHP5" || echo "$PI3PATH/PHP5" | grep '^/' >/dev/null ; then
                   13871:     ai_p=$PI3PATH/PHP5
                   13872:   else
                   13873: 
                   13874:     ep_dir="`echo $PI3PATH/PHP5|$SED 's%/*[^/][^/]*/*$%%'`"
                   13875: 
                   13876:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   13877:     ai_p="$ep_realdir/`basename \"$PI3PATH/PHP5\"`"
                   13878:   fi
                   13879: 
                   13880: 
                   13881: 
                   13882:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   13883: 
                   13884:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   13885:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   13886:     eval "INCLUDEPATH$unique=set"
                   13887: 
                   13888:       if test ""; then
                   13889:         INCLUDES="-I$ai_p $INCLUDES"
                   13890:       else
                   13891:         INCLUDES="$INCLUDES -I$ai_p"
                   13892:       fi
                   13893: 
                   13894:   fi
                   13895: 
                   13896:   fi
                   13897: 
                   13898: 
1.1.1.2 ! misho    13899:   if test "shared" = "program"; then
        !          13900:     PHP_BINARIES="$PHP_BINARIES pi3web"
        !          13901:   elif test "$PHP_SAPI" != "none"; then
        !          13902:     as_fn_error $? "
1.1       misho    13903: +--------------------------------------------------------------------+
                   13904: |                        *** ATTENTION ***                           |
                   13905: |                                                                    |
                   13906: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    13907: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    13908: +--------------------------------------------------------------------+
                   13909: " "$LINENO" 5
1.1.1.2 ! misho    13910:   else
        !          13911:     PHP_SAPI=pi3web
1.1       misho    13912:   fi
                   13913: 
                   13914: 
                   13915: 
1.1.1.2 ! misho    13916:     BUILD_DIR="$BUILD_DIR sapi/pi3web"
        !          13917: 
        !          13918: 
        !          13919: 
        !          13920:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS pi3web"
        !          13921: 
        !          13922: 
        !          13923:     case "shared" in
        !          13924:     static)
        !          13925: 
1.1       misho    13926:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13927:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   13928:   php_c_post=
                   13929:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13930:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   13931:   php_cxx_post=
                   13932:   php_lo=lo
                   13933: 
                   13934:   case $with_pic in
                   13935:     yes) pic_setting='-prefer-pic';;
                   13936:     no)  pic_setting='-prefer-non-pic';;
                   13937:   esac
                   13938: 
                   13939:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13940:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   13941:   shared_c_post=
                   13942:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13943:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   13944:   shared_cxx_post=
                   13945:   shared_lo=lo
                   13946: 
                   13947:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    13948:   php_sapi_module=static
1.1       misho    13949: ;;
1.1.1.2 ! misho    13950:     shared)
1.1       misho    13951: 
                   13952:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13953:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   13954:   php_c_post=
                   13955:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13956:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   13957:   php_cxx_post=
                   13958:   php_lo=lo
                   13959: 
                   13960:   case $with_pic in
                   13961:     yes) pic_setting='-prefer-pic';;
                   13962:     no)  pic_setting='-prefer-non-pic';;
                   13963:   esac
                   13964: 
                   13965:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13966:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   13967:   shared_c_post=
                   13968:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13969:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   13970:   shared_cxx_post=
                   13971:   shared_lo=lo
                   13972: 
                   13973:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    13974:   php_sapi_module=shared
1.1       misho    13975: 
                   13976:   php_c_pre=$shared_c_pre
                   13977:   php_c_meta=$shared_c_meta
                   13978:   php_c_post=$shared_c_post
                   13979:   php_cxx_pre=$shared_cxx_pre
                   13980:   php_cxx_meta=$shared_cxx_meta
                   13981:   php_cxx_post=$shared_cxx_post
                   13982:   php_lo=$shared_lo
                   13983: ;;
1.1.1.2 ! misho    13984:     bundle)
1.1       misho    13985: 
                   13986:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   13987:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   13988:   php_c_post=
                   13989:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   13990:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   13991:   php_cxx_post=
                   13992:   php_lo=lo
                   13993: 
                   13994:   case $with_pic in
                   13995:     yes) pic_setting='-prefer-pic';;
                   13996:     no)  pic_setting='-prefer-non-pic';;
                   13997:   esac
                   13998: 
                   13999:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14000:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   14001:   shared_c_post=
                   14002:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14003:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   14004:   shared_cxx_post=
                   14005:   shared_lo=lo
                   14006: 
                   14007:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    14008:   php_sapi_module=static
1.1       misho    14009: ;;
1.1.1.2 ! misho    14010:     esac
        !          14011:     install_sapi="install-sapi"
1.1       misho    14012: 
                   14013: 
                   14014:   case sapi/pi3web in
                   14015:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   14016:   /*) ac_srcdir=`echo "sapi/pi3web"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   14017:   *) ac_srcdir="$abs_srcdir/sapi/pi3web/"; ac_bdir="sapi/pi3web/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   14018:   esac
                   14019: 
                   14020: 
                   14021: 
                   14022:   b_c_pre=$php_c_pre
                   14023:   b_cxx_pre=$php_cxx_pre
                   14024:   b_c_meta=$php_c_meta
                   14025:   b_cxx_meta=$php_cxx_meta
                   14026:   b_c_post=$php_c_post
                   14027:   b_cxx_post=$php_cxx_post
                   14028:   b_lo=$php_lo
                   14029: 
                   14030: 
                   14031:   old_IFS=$IFS
                   14032:   for ac_src in pi3web_sapi.c; do
                   14033: 
                   14034:       IFS=.
                   14035:       set $ac_src
                   14036:       ac_obj=$1
                   14037:       IFS=$old_IFS
                   14038: 
                   14039:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   14040: 
                   14041:       case $ac_src in
                   14042:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   14043:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   14044:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   14045:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   14046:       esac
                   14047: 
                   14048:     cat >>Makefile.objects<<EOF
                   14049: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   14050:        $ac_comp
                   14051: EOF
                   14052:   done
                   14053: 
                   14054: 
                   14055: 
1.1.1.2 ! misho    14056: 
1.1       misho    14057:   INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PI3PATH/bin/"
                   14058: fi
                   14059: 
                   14060: 
                   14061: 
                   14062: 
                   14063: php_with_roxen=no
                   14064: 
                   14065: 
                   14066: 
                   14067: # Check whether --with-roxen was given.
                   14068: if test "${with_roxen+set}" = set; then :
                   14069:   withval=$with_roxen; PHP_ROXEN=$withval
                   14070: else
                   14071: 
                   14072:   PHP_ROXEN=no
                   14073: 
                   14074: 
                   14075: fi
                   14076: 
                   14077: 
                   14078: ext_output=$PHP_ROXEN
                   14079: 
                   14080: 
                   14081: 
                   14082: 
                   14083: 
                   14084: 
                   14085: php_enable_roxen_zts=no
                   14086: 
                   14087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Roxen module is build using ZTS" >&5
                   14088: $as_echo_n "checking whether Roxen module is build using ZTS... " >&6; }
                   14089: # Check whether --enable-roxen-zts was given.
                   14090: if test "${enable_roxen_zts+set}" = set; then :
                   14091:   enableval=$enable_roxen_zts; PHP_ROXEN_ZTS=$enableval
                   14092: else
                   14093: 
                   14094:   PHP_ROXEN_ZTS=no
                   14095: 
                   14096: 
                   14097: fi
                   14098: 
                   14099: 
                   14100: ext_output=$PHP_ROXEN_ZTS
                   14101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   14102: $as_echo "$ext_output" >&6; }
                   14103: 
                   14104: 
                   14105: 
                   14106: 
                   14107: RESULT=
                   14108: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Roxen/Pike support" >&5
                   14109: $as_echo_n "checking for Roxen/Pike support... " >&6; }
                   14110: if test "$PHP_ROXEN" != "no"; then
                   14111:   if test ! -d $PHP_ROXEN ; then
                   14112:     as_fn_error $? "You did not specify a directory" "$LINENO" 5
                   14113:   fi
                   14114:   if test -f $PHP_ROXEN/bin/roxen; then
                   14115:     PIKE=$PHP_ROXEN/bin/roxen
                   14116:   elif test -f $PHP_ROXEN/bin/pike; then
                   14117:     PIKE=$PHP_ROXEN/bin/pike
                   14118:   else
                   14119:     as_fn_error $? "Could not find a pike in $PHP_ROXEN/bin/" "$LINENO" 5
                   14120:   fi
                   14121: 
                   14122:   if $PIKE -e 'float v; catch(v = __VERSION__ + (__BUILD__/10000.0)); if(v < 0.7079) exit(1); exit(0);'; then
                   14123:     PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'`
                   14124:     PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,'`
                   14125:     if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then
                   14126:       as_fn_error $? "Failed to figure out Pike module and include directories" "$LINENO" 5
                   14127:     fi
                   14128:   else
                   14129:     as_fn_error $? "Roxen/PHP requires Pike 0.7.79 or newer" "$LINENO" 5
                   14130:   fi
                   14131: 
                   14132: 
                   14133:   if test "$PIKE_INCLUDE_DIR" != "/usr/include"; then
                   14134: 
                   14135:   if test -z "$PIKE_INCLUDE_DIR" || echo "$PIKE_INCLUDE_DIR" | grep '^/' >/dev/null ; then
                   14136:     ai_p=$PIKE_INCLUDE_DIR
                   14137:   else
                   14138: 
                   14139:     ep_dir="`echo $PIKE_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   14140: 
                   14141:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   14142:     ai_p="$ep_realdir/`basename \"$PIKE_INCLUDE_DIR\"`"
                   14143:   fi
                   14144: 
                   14145: 
                   14146: 
                   14147:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   14148: 
                   14149:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   14150:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   14151:     eval "INCLUDEPATH$unique=set"
                   14152: 
                   14153:       if test ""; then
                   14154:         INCLUDES="-I$ai_p $INCLUDES"
                   14155:       else
                   14156:         INCLUDES="$INCLUDES -I$ai_p"
                   14157:       fi
                   14158: 
                   14159:   fi
                   14160: 
                   14161:   fi
                   14162: 
                   14163: 
                   14164: $as_echo "#define HAVE_ROXEN 1" >>confdefs.h
                   14165: 
                   14166: 
1.1.1.2 ! misho    14167:   if test "shared" = "program"; then
        !          14168:     PHP_BINARIES="$PHP_BINARIES roxen"
        !          14169:   elif test "$PHP_SAPI" != "none"; then
        !          14170:     as_fn_error $? "
1.1       misho    14171: +--------------------------------------------------------------------+
                   14172: |                        *** ATTENTION ***                           |
                   14173: |                                                                    |
                   14174: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    14175: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    14176: +--------------------------------------------------------------------+
                   14177: " "$LINENO" 5
1.1.1.2 ! misho    14178:   else
        !          14179:     PHP_SAPI=roxen
1.1       misho    14180:   fi
                   14181: 
                   14182: 
                   14183: 
1.1.1.2 ! misho    14184:     BUILD_DIR="$BUILD_DIR sapi/roxen"
        !          14185: 
        !          14186: 
        !          14187: 
        !          14188:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS roxen"
        !          14189: 
        !          14190: 
        !          14191:     case "shared" in
        !          14192:     static)
        !          14193: 
1.1       misho    14194:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14195:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   14196:   php_c_post=
                   14197:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14198:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   14199:   php_cxx_post=
                   14200:   php_lo=lo
                   14201: 
                   14202:   case $with_pic in
                   14203:     yes) pic_setting='-prefer-pic';;
                   14204:     no)  pic_setting='-prefer-non-pic';;
                   14205:   esac
                   14206: 
                   14207:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14208:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   14209:   shared_c_post=
                   14210:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14211:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   14212:   shared_cxx_post=
                   14213:   shared_lo=lo
                   14214: 
                   14215:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    14216:   php_sapi_module=static
1.1       misho    14217: ;;
1.1.1.2 ! misho    14218:     shared)
1.1       misho    14219: 
                   14220:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14221:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   14222:   php_c_post=
                   14223:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14224:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   14225:   php_cxx_post=
                   14226:   php_lo=lo
                   14227: 
                   14228:   case $with_pic in
                   14229:     yes) pic_setting='-prefer-pic';;
                   14230:     no)  pic_setting='-prefer-non-pic';;
                   14231:   esac
                   14232: 
                   14233:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14234:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   14235:   shared_c_post=
                   14236:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14237:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   14238:   shared_cxx_post=
                   14239:   shared_lo=lo
                   14240: 
                   14241:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    14242:   php_sapi_module=shared
1.1       misho    14243: 
                   14244:   php_c_pre=$shared_c_pre
                   14245:   php_c_meta=$shared_c_meta
                   14246:   php_c_post=$shared_c_post
                   14247:   php_cxx_pre=$shared_cxx_pre
                   14248:   php_cxx_meta=$shared_cxx_meta
                   14249:   php_cxx_post=$shared_cxx_post
                   14250:   php_lo=$shared_lo
                   14251: ;;
1.1.1.2 ! misho    14252:     bundle)
1.1       misho    14253: 
                   14254:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14255:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   14256:   php_c_post=
                   14257:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14258:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   14259:   php_cxx_post=
                   14260:   php_lo=lo
                   14261: 
                   14262:   case $with_pic in
                   14263:     yes) pic_setting='-prefer-pic';;
                   14264:     no)  pic_setting='-prefer-non-pic';;
                   14265:   esac
                   14266: 
                   14267:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14268:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   14269:   shared_c_post=
                   14270:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14271:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   14272:   shared_cxx_post=
                   14273:   shared_lo=lo
                   14274: 
                   14275:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    14276:   php_sapi_module=static
1.1       misho    14277: ;;
1.1.1.2 ! misho    14278:     esac
        !          14279:     install_sapi="install-sapi"
1.1       misho    14280: 
                   14281: 
                   14282:   case sapi/roxen in
                   14283:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   14284:   /*) ac_srcdir=`echo "sapi/roxen"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   14285:   *) ac_srcdir="$abs_srcdir/sapi/roxen/"; ac_bdir="sapi/roxen/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   14286:   esac
                   14287: 
                   14288: 
                   14289: 
                   14290:   b_c_pre=$php_c_pre
                   14291:   b_cxx_pre=$php_cxx_pre
                   14292:   b_c_meta=$php_c_meta
                   14293:   b_cxx_meta=$php_cxx_meta
                   14294:   b_c_post=$php_c_post
                   14295:   b_cxx_post=$php_cxx_post
                   14296:   b_lo=$php_lo
                   14297: 
                   14298: 
                   14299:   old_IFS=$IFS
                   14300:   for ac_src in roxen.c; do
                   14301: 
                   14302:       IFS=.
                   14303:       set $ac_src
                   14304:       ac_obj=$1
                   14305:       IFS=$old_IFS
                   14306: 
                   14307:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   14308: 
                   14309:       case $ac_src in
                   14310:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   14311:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   14312:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   14313:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   14314:       esac
                   14315: 
                   14316:     cat >>Makefile.objects<<EOF
                   14317: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   14318:        $ac_comp
                   14319: EOF
                   14320:   done
                   14321: 
                   14322: 
                   14323: 
1.1.1.2 ! misho    14324: 
1.1       misho    14325:   INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PIKE_MODULE_DIR/PHP5.so"
                   14326:   RESULT="yes
                   14327:   Pike binary used:      $PIKE
                   14328:   Pike include dir:      $PIKE_INCLUDE_DIR
                   14329:   Pike module directory: $PIKE_MODULE_DIR"
                   14330:   PIKE_INCLUDE_DIR=" -I$PIKE_INCLUDE_DIR "
                   14331: 
                   14332:   if test "$PHP_ROXEN_ZTS" != "no"; then
                   14333: 
                   14334:   enable_maintainer_zts=yes
                   14335:   if test "$pthreads_working" != "yes"; then
                   14336:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
                   14337:   fi
                   14338: 
                   14339: 
                   14340: $as_echo "#define ROXEN_USE_ZTS 1" >>confdefs.h
                   14341: 
                   14342:   fi
                   14343: fi
                   14344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESULT" >&5
                   14345: $as_echo "$RESULT" >&6; }
                   14346: 
                   14347: 
                   14348: 
                   14349: 
                   14350: php_with_thttpd=no
                   14351: 
                   14352: 
                   14353: 
                   14354: # Check whether --with-thttpd was given.
                   14355: if test "${with_thttpd+set}" = set; then :
                   14356:   withval=$with_thttpd; PHP_THTTPD=$withval
                   14357: else
                   14358: 
                   14359:   PHP_THTTPD=no
                   14360: 
                   14361: 
                   14362: fi
                   14363: 
                   14364: 
                   14365: ext_output=$PHP_THTTPD
                   14366: 
                   14367: 
                   14368: 
                   14369: 
                   14370: 
                   14371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thttpd" >&5
                   14372: $as_echo_n "checking for thttpd... " >&6; }
                   14373: 
                   14374: if test "$PHP_THTTPD" != "no"; then
                   14375:   if test ! -d $PHP_THTTPD; then
                   14376:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: thttpd directory does not exist ($PHP_THTTPD)" >&5
                   14377: $as_echo "thttpd directory does not exist ($PHP_THTTPD)" >&6; }
                   14378:   fi
                   14379: 
                   14380: 
                   14381:   if test -z "$PHP_THTTPD" || echo "$PHP_THTTPD" | grep '^/' >/dev/null ; then
                   14382:     THTTPD=$PHP_THTTPD
                   14383:   else
                   14384: 
                   14385:     ep_dir="`echo $PHP_THTTPD|$SED 's%/*[^/][^/]*/*$%%'`"
                   14386: 
                   14387:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   14388:     THTTPD="$ep_realdir/`basename \"$PHP_THTTPD\"`"
                   14389:   fi
                   14390: 
                   14391: 
                   14392:   if grep thttpd.2.21b $PHP_THTTPD/version.h >/dev/null; then
                   14393:     patch="test -f $THTTPD/php_patched || \
                   14394:     (cd $THTTPD && patch -p1 < $abs_srcdir/sapi/thttpd/thttpd_patch && touch php_patched)"
                   14395: 
                   14396:   elif grep Premium $PHP_THTTPD/version.h >/dev/null; then
                   14397:     patch=
                   14398:   else
                   14399:     as_fn_error $? "This version only supports thttpd-2.21b and Premium thttpd" "$LINENO" 5
                   14400:   fi
                   14401: 
                   14402:   if test -n "$GCC"; then
                   14403: 
                   14404:   gcc_arg_name=ac_cv_gcc_arg_rdynamic
                   14405:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5
                   14406: $as_echo_n "checking whether $CC supports -rdynamic... " >&6; }
                   14407: if ${ac_cv_gcc_arg_rdynamic+:} false; then :
                   14408:   $as_echo_n "(cached) " >&6
                   14409: else
                   14410: 
                   14411:   echo 'void somefunc() { };' > conftest.c
                   14412:   cmd='$CC -rdynamic -c conftest.c'
                   14413:   if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then
                   14414:     ac_result=no
                   14415:   else
                   14416:     ac_result=yes
                   14417:   fi
                   14418:   eval $gcc_arg_name=$ac_result
                   14419:   rm -f conftest.*
                   14420: 
                   14421: fi
                   14422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_rdynamic" >&5
                   14423: $as_echo "$ac_cv_gcc_arg_rdynamic" >&6; }
                   14424:   if eval test "\$$gcc_arg_name" = "yes"; then
                   14425:     gcc_rdynamic=yes
                   14426:   else
                   14427:     :
                   14428: 
                   14429:   fi
                   14430: 
                   14431:     if test "$gcc_rdynamic" = "yes"; then
                   14432:       PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
                   14433:     fi
                   14434:   fi
                   14435: 
                   14436:   INSTALL_IT="\
                   14437:     echo 'PHP_LIBS = -L. -lphp5 \$(PHP_LIBS) \$(EXTRA_LIBS)' > $THTTPD/php_makefile; \
                   14438:     echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $THTTPD/php_makefile; \
                   14439:     echo 'PHP_CFLAGS = \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(CPPFLAGS) \$(EXTRA_CFLAGS)' >> $THTTPD/php_makefile; \
                   14440:     rm -f $THTTPD/php_thttpd.c $THTTPD/php_thttpd.h $THTTPD/libphp5.a; \
                   14441:     \$(LN_S) $abs_srcdir/sapi/thttpd/thttpd.c $THTTPD/php_thttpd.c; \
                   14442:     \$(LN_S) $abs_srcdir/sapi/thttpd/php_thttpd.h $abs_builddir/$SAPI_STATIC $THTTPD/;\
                   14443:     $patch"
                   14444:   PHP_THTTPD="yes, using $THTTPD"
                   14445: 
                   14446:   if test "$THTTPD" != "/usr/include"; then
                   14447: 
                   14448:   if test -z "$THTTPD" || echo "$THTTPD" | grep '^/' >/dev/null ; then
                   14449:     ai_p=$THTTPD
                   14450:   else
                   14451: 
                   14452:     ep_dir="`echo $THTTPD|$SED 's%/*[^/][^/]*/*$%%'`"
                   14453: 
                   14454:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   14455:     ai_p="$ep_realdir/`basename \"$THTTPD\"`"
                   14456:   fi
                   14457: 
                   14458: 
                   14459: 
                   14460:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   14461: 
                   14462:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   14463:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   14464:     eval "INCLUDEPATH$unique=set"
                   14465: 
                   14466:       if test ""; then
                   14467:         INCLUDES="-I$ai_p $INCLUDES"
                   14468:       else
                   14469:         INCLUDES="$INCLUDES -I$ai_p"
                   14470:       fi
                   14471: 
                   14472:   fi
                   14473: 
                   14474:   fi
                   14475: 
                   14476: 
1.1.1.2 ! misho    14477:   if test "static" = "program"; then
        !          14478:     PHP_BINARIES="$PHP_BINARIES thttpd"
        !          14479:   elif test "$PHP_SAPI" != "none"; then
        !          14480:     as_fn_error $? "
1.1       misho    14481: +--------------------------------------------------------------------+
                   14482: |                        *** ATTENTION ***                           |
                   14483: |                                                                    |
                   14484: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    14485: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    14486: +--------------------------------------------------------------------+
                   14487: " "$LINENO" 5
1.1.1.2 ! misho    14488:   else
        !          14489:     PHP_SAPI=thttpd
1.1       misho    14490:   fi
                   14491: 
                   14492: 
                   14493: 
1.1.1.2 ! misho    14494:     BUILD_DIR="$BUILD_DIR sapi/thttpd"
        !          14495: 
        !          14496: 
        !          14497: 
        !          14498:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS thttpd"
        !          14499: 
        !          14500: 
        !          14501:     case "static" in
        !          14502:     static)
        !          14503: 
1.1       misho    14504:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14505:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   14506:   php_c_post=
                   14507:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14508:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   14509:   php_cxx_post=
                   14510:   php_lo=lo
                   14511: 
                   14512:   case $with_pic in
                   14513:     yes) pic_setting='-prefer-pic';;
                   14514:     no)  pic_setting='-prefer-non-pic';;
                   14515:   esac
                   14516: 
                   14517:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14518:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   14519:   shared_c_post=
                   14520:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14521:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   14522:   shared_cxx_post=
                   14523:   shared_lo=lo
                   14524: 
                   14525:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    14526:   php_sapi_module=static
1.1       misho    14527: ;;
1.1.1.2 ! misho    14528:     shared)
1.1       misho    14529: 
                   14530:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14531:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   14532:   php_c_post=
                   14533:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14534:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   14535:   php_cxx_post=
                   14536:   php_lo=lo
                   14537: 
                   14538:   case $with_pic in
                   14539:     yes) pic_setting='-prefer-pic';;
                   14540:     no)  pic_setting='-prefer-non-pic';;
                   14541:   esac
                   14542: 
                   14543:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14544:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   14545:   shared_c_post=
                   14546:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14547:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   14548:   shared_cxx_post=
                   14549:   shared_lo=lo
                   14550: 
                   14551:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    14552:   php_sapi_module=shared
1.1       misho    14553: 
                   14554:   php_c_pre=$shared_c_pre
                   14555:   php_c_meta=$shared_c_meta
                   14556:   php_c_post=$shared_c_post
                   14557:   php_cxx_pre=$shared_cxx_pre
                   14558:   php_cxx_meta=$shared_cxx_meta
                   14559:   php_cxx_post=$shared_cxx_post
                   14560:   php_lo=$shared_lo
                   14561: ;;
1.1.1.2 ! misho    14562:     bundle)
1.1       misho    14563: 
                   14564:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14565:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   14566:   php_c_post=
                   14567:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14568:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   14569:   php_cxx_post=
                   14570:   php_lo=lo
                   14571: 
                   14572:   case $with_pic in
                   14573:     yes) pic_setting='-prefer-pic';;
                   14574:     no)  pic_setting='-prefer-non-pic';;
                   14575:   esac
                   14576: 
                   14577:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14578:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   14579:   shared_c_post=
                   14580:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14581:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   14582:   shared_cxx_post=
                   14583:   shared_lo=lo
                   14584: 
                   14585:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    14586:   php_sapi_module=static
1.1       misho    14587: ;;
1.1.1.2 ! misho    14588:     esac
        !          14589:     install_sapi="install-sapi"
1.1       misho    14590: 
                   14591: 
                   14592: 
                   14593: fi
                   14594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_THTTPD" >&5
                   14595: $as_echo "$PHP_THTTPD" >&6; }
                   14596: 
                   14597: 
                   14598: 
                   14599: php_with_tux=no
                   14600: 
                   14601: 
                   14602: 
                   14603: # Check whether --with-tux was given.
                   14604: if test "${with_tux+set}" = set; then :
                   14605:   withval=$with_tux; PHP_TUX=$withval
                   14606: else
                   14607: 
                   14608:   PHP_TUX=no
                   14609: 
                   14610: 
                   14611: fi
                   14612: 
                   14613: 
                   14614: ext_output=$PHP_TUX
                   14615: 
                   14616: 
                   14617: 
                   14618: 
                   14619: 
                   14620: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TUX" >&5
                   14621: $as_echo_n "checking for TUX... " >&6; }
                   14622: if test "$PHP_TUX" != "no"; then
                   14623:   INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PHP_TUX/php5.tux.so"
                   14624:   for ac_header in tuxmodule.h
                   14625: do :
                   14626:   ac_fn_c_check_header_mongrel "$LINENO" "tuxmodule.h" "ac_cv_header_tuxmodule_h" "$ac_includes_default"
                   14627: if test "x$ac_cv_header_tuxmodule_h" = xyes; then :
                   14628:   cat >>confdefs.h <<_ACEOF
                   14629: #define HAVE_TUXMODULE_H 1
                   14630: _ACEOF
                   14631:  :
                   14632: else
                   14633:   as_fn_error $? "Cannot find tuxmodule.h" "$LINENO" 5
                   14634: fi
                   14635: 
                   14636: done
                   14637: 
                   14638: 
1.1.1.2 ! misho    14639:   if test "shared" = "program"; then
        !          14640:     PHP_BINARIES="$PHP_BINARIES tux"
        !          14641:   elif test "$PHP_SAPI" != "none"; then
        !          14642:     as_fn_error $? "
1.1       misho    14643: +--------------------------------------------------------------------+
                   14644: |                        *** ATTENTION ***                           |
                   14645: |                                                                    |
                   14646: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    14647: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    14648: +--------------------------------------------------------------------+
                   14649: " "$LINENO" 5
1.1.1.2 ! misho    14650:   else
        !          14651:     PHP_SAPI=tux
1.1       misho    14652:   fi
                   14653: 
                   14654: 
                   14655: 
1.1.1.2 ! misho    14656:     BUILD_DIR="$BUILD_DIR sapi/tux"
        !          14657: 
        !          14658: 
        !          14659: 
        !          14660:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS tux"
        !          14661: 
        !          14662: 
        !          14663:     case "shared" in
        !          14664:     static)
        !          14665: 
1.1       misho    14666:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14667:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   14668:   php_c_post=
                   14669:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14670:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   14671:   php_cxx_post=
                   14672:   php_lo=lo
                   14673: 
                   14674:   case $with_pic in
                   14675:     yes) pic_setting='-prefer-pic';;
                   14676:     no)  pic_setting='-prefer-non-pic';;
                   14677:   esac
                   14678: 
                   14679:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14680:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   14681:   shared_c_post=
                   14682:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14683:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   14684:   shared_cxx_post=
                   14685:   shared_lo=lo
                   14686: 
                   14687:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    14688:   php_sapi_module=static
1.1       misho    14689: ;;
1.1.1.2 ! misho    14690:     shared)
1.1       misho    14691: 
                   14692:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14693:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   14694:   php_c_post=
                   14695:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14696:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   14697:   php_cxx_post=
                   14698:   php_lo=lo
                   14699: 
                   14700:   case $with_pic in
                   14701:     yes) pic_setting='-prefer-pic';;
                   14702:     no)  pic_setting='-prefer-non-pic';;
                   14703:   esac
                   14704: 
                   14705:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14706:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   14707:   shared_c_post=
                   14708:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14709:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   14710:   shared_cxx_post=
                   14711:   shared_lo=lo
                   14712: 
                   14713:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    14714:   php_sapi_module=shared
1.1       misho    14715: 
                   14716:   php_c_pre=$shared_c_pre
                   14717:   php_c_meta=$shared_c_meta
                   14718:   php_c_post=$shared_c_post
                   14719:   php_cxx_pre=$shared_cxx_pre
                   14720:   php_cxx_meta=$shared_cxx_meta
                   14721:   php_cxx_post=$shared_cxx_post
                   14722:   php_lo=$shared_lo
                   14723: ;;
1.1.1.2 ! misho    14724:     bundle)
1.1       misho    14725: 
                   14726:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14727:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   14728:   php_c_post=
                   14729:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14730:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   14731:   php_cxx_post=
                   14732:   php_lo=lo
                   14733: 
                   14734:   case $with_pic in
                   14735:     yes) pic_setting='-prefer-pic';;
                   14736:     no)  pic_setting='-prefer-non-pic';;
                   14737:   esac
                   14738: 
                   14739:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14740:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   14741:   shared_c_post=
                   14742:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14743:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   14744:   shared_cxx_post=
                   14745:   shared_lo=lo
                   14746: 
                   14747:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    14748:   php_sapi_module=static
1.1       misho    14749: ;;
1.1.1.2 ! misho    14750:     esac
        !          14751:     install_sapi="install-sapi"
1.1       misho    14752: 
                   14753: 
                   14754:   case sapi/tux in
                   14755:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   14756:   /*) ac_srcdir=`echo "sapi/tux"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   14757:   *) ac_srcdir="$abs_srcdir/sapi/tux/"; ac_bdir="sapi/tux/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   14758:   esac
                   14759: 
                   14760: 
                   14761: 
                   14762:   b_c_pre=$php_c_pre
                   14763:   b_cxx_pre=$php_cxx_pre
                   14764:   b_c_meta=$php_c_meta
                   14765:   b_cxx_meta=$php_cxx_meta
                   14766:   b_c_post=$php_c_post
                   14767:   b_cxx_post=$php_cxx_post
                   14768:   b_lo=$php_lo
                   14769: 
                   14770: 
                   14771:   old_IFS=$IFS
                   14772:   for ac_src in php_tux.c; do
                   14773: 
                   14774:       IFS=.
                   14775:       set $ac_src
                   14776:       ac_obj=$1
                   14777:       IFS=$old_IFS
                   14778: 
                   14779:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   14780: 
                   14781:       case $ac_src in
                   14782:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   14783:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   14784:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   14785:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   14786:       esac
                   14787: 
                   14788:     cat >>Makefile.objects<<EOF
                   14789: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   14790:        $ac_comp
                   14791: EOF
                   14792:   done
                   14793: 
                   14794: 
                   14795: 
1.1.1.2 ! misho    14796: 
1.1       misho    14797:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_TUX" >&5
                   14798: $as_echo "$PHP_TUX" >&6; }
                   14799: else
                   14800:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   14801: $as_echo "no" >&6; }
                   14802: fi
                   14803: 
                   14804: 
                   14805: 
                   14806: php_with_webjames=no
                   14807: 
                   14808: 
                   14809: 
                   14810: # Check whether --with-webjames was given.
                   14811: if test "${with_webjames+set}" = set; then :
                   14812:   withval=$with_webjames; PHP_WEBJAMES=$withval
                   14813: else
                   14814: 
                   14815:   PHP_WEBJAMES=no
                   14816: 
                   14817: 
                   14818: fi
                   14819: 
                   14820: 
                   14821: ext_output=$PHP_WEBJAMES
                   14822: 
                   14823: 
                   14824: 
                   14825: 
                   14826: 
                   14827: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for webjames" >&5
                   14828: $as_echo_n "checking for webjames... " >&6; }
                   14829: 
                   14830: if test "$PHP_WEBJAMES" != "no"; then
                   14831: 
                   14832:   if test -z "$PHP_WEBJAMES" || echo "$PHP_WEBJAMES" | grep '^/' >/dev/null ; then
                   14833:     PHP_WEBJAMES=$PHP_WEBJAMES
                   14834:   else
                   14835: 
                   14836:     ep_dir="`echo $PHP_WEBJAMES|$SED 's%/*[^/][^/]*/*$%%'`"
                   14837: 
                   14838:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   14839:     PHP_WEBJAMES="$ep_realdir/`basename \"$PHP_WEBJAMES\"`"
                   14840:   fi
                   14841: 
                   14842:   INSTALL_IT="\
                   14843:     echo 'PHP_LIBS = -l$abs_srcdir/$SAPI_STATIC \$(PHP_LIBS) \$(EXTRA_LIBS)' > $PHP_WEBJAMES/build/php; \
                   14844:     echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $PHP_WEBJAMES/build/php; \
                   14845:     echo 'PHP_CFLAGS = -DPHP \$(COMMON_FLAGS) \$(EXTRA_CFLAGS) -I$abs_srcdir/sapi/webjames' >> $PHP_WEBJAMES/build/php;"
                   14846: 
                   14847:   if test "$PHP_WEBJAMES" != "/usr/include"; then
                   14848: 
                   14849:   if test -z "$PHP_WEBJAMES" || echo "$PHP_WEBJAMES" | grep '^/' >/dev/null ; then
                   14850:     ai_p=$PHP_WEBJAMES
                   14851:   else
                   14852: 
                   14853:     ep_dir="`echo $PHP_WEBJAMES|$SED 's%/*[^/][^/]*/*$%%'`"
                   14854: 
                   14855:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   14856:     ai_p="$ep_realdir/`basename \"$PHP_WEBJAMES\"`"
                   14857:   fi
                   14858: 
                   14859: 
                   14860: 
                   14861:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   14862: 
                   14863:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   14864:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   14865:     eval "INCLUDEPATH$unique=set"
                   14866: 
                   14867:       if test ""; then
                   14868:         INCLUDES="-I$ai_p $INCLUDES"
                   14869:       else
                   14870:         INCLUDES="$INCLUDES -I$ai_p"
                   14871:       fi
                   14872: 
                   14873:   fi
                   14874: 
                   14875:   fi
                   14876: 
                   14877: 
1.1.1.2 ! misho    14878:   if test "static" = "program"; then
        !          14879:     PHP_BINARIES="$PHP_BINARIES webjames"
        !          14880:   elif test "$PHP_SAPI" != "none"; then
        !          14881:     as_fn_error $? "
1.1       misho    14882: +--------------------------------------------------------------------+
                   14883: |                        *** ATTENTION ***                           |
                   14884: |                                                                    |
                   14885: | You've configured multiple SAPIs to be build. You can build only   |
1.1.1.2 ! misho    14886: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
1.1       misho    14887: +--------------------------------------------------------------------+
                   14888: " "$LINENO" 5
1.1.1.2 ! misho    14889:   else
        !          14890:     PHP_SAPI=webjames
1.1       misho    14891:   fi
                   14892: 
                   14893: 
                   14894: 
1.1.1.2 ! misho    14895:     BUILD_DIR="$BUILD_DIR sapi/webjames"
        !          14896: 
        !          14897: 
        !          14898: 
        !          14899:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS webjames"
        !          14900: 
        !          14901: 
        !          14902:     case "static" in
        !          14903:     static)
        !          14904: 
1.1       misho    14905:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14906:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   14907:   php_c_post=
                   14908:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14909:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   14910:   php_cxx_post=
                   14911:   php_lo=lo
                   14912: 
                   14913:   case $with_pic in
                   14914:     yes) pic_setting='-prefer-pic';;
                   14915:     no)  pic_setting='-prefer-non-pic';;
                   14916:   esac
                   14917: 
                   14918:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14919:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   14920:   shared_c_post=
                   14921:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14922:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   14923:   shared_cxx_post=
                   14924:   shared_lo=lo
                   14925: 
                   14926:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    14927:   php_sapi_module=static
1.1       misho    14928: ;;
1.1.1.2 ! misho    14929:     shared)
1.1       misho    14930: 
                   14931:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14932:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   14933:   php_c_post=
                   14934:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14935:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   14936:   php_cxx_post=
                   14937:   php_lo=lo
                   14938: 
                   14939:   case $with_pic in
                   14940:     yes) pic_setting='-prefer-pic';;
                   14941:     no)  pic_setting='-prefer-non-pic';;
                   14942:   esac
                   14943: 
                   14944:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14945:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   14946:   shared_c_post=
                   14947:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14948:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   14949:   shared_cxx_post=
                   14950:   shared_lo=lo
                   14951: 
                   14952:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
1.1.1.2 ! misho    14953:   php_sapi_module=shared
1.1       misho    14954: 
                   14955:   php_c_pre=$shared_c_pre
                   14956:   php_c_meta=$shared_c_meta
                   14957:   php_c_post=$shared_c_post
                   14958:   php_cxx_pre=$shared_cxx_pre
                   14959:   php_cxx_meta=$shared_cxx_meta
                   14960:   php_cxx_post=$shared_cxx_post
                   14961:   php_lo=$shared_lo
                   14962: ;;
1.1.1.2 ! misho    14963:     bundle)
1.1       misho    14964: 
                   14965:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14966:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
                   14967:   php_c_post=
                   14968:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14969:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
                   14970:   php_cxx_post=
                   14971:   php_lo=lo
                   14972: 
                   14973:   case $with_pic in
                   14974:     yes) pic_setting='-prefer-pic';;
                   14975:     no)  pic_setting='-prefer-non-pic';;
                   14976:   esac
                   14977: 
                   14978:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
                   14979:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
                   14980:   shared_c_post=
                   14981:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
                   14982:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
                   14983:   shared_cxx_post=
                   14984:   shared_lo=lo
                   14985: 
                   14986:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
1.1.1.2 ! misho    14987:   php_sapi_module=static
1.1       misho    14988: ;;
1.1.1.2 ! misho    14989:     esac
        !          14990:     install_sapi="install-sapi"
1.1       misho    14991: 
                   14992: 
                   14993:   case sapi/webjames in
                   14994:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   14995:   /*) ac_srcdir=`echo "sapi/webjames"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   14996:   *) ac_srcdir="$abs_srcdir/sapi/webjames/"; ac_bdir="sapi/webjames/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   14997:   esac
                   14998: 
                   14999: 
                   15000: 
                   15001:   b_c_pre=$php_c_pre
                   15002:   b_cxx_pre=$php_cxx_pre
                   15003:   b_c_meta=$php_c_meta
                   15004:   b_cxx_meta=$php_cxx_meta
                   15005:   b_c_post=$php_c_post
                   15006:   b_cxx_post=$php_cxx_post
                   15007:   b_lo=$php_lo
                   15008: 
                   15009: 
                   15010:   old_IFS=$IFS
                   15011:   for ac_src in webjames.c; do
                   15012: 
                   15013:       IFS=.
                   15014:       set $ac_src
                   15015:       ac_obj=$1
                   15016:       IFS=$old_IFS
                   15017: 
                   15018:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   15019: 
                   15020:       case $ac_src in
                   15021:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   15022:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   15023:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   15024:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   15025:       esac
                   15026: 
                   15027:     cat >>Makefile.objects<<EOF
                   15028: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   15029:        $ac_comp
                   15030: EOF
                   15031:   done
                   15032: 
                   15033: 
                   15034: 
1.1.1.2 ! misho    15035: 
1.1       misho    15036:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using $PHP_WEBJAMES" >&5
                   15037: $as_echo "yes, using $PHP_WEBJAMES" >&6; }
                   15038: else
                   15039:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   15040: $as_echo "no" >&6; }
                   15041: fi
                   15042: 
                   15043: 
                   15044: 
                   15045: php_enable_cgi=yes
                   15046: 
                   15047: 
                   15048: # Check whether --enable-cgi was given.
                   15049: if test "${enable_cgi+set}" = set; then :
                   15050:   enableval=$enable_cgi; PHP_CGI=$enableval
                   15051: else
                   15052: 
                   15053:   PHP_CGI=yes
                   15054: 
                   15055: 
                   15056: fi
                   15057: 
                   15058: 
                   15059: ext_output=$PHP_CGI
                   15060: 
                   15061: 
                   15062: 
                   15063: 
                   15064: 
1.1.1.2 ! misho    15065: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CGI build" >&5
        !          15066: $as_echo_n "checking for CGI build... " >&6; }
        !          15067: if test "$PHP_CGI" != "no"; then
1.1       misho    15068:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   15069: $as_echo "yes" >&6; }
                   15070:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
                   15071: $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
                   15072:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15073: /* end confdefs.h.  */
                   15074: #include <sys/socket.h>
                   15075: 
                   15076: _ACEOF
                   15077: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   15078:   $EGREP "socklen_t" >/dev/null 2>&1; then :
                   15079:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   15080: $as_echo "yes" >&6; }
                   15081: 
                   15082: $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
                   15083: 
                   15084: else
                   15085:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   15086: $as_echo "no" >&6; }
                   15087: fi
                   15088: rm -f conftest*
                   15089: 
                   15090: 
                   15091:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sun_len in sys/un.h" >&5
                   15092: $as_echo_n "checking for sun_len in sys/un.h... " >&6; }
                   15093:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15094: /* end confdefs.h.  */
                   15095: #include <sys/un.h>
                   15096: 
                   15097: _ACEOF
                   15098: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   15099:   $EGREP "sun_len" >/dev/null 2>&1; then :
                   15100:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   15101: $as_echo "yes" >&6; }
                   15102: 
                   15103: $as_echo "#define HAVE_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h
                   15104: 
                   15105: else
                   15106:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   15107: $as_echo "no" >&6; }
                   15108: fi
                   15109: rm -f conftest*
                   15110: 
                   15111: 
                   15112:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cross-process locking is required by accept()" >&5
                   15113: $as_echo_n "checking whether cross-process locking is required by accept()... " >&6; }
                   15114:     case "`uname -sr`" in
                   15115:       IRIX\ 5.* | SunOS\ 5.* | UNIX_System_V\ 4.0)
                   15116:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   15117: $as_echo "yes" >&6; }
                   15118: 
                   15119: $as_echo "#define USE_LOCKING 1" >>confdefs.h
                   15120: 
                   15121:       ;;
                   15122:       *)
                   15123:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   15124: $as_echo "no" >&6; }
                   15125:       ;;
                   15126:     esac
                   15127: 
                   15128: 
                   15129:   src=$abs_srcdir/sapi/cgi/Makefile.frag
                   15130:   ac_srcdir=$ext_srcdir
                   15131:   ac_builddir=$ext_builddir
                   15132:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
                   15133: 
                   15134: 
                   15135:         case $host_alias in
                   15136:       *cygwin* )
                   15137:         SAPI_CGI_PATH=sapi/cgi/php-cgi.exe
                   15138:         ;;
                   15139:       * )
                   15140:         SAPI_CGI_PATH=sapi/cgi/php-cgi
                   15141:         ;;
                   15142:     esac
                   15143: 
                   15144: 
1.1.1.2 ! misho    15145:   if test "program" = "program"; then
        !          15146:     PHP_BINARIES="$PHP_BINARIES cgi"
        !          15147:   elif test "$PHP_SAPI" != "none"; then
        !          15148:     as_fn_error $? "
        !          15149: +--------------------------------------------------------------------+
        !          15150: |                        *** ATTENTION ***                           |
        !          15151: |                                                                    |
        !          15152: | You've configured multiple SAPIs to be build. You can build only   |
        !          15153: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
        !          15154: +--------------------------------------------------------------------+
        !          15155: " "$LINENO" 5
        !          15156:   else
        !          15157:     PHP_SAPI=cgi
        !          15158:   fi
1.1       misho    15159: 
                   15160: 
                   15161: 
1.1.1.2 ! misho    15162:     BUILD_DIR="$BUILD_DIR sapi/cgi"
1.1       misho    15163: 
                   15164: 
                   15165: 
1.1.1.2 ! misho    15166:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cgi"
1.1       misho    15167: 
                   15168: 
                   15169: 
1.1.1.2 ! misho    15170:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
        !          15171:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
        !          15172:   php_c_post=
        !          15173:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
        !          15174:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
        !          15175:   php_cxx_post=
        !          15176:   php_lo=lo
1.1       misho    15177: 
1.1.1.2 ! misho    15178:   case $with_pic in
        !          15179:     yes) pic_setting='-prefer-pic';;
        !          15180:     no)  pic_setting='-prefer-non-pic';;
        !          15181:   esac
1.1       misho    15182: 
1.1.1.2 ! misho    15183:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
        !          15184:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
        !          15185:   shared_c_post=
        !          15186:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
        !          15187:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
        !          15188:   shared_cxx_post=
        !          15189:   shared_lo=lo
1.1       misho    15190: 
1.1.1.2 ! misho    15191:     install_binaries="install-binaries"
        !          15192:     install_binary_targets="$install_binary_targets install-cgi"
1.1       misho    15193: 
1.1.1.2 ! misho    15194:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CGI_OBJS"
1.1       misho    15195: 
                   15196: 
1.1.1.2 ! misho    15197:   case sapi/cgi in
1.1       misho    15198:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    15199:   /*) ac_srcdir=`echo "sapi/cgi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          15200:   *) ac_srcdir="$abs_srcdir/sapi/cgi/"; ac_bdir="sapi/cgi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    15201:   esac
                   15202: 
                   15203: 
                   15204: 
                   15205:   b_c_pre=$php_c_pre
                   15206:   b_cxx_pre=$php_cxx_pre
                   15207:   b_c_meta=$php_c_meta
                   15208:   b_cxx_meta=$php_cxx_meta
                   15209:   b_c_post=$php_c_post
                   15210:   b_cxx_post=$php_cxx_post
                   15211:   b_lo=$php_lo
                   15212: 
                   15213: 
                   15214:   old_IFS=$IFS
1.1.1.2 ! misho    15215:   for ac_src in cgi_main.c fastcgi.c; do
1.1       misho    15216: 
                   15217:       IFS=.
                   15218:       set $ac_src
                   15219:       ac_obj=$1
                   15220:       IFS=$old_IFS
                   15221: 
                   15222:       PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
                   15223: 
                   15224:       case $ac_src in
                   15225:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   15226:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   15227:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   15228:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   15229:       esac
                   15230: 
                   15231:     cat >>Makefile.objects<<EOF
                   15232: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   15233:        $ac_comp
                   15234: EOF
                   15235:   done
                   15236: 
                   15237: 
                   15238: 
1.1.1.2 ! misho    15239: 
1.1       misho    15240:     case $host_alias in
                   15241:       *aix*)
1.1.1.2 ! misho    15242:         if test "$php_sapi_module" = "shared"; then
        !          15243:           BUILD_CGI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CGI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/.libs\/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
        !          15244:         else
        !          15245:           BUILD_CGI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CGI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
        !          15246:         fi
1.1       misho    15247:         ;;
                   15248:       *darwin*)
1.1.1.2 ! misho    15249:         BUILD_CGI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_CGI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
1.1       misho    15250:       ;;
                   15251:       *)
1.1.1.2 ! misho    15252:         BUILD_CGI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
1.1       misho    15253:       ;;
                   15254:     esac
                   15255: 
1.1.1.2 ! misho    15256: 
        !          15257:   PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CGI_PATH"
        !          15258: 
1.1       misho    15259: 
                   15260:   PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CGI"
                   15261: 
1.1.1.2 ! misho    15262: else
        !          15263:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
        !          15264: $as_echo "yes" >&6; }
        !          15265: fi
1.1       misho    15266: 
                   15267: 
                   15268: 
                   15269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen SAPI module" >&5
                   15270: $as_echo_n "checking for chosen SAPI module... " >&6; }
                   15271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_SAPI" >&5
                   15272: $as_echo "$PHP_SAPI" >&6; }
                   15273: 
1.1.1.2 ! misho    15274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable SAPI binaries" >&5
        !          15275: $as_echo_n "checking for executable SAPI binaries... " >&6; }
        !          15276: if test "$PHP_BINARIES"; then
        !          15277:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_BINARIES" >&5
        !          15278: $as_echo "$PHP_BINARIES" >&6; }
        !          15279: else
        !          15280:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
        !          15281: $as_echo "none" >&6; }
        !          15282: fi
        !          15283: 
        !          15284: if test -z "$PHP_INSTALLED_SAPIS"; then
        !          15285:   as_fn_error $? "Nothing to build." "$LINENO" 5
        !          15286: fi
        !          15287: 
1.1       misho    15288: if test "$enable_maintainer_zts" = "yes"; then
                   15289: 
                   15290: if test -n "$ac_cv_pthreads_lib"; then
                   15291:   LIBS="$LIBS -l$ac_cv_pthreads_lib"
                   15292: fi
                   15293: 
                   15294: if test -n "$ac_cv_pthreads_cflags"; then
                   15295:   CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
                   15296: fi
                   15297: 
                   15298: fi
                   15299: 
                   15300: 
                   15301: 
                   15302:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   15303: $as_echo "" >&6; }
                   15304:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Running system checks${T_ME}" >&5
                   15305: $as_echo "${T_MD}Running system checks${T_ME}" >&6; }
                   15306: 
                   15307: 
                   15308: 
                   15309:   PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
                   15310:   # Extract the first word of "sendmail", so it can be a program name with args.
                   15311: set dummy sendmail; ac_word=$2
                   15312: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   15313: $as_echo_n "checking for $ac_word... " >&6; }
                   15314: if ${ac_cv_path_PROG_SENDMAIL+:} false; then :
                   15315:   $as_echo_n "(cached) " >&6
                   15316: else
                   15317:   case $PROG_SENDMAIL in
                   15318:   [\\/]* | ?:[\\/]*)
                   15319:   ac_cv_path_PROG_SENDMAIL="$PROG_SENDMAIL" # Let the user override the test with a path.
                   15320:   ;;
                   15321:   *)
                   15322:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   15323: as_dummy="$PATH:$PHP_ALT_PATH"
                   15324: for as_dir in $as_dummy
                   15325: do
                   15326:   IFS=$as_save_IFS
                   15327:   test -z "$as_dir" && as_dir=.
                   15328:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    15329:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    15330:     ac_cv_path_PROG_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
                   15331:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   15332:     break 2
                   15333:   fi
                   15334: done
                   15335:   done
                   15336: IFS=$as_save_IFS
                   15337: 
                   15338:   ;;
                   15339: esac
                   15340: fi
                   15341: PROG_SENDMAIL=$ac_cv_path_PROG_SENDMAIL
                   15342: if test -n "$PROG_SENDMAIL"; then
                   15343:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SENDMAIL" >&5
                   15344: $as_echo "$PROG_SENDMAIL" >&6; }
                   15345: else
                   15346:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   15347: $as_echo "no" >&6; }
                   15348: fi
                   15349: 
                   15350: 
                   15351: 
                   15352:   PHP_VAR_SUBST="$PHP_VAR_SUBST PROG_SENDMAIL"
                   15353: 
                   15354: 
                   15355: 
                   15356: 
                   15357:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
                   15358: $as_echo_n "checking whether system uses EBCDIC... " >&6; }
                   15359: if ${ac_cv_ebcdic+:} false; then :
                   15360:   $as_echo_n "(cached) " >&6
                   15361: else
                   15362: 
                   15363:   if test "$cross_compiling" = yes; then :
                   15364: 
                   15365:   ac_cv_ebcdic=no
                   15366: 
                   15367: else
                   15368:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15369: /* end confdefs.h.  */
                   15370: 
                   15371: int main(void) {
                   15372:   return (unsigned char)'A' != (unsigned char)0xC1;
                   15373: }
                   15374: 
                   15375: _ACEOF
                   15376: if ac_fn_c_try_run "$LINENO"; then :
                   15377: 
                   15378:   ac_cv_ebcdic=yes
                   15379: 
                   15380: else
                   15381: 
                   15382:   ac_cv_ebcdic=no
                   15383: 
                   15384: fi
                   15385: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   15386:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   15387: fi
                   15388: 
                   15389: fi
                   15390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
                   15391: $as_echo "$ac_cv_ebcdic" >&6; }
                   15392:   if test "$ac_cv_ebcdic" = "yes"; then
                   15393: 
                   15394: $as_echo "#define CHARSET_EBCDIC 1" >>confdefs.h
                   15395: 
                   15396:   fi
                   15397: 
                   15398: 
                   15399: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
                   15400: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
                   15401: if ${ac_cv_c_bigendian_php+:} false; then :
                   15402:   $as_echo_n "(cached) " >&6
                   15403: else
                   15404: 
                   15405:   ac_cv_c_bigendian_php=unknown
                   15406:   if test "$cross_compiling" = yes; then :
                   15407:   ac_cv_c_bigendian_php=unknown
                   15408: else
                   15409:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15410: /* end confdefs.h.  */
                   15411: 
                   15412: int main(void)
                   15413: {
                   15414:   short one = 1;
                   15415:   char *cp = (char *)&one;
                   15416: 
                   15417:   if (*cp == 0) {
                   15418:     return(0);
                   15419:   } else {
                   15420:     return(1);
                   15421:   }
                   15422: }
                   15423: 
                   15424: _ACEOF
                   15425: if ac_fn_c_try_run "$LINENO"; then :
                   15426:   ac_cv_c_bigendian_php=yes
                   15427: else
                   15428:   ac_cv_c_bigendian_php=no
                   15429: fi
                   15430: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   15431:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   15432: fi
                   15433: 
                   15434: 
                   15435: fi
                   15436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5
                   15437: $as_echo "$ac_cv_c_bigendian_php" >&6; }
                   15438:  if test $ac_cv_c_bigendian_php = yes; then
                   15439: 
                   15440: $as_echo "#define WORDS_BIGENDIAN /**/" >>confdefs.h
                   15441: 
                   15442:  fi
                   15443: 
                   15444: 
                   15445: 
                   15446:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether writing to stdout works" >&5
                   15447: $as_echo_n "checking whether writing to stdout works... " >&6; }
                   15448: if ${ac_cv_write_stdout+:} false; then :
                   15449:   $as_echo_n "(cached) " >&6
                   15450: else
                   15451: 
                   15452:     if test "$cross_compiling" = yes; then :
                   15453: 
                   15454:       ac_cv_write_stdout=no
                   15455: 
                   15456: else
                   15457:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15458: /* end confdefs.h.  */
                   15459: 
                   15460: #ifdef HAVE_UNISTD_H
                   15461: #include <unistd.h>
                   15462: #endif
                   15463: 
                   15464: #define TEXT "This is the test message -- "
                   15465: 
                   15466: main()
                   15467: {
                   15468:   int n;
                   15469: 
                   15470:   n = write(1, TEXT, sizeof(TEXT)-1);
                   15471:   return (!(n == sizeof(TEXT)-1));
                   15472: }
                   15473: 
                   15474: _ACEOF
                   15475: if ac_fn_c_try_run "$LINENO"; then :
                   15476: 
                   15477:       ac_cv_write_stdout=yes
                   15478: 
                   15479: else
                   15480: 
                   15481:       ac_cv_write_stdout=no
                   15482: 
                   15483: fi
                   15484: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   15485:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   15486: fi
                   15487: 
                   15488: 
                   15489: fi
                   15490: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_write_stdout" >&5
                   15491: $as_echo "$ac_cv_write_stdout" >&6; }
                   15492:   if test "$ac_cv_write_stdout" = "yes"; then
                   15493: 
                   15494: $as_echo "#define PHP_WRITE_STDOUT 1" >>confdefs.h
                   15495: 
                   15496:   fi
                   15497: 
                   15498: 
                   15499: if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then
                   15500:    CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
                   15501:    LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
                   15502: fi
                   15503: test -d /usr/ucblib &&
                   15504:   if test "/usr/ucblib" != "/usr/$PHP_LIBDIR" && test "/usr/ucblib" != "/usr/lib"; then
                   15505: 
                   15506:   if test -z "/usr/ucblib" || echo "/usr/ucblib" | grep '^/' >/dev/null ; then
                   15507:     ai_p=/usr/ucblib
                   15508:   else
                   15509: 
                   15510:     ep_dir="`echo /usr/ucblib|$SED 's%/*[^/][^/]*/*$%%'`"
                   15511: 
                   15512:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   15513:     ai_p="$ep_realdir/`basename \"/usr/ucblib\"`"
                   15514:   fi
                   15515: 
                   15516: 
                   15517: 
                   15518: 
                   15519: 
                   15520:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   15521: 
                   15522:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   15523:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   15524:     eval "LIBPATH$unique=set"
                   15525: 
                   15526:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   15527:     LDFLAGS="$LDFLAGS -L$ai_p"
                   15528:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   15529: 
                   15530:   fi
                   15531: 
                   15532: 
                   15533: 
                   15534:   fi
                   15535: 
                   15536: 
                   15537: 
                   15538: 
                   15539: 
                   15540: 
                   15541:   unset ac_cv_func_socket
                   15542:   unset ac_cv_func___socket
                   15543:   unset found
                   15544: 
                   15545:   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
                   15546: if test "x$ac_cv_func_socket" = xyes; then :
                   15547:   found=yes
                   15548: else
                   15549:    ac_fn_c_check_func "$LINENO" "__socket" "ac_cv_func___socket"
                   15550: if test "x$ac_cv_func___socket" = xyes; then :
                   15551:   found=yes
                   15552: else
                   15553:   found=no
                   15554: fi
                   15555: 
                   15556: fi
                   15557: 
                   15558: 
                   15559:   case $found in
                   15560:   yes)
                   15561: 
                   15562: $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
                   15563: 
                   15564:     ac_cv_func_socket=yes
                   15565:   ;;
                   15566: 
                   15567:     *)
                   15568: 
                   15569:   unset ac_cv_lib_socket_socket
                   15570:   unset ac_cv_lib_socket___socket
                   15571:   unset found
                   15572:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
                   15573: $as_echo_n "checking for socket in -lsocket... " >&6; }
                   15574: if ${ac_cv_lib_socket_socket+:} false; then :
                   15575:   $as_echo_n "(cached) " >&6
                   15576: else
                   15577:   ac_check_lib_save_LIBS=$LIBS
                   15578: LIBS="-lsocket  $LIBS"
                   15579: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15580: /* end confdefs.h.  */
                   15581: 
                   15582: /* Override any GCC internal prototype to avoid an error.
                   15583:    Use char because int might match the return type of a GCC
                   15584:    builtin and then its argument prototype would still apply.  */
                   15585: #ifdef __cplusplus
                   15586: extern "C"
                   15587: #endif
                   15588: char socket ();
                   15589: int
                   15590: main ()
                   15591: {
                   15592: return socket ();
                   15593:   ;
                   15594:   return 0;
                   15595: }
                   15596: _ACEOF
                   15597: if ac_fn_c_try_link "$LINENO"; then :
                   15598:   ac_cv_lib_socket_socket=yes
                   15599: else
                   15600:   ac_cv_lib_socket_socket=no
                   15601: fi
                   15602: rm -f core conftest.err conftest.$ac_objext \
                   15603:     conftest$ac_exeext conftest.$ac_ext
                   15604: LIBS=$ac_check_lib_save_LIBS
                   15605: fi
                   15606: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
                   15607: $as_echo "$ac_cv_lib_socket_socket" >&6; }
                   15608: if test "x$ac_cv_lib_socket_socket" = xyes; then :
                   15609:   found=yes
                   15610: else
                   15611: 
                   15612:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socket in -lsocket" >&5
                   15613: $as_echo_n "checking for __socket in -lsocket... " >&6; }
                   15614: if ${ac_cv_lib_socket___socket+:} false; then :
                   15615:   $as_echo_n "(cached) " >&6
                   15616: else
                   15617:   ac_check_lib_save_LIBS=$LIBS
                   15618: LIBS="-lsocket  $LIBS"
                   15619: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15620: /* end confdefs.h.  */
                   15621: 
                   15622: /* Override any GCC internal prototype to avoid an error.
                   15623:    Use char because int might match the return type of a GCC
                   15624:    builtin and then its argument prototype would still apply.  */
                   15625: #ifdef __cplusplus
                   15626: extern "C"
                   15627: #endif
                   15628: char __socket ();
                   15629: int
                   15630: main ()
                   15631: {
                   15632: return __socket ();
                   15633:   ;
                   15634:   return 0;
                   15635: }
                   15636: _ACEOF
                   15637: if ac_fn_c_try_link "$LINENO"; then :
                   15638:   ac_cv_lib_socket___socket=yes
                   15639: else
                   15640:   ac_cv_lib_socket___socket=no
                   15641: fi
                   15642: rm -f core conftest.err conftest.$ac_objext \
                   15643:     conftest$ac_exeext conftest.$ac_ext
                   15644: LIBS=$ac_check_lib_save_LIBS
                   15645: fi
                   15646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socket" >&5
                   15647: $as_echo "$ac_cv_lib_socket___socket" >&6; }
                   15648: if test "x$ac_cv_lib_socket___socket" = xyes; then :
                   15649:   found=yes
                   15650: else
                   15651:   found=no
                   15652: fi
                   15653: 
                   15654: 
                   15655: fi
                   15656: 
                   15657: 
                   15658:   if test "$found" = "yes"; then
                   15659:     ac_libs=$LIBS
                   15660:     LIBS="$LIBS -lsocket"
                   15661:     if test "$cross_compiling" = yes; then :
                   15662:   found=no
                   15663: else
                   15664:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15665: /* end confdefs.h.  */
                   15666: main() { return (0); }
                   15667: _ACEOF
                   15668: if ac_fn_c_try_run "$LINENO"; then :
                   15669:   found=yes
                   15670: else
                   15671:   found=no
                   15672: fi
                   15673: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   15674:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   15675: fi
                   15676: 
                   15677:     LIBS=$ac_libs
                   15678:   fi
                   15679: 
                   15680:   if test "$found" = "yes"; then
                   15681: 
                   15682: 
                   15683:   case socket in
                   15684:   c|c_r|pthread*) ;;
                   15685:   *)
                   15686:       LIBS="-lsocket $LIBS"
                   15687:    ;;
                   15688:   esac
                   15689: 
                   15690: 
                   15691: 
                   15692: $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
                   15693: 
                   15694: 
                   15695: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
                   15696: 
                   15697:     ac_cv_func_socket=yes
                   15698:   else
                   15699: 
                   15700:   :
                   15701: 
                   15702:   fi
                   15703: 
                   15704:  ;;
                   15705: 
                   15706:   esac
                   15707: 
                   15708: 
                   15709:   unset ac_cv_func_socketpair
                   15710:   unset ac_cv_func___socketpair
                   15711:   unset found
                   15712: 
                   15713:   ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
                   15714: if test "x$ac_cv_func_socketpair" = xyes; then :
                   15715:   found=yes
                   15716: else
                   15717:    ac_fn_c_check_func "$LINENO" "__socketpair" "ac_cv_func___socketpair"
                   15718: if test "x$ac_cv_func___socketpair" = xyes; then :
                   15719:   found=yes
                   15720: else
                   15721:   found=no
                   15722: fi
                   15723: 
                   15724: fi
                   15725: 
                   15726: 
                   15727:   case $found in
                   15728:   yes)
                   15729: 
                   15730: $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
                   15731: 
                   15732:     ac_cv_func_socketpair=yes
                   15733:   ;;
                   15734: 
                   15735:     *)
                   15736: 
                   15737:   unset ac_cv_lib_socket_socketpair
                   15738:   unset ac_cv_lib_socket___socketpair
                   15739:   unset found
                   15740:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5
                   15741: $as_echo_n "checking for socketpair in -lsocket... " >&6; }
                   15742: if ${ac_cv_lib_socket_socketpair+:} false; then :
                   15743:   $as_echo_n "(cached) " >&6
                   15744: else
                   15745:   ac_check_lib_save_LIBS=$LIBS
                   15746: LIBS="-lsocket  $LIBS"
                   15747: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15748: /* end confdefs.h.  */
                   15749: 
                   15750: /* Override any GCC internal prototype to avoid an error.
                   15751:    Use char because int might match the return type of a GCC
                   15752:    builtin and then its argument prototype would still apply.  */
                   15753: #ifdef __cplusplus
                   15754: extern "C"
                   15755: #endif
                   15756: char socketpair ();
                   15757: int
                   15758: main ()
                   15759: {
                   15760: return socketpair ();
                   15761:   ;
                   15762:   return 0;
                   15763: }
                   15764: _ACEOF
                   15765: if ac_fn_c_try_link "$LINENO"; then :
                   15766:   ac_cv_lib_socket_socketpair=yes
                   15767: else
                   15768:   ac_cv_lib_socket_socketpair=no
                   15769: fi
                   15770: rm -f core conftest.err conftest.$ac_objext \
                   15771:     conftest$ac_exeext conftest.$ac_ext
                   15772: LIBS=$ac_check_lib_save_LIBS
                   15773: fi
                   15774: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5
                   15775: $as_echo "$ac_cv_lib_socket_socketpair" >&6; }
                   15776: if test "x$ac_cv_lib_socket_socketpair" = xyes; then :
                   15777:   found=yes
                   15778: else
                   15779: 
                   15780:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socketpair in -lsocket" >&5
                   15781: $as_echo_n "checking for __socketpair in -lsocket... " >&6; }
                   15782: if ${ac_cv_lib_socket___socketpair+:} false; then :
                   15783:   $as_echo_n "(cached) " >&6
                   15784: else
                   15785:   ac_check_lib_save_LIBS=$LIBS
                   15786: LIBS="-lsocket  $LIBS"
                   15787: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15788: /* end confdefs.h.  */
                   15789: 
                   15790: /* Override any GCC internal prototype to avoid an error.
                   15791:    Use char because int might match the return type of a GCC
                   15792:    builtin and then its argument prototype would still apply.  */
                   15793: #ifdef __cplusplus
                   15794: extern "C"
                   15795: #endif
                   15796: char __socketpair ();
                   15797: int
                   15798: main ()
                   15799: {
                   15800: return __socketpair ();
                   15801:   ;
                   15802:   return 0;
                   15803: }
                   15804: _ACEOF
                   15805: if ac_fn_c_try_link "$LINENO"; then :
                   15806:   ac_cv_lib_socket___socketpair=yes
                   15807: else
                   15808:   ac_cv_lib_socket___socketpair=no
                   15809: fi
                   15810: rm -f core conftest.err conftest.$ac_objext \
                   15811:     conftest$ac_exeext conftest.$ac_ext
                   15812: LIBS=$ac_check_lib_save_LIBS
                   15813: fi
                   15814: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socketpair" >&5
                   15815: $as_echo "$ac_cv_lib_socket___socketpair" >&6; }
                   15816: if test "x$ac_cv_lib_socket___socketpair" = xyes; then :
                   15817:   found=yes
                   15818: else
                   15819:   found=no
                   15820: fi
                   15821: 
                   15822: 
                   15823: fi
                   15824: 
                   15825: 
                   15826:   if test "$found" = "yes"; then
                   15827:     ac_libs=$LIBS
                   15828:     LIBS="$LIBS -lsocket"
                   15829:     if test "$cross_compiling" = yes; then :
                   15830:   found=no
                   15831: else
                   15832:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15833: /* end confdefs.h.  */
                   15834: main() { return (0); }
                   15835: _ACEOF
                   15836: if ac_fn_c_try_run "$LINENO"; then :
                   15837:   found=yes
                   15838: else
                   15839:   found=no
                   15840: fi
                   15841: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   15842:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   15843: fi
                   15844: 
                   15845:     LIBS=$ac_libs
                   15846:   fi
                   15847: 
                   15848:   if test "$found" = "yes"; then
                   15849: 
                   15850: 
                   15851:   case socket in
                   15852:   c|c_r|pthread*) ;;
                   15853:   *)
                   15854:       LIBS="-lsocket $LIBS"
                   15855:    ;;
                   15856:   esac
                   15857: 
                   15858: 
                   15859: 
                   15860: $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
                   15861: 
                   15862: 
                   15863: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
                   15864: 
                   15865:     ac_cv_func_socketpair=yes
                   15866:   else
                   15867: 
                   15868:   :
                   15869: 
                   15870:   fi
                   15871: 
                   15872:  ;;
                   15873: 
                   15874:   esac
                   15875: 
                   15876: 
                   15877:   unset ac_cv_func_htonl
                   15878:   unset ac_cv_func___htonl
                   15879:   unset found
                   15880: 
                   15881:   ac_fn_c_check_func "$LINENO" "htonl" "ac_cv_func_htonl"
                   15882: if test "x$ac_cv_func_htonl" = xyes; then :
                   15883:   found=yes
                   15884: else
                   15885:    ac_fn_c_check_func "$LINENO" "__htonl" "ac_cv_func___htonl"
                   15886: if test "x$ac_cv_func___htonl" = xyes; then :
                   15887:   found=yes
                   15888: else
                   15889:   found=no
                   15890: fi
                   15891: 
                   15892: fi
                   15893: 
                   15894: 
                   15895:   case $found in
                   15896:   yes)
                   15897: 
                   15898: $as_echo "#define HAVE_HTONL 1" >>confdefs.h
                   15899: 
                   15900:     ac_cv_func_htonl=yes
                   15901:   ;;
                   15902: 
                   15903:     *)
                   15904: 
                   15905:   unset ac_cv_lib_socket_htonl
                   15906:   unset ac_cv_lib_socket___htonl
                   15907:   unset found
                   15908:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lsocket" >&5
                   15909: $as_echo_n "checking for htonl in -lsocket... " >&6; }
                   15910: if ${ac_cv_lib_socket_htonl+:} false; then :
                   15911:   $as_echo_n "(cached) " >&6
                   15912: else
                   15913:   ac_check_lib_save_LIBS=$LIBS
                   15914: LIBS="-lsocket  $LIBS"
                   15915: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15916: /* end confdefs.h.  */
                   15917: 
                   15918: /* Override any GCC internal prototype to avoid an error.
                   15919:    Use char because int might match the return type of a GCC
                   15920:    builtin and then its argument prototype would still apply.  */
                   15921: #ifdef __cplusplus
                   15922: extern "C"
                   15923: #endif
                   15924: char htonl ();
                   15925: int
                   15926: main ()
                   15927: {
                   15928: return htonl ();
                   15929:   ;
                   15930:   return 0;
                   15931: }
                   15932: _ACEOF
                   15933: if ac_fn_c_try_link "$LINENO"; then :
                   15934:   ac_cv_lib_socket_htonl=yes
                   15935: else
                   15936:   ac_cv_lib_socket_htonl=no
                   15937: fi
                   15938: rm -f core conftest.err conftest.$ac_objext \
                   15939:     conftest$ac_exeext conftest.$ac_ext
                   15940: LIBS=$ac_check_lib_save_LIBS
                   15941: fi
                   15942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_htonl" >&5
                   15943: $as_echo "$ac_cv_lib_socket_htonl" >&6; }
                   15944: if test "x$ac_cv_lib_socket_htonl" = xyes; then :
                   15945:   found=yes
                   15946: else
                   15947: 
                   15948:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __htonl in -lsocket" >&5
                   15949: $as_echo_n "checking for __htonl in -lsocket... " >&6; }
                   15950: if ${ac_cv_lib_socket___htonl+:} false; then :
                   15951:   $as_echo_n "(cached) " >&6
                   15952: else
                   15953:   ac_check_lib_save_LIBS=$LIBS
                   15954: LIBS="-lsocket  $LIBS"
                   15955: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   15956: /* end confdefs.h.  */
                   15957: 
                   15958: /* Override any GCC internal prototype to avoid an error.
                   15959:    Use char because int might match the return type of a GCC
                   15960:    builtin and then its argument prototype would still apply.  */
                   15961: #ifdef __cplusplus
                   15962: extern "C"
                   15963: #endif
                   15964: char __htonl ();
                   15965: int
                   15966: main ()
                   15967: {
                   15968: return __htonl ();
                   15969:   ;
                   15970:   return 0;
                   15971: }
                   15972: _ACEOF
                   15973: if ac_fn_c_try_link "$LINENO"; then :
                   15974:   ac_cv_lib_socket___htonl=yes
                   15975: else
                   15976:   ac_cv_lib_socket___htonl=no
                   15977: fi
                   15978: rm -f core conftest.err conftest.$ac_objext \
                   15979:     conftest$ac_exeext conftest.$ac_ext
                   15980: LIBS=$ac_check_lib_save_LIBS
                   15981: fi
                   15982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___htonl" >&5
                   15983: $as_echo "$ac_cv_lib_socket___htonl" >&6; }
                   15984: if test "x$ac_cv_lib_socket___htonl" = xyes; then :
                   15985:   found=yes
                   15986: else
                   15987:   found=no
                   15988: fi
                   15989: 
                   15990: 
                   15991: fi
                   15992: 
                   15993: 
                   15994:   if test "$found" = "yes"; then
                   15995:     ac_libs=$LIBS
                   15996:     LIBS="$LIBS -lsocket"
                   15997:     if test "$cross_compiling" = yes; then :
                   15998:   found=no
                   15999: else
                   16000:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16001: /* end confdefs.h.  */
                   16002: main() { return (0); }
                   16003: _ACEOF
                   16004: if ac_fn_c_try_run "$LINENO"; then :
                   16005:   found=yes
                   16006: else
                   16007:   found=no
                   16008: fi
                   16009: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   16010:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   16011: fi
                   16012: 
                   16013:     LIBS=$ac_libs
                   16014:   fi
                   16015: 
                   16016:   if test "$found" = "yes"; then
                   16017: 
                   16018: 
                   16019:   case socket in
                   16020:   c|c_r|pthread*) ;;
                   16021:   *)
                   16022:       LIBS="-lsocket $LIBS"
                   16023:    ;;
                   16024:   esac
                   16025: 
                   16026: 
                   16027: 
                   16028: $as_echo "#define HAVE_HTONL 1" >>confdefs.h
                   16029: 
                   16030: 
                   16031: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
                   16032: 
                   16033:     ac_cv_func_htonl=yes
                   16034:   else
                   16035: 
                   16036:   :
                   16037: 
                   16038:   fi
                   16039: 
                   16040:  ;;
                   16041: 
                   16042:   esac
                   16043: 
                   16044: 
                   16045:   unset ac_cv_func_gethostname
                   16046:   unset ac_cv_func___gethostname
                   16047:   unset found
                   16048: 
                   16049:   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
                   16050: if test "x$ac_cv_func_gethostname" = xyes; then :
                   16051:   found=yes
                   16052: else
                   16053:    ac_fn_c_check_func "$LINENO" "__gethostname" "ac_cv_func___gethostname"
                   16054: if test "x$ac_cv_func___gethostname" = xyes; then :
                   16055:   found=yes
                   16056: else
                   16057:   found=no
                   16058: fi
                   16059: 
                   16060: fi
                   16061: 
                   16062: 
                   16063:   case $found in
                   16064:   yes)
                   16065: 
                   16066: $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
                   16067: 
                   16068:     ac_cv_func_gethostname=yes
                   16069:   ;;
                   16070: 
                   16071:     *)
                   16072: 
                   16073:   unset ac_cv_lib_nsl_gethostname
                   16074:   unset ac_cv_lib_nsl___gethostname
                   16075:   unset found
                   16076:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
                   16077: $as_echo_n "checking for gethostname in -lnsl... " >&6; }
                   16078: if ${ac_cv_lib_nsl_gethostname+:} false; then :
                   16079:   $as_echo_n "(cached) " >&6
                   16080: else
                   16081:   ac_check_lib_save_LIBS=$LIBS
                   16082: LIBS="-lnsl  $LIBS"
                   16083: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16084: /* end confdefs.h.  */
                   16085: 
                   16086: /* Override any GCC internal prototype to avoid an error.
                   16087:    Use char because int might match the return type of a GCC
                   16088:    builtin and then its argument prototype would still apply.  */
                   16089: #ifdef __cplusplus
                   16090: extern "C"
                   16091: #endif
                   16092: char gethostname ();
                   16093: int
                   16094: main ()
                   16095: {
                   16096: return gethostname ();
                   16097:   ;
                   16098:   return 0;
                   16099: }
                   16100: _ACEOF
                   16101: if ac_fn_c_try_link "$LINENO"; then :
                   16102:   ac_cv_lib_nsl_gethostname=yes
                   16103: else
                   16104:   ac_cv_lib_nsl_gethostname=no
                   16105: fi
                   16106: rm -f core conftest.err conftest.$ac_objext \
                   16107:     conftest$ac_exeext conftest.$ac_ext
                   16108: LIBS=$ac_check_lib_save_LIBS
                   16109: fi
                   16110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
                   16111: $as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
                   16112: if test "x$ac_cv_lib_nsl_gethostname" = xyes; then :
                   16113:   found=yes
                   16114: else
                   16115: 
                   16116:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostname in -lnsl" >&5
                   16117: $as_echo_n "checking for __gethostname in -lnsl... " >&6; }
                   16118: if ${ac_cv_lib_nsl___gethostname+:} false; then :
                   16119:   $as_echo_n "(cached) " >&6
                   16120: else
                   16121:   ac_check_lib_save_LIBS=$LIBS
                   16122: LIBS="-lnsl  $LIBS"
                   16123: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16124: /* end confdefs.h.  */
                   16125: 
                   16126: /* Override any GCC internal prototype to avoid an error.
                   16127:    Use char because int might match the return type of a GCC
                   16128:    builtin and then its argument prototype would still apply.  */
                   16129: #ifdef __cplusplus
                   16130: extern "C"
                   16131: #endif
                   16132: char __gethostname ();
                   16133: int
                   16134: main ()
                   16135: {
                   16136: return __gethostname ();
                   16137:   ;
                   16138:   return 0;
                   16139: }
                   16140: _ACEOF
                   16141: if ac_fn_c_try_link "$LINENO"; then :
                   16142:   ac_cv_lib_nsl___gethostname=yes
                   16143: else
                   16144:   ac_cv_lib_nsl___gethostname=no
                   16145: fi
                   16146: rm -f core conftest.err conftest.$ac_objext \
                   16147:     conftest$ac_exeext conftest.$ac_ext
                   16148: LIBS=$ac_check_lib_save_LIBS
                   16149: fi
                   16150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostname" >&5
                   16151: $as_echo "$ac_cv_lib_nsl___gethostname" >&6; }
                   16152: if test "x$ac_cv_lib_nsl___gethostname" = xyes; then :
                   16153:   found=yes
                   16154: else
                   16155:   found=no
                   16156: fi
                   16157: 
                   16158: 
                   16159: fi
                   16160: 
                   16161: 
                   16162:   if test "$found" = "yes"; then
                   16163:     ac_libs=$LIBS
                   16164:     LIBS="$LIBS -lnsl"
                   16165:     if test "$cross_compiling" = yes; then :
                   16166:   found=no
                   16167: else
                   16168:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16169: /* end confdefs.h.  */
                   16170: main() { return (0); }
                   16171: _ACEOF
                   16172: if ac_fn_c_try_run "$LINENO"; then :
                   16173:   found=yes
                   16174: else
                   16175:   found=no
                   16176: fi
                   16177: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   16178:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   16179: fi
                   16180: 
                   16181:     LIBS=$ac_libs
                   16182:   fi
                   16183: 
                   16184:   if test "$found" = "yes"; then
                   16185: 
                   16186: 
                   16187:   case nsl in
                   16188:   c|c_r|pthread*) ;;
                   16189:   *)
                   16190:       LIBS="-lnsl $LIBS"
                   16191:    ;;
                   16192:   esac
                   16193: 
                   16194: 
                   16195: 
                   16196: $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
                   16197: 
                   16198: 
                   16199: $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
                   16200: 
                   16201:     ac_cv_func_gethostname=yes
                   16202:   else
                   16203: 
                   16204:   :
                   16205: 
                   16206:   fi
                   16207: 
                   16208:  ;;
                   16209: 
                   16210:   esac
                   16211: 
                   16212: 
                   16213:   unset ac_cv_func_gethostbyaddr
                   16214:   unset ac_cv_func___gethostbyaddr
                   16215:   unset found
                   16216: 
                   16217:   ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr"
                   16218: if test "x$ac_cv_func_gethostbyaddr" = xyes; then :
                   16219:   found=yes
                   16220: else
                   16221:    ac_fn_c_check_func "$LINENO" "__gethostbyaddr" "ac_cv_func___gethostbyaddr"
                   16222: if test "x$ac_cv_func___gethostbyaddr" = xyes; then :
                   16223:   found=yes
                   16224: else
                   16225:   found=no
                   16226: fi
                   16227: 
                   16228: fi
                   16229: 
                   16230: 
                   16231:   case $found in
                   16232:   yes)
                   16233: 
                   16234: $as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
                   16235: 
                   16236:     ac_cv_func_gethostbyaddr=yes
                   16237:   ;;
                   16238: 
                   16239:     *)
                   16240: 
                   16241:   unset ac_cv_lib_nsl_gethostbyaddr
                   16242:   unset ac_cv_lib_nsl___gethostbyaddr
                   16243:   unset found
                   16244:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5
                   16245: $as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; }
                   16246: if ${ac_cv_lib_nsl_gethostbyaddr+:} false; then :
                   16247:   $as_echo_n "(cached) " >&6
                   16248: else
                   16249:   ac_check_lib_save_LIBS=$LIBS
                   16250: LIBS="-lnsl  $LIBS"
                   16251: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16252: /* end confdefs.h.  */
                   16253: 
                   16254: /* Override any GCC internal prototype to avoid an error.
                   16255:    Use char because int might match the return type of a GCC
                   16256:    builtin and then its argument prototype would still apply.  */
                   16257: #ifdef __cplusplus
                   16258: extern "C"
                   16259: #endif
                   16260: char gethostbyaddr ();
                   16261: int
                   16262: main ()
                   16263: {
                   16264: return gethostbyaddr ();
                   16265:   ;
                   16266:   return 0;
                   16267: }
                   16268: _ACEOF
                   16269: if ac_fn_c_try_link "$LINENO"; then :
                   16270:   ac_cv_lib_nsl_gethostbyaddr=yes
                   16271: else
                   16272:   ac_cv_lib_nsl_gethostbyaddr=no
                   16273: fi
                   16274: rm -f core conftest.err conftest.$ac_objext \
                   16275:     conftest$ac_exeext conftest.$ac_ext
                   16276: LIBS=$ac_check_lib_save_LIBS
                   16277: fi
                   16278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
                   16279: $as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; }
                   16280: if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes; then :
                   16281:   found=yes
                   16282: else
                   16283: 
                   16284:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostbyaddr in -lnsl" >&5
                   16285: $as_echo_n "checking for __gethostbyaddr in -lnsl... " >&6; }
                   16286: if ${ac_cv_lib_nsl___gethostbyaddr+:} false; then :
                   16287:   $as_echo_n "(cached) " >&6
                   16288: else
                   16289:   ac_check_lib_save_LIBS=$LIBS
                   16290: LIBS="-lnsl  $LIBS"
                   16291: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16292: /* end confdefs.h.  */
                   16293: 
                   16294: /* Override any GCC internal prototype to avoid an error.
                   16295:    Use char because int might match the return type of a GCC
                   16296:    builtin and then its argument prototype would still apply.  */
                   16297: #ifdef __cplusplus
                   16298: extern "C"
                   16299: #endif
                   16300: char __gethostbyaddr ();
                   16301: int
                   16302: main ()
                   16303: {
                   16304: return __gethostbyaddr ();
                   16305:   ;
                   16306:   return 0;
                   16307: }
                   16308: _ACEOF
                   16309: if ac_fn_c_try_link "$LINENO"; then :
                   16310:   ac_cv_lib_nsl___gethostbyaddr=yes
                   16311: else
                   16312:   ac_cv_lib_nsl___gethostbyaddr=no
                   16313: fi
                   16314: rm -f core conftest.err conftest.$ac_objext \
                   16315:     conftest$ac_exeext conftest.$ac_ext
                   16316: LIBS=$ac_check_lib_save_LIBS
                   16317: fi
                   16318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostbyaddr" >&5
                   16319: $as_echo "$ac_cv_lib_nsl___gethostbyaddr" >&6; }
                   16320: if test "x$ac_cv_lib_nsl___gethostbyaddr" = xyes; then :
                   16321:   found=yes
                   16322: else
                   16323:   found=no
                   16324: fi
                   16325: 
                   16326: 
                   16327: fi
                   16328: 
                   16329: 
                   16330:   if test "$found" = "yes"; then
                   16331:     ac_libs=$LIBS
                   16332:     LIBS="$LIBS -lnsl"
                   16333:     if test "$cross_compiling" = yes; then :
                   16334:   found=no
                   16335: else
                   16336:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16337: /* end confdefs.h.  */
                   16338: main() { return (0); }
                   16339: _ACEOF
                   16340: if ac_fn_c_try_run "$LINENO"; then :
                   16341:   found=yes
                   16342: else
                   16343:   found=no
                   16344: fi
                   16345: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   16346:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   16347: fi
                   16348: 
                   16349:     LIBS=$ac_libs
                   16350:   fi
                   16351: 
                   16352:   if test "$found" = "yes"; then
                   16353: 
                   16354: 
                   16355:   case nsl in
                   16356:   c|c_r|pthread*) ;;
                   16357:   *)
                   16358:       LIBS="-lnsl $LIBS"
                   16359:    ;;
                   16360:   esac
                   16361: 
                   16362: 
                   16363: 
                   16364: $as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
                   16365: 
                   16366: 
                   16367: $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
                   16368: 
                   16369:     ac_cv_func_gethostbyaddr=yes
                   16370:   else
                   16371: 
                   16372:   :
                   16373: 
                   16374:   fi
                   16375: 
                   16376:  ;;
                   16377: 
                   16378:   esac
                   16379: 
                   16380: 
                   16381:   unset ac_cv_func_yp_get_default_domain
                   16382:   unset ac_cv_func___yp_get_default_domain
                   16383:   unset found
                   16384: 
                   16385:   ac_fn_c_check_func "$LINENO" "yp_get_default_domain" "ac_cv_func_yp_get_default_domain"
                   16386: if test "x$ac_cv_func_yp_get_default_domain" = xyes; then :
                   16387:   found=yes
                   16388: else
                   16389:    ac_fn_c_check_func "$LINENO" "__yp_get_default_domain" "ac_cv_func___yp_get_default_domain"
                   16390: if test "x$ac_cv_func___yp_get_default_domain" = xyes; then :
                   16391:   found=yes
                   16392: else
                   16393:   found=no
                   16394: fi
                   16395: 
                   16396: fi
                   16397: 
                   16398: 
                   16399:   case $found in
                   16400:   yes)
                   16401: 
                   16402: $as_echo "#define HAVE_YP_GET_DEFAULT_DOMAIN 1" >>confdefs.h
                   16403: 
                   16404:     ac_cv_func_yp_get_default_domain=yes
                   16405:   ;;
                   16406: 
                   16407:     *)
                   16408: 
                   16409:   unset ac_cv_lib_nsl_yp_get_default_domain
                   16410:   unset ac_cv_lib_nsl___yp_get_default_domain
                   16411:   unset found
                   16412:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnsl" >&5
                   16413: $as_echo_n "checking for yp_get_default_domain in -lnsl... " >&6; }
                   16414: if ${ac_cv_lib_nsl_yp_get_default_domain+:} false; then :
                   16415:   $as_echo_n "(cached) " >&6
                   16416: else
                   16417:   ac_check_lib_save_LIBS=$LIBS
                   16418: LIBS="-lnsl  $LIBS"
                   16419: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16420: /* end confdefs.h.  */
                   16421: 
                   16422: /* Override any GCC internal prototype to avoid an error.
                   16423:    Use char because int might match the return type of a GCC
                   16424:    builtin and then its argument prototype would still apply.  */
                   16425: #ifdef __cplusplus
                   16426: extern "C"
                   16427: #endif
                   16428: char yp_get_default_domain ();
                   16429: int
                   16430: main ()
                   16431: {
                   16432: return yp_get_default_domain ();
                   16433:   ;
                   16434:   return 0;
                   16435: }
                   16436: _ACEOF
                   16437: if ac_fn_c_try_link "$LINENO"; then :
                   16438:   ac_cv_lib_nsl_yp_get_default_domain=yes
                   16439: else
                   16440:   ac_cv_lib_nsl_yp_get_default_domain=no
                   16441: fi
                   16442: rm -f core conftest.err conftest.$ac_objext \
                   16443:     conftest$ac_exeext conftest.$ac_ext
                   16444: LIBS=$ac_check_lib_save_LIBS
                   16445: fi
                   16446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
                   16447: $as_echo "$ac_cv_lib_nsl_yp_get_default_domain" >&6; }
                   16448: if test "x$ac_cv_lib_nsl_yp_get_default_domain" = xyes; then :
                   16449:   found=yes
                   16450: else
                   16451: 
                   16452:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __yp_get_default_domain in -lnsl" >&5
                   16453: $as_echo_n "checking for __yp_get_default_domain in -lnsl... " >&6; }
                   16454: if ${ac_cv_lib_nsl___yp_get_default_domain+:} false; then :
                   16455:   $as_echo_n "(cached) " >&6
                   16456: else
                   16457:   ac_check_lib_save_LIBS=$LIBS
                   16458: LIBS="-lnsl  $LIBS"
                   16459: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16460: /* end confdefs.h.  */
                   16461: 
                   16462: /* Override any GCC internal prototype to avoid an error.
                   16463:    Use char because int might match the return type of a GCC
                   16464:    builtin and then its argument prototype would still apply.  */
                   16465: #ifdef __cplusplus
                   16466: extern "C"
                   16467: #endif
                   16468: char __yp_get_default_domain ();
                   16469: int
                   16470: main ()
                   16471: {
                   16472: return __yp_get_default_domain ();
                   16473:   ;
                   16474:   return 0;
                   16475: }
                   16476: _ACEOF
                   16477: if ac_fn_c_try_link "$LINENO"; then :
                   16478:   ac_cv_lib_nsl___yp_get_default_domain=yes
                   16479: else
                   16480:   ac_cv_lib_nsl___yp_get_default_domain=no
                   16481: fi
                   16482: rm -f core conftest.err conftest.$ac_objext \
                   16483:     conftest$ac_exeext conftest.$ac_ext
                   16484: LIBS=$ac_check_lib_save_LIBS
                   16485: fi
                   16486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___yp_get_default_domain" >&5
                   16487: $as_echo "$ac_cv_lib_nsl___yp_get_default_domain" >&6; }
                   16488: if test "x$ac_cv_lib_nsl___yp_get_default_domain" = xyes; then :
                   16489:   found=yes
                   16490: else
                   16491:   found=no
                   16492: fi
                   16493: 
                   16494: 
                   16495: fi
                   16496: 
                   16497: 
                   16498:   if test "$found" = "yes"; then
                   16499:     ac_libs=$LIBS
                   16500:     LIBS="$LIBS -lnsl"
                   16501:     if test "$cross_compiling" = yes; then :
                   16502:   found=no
                   16503: else
                   16504:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16505: /* end confdefs.h.  */
                   16506: main() { return (0); }
                   16507: _ACEOF
                   16508: if ac_fn_c_try_run "$LINENO"; then :
                   16509:   found=yes
                   16510: else
                   16511:   found=no
                   16512: fi
                   16513: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   16514:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   16515: fi
                   16516: 
                   16517:     LIBS=$ac_libs
                   16518:   fi
                   16519: 
                   16520:   if test "$found" = "yes"; then
                   16521: 
                   16522: 
                   16523:   case nsl in
                   16524:   c|c_r|pthread*) ;;
                   16525:   *)
                   16526:       LIBS="-lnsl $LIBS"
                   16527:    ;;
                   16528:   esac
                   16529: 
                   16530: 
                   16531: 
                   16532: $as_echo "#define HAVE_YP_GET_DEFAULT_DOMAIN 1" >>confdefs.h
                   16533: 
                   16534: 
                   16535: $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
                   16536: 
                   16537:     ac_cv_func_yp_get_default_domain=yes
                   16538:   else
                   16539: 
                   16540:   :
                   16541: 
                   16542:   fi
                   16543: 
                   16544:  ;;
                   16545: 
                   16546:   esac
                   16547: 
                   16548: 
                   16549: 
                   16550:   unset ac_cv_func_dlopen
                   16551:   unset ac_cv_func___dlopen
                   16552:   unset found
                   16553: 
                   16554:   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
                   16555: if test "x$ac_cv_func_dlopen" = xyes; then :
                   16556:   found=yes
                   16557: else
                   16558:    ac_fn_c_check_func "$LINENO" "__dlopen" "ac_cv_func___dlopen"
                   16559: if test "x$ac_cv_func___dlopen" = xyes; then :
                   16560:   found=yes
                   16561: else
                   16562:   found=no
                   16563: fi
                   16564: 
                   16565: fi
                   16566: 
                   16567: 
                   16568:   case $found in
                   16569:   yes)
                   16570: 
                   16571: $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
                   16572: 
                   16573:     ac_cv_func_dlopen=yes
                   16574:   ;;
                   16575: 
                   16576:     *)
                   16577: 
                   16578:   unset ac_cv_lib_dl_dlopen
                   16579:   unset ac_cv_lib_dl___dlopen
                   16580:   unset found
                   16581:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   16582: $as_echo_n "checking for dlopen in -ldl... " >&6; }
                   16583: if ${ac_cv_lib_dl_dlopen+:} false; then :
                   16584:   $as_echo_n "(cached) " >&6
                   16585: else
                   16586:   ac_check_lib_save_LIBS=$LIBS
                   16587: LIBS="-ldl  $LIBS"
                   16588: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16589: /* end confdefs.h.  */
                   16590: 
                   16591: /* Override any GCC internal prototype to avoid an error.
                   16592:    Use char because int might match the return type of a GCC
                   16593:    builtin and then its argument prototype would still apply.  */
                   16594: #ifdef __cplusplus
                   16595: extern "C"
                   16596: #endif
                   16597: char dlopen ();
                   16598: int
                   16599: main ()
                   16600: {
                   16601: return dlopen ();
                   16602:   ;
                   16603:   return 0;
                   16604: }
                   16605: _ACEOF
                   16606: if ac_fn_c_try_link "$LINENO"; then :
                   16607:   ac_cv_lib_dl_dlopen=yes
                   16608: else
                   16609:   ac_cv_lib_dl_dlopen=no
                   16610: fi
                   16611: rm -f core conftest.err conftest.$ac_objext \
                   16612:     conftest$ac_exeext conftest.$ac_ext
                   16613: LIBS=$ac_check_lib_save_LIBS
                   16614: fi
                   16615: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   16616: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
                   16617: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
                   16618:   found=yes
                   16619: else
                   16620: 
                   16621:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dlopen in -ldl" >&5
                   16622: $as_echo_n "checking for __dlopen in -ldl... " >&6; }
                   16623: if ${ac_cv_lib_dl___dlopen+:} false; then :
                   16624:   $as_echo_n "(cached) " >&6
                   16625: else
                   16626:   ac_check_lib_save_LIBS=$LIBS
                   16627: LIBS="-ldl  $LIBS"
                   16628: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16629: /* end confdefs.h.  */
                   16630: 
                   16631: /* Override any GCC internal prototype to avoid an error.
                   16632:    Use char because int might match the return type of a GCC
                   16633:    builtin and then its argument prototype would still apply.  */
                   16634: #ifdef __cplusplus
                   16635: extern "C"
                   16636: #endif
                   16637: char __dlopen ();
                   16638: int
                   16639: main ()
                   16640: {
                   16641: return __dlopen ();
                   16642:   ;
                   16643:   return 0;
                   16644: }
                   16645: _ACEOF
                   16646: if ac_fn_c_try_link "$LINENO"; then :
                   16647:   ac_cv_lib_dl___dlopen=yes
                   16648: else
                   16649:   ac_cv_lib_dl___dlopen=no
                   16650: fi
                   16651: rm -f core conftest.err conftest.$ac_objext \
                   16652:     conftest$ac_exeext conftest.$ac_ext
                   16653: LIBS=$ac_check_lib_save_LIBS
                   16654: fi
                   16655: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl___dlopen" >&5
                   16656: $as_echo "$ac_cv_lib_dl___dlopen" >&6; }
                   16657: if test "x$ac_cv_lib_dl___dlopen" = xyes; then :
                   16658:   found=yes
                   16659: else
                   16660:   found=no
                   16661: fi
                   16662: 
                   16663: 
                   16664: fi
                   16665: 
                   16666: 
                   16667:   if test "$found" = "yes"; then
                   16668:     ac_libs=$LIBS
                   16669:     LIBS="$LIBS -ldl"
                   16670:     if test "$cross_compiling" = yes; then :
                   16671:   found=no
                   16672: else
                   16673:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16674: /* end confdefs.h.  */
                   16675: main() { return (0); }
                   16676: _ACEOF
                   16677: if ac_fn_c_try_run "$LINENO"; then :
                   16678:   found=yes
                   16679: else
                   16680:   found=no
                   16681: fi
                   16682: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   16683:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   16684: fi
                   16685: 
                   16686:     LIBS=$ac_libs
                   16687:   fi
                   16688: 
                   16689:   if test "$found" = "yes"; then
                   16690: 
                   16691: 
                   16692:   case dl in
                   16693:   c|c_r|pthread*) ;;
                   16694:   *)
                   16695:       LIBS="-ldl $LIBS"
                   16696:    ;;
                   16697:   esac
                   16698: 
                   16699: 
                   16700: 
                   16701: $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
                   16702: 
                   16703: 
                   16704: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
                   16705: 
                   16706:     ac_cv_func_dlopen=yes
                   16707:   else
                   16708: 
                   16709:   :
                   16710: 
                   16711:   fi
                   16712: 
                   16713:  ;;
                   16714: 
                   16715:   esac
                   16716: 
                   16717: if test "$ac_cv_func_dlopen" = "yes"; then
                   16718: 
                   16719: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
                   16720: 
                   16721: fi
                   16722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
                   16723: $as_echo_n "checking for sin in -lm... " >&6; }
                   16724: if ${ac_cv_lib_m_sin+:} false; then :
                   16725:   $as_echo_n "(cached) " >&6
                   16726: else
                   16727:   ac_check_lib_save_LIBS=$LIBS
                   16728: LIBS="-lm  $LIBS"
                   16729: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16730: /* end confdefs.h.  */
                   16731: 
                   16732: /* Override any GCC internal prototype to avoid an error.
                   16733:    Use char because int might match the return type of a GCC
                   16734:    builtin and then its argument prototype would still apply.  */
                   16735: #ifdef __cplusplus
                   16736: extern "C"
                   16737: #endif
                   16738: char sin ();
                   16739: int
                   16740: main ()
                   16741: {
                   16742: return sin ();
                   16743:   ;
                   16744:   return 0;
                   16745: }
                   16746: _ACEOF
                   16747: if ac_fn_c_try_link "$LINENO"; then :
                   16748:   ac_cv_lib_m_sin=yes
                   16749: else
                   16750:   ac_cv_lib_m_sin=no
                   16751: fi
                   16752: rm -f core conftest.err conftest.$ac_objext \
                   16753:     conftest$ac_exeext conftest.$ac_ext
                   16754: LIBS=$ac_check_lib_save_LIBS
                   16755: fi
                   16756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
                   16757: $as_echo "$ac_cv_lib_m_sin" >&6; }
                   16758: if test "x$ac_cv_lib_m_sin" = xyes; then :
                   16759:   cat >>confdefs.h <<_ACEOF
                   16760: #define HAVE_LIBM 1
                   16761: _ACEOF
                   16762: 
                   16763:   LIBS="-lm $LIBS"
                   16764: 
                   16765: fi
                   16766: 
                   16767: 
                   16768: 
                   16769:   unset ac_cv_func_inet_aton
                   16770:   unset ac_cv_func___inet_aton
                   16771:   unset found
                   16772: 
                   16773:   ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
                   16774: if test "x$ac_cv_func_inet_aton" = xyes; then :
                   16775:   found=yes
                   16776: else
                   16777:    ac_fn_c_check_func "$LINENO" "__inet_aton" "ac_cv_func___inet_aton"
                   16778: if test "x$ac_cv_func___inet_aton" = xyes; then :
                   16779:   found=yes
                   16780: else
                   16781:   found=no
                   16782: fi
                   16783: 
                   16784: fi
                   16785: 
                   16786: 
                   16787:   case $found in
                   16788:   yes)
                   16789: 
                   16790: $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
                   16791: 
                   16792:     ac_cv_func_inet_aton=yes
                   16793:   ;;
                   16794: 
                   16795:     *)
                   16796: 
                   16797:   unset ac_cv_lib_resolv_inet_aton
                   16798:   unset ac_cv_lib_resolv___inet_aton
                   16799:   unset found
                   16800:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
                   16801: $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
                   16802: if ${ac_cv_lib_resolv_inet_aton+:} false; then :
                   16803:   $as_echo_n "(cached) " >&6
                   16804: else
                   16805:   ac_check_lib_save_LIBS=$LIBS
                   16806: LIBS="-lresolv  $LIBS"
                   16807: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16808: /* end confdefs.h.  */
                   16809: 
                   16810: /* Override any GCC internal prototype to avoid an error.
                   16811:    Use char because int might match the return type of a GCC
                   16812:    builtin and then its argument prototype would still apply.  */
                   16813: #ifdef __cplusplus
                   16814: extern "C"
                   16815: #endif
                   16816: char inet_aton ();
                   16817: int
                   16818: main ()
                   16819: {
                   16820: return inet_aton ();
                   16821:   ;
                   16822:   return 0;
                   16823: }
                   16824: _ACEOF
                   16825: if ac_fn_c_try_link "$LINENO"; then :
                   16826:   ac_cv_lib_resolv_inet_aton=yes
                   16827: else
                   16828:   ac_cv_lib_resolv_inet_aton=no
                   16829: fi
                   16830: rm -f core conftest.err conftest.$ac_objext \
                   16831:     conftest$ac_exeext conftest.$ac_ext
                   16832: LIBS=$ac_check_lib_save_LIBS
                   16833: fi
                   16834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
                   16835: $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
                   16836: if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
                   16837:   found=yes
                   16838: else
                   16839: 
                   16840:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lresolv" >&5
                   16841: $as_echo_n "checking for __inet_aton in -lresolv... " >&6; }
                   16842: if ${ac_cv_lib_resolv___inet_aton+:} false; then :
                   16843:   $as_echo_n "(cached) " >&6
                   16844: else
                   16845:   ac_check_lib_save_LIBS=$LIBS
                   16846: LIBS="-lresolv  $LIBS"
                   16847: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16848: /* end confdefs.h.  */
                   16849: 
                   16850: /* Override any GCC internal prototype to avoid an error.
                   16851:    Use char because int might match the return type of a GCC
                   16852:    builtin and then its argument prototype would still apply.  */
                   16853: #ifdef __cplusplus
                   16854: extern "C"
                   16855: #endif
                   16856: char __inet_aton ();
                   16857: int
                   16858: main ()
                   16859: {
                   16860: return __inet_aton ();
                   16861:   ;
                   16862:   return 0;
                   16863: }
                   16864: _ACEOF
                   16865: if ac_fn_c_try_link "$LINENO"; then :
                   16866:   ac_cv_lib_resolv___inet_aton=yes
                   16867: else
                   16868:   ac_cv_lib_resolv___inet_aton=no
                   16869: fi
                   16870: rm -f core conftest.err conftest.$ac_objext \
                   16871:     conftest$ac_exeext conftest.$ac_ext
                   16872: LIBS=$ac_check_lib_save_LIBS
                   16873: fi
                   16874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___inet_aton" >&5
                   16875: $as_echo "$ac_cv_lib_resolv___inet_aton" >&6; }
                   16876: if test "x$ac_cv_lib_resolv___inet_aton" = xyes; then :
                   16877:   found=yes
                   16878: else
                   16879:   found=no
                   16880: fi
                   16881: 
                   16882: 
                   16883: fi
                   16884: 
                   16885: 
                   16886:   if test "$found" = "yes"; then
                   16887:     ac_libs=$LIBS
                   16888:     LIBS="$LIBS -lresolv"
                   16889:     if test "$cross_compiling" = yes; then :
                   16890:   found=no
                   16891: else
                   16892:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16893: /* end confdefs.h.  */
                   16894: main() { return (0); }
                   16895: _ACEOF
                   16896: if ac_fn_c_try_run "$LINENO"; then :
                   16897:   found=yes
                   16898: else
                   16899:   found=no
                   16900: fi
                   16901: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   16902:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   16903: fi
                   16904: 
                   16905:     LIBS=$ac_libs
                   16906:   fi
                   16907: 
                   16908:   if test "$found" = "yes"; then
                   16909: 
                   16910: 
                   16911:   case resolv in
                   16912:   c|c_r|pthread*) ;;
                   16913:   *)
                   16914:       LIBS="-lresolv $LIBS"
                   16915:    ;;
                   16916:   esac
                   16917: 
                   16918: 
                   16919: 
                   16920: $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
                   16921: 
                   16922: 
                   16923: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
                   16924: 
                   16925:     ac_cv_func_inet_aton=yes
                   16926:   else
                   16927: 
                   16928: 
                   16929:   unset ac_cv_lib_bind_inet_aton
                   16930:   unset ac_cv_lib_bind___inet_aton
                   16931:   unset found
                   16932:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lbind" >&5
                   16933: $as_echo_n "checking for inet_aton in -lbind... " >&6; }
                   16934: if ${ac_cv_lib_bind_inet_aton+:} false; then :
                   16935:   $as_echo_n "(cached) " >&6
                   16936: else
                   16937:   ac_check_lib_save_LIBS=$LIBS
                   16938: LIBS="-lbind  $LIBS"
                   16939: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16940: /* end confdefs.h.  */
                   16941: 
                   16942: /* Override any GCC internal prototype to avoid an error.
                   16943:    Use char because int might match the return type of a GCC
                   16944:    builtin and then its argument prototype would still apply.  */
                   16945: #ifdef __cplusplus
                   16946: extern "C"
                   16947: #endif
                   16948: char inet_aton ();
                   16949: int
                   16950: main ()
                   16951: {
                   16952: return inet_aton ();
                   16953:   ;
                   16954:   return 0;
                   16955: }
                   16956: _ACEOF
                   16957: if ac_fn_c_try_link "$LINENO"; then :
                   16958:   ac_cv_lib_bind_inet_aton=yes
                   16959: else
                   16960:   ac_cv_lib_bind_inet_aton=no
                   16961: fi
                   16962: rm -f core conftest.err conftest.$ac_objext \
                   16963:     conftest$ac_exeext conftest.$ac_ext
                   16964: LIBS=$ac_check_lib_save_LIBS
                   16965: fi
                   16966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_aton" >&5
                   16967: $as_echo "$ac_cv_lib_bind_inet_aton" >&6; }
                   16968: if test "x$ac_cv_lib_bind_inet_aton" = xyes; then :
                   16969:   found=yes
                   16970: else
                   16971: 
                   16972:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lbind" >&5
                   16973: $as_echo_n "checking for __inet_aton in -lbind... " >&6; }
                   16974: if ${ac_cv_lib_bind___inet_aton+:} false; then :
                   16975:   $as_echo_n "(cached) " >&6
                   16976: else
                   16977:   ac_check_lib_save_LIBS=$LIBS
                   16978: LIBS="-lbind  $LIBS"
                   16979: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   16980: /* end confdefs.h.  */
                   16981: 
                   16982: /* Override any GCC internal prototype to avoid an error.
                   16983:    Use char because int might match the return type of a GCC
                   16984:    builtin and then its argument prototype would still apply.  */
                   16985: #ifdef __cplusplus
                   16986: extern "C"
                   16987: #endif
                   16988: char __inet_aton ();
                   16989: int
                   16990: main ()
                   16991: {
                   16992: return __inet_aton ();
                   16993:   ;
                   16994:   return 0;
                   16995: }
                   16996: _ACEOF
                   16997: if ac_fn_c_try_link "$LINENO"; then :
                   16998:   ac_cv_lib_bind___inet_aton=yes
                   16999: else
                   17000:   ac_cv_lib_bind___inet_aton=no
                   17001: fi
                   17002: rm -f core conftest.err conftest.$ac_objext \
                   17003:     conftest$ac_exeext conftest.$ac_ext
                   17004: LIBS=$ac_check_lib_save_LIBS
                   17005: fi
                   17006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___inet_aton" >&5
                   17007: $as_echo "$ac_cv_lib_bind___inet_aton" >&6; }
                   17008: if test "x$ac_cv_lib_bind___inet_aton" = xyes; then :
                   17009:   found=yes
                   17010: else
                   17011:   found=no
                   17012: fi
                   17013: 
                   17014: 
                   17015: fi
                   17016: 
                   17017: 
                   17018:   if test "$found" = "yes"; then
                   17019:     ac_libs=$LIBS
                   17020:     LIBS="$LIBS -lbind"
                   17021:     if test "$cross_compiling" = yes; then :
                   17022:   found=no
                   17023: else
                   17024:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17025: /* end confdefs.h.  */
                   17026: main() { return (0); }
                   17027: _ACEOF
                   17028: if ac_fn_c_try_run "$LINENO"; then :
                   17029:   found=yes
                   17030: else
                   17031:   found=no
                   17032: fi
                   17033: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   17034:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   17035: fi
                   17036: 
                   17037:     LIBS=$ac_libs
                   17038:   fi
                   17039: 
                   17040:   if test "$found" = "yes"; then
                   17041: 
                   17042: 
                   17043:   case bind in
                   17044:   c|c_r|pthread*) ;;
                   17045:   *)
                   17046:       LIBS="-lbind $LIBS"
                   17047:    ;;
                   17048:   esac
                   17049: 
                   17050: 
                   17051: 
                   17052: $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
                   17053: 
                   17054: 
                   17055: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
                   17056: 
                   17057:     ac_cv_func_inet_aton=yes
                   17058:   else
                   17059: 
                   17060:   :
                   17061: 
                   17062:   fi
                   17063: 
                   17064: 
                   17065:   fi
                   17066: 
                   17067:  ;;
                   17068: 
                   17069:   esac
                   17070: 
                   17071: 
                   17072: 
                   17073: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   17074: $as_echo_n "checking for ANSI C header files... " >&6; }
                   17075: if ${ac_cv_header_stdc+:} false; then :
                   17076:   $as_echo_n "(cached) " >&6
                   17077: else
                   17078:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17079: /* end confdefs.h.  */
                   17080: #include <stdlib.h>
                   17081: #include <stdarg.h>
                   17082: #include <string.h>
                   17083: #include <float.h>
                   17084: 
                   17085: int
                   17086: main ()
                   17087: {
                   17088: 
                   17089:   ;
                   17090:   return 0;
                   17091: }
                   17092: _ACEOF
                   17093: if ac_fn_c_try_compile "$LINENO"; then :
                   17094:   ac_cv_header_stdc=yes
                   17095: else
                   17096:   ac_cv_header_stdc=no
                   17097: fi
                   17098: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17099: 
                   17100: if test $ac_cv_header_stdc = yes; then
                   17101:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   17102:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17103: /* end confdefs.h.  */
                   17104: #include <string.h>
                   17105: 
                   17106: _ACEOF
                   17107: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   17108:   $EGREP "memchr" >/dev/null 2>&1; then :
                   17109: 
                   17110: else
                   17111:   ac_cv_header_stdc=no
                   17112: fi
                   17113: rm -f conftest*
                   17114: 
                   17115: fi
                   17116: 
                   17117: if test $ac_cv_header_stdc = yes; then
                   17118:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   17119:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17120: /* end confdefs.h.  */
                   17121: #include <stdlib.h>
                   17122: 
                   17123: _ACEOF
                   17124: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   17125:   $EGREP "free" >/dev/null 2>&1; then :
                   17126: 
                   17127: else
                   17128:   ac_cv_header_stdc=no
                   17129: fi
                   17130: rm -f conftest*
                   17131: 
                   17132: fi
                   17133: 
                   17134: if test $ac_cv_header_stdc = yes; then
                   17135:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   17136:   if test "$cross_compiling" = yes; then :
                   17137:   :
                   17138: else
                   17139:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17140: /* end confdefs.h.  */
                   17141: #include <ctype.h>
                   17142: #include <stdlib.h>
                   17143: #if ((' ' & 0x0FF) == 0x020)
                   17144: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   17145: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   17146: #else
                   17147: # define ISLOWER(c) \
                   17148:                   (('a' <= (c) && (c) <= 'i') \
                   17149:                     || ('j' <= (c) && (c) <= 'r') \
                   17150:                     || ('s' <= (c) && (c) <= 'z'))
                   17151: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   17152: #endif
                   17153: 
                   17154: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   17155: int
                   17156: main ()
                   17157: {
                   17158:   int i;
                   17159:   for (i = 0; i < 256; i++)
                   17160:     if (XOR (islower (i), ISLOWER (i))
                   17161:        || toupper (i) != TOUPPER (i))
                   17162:       return 2;
                   17163:   return 0;
                   17164: }
                   17165: _ACEOF
                   17166: if ac_fn_c_try_run "$LINENO"; then :
                   17167: 
                   17168: else
                   17169:   ac_cv_header_stdc=no
                   17170: fi
                   17171: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   17172:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   17173: fi
                   17174: 
                   17175: fi
                   17176: fi
                   17177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   17178: $as_echo "$ac_cv_header_stdc" >&6; }
                   17179: if test $ac_cv_header_stdc = yes; then
                   17180: 
                   17181: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
                   17182: 
                   17183: fi
                   17184: 
                   17185: ac_header_dirent=no
                   17186: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   17187:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   17188: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   17189: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
                   17190: if eval \${$as_ac_Header+:} false; then :
                   17191:   $as_echo_n "(cached) " >&6
                   17192: else
                   17193:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17194: /* end confdefs.h.  */
                   17195: #include <sys/types.h>
                   17196: #include <$ac_hdr>
                   17197: 
                   17198: int
                   17199: main ()
                   17200: {
                   17201: if ((DIR *) 0)
                   17202: return 0;
                   17203:   ;
                   17204:   return 0;
                   17205: }
                   17206: _ACEOF
                   17207: if ac_fn_c_try_compile "$LINENO"; then :
                   17208:   eval "$as_ac_Header=yes"
                   17209: else
                   17210:   eval "$as_ac_Header=no"
                   17211: fi
                   17212: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17213: fi
                   17214: eval ac_res=\$$as_ac_Header
                   17215:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   17216: $as_echo "$ac_res" >&6; }
                   17217: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   17218:   cat >>confdefs.h <<_ACEOF
                   17219: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   17220: _ACEOF
                   17221: 
                   17222: ac_header_dirent=$ac_hdr; break
                   17223: fi
                   17224: 
                   17225: done
                   17226: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   17227: if test $ac_header_dirent = dirent.h; then
                   17228:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   17229: $as_echo_n "checking for library containing opendir... " >&6; }
                   17230: if ${ac_cv_search_opendir+:} false; then :
                   17231:   $as_echo_n "(cached) " >&6
                   17232: else
                   17233:   ac_func_search_save_LIBS=$LIBS
                   17234: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17235: /* end confdefs.h.  */
                   17236: 
                   17237: /* Override any GCC internal prototype to avoid an error.
                   17238:    Use char because int might match the return type of a GCC
                   17239:    builtin and then its argument prototype would still apply.  */
                   17240: #ifdef __cplusplus
                   17241: extern "C"
                   17242: #endif
                   17243: char opendir ();
                   17244: int
                   17245: main ()
                   17246: {
                   17247: return opendir ();
                   17248:   ;
                   17249:   return 0;
                   17250: }
                   17251: _ACEOF
                   17252: for ac_lib in '' dir; do
                   17253:   if test -z "$ac_lib"; then
                   17254:     ac_res="none required"
                   17255:   else
                   17256:     ac_res=-l$ac_lib
                   17257:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   17258:   fi
                   17259:   if ac_fn_c_try_link "$LINENO"; then :
                   17260:   ac_cv_search_opendir=$ac_res
                   17261: fi
                   17262: rm -f core conftest.err conftest.$ac_objext \
                   17263:     conftest$ac_exeext
                   17264:   if ${ac_cv_search_opendir+:} false; then :
                   17265:   break
                   17266: fi
                   17267: done
                   17268: if ${ac_cv_search_opendir+:} false; then :
                   17269: 
                   17270: else
                   17271:   ac_cv_search_opendir=no
                   17272: fi
                   17273: rm conftest.$ac_ext
                   17274: LIBS=$ac_func_search_save_LIBS
                   17275: fi
                   17276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   17277: $as_echo "$ac_cv_search_opendir" >&6; }
                   17278: ac_res=$ac_cv_search_opendir
                   17279: if test "$ac_res" != no; then :
                   17280:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   17281: 
                   17282: fi
                   17283: 
                   17284: else
                   17285:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   17286: $as_echo_n "checking for library containing opendir... " >&6; }
                   17287: if ${ac_cv_search_opendir+:} false; then :
                   17288:   $as_echo_n "(cached) " >&6
                   17289: else
                   17290:   ac_func_search_save_LIBS=$LIBS
                   17291: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17292: /* end confdefs.h.  */
                   17293: 
                   17294: /* Override any GCC internal prototype to avoid an error.
                   17295:    Use char because int might match the return type of a GCC
                   17296:    builtin and then its argument prototype would still apply.  */
                   17297: #ifdef __cplusplus
                   17298: extern "C"
                   17299: #endif
                   17300: char opendir ();
                   17301: int
                   17302: main ()
                   17303: {
                   17304: return opendir ();
                   17305:   ;
                   17306:   return 0;
                   17307: }
                   17308: _ACEOF
                   17309: for ac_lib in '' x; do
                   17310:   if test -z "$ac_lib"; then
                   17311:     ac_res="none required"
                   17312:   else
                   17313:     ac_res=-l$ac_lib
                   17314:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   17315:   fi
                   17316:   if ac_fn_c_try_link "$LINENO"; then :
                   17317:   ac_cv_search_opendir=$ac_res
                   17318: fi
                   17319: rm -f core conftest.err conftest.$ac_objext \
                   17320:     conftest$ac_exeext
                   17321:   if ${ac_cv_search_opendir+:} false; then :
                   17322:   break
                   17323: fi
                   17324: done
                   17325: if ${ac_cv_search_opendir+:} false; then :
                   17326: 
                   17327: else
                   17328:   ac_cv_search_opendir=no
                   17329: fi
                   17330: rm conftest.$ac_ext
                   17331: LIBS=$ac_func_search_save_LIBS
                   17332: fi
                   17333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   17334: $as_echo "$ac_cv_search_opendir" >&6; }
                   17335: ac_res=$ac_cv_search_opendir
                   17336: if test "$ac_res" != no; then :
                   17337:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   17338: 
                   17339: fi
                   17340: 
                   17341: fi
                   17342: 
                   17343: 
                   17344: for ac_header in  \
                   17345: inttypes.h \
                   17346: stdint.h \
                   17347: dirent.h \
                   17348: ApplicationServices/ApplicationServices.h \
                   17349: sys/param.h \
                   17350: sys/types.h \
                   17351: sys/time.h \
                   17352: netinet/in.h \
                   17353: alloca.h \
                   17354: arpa/inet.h \
                   17355: arpa/nameser.h \
                   17356: assert.h \
                   17357: crypt.h \
                   17358: dns.h \
                   17359: fcntl.h \
                   17360: grp.h \
                   17361: ieeefp.h \
                   17362: langinfo.h \
                   17363: limits.h \
                   17364: locale.h \
                   17365: monetary.h \
                   17366: netdb.h \
                   17367: pwd.h \
                   17368: resolv.h \
                   17369: signal.h \
                   17370: stdarg.h \
                   17371: stdlib.h \
                   17372: string.h \
                   17373: syslog.h \
                   17374: sysexits.h \
                   17375: sys/ioctl.h \
                   17376: sys/file.h \
                   17377: sys/mman.h \
                   17378: sys/mount.h \
                   17379: sys/poll.h \
                   17380: sys/resource.h \
                   17381: sys/select.h \
                   17382: sys/socket.h \
                   17383: sys/stat.h \
                   17384: sys/statfs.h \
                   17385: sys/statvfs.h \
                   17386: sys/vfs.h \
                   17387: sys/sysexits.h \
                   17388: sys/varargs.h \
                   17389: sys/wait.h \
                   17390: sys/loadavg.h \
                   17391: termios.h \
                   17392: unistd.h \
                   17393: unix.h \
                   17394: utime.h \
                   17395: sys/utsname.h \
                   17396: sys/ipc.h \
                   17397: dlfcn.h \
                   17398: assert.h
                   17399: 
                   17400: do :
                   17401:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   17402: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
                   17403: #ifdef HAVE_SYS_PARAM_H
                   17404: #include <sys/param.h>
                   17405: #endif
                   17406: #ifdef HAVE_SYS_TYPES_H
                   17407: #include <sys/types.h>
                   17408: #endif
                   17409: #ifdef HAVE_SYS_TIME_H
                   17410: #include <sys/time.h>
                   17411: #endif
                   17412: #ifdef HAVE_NETINET_IN_H
                   17413: #include <netinet/in.h>
                   17414: #endif
                   17415: #ifdef HAVE_ARPA_NAMESER_H
                   17416: #include <arpa/nameser.h>
                   17417: #endif
                   17418: 
                   17419: "
                   17420: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   17421:   cat >>confdefs.h <<_ACEOF
                   17422: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   17423: _ACEOF
                   17424: 
                   17425: fi
                   17426: 
                   17427: done
                   17428: 
                   17429: 
                   17430: 
                   17431:   ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
                   17432: if test "x$ac_cv_func_fopencookie" = xyes; then :
                   17433:   have_glibc_fopencookie=yes
                   17434: fi
                   17435: 
                   17436: 
                   17437:   if test "$have_glibc_fopencookie" = "yes"; then
                   17438: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17439: /* end confdefs.h.  */
                   17440: 
                   17441: #define _GNU_SOURCE
                   17442: #include <stdio.h>
                   17443: 
                   17444: int
                   17445: main ()
                   17446: {
                   17447: cookie_io_functions_t cookie;
                   17448:   ;
                   17449:   return 0;
                   17450: }
                   17451: _ACEOF
                   17452: if ac_fn_c_try_compile "$LINENO"; then :
                   17453:   have_cookie_io_functions_t=yes
                   17454: fi
                   17455: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17456: 
                   17457:     if test "$have_cookie_io_functions_t" = "yes"; then
                   17458:       cookie_io_functions_t=cookie_io_functions_t
                   17459:       have_fopen_cookie=yes
                   17460: 
                   17461: if test "$cross_compiling" = yes; then :
                   17462: 
                   17463:   cookie_io_functions_use_off64_t=no
                   17464: 
                   17465: else
                   17466:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17467: /* end confdefs.h.  */
                   17468: 
                   17469: #define _GNU_SOURCE
                   17470: #include <stdio.h>
                   17471: 
                   17472: struct cookiedata {
                   17473:   __off64_t pos;
                   17474: };
                   17475: 
                   17476: __ssize_t reader(void *cookie, char *buffer, size_t size)
                   17477: { return size; }
                   17478: __ssize_t writer(void *cookie, const char *buffer, size_t size)
                   17479: { return size; }
                   17480: int closer(void *cookie)
                   17481: { return 0; }
                   17482: int seeker(void *cookie, __off64_t *position, int whence)
                   17483: { ((struct cookiedata*)cookie)->pos = *position; return 0; }
                   17484: 
                   17485: cookie_io_functions_t funcs = {reader, writer, seeker, closer};
                   17486: 
                   17487: main() {
                   17488:   struct cookiedata g = { 0 };
                   17489:   FILE *fp = fopencookie(&g, "r", funcs);
                   17490: 
                   17491:   if (fp && fseek(fp, 8192, SEEK_SET) == 0 && g.pos == 8192)
                   17492:     exit(0);
                   17493:   exit(1);
                   17494: }
                   17495: 
                   17496: 
                   17497: _ACEOF
                   17498: if ac_fn_c_try_run "$LINENO"; then :
                   17499: 
                   17500:   cookie_io_functions_use_off64_t=yes
                   17501: 
                   17502: else
                   17503: 
                   17504:   cookie_io_functions_use_off64_t=no
                   17505: 
                   17506: fi
                   17507: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   17508:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   17509: fi
                   17510: 
                   17511: 
                   17512:     else
                   17513: 
                   17514: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17515: /* end confdefs.h.  */
                   17516: 
                   17517: #define _GNU_SOURCE
                   17518: #include <stdio.h>
                   17519: 
                   17520: int
                   17521: main ()
                   17522: {
                   17523:  _IO_cookie_io_functions_t cookie;
                   17524:   ;
                   17525:   return 0;
                   17526: }
                   17527: _ACEOF
                   17528: if ac_fn_c_try_compile "$LINENO"; then :
                   17529:   have_IO_cookie_io_functions_t=yes
                   17530: fi
                   17531: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17532:       if test "$have_cookie_io_functions_t" = "yes" ; then
                   17533:         cookie_io_functions_t=_IO_cookie_io_functions_t
                   17534:         have_fopen_cookie=yes
                   17535:       fi
                   17536:     fi
                   17537: 
                   17538:     if test "$have_fopen_cookie" = "yes" ; then
                   17539: 
                   17540: $as_echo "#define HAVE_FOPENCOOKIE 1" >>confdefs.h
                   17541: 
                   17542: 
                   17543: cat >>confdefs.h <<_ACEOF
                   17544: #define COOKIE_IO_FUNCTIONS_T $cookie_io_functions_t
                   17545: _ACEOF
                   17546: 
                   17547:       if test "$cookie_io_functions_use_off64_t" = "yes" ; then
                   17548: 
                   17549: $as_echo "#define COOKIE_SEEKER_USES_OFF64_T 1" >>confdefs.h
                   17550: 
                   17551:       fi
                   17552:     fi
                   17553:   fi
                   17554: 
                   17555: 
                   17556:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken getcwd" >&5
                   17557: $as_echo_n "checking for broken getcwd... " >&6; }
                   17558:   os=`uname -sr 2>/dev/null`
                   17559:   case $os in
                   17560:     SunOS*)
                   17561: 
                   17562: $as_echo "#define HAVE_BROKEN_GETCWD 1" >>confdefs.h
                   17563: 
                   17564:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   17565: $as_echo "yes" >&6; };;
                   17566:     *)
                   17567:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   17568: $as_echo "no" >&6; };;
                   17569:   esac
                   17570: 
                   17571: 
                   17572:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken libc stdio" >&5
                   17573: $as_echo_n "checking for broken libc stdio... " >&6; }
                   17574:   if ${_cv_have_broken_glibc_fopen_append+:} false; then :
                   17575:   $as_echo_n "(cached) " >&6
                   17576: else
                   17577: 
                   17578:   if test "$cross_compiling" = yes; then :
                   17579:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17580: /* end confdefs.h.  */
                   17581: 
                   17582: #include <features.h>
                   17583: 
                   17584: int
                   17585: main ()
                   17586: {
                   17587: 
                   17588: #if !__GLIBC_PREREQ(2,2)
                   17589: choke me
                   17590: #endif
                   17591: 
                   17592:   ;
                   17593:   return 0;
                   17594: }
                   17595: _ACEOF
                   17596: if ac_fn_c_try_compile "$LINENO"; then :
                   17597:   _cv_have_broken_glibc_fopen_append=yes
                   17598: else
                   17599:   _cv_have_broken_glibc_fopen_append=no
                   17600: fi
                   17601: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17602: 
                   17603: else
                   17604:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17605: /* end confdefs.h.  */
                   17606: 
                   17607: #include <stdio.h>
                   17608: int main(int argc, char *argv[])
                   17609: {
                   17610:   FILE *fp;
                   17611:   long position;
                   17612:   char *filename = "/tmp/phpglibccheck";
                   17613: 
                   17614:   fp = fopen(filename, "w");
                   17615:   if (fp == NULL) {
                   17616:     perror("fopen");
                   17617:     exit(2);
                   17618:   }
                   17619:   fputs("foobar", fp);
                   17620:   fclose(fp);
                   17621: 
                   17622:   fp = fopen(filename, "a+");
                   17623:   position = ftell(fp);
                   17624:   fclose(fp);
                   17625:   unlink(filename);
                   17626:   if (position == 0)
                   17627:   return 1;
                   17628:   return 0;
                   17629: }
                   17630: 
                   17631: _ACEOF
                   17632: if ac_fn_c_try_run "$LINENO"; then :
                   17633:   _cv_have_broken_glibc_fopen_append=no
                   17634: else
                   17635:   _cv_have_broken_glibc_fopen_append=yes
                   17636: fi
                   17637: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   17638:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   17639: fi
                   17640: 
                   17641: fi
                   17642: 
                   17643: 
                   17644:   if test "$_cv_have_broken_glibc_fopen_append" = "yes"; then
                   17645:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   17646: $as_echo "yes" >&6; }
                   17647: 
                   17648: $as_echo "#define HAVE_BROKEN_GLIBC_FOPEN_APPEND 1" >>confdefs.h
                   17649: 
                   17650:   else
                   17651:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   17652: $as_echo "no" >&6; }
                   17653:   fi
                   17654: 
                   17655: 
                   17656: 
                   17657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   17658: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
                   17659: if ${ac_cv_struct_tm+:} false; then :
                   17660:   $as_echo_n "(cached) " >&6
                   17661: else
                   17662:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17663: /* end confdefs.h.  */
                   17664: #include <sys/types.h>
                   17665: #include <time.h>
                   17666: 
                   17667: int
                   17668: main ()
                   17669: {
                   17670: struct tm tm;
                   17671:                                     int *p = &tm.tm_sec;
                   17672:                                     return !p;
                   17673:   ;
                   17674:   return 0;
                   17675: }
                   17676: _ACEOF
                   17677: if ac_fn_c_try_compile "$LINENO"; then :
                   17678:   ac_cv_struct_tm=time.h
                   17679: else
                   17680:   ac_cv_struct_tm=sys/time.h
                   17681: fi
                   17682: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17683: fi
                   17684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   17685: $as_echo "$ac_cv_struct_tm" >&6; }
                   17686: if test $ac_cv_struct_tm = sys/time.h; then
                   17687: 
                   17688: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
                   17689: 
                   17690: fi
                   17691: 
                   17692: ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
                   17693: #include <$ac_cv_struct_tm>
                   17694: 
                   17695: "
                   17696: if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
                   17697: 
                   17698: cat >>confdefs.h <<_ACEOF
                   17699: #define HAVE_STRUCT_TM_TM_ZONE 1
                   17700: _ACEOF
                   17701: 
                   17702: 
                   17703: fi
                   17704: 
                   17705: if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
                   17706: 
                   17707: $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
                   17708: 
                   17709: else
                   17710:   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
                   17711: "
                   17712: if test "x$ac_cv_have_decl_tzname" = xyes; then :
                   17713:   ac_have_decl=1
                   17714: else
                   17715:   ac_have_decl=0
                   17716: fi
                   17717: 
                   17718: cat >>confdefs.h <<_ACEOF
                   17719: #define HAVE_DECL_TZNAME $ac_have_decl
                   17720: _ACEOF
                   17721: 
                   17722:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
                   17723: $as_echo_n "checking for tzname... " >&6; }
                   17724: if ${ac_cv_var_tzname+:} false; then :
                   17725:   $as_echo_n "(cached) " >&6
                   17726: else
                   17727:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17728: /* end confdefs.h.  */
                   17729: #include <time.h>
                   17730: #if !HAVE_DECL_TZNAME
                   17731: extern char *tzname[];
                   17732: #endif
                   17733: 
                   17734: int
                   17735: main ()
                   17736: {
                   17737: return tzname[0][0];
                   17738:   ;
                   17739:   return 0;
                   17740: }
                   17741: _ACEOF
                   17742: if ac_fn_c_try_link "$LINENO"; then :
                   17743:   ac_cv_var_tzname=yes
                   17744: else
                   17745:   ac_cv_var_tzname=no
                   17746: fi
                   17747: rm -f core conftest.err conftest.$ac_objext \
                   17748:     conftest$ac_exeext conftest.$ac_ext
                   17749: fi
                   17750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
                   17751: $as_echo "$ac_cv_var_tzname" >&6; }
                   17752:   if test $ac_cv_var_tzname = yes; then
                   17753: 
                   17754: $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
                   17755: 
                   17756:   fi
                   17757: fi
                   17758: 
                   17759: 
                   17760: 
                   17761:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing declarations of reentrant functions" >&5
                   17762: $as_echo_n "checking for missing declarations of reentrant functions... " >&6; }
                   17763:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17764: /* end confdefs.h.  */
                   17765: #include <time.h>
                   17766: int
                   17767: main ()
                   17768: {
                   17769: struct tm *(*func)() = localtime_r
                   17770:   ;
                   17771:   return 0;
                   17772: }
                   17773: _ACEOF
                   17774: if ac_fn_c_try_compile "$LINENO"; then :
                   17775: 
                   17776:     :
                   17777: 
                   17778: else
                   17779: 
                   17780: 
                   17781: $as_echo "#define MISSING_LOCALTIME_R_DECL 1" >>confdefs.h
                   17782: 
                   17783: 
                   17784: fi
                   17785: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17786:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17787: /* end confdefs.h.  */
                   17788: #include <time.h>
                   17789: int
                   17790: main ()
                   17791: {
                   17792: struct tm *(*func)() = gmtime_r
                   17793:   ;
                   17794:   return 0;
                   17795: }
                   17796: _ACEOF
                   17797: if ac_fn_c_try_compile "$LINENO"; then :
                   17798: 
                   17799:     :
                   17800: 
                   17801: else
                   17802: 
                   17803: 
                   17804: $as_echo "#define MISSING_GMTIME_R_DECL 1" >>confdefs.h
                   17805: 
                   17806: 
                   17807: fi
                   17808: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17809:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17810: /* end confdefs.h.  */
                   17811: #include <time.h>
                   17812: int
                   17813: main ()
                   17814: {
                   17815: char *(*func)() = asctime_r
                   17816:   ;
                   17817:   return 0;
                   17818: }
                   17819: _ACEOF
                   17820: if ac_fn_c_try_compile "$LINENO"; then :
                   17821: 
                   17822:     :
                   17823: 
                   17824: else
                   17825: 
                   17826: 
                   17827: $as_echo "#define MISSING_ASCTIME_R_DECL 1" >>confdefs.h
                   17828: 
                   17829: 
                   17830: fi
                   17831: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17832:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17833: /* end confdefs.h.  */
                   17834: #include <time.h>
                   17835: int
                   17836: main ()
                   17837: {
                   17838: char *(*func)() = ctime_r
                   17839:   ;
                   17840:   return 0;
                   17841: }
                   17842: _ACEOF
                   17843: if ac_fn_c_try_compile "$LINENO"; then :
                   17844: 
                   17845:     :
                   17846: 
                   17847: else
                   17848: 
                   17849: 
                   17850: $as_echo "#define MISSING_CTIME_R_DECL 1" >>confdefs.h
                   17851: 
                   17852: 
                   17853: fi
                   17854: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17855:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17856: /* end confdefs.h.  */
                   17857: #include <string.h>
                   17858: int
                   17859: main ()
                   17860: {
                   17861: char *(*func)() = strtok_r
                   17862:   ;
                   17863:   return 0;
                   17864: }
                   17865: _ACEOF
                   17866: if ac_fn_c_try_compile "$LINENO"; then :
                   17867: 
                   17868:     :
                   17869: 
                   17870: else
                   17871: 
                   17872: 
                   17873: $as_echo "#define MISSING_STRTOK_R_DECL 1" >>confdefs.h
                   17874: 
                   17875: 
                   17876: fi
                   17877: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17878:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
                   17879: $as_echo "done" >&6; }
                   17880: 
                   17881: 
                   17882:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration" >&5
                   17883: $as_echo_n "checking for fclose declaration... " >&6; }
                   17884:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17885: /* end confdefs.h.  */
                   17886: #include <stdio.h>
                   17887: int
                   17888: main ()
                   17889: {
                   17890: int (*func)() = fclose
                   17891:   ;
                   17892:   return 0;
                   17893: }
                   17894: _ACEOF
                   17895: if ac_fn_c_try_compile "$LINENO"; then :
                   17896: 
                   17897: 
                   17898: $as_echo "#define MISSING_FCLOSE_DECL 0" >>confdefs.h
                   17899: 
                   17900:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
                   17901: $as_echo "ok" >&6; }
                   17902: 
                   17903: else
                   17904: 
                   17905: 
                   17906: $as_echo "#define MISSING_FCLOSE_DECL 1" >>confdefs.h
                   17907: 
                   17908:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
                   17909: $as_echo "missing" >&6; }
                   17910: 
                   17911: fi
                   17912: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17913: 
                   17914: 
                   17915: 
                   17916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
                   17917: $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
                   17918: if ${ac_cv_struct_tm_gmtoff+:} false; then :
                   17919:   $as_echo_n "(cached) " >&6
                   17920: else
                   17921:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17922: /* end confdefs.h.  */
                   17923: #include <sys/types.h>
                   17924: #include <$ac_cv_struct_tm>
                   17925: int
                   17926: main ()
                   17927: {
                   17928: struct tm tm; tm.tm_gmtoff;
                   17929:   ;
                   17930:   return 0;
                   17931: }
                   17932: _ACEOF
                   17933: if ac_fn_c_try_compile "$LINENO"; then :
                   17934:   ac_cv_struct_tm_gmtoff=yes
                   17935: else
                   17936:   ac_cv_struct_tm_gmtoff=no
                   17937: fi
                   17938: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17939: fi
                   17940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
                   17941: $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
                   17942: 
                   17943: if test "$ac_cv_struct_tm_gmtoff" = yes; then
                   17944: 
                   17945: $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
                   17946: 
                   17947: fi
                   17948: 
                   17949: 
                   17950: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct flock" >&5
                   17951: $as_echo_n "checking for struct flock... " >&6; }
                   17952: if ${ac_cv_struct_flock+:} false; then :
                   17953:   $as_echo_n "(cached) " >&6
                   17954: else
                   17955:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17956: /* end confdefs.h.  */
                   17957: 
                   17958: #include <unistd.h>
                   17959: #include <fcntl.h>
                   17960: 
                   17961: int
                   17962: main ()
                   17963: {
                   17964: struct flock x;
                   17965:   ;
                   17966:   return 0;
                   17967: }
                   17968: _ACEOF
                   17969: if ac_fn_c_try_compile "$LINENO"; then :
                   17970: 
                   17971:           ac_cv_struct_flock=yes
                   17972: 
                   17973: else
                   17974: 
                   17975:           ac_cv_struct_flock=no
                   17976: 
                   17977: fi
                   17978: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   17979: 
                   17980: fi
                   17981: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_flock" >&5
                   17982: $as_echo "$ac_cv_struct_flock" >&6; }
                   17983: if test "$ac_cv_struct_flock" = "yes" ; then
                   17984: 
                   17985: $as_echo "#define HAVE_STRUCT_FLOCK 1" >>confdefs.h
                   17986: 
                   17987: fi
                   17988: 
                   17989: 
                   17990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
                   17991: $as_echo_n "checking for socklen_t... " >&6; }
                   17992: if ${ac_cv_socklen_t+:} false; then :
                   17993:   $as_echo_n "(cached) " >&6
                   17994: else
                   17995:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   17996: /* end confdefs.h.  */
                   17997: 
                   17998: #include <sys/types.h>
                   17999: #include <sys/socket.h>
                   18000: 
                   18001: int
                   18002: main ()
                   18003: {
                   18004: 
                   18005: socklen_t x;
                   18006: 
                   18007:   ;
                   18008:   return 0;
                   18009: }
                   18010: _ACEOF
                   18011: if ac_fn_c_try_compile "$LINENO"; then :
                   18012: 
                   18013:   ac_cv_socklen_t=yes
                   18014: 
                   18015: else
                   18016: 
                   18017:   ac_cv_socklen_t=no
                   18018: 
                   18019: fi
                   18020: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   18021: fi
                   18022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
                   18023: $as_echo "$ac_cv_socklen_t" >&6; }
                   18024: if test "$ac_cv_socklen_t" = "yes"; then
                   18025: 
                   18026: $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
                   18027: 
                   18028: fi
                   18029: 
                   18030: 
                   18031: # The cast to long int works around a bug in the HP C Compiler
                   18032: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   18033: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   18034: # This bug is HP SR number 8606223364.
                   18035: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
                   18036: $as_echo_n "checking size of size_t... " >&6; }
                   18037: if ${ac_cv_sizeof_size_t+:} false; then :
                   18038:   $as_echo_n "(cached) " >&6
                   18039: else
                   18040:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
                   18041: 
                   18042: else
                   18043:   if test "$ac_cv_type_size_t" = yes; then
                   18044:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   18045: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   18046: as_fn_error 77 "cannot compute sizeof (size_t)
                   18047: See \`config.log' for more details" "$LINENO" 5; }
                   18048:    else
                   18049:      ac_cv_sizeof_size_t=0
                   18050:    fi
                   18051: fi
                   18052: 
                   18053: fi
                   18054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
                   18055: $as_echo "$ac_cv_sizeof_size_t" >&6; }
                   18056: 
                   18057: 
                   18058: 
                   18059: cat >>confdefs.h <<_ACEOF
                   18060: #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
                   18061: _ACEOF
                   18062: 
                   18063: 
                   18064: # The cast to long int works around a bug in the HP C Compiler
                   18065: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   18066: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   18067: # This bug is HP SR number 8606223364.
                   18068: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
                   18069: $as_echo_n "checking size of long long... " >&6; }
                   18070: if ${ac_cv_sizeof_long_long+:} false; then :
                   18071:   $as_echo_n "(cached) " >&6
                   18072: else
                   18073:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
                   18074: 
                   18075: else
                   18076:   if test "$ac_cv_type_long_long" = yes; then
                   18077:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   18078: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   18079: as_fn_error 77 "cannot compute sizeof (long long)
                   18080: See \`config.log' for more details" "$LINENO" 5; }
                   18081:    else
                   18082:      ac_cv_sizeof_long_long=0
                   18083:    fi
                   18084: fi
                   18085: 
                   18086: fi
                   18087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
                   18088: $as_echo "$ac_cv_sizeof_long_long" >&6; }
                   18089: 
                   18090: 
                   18091: 
                   18092: cat >>confdefs.h <<_ACEOF
                   18093: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
                   18094: _ACEOF
                   18095: 
                   18096: 
                   18097: # The cast to long int works around a bug in the HP C Compiler
                   18098: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   18099: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   18100: # This bug is HP SR number 8606223364.
                   18101: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   18102: $as_echo_n "checking size of long long int... " >&6; }
                   18103: if ${ac_cv_sizeof_long_long_int+:} false; then :
                   18104:   $as_echo_n "(cached) " >&6
                   18105: else
                   18106:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   18107: 
                   18108: else
                   18109:   if test "$ac_cv_type_long_long_int" = yes; then
                   18110:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   18111: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   18112: as_fn_error 77 "cannot compute sizeof (long long int)
                   18113: See \`config.log' for more details" "$LINENO" 5; }
                   18114:    else
                   18115:      ac_cv_sizeof_long_long_int=0
                   18116:    fi
                   18117: fi
                   18118: 
                   18119: fi
                   18120: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   18121: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   18122: 
                   18123: 
                   18124: 
                   18125: cat >>confdefs.h <<_ACEOF
                   18126: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   18127: _ACEOF
                   18128: 
                   18129: 
                   18130: # The cast to long int works around a bug in the HP C Compiler
                   18131: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   18132: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   18133: # This bug is HP SR number 8606223364.
                   18134: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
                   18135: $as_echo_n "checking size of long... " >&6; }
                   18136: if ${ac_cv_sizeof_long+:} false; then :
                   18137:   $as_echo_n "(cached) " >&6
                   18138: else
                   18139:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
                   18140: 
                   18141: else
                   18142:   if test "$ac_cv_type_long" = yes; then
                   18143:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   18144: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   18145: as_fn_error 77 "cannot compute sizeof (long)
                   18146: See \`config.log' for more details" "$LINENO" 5; }
                   18147:    else
                   18148:      ac_cv_sizeof_long=0
                   18149:    fi
                   18150: fi
                   18151: 
                   18152: fi
                   18153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
                   18154: $as_echo "$ac_cv_sizeof_long" >&6; }
                   18155: 
                   18156: 
                   18157: 
                   18158: cat >>confdefs.h <<_ACEOF
                   18159: #define SIZEOF_LONG $ac_cv_sizeof_long
                   18160: _ACEOF
                   18161: 
                   18162: 
                   18163: # The cast to long int works around a bug in the HP C Compiler
                   18164: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   18165: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   18166: # This bug is HP SR number 8606223364.
                   18167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   18168: $as_echo_n "checking size of int... " >&6; }
                   18169: if ${ac_cv_sizeof_int+:} false; then :
                   18170:   $as_echo_n "(cached) " >&6
                   18171: else
                   18172:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
                   18173: 
                   18174: else
                   18175:   if test "$ac_cv_type_int" = yes; then
                   18176:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   18177: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   18178: as_fn_error 77 "cannot compute sizeof (int)
                   18179: See \`config.log' for more details" "$LINENO" 5; }
                   18180:    else
                   18181:      ac_cv_sizeof_int=0
                   18182:    fi
                   18183: fi
                   18184: 
                   18185: fi
                   18186: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   18187: $as_echo "$ac_cv_sizeof_int" >&6; }
                   18188: 
                   18189: 
                   18190: 
                   18191: cat >>confdefs.h <<_ACEOF
                   18192: #define SIZEOF_INT $ac_cv_sizeof_int
                   18193: _ACEOF
                   18194: 
                   18195: 
                   18196: 
                   18197: 
                   18198:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
                   18199: $as_echo_n "checking size of intmax_t... " >&6; }
                   18200: 
                   18201:   php_cache_value=php_cv_sizeof_intmax_t
                   18202:   if ${php_cv_sizeof_intmax_t+:} false; then :
                   18203:   $as_echo_n "(cached) " >&6
                   18204: else
                   18205: 
                   18206:     old_LIBS=$LIBS
                   18207:     LIBS=
                   18208:     old_LDFLAGS=$LDFLAGS
                   18209:     LDFLAGS=
                   18210:     if test "$cross_compiling" = yes; then :
                   18211: 
                   18212:     eval $php_cache_value=0
                   18213: 
                   18214: else
                   18215:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18216: /* end confdefs.h.  */
                   18217: #include <stdio.h>
                   18218: #if STDC_HEADERS
                   18219: #include <stdlib.h>
                   18220: #include <stddef.h>
                   18221: #endif
                   18222: #ifdef HAVE_INTTYPES_H
                   18223: #include <inttypes.h>
                   18224: #endif
                   18225: #ifdef HAVE_UNISTD_H
                   18226: #include <unistd.h>
                   18227: #endif
                   18228: 
                   18229: 
                   18230: int main()
                   18231: {
                   18232:        FILE *fp = fopen("conftestval", "w");
                   18233:        if (!fp) return(1);
                   18234:        fprintf(fp, "%d\n", sizeof(intmax_t));
                   18235:        return(0);
                   18236: }
                   18237: 
                   18238: _ACEOF
                   18239: if ac_fn_c_try_run "$LINENO"; then :
                   18240: 
                   18241:     eval $php_cache_value=`cat conftestval`
                   18242: 
                   18243: else
                   18244: 
                   18245:     eval $php_cache_value=0
                   18246: 
                   18247: fi
                   18248: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   18249:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   18250: fi
                   18251: 
                   18252:   LDFLAGS=$old_LDFLAGS
                   18253:   LIBS=$old_LIBS
                   18254: 
                   18255: fi
                   18256: 
                   18257:   if eval test "\$$php_cache_value" != "0"; then
                   18258: 
                   18259: 
                   18260: cat >>confdefs.h <<_ACEOF
                   18261: #define SIZEOF_INTMAX_T $php_cv_sizeof_intmax_t
                   18262: _ACEOF
                   18263: 
                   18264: 
                   18265: cat >>confdefs.h <<_ACEOF
                   18266: #define HAVE_INTMAX_T 1
                   18267: _ACEOF
                   18268: 
                   18269: 
                   18270: 
                   18271:   fi
                   18272: 
                   18273:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_intmax_t" >&5
                   18274: $as_echo "$php_cv_sizeof_intmax_t" >&6; }
                   18275: 
                   18276: 
                   18277:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
                   18278: $as_echo_n "checking size of ssize_t... " >&6; }
                   18279: 
                   18280:   php_cache_value=php_cv_sizeof_ssize_t
                   18281:   if ${php_cv_sizeof_ssize_t+:} false; then :
                   18282:   $as_echo_n "(cached) " >&6
                   18283: else
                   18284: 
                   18285:     old_LIBS=$LIBS
                   18286:     LIBS=
                   18287:     old_LDFLAGS=$LDFLAGS
                   18288:     LDFLAGS=
                   18289:     if test "$cross_compiling" = yes; then :
                   18290: 
                   18291:     eval $php_cache_value=8
                   18292: 
                   18293: else
                   18294:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18295: /* end confdefs.h.  */
                   18296: #include <stdio.h>
                   18297: #if STDC_HEADERS
                   18298: #include <stdlib.h>
                   18299: #include <stddef.h>
                   18300: #endif
                   18301: #ifdef HAVE_INTTYPES_H
                   18302: #include <inttypes.h>
                   18303: #endif
                   18304: #ifdef HAVE_UNISTD_H
                   18305: #include <unistd.h>
                   18306: #endif
                   18307: 
                   18308: 
                   18309: int main()
                   18310: {
                   18311:        FILE *fp = fopen("conftestval", "w");
                   18312:        if (!fp) return(1);
                   18313:        fprintf(fp, "%d\n", sizeof(ssize_t));
                   18314:        return(0);
                   18315: }
                   18316: 
                   18317: _ACEOF
                   18318: if ac_fn_c_try_run "$LINENO"; then :
                   18319: 
                   18320:     eval $php_cache_value=`cat conftestval`
                   18321: 
                   18322: else
                   18323: 
                   18324:     eval $php_cache_value=0
                   18325: 
                   18326: fi
                   18327: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   18328:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   18329: fi
                   18330: 
                   18331:   LDFLAGS=$old_LDFLAGS
                   18332:   LIBS=$old_LIBS
                   18333: 
                   18334: fi
                   18335: 
                   18336:   if eval test "\$$php_cache_value" != "0"; then
                   18337: 
                   18338: 
                   18339: cat >>confdefs.h <<_ACEOF
                   18340: #define SIZEOF_SSIZE_T $php_cv_sizeof_ssize_t
                   18341: _ACEOF
                   18342: 
                   18343: 
                   18344: cat >>confdefs.h <<_ACEOF
                   18345: #define HAVE_SSIZE_T 1
                   18346: _ACEOF
                   18347: 
                   18348: 
                   18349: 
                   18350:   fi
                   18351: 
                   18352:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ssize_t" >&5
                   18353: $as_echo "$php_cv_sizeof_ssize_t" >&6; }
                   18354: 
                   18355: 
                   18356:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
                   18357: $as_echo_n "checking size of ptrdiff_t... " >&6; }
                   18358: 
                   18359:   php_cache_value=php_cv_sizeof_ptrdiff_t
                   18360:   if ${php_cv_sizeof_ptrdiff_t+:} false; then :
                   18361:   $as_echo_n "(cached) " >&6
                   18362: else
                   18363: 
                   18364:     old_LIBS=$LIBS
                   18365:     LIBS=
                   18366:     old_LDFLAGS=$LDFLAGS
                   18367:     LDFLAGS=
                   18368:     if test "$cross_compiling" = yes; then :
                   18369: 
                   18370:     eval $php_cache_value=8
                   18371: 
                   18372: else
                   18373:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18374: /* end confdefs.h.  */
                   18375: #include <stdio.h>
                   18376: #if STDC_HEADERS
                   18377: #include <stdlib.h>
                   18378: #include <stddef.h>
                   18379: #endif
                   18380: #ifdef HAVE_INTTYPES_H
                   18381: #include <inttypes.h>
                   18382: #endif
                   18383: #ifdef HAVE_UNISTD_H
                   18384: #include <unistd.h>
                   18385: #endif
                   18386: 
                   18387: 
                   18388: int main()
                   18389: {
                   18390:        FILE *fp = fopen("conftestval", "w");
                   18391:        if (!fp) return(1);
                   18392:        fprintf(fp, "%d\n", sizeof(ptrdiff_t));
                   18393:        return(0);
                   18394: }
                   18395: 
                   18396: _ACEOF
                   18397: if ac_fn_c_try_run "$LINENO"; then :
                   18398: 
                   18399:     eval $php_cache_value=`cat conftestval`
                   18400: 
                   18401: else
                   18402: 
                   18403:     eval $php_cache_value=0
                   18404: 
                   18405: fi
                   18406: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   18407:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   18408: fi
                   18409: 
                   18410:   LDFLAGS=$old_LDFLAGS
                   18411:   LIBS=$old_LIBS
                   18412: 
                   18413: fi
                   18414: 
                   18415:   if eval test "\$$php_cache_value" != "0"; then
                   18416: 
                   18417: 
                   18418: cat >>confdefs.h <<_ACEOF
                   18419: #define SIZEOF_PTRDIFF_T $php_cv_sizeof_ptrdiff_t
                   18420: _ACEOF
                   18421: 
                   18422: 
                   18423: cat >>confdefs.h <<_ACEOF
                   18424: #define HAVE_PTRDIFF_T 1
                   18425: _ACEOF
                   18426: 
                   18427: 
                   18428: 
                   18429:   fi
                   18430: 
                   18431:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ptrdiff_t" >&5
                   18432: $as_echo "$php_cv_sizeof_ptrdiff_t" >&6; }
                   18433: 
                   18434: 
                   18435: ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
                   18436: if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
                   18437: 
                   18438: cat >>confdefs.h <<_ACEOF
                   18439: #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
                   18440: _ACEOF
                   18441: 
                   18442: 
                   18443: $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
                   18444: 
                   18445: fi
                   18446: 
                   18447: 
                   18448: if test "`uname -s 2>/dev/null`" != "QNX"; then
                   18449:   ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
                   18450: if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
                   18451: 
                   18452: cat >>confdefs.h <<_ACEOF
                   18453: #define HAVE_STRUCT_STAT_ST_BLOCKS 1
                   18454: _ACEOF
                   18455: 
                   18456: 
                   18457: $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
                   18458: 
                   18459: else
                   18460:   case " $LIBOBJS " in
                   18461:   *" fileblocks.$ac_objext "* ) ;;
                   18462:   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
                   18463:  ;;
                   18464: esac
                   18465: 
                   18466: fi
                   18467: 
                   18468: 
                   18469: else
                   18470:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: warnings level for cc set to 0" >&5
                   18471: $as_echo "$as_me: WARNING: warnings level for cc set to 0" >&2;}
                   18472:   WARNING_LEVEL=0
                   18473: fi
                   18474: ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
                   18475: if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
                   18476: 
                   18477: cat >>confdefs.h <<_ACEOF
                   18478: #define HAVE_STRUCT_STAT_ST_RDEV 1
                   18479: _ACEOF
                   18480: 
                   18481: 
                   18482: $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
                   18483: 
                   18484: fi
                   18485: 
                   18486: 
                   18487: 
                   18488: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
                   18489: if test "x$ac_cv_type_size_t" = xyes; then :
                   18490: 
                   18491: else
                   18492: 
                   18493: cat >>confdefs.h <<_ACEOF
                   18494: #define size_t unsigned int
                   18495: _ACEOF
                   18496: 
                   18497: fi
                   18498: 
                   18499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   18500: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
                   18501: if ${ac_cv_type_uid_t+:} false; then :
                   18502:   $as_echo_n "(cached) " >&6
                   18503: else
                   18504:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18505: /* end confdefs.h.  */
                   18506: #include <sys/types.h>
                   18507: 
                   18508: _ACEOF
                   18509: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   18510:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   18511:   ac_cv_type_uid_t=yes
                   18512: else
                   18513:   ac_cv_type_uid_t=no
                   18514: fi
                   18515: rm -f conftest*
                   18516: 
                   18517: fi
                   18518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   18519: $as_echo "$ac_cv_type_uid_t" >&6; }
                   18520: if test $ac_cv_type_uid_t = no; then
                   18521: 
                   18522: $as_echo "#define uid_t int" >>confdefs.h
                   18523: 
                   18524: 
                   18525: $as_echo "#define gid_t int" >>confdefs.h
                   18526: 
                   18527: fi
                   18528: 
                   18529: 
                   18530: 
                   18531:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
                   18532: $as_echo_n "checking for struct sockaddr_storage... " >&6; }
                   18533: if ${ac_cv_sockaddr_storage+:} false; then :
                   18534:   $as_echo_n "(cached) " >&6
                   18535: else
                   18536:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18537: /* end confdefs.h.  */
                   18538: #include <sys/types.h>
                   18539: #include <sys/socket.h>
                   18540: int
                   18541: main ()
                   18542: {
                   18543: struct sockaddr_storage s; s
                   18544:   ;
                   18545:   return 0;
                   18546: }
                   18547: _ACEOF
                   18548: if ac_fn_c_try_compile "$LINENO"; then :
                   18549:   ac_cv_sockaddr_storage=yes
                   18550: else
                   18551:   ac_cv_sockaddr_storage=no
                   18552: fi
                   18553: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   18554: 
                   18555: fi
                   18556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_storage" >&5
                   18557: $as_echo "$ac_cv_sockaddr_storage" >&6; }
                   18558:   if test "$ac_cv_sockaddr_storage" = "yes"; then
                   18559: 
                   18560: $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
                   18561: 
                   18562:   fi
                   18563:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field sa_len in struct sockaddr" >&5
                   18564: $as_echo_n "checking for field sa_len in struct sockaddr... " >&6; }
                   18565: if ${ac_cv_sockaddr_sa_len+:} false; then :
                   18566:   $as_echo_n "(cached) " >&6
                   18567: else
                   18568: 
                   18569:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18570: /* end confdefs.h.  */
                   18571: #include <sys/types.h>
                   18572: #include <sys/socket.h>
                   18573: int
                   18574: main ()
                   18575: {
                   18576: static struct sockaddr sa; int n = (int) sa.sa_len; return n;
                   18577:   ;
                   18578:   return 0;
                   18579: }
                   18580: _ACEOF
                   18581: if ac_fn_c_try_compile "$LINENO"; then :
                   18582:   ac_cv_sockaddr_sa_len=yes
                   18583: else
                   18584:   ac_cv_sockaddr_sa_len=no
                   18585: fi
                   18586: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   18587: 
                   18588: fi
                   18589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_sa_len" >&5
                   18590: $as_echo "$ac_cv_sockaddr_sa_len" >&6; }
                   18591:   if test "$ac_cv_sockaddr_sa_len" = "yes"; then
                   18592: 
                   18593: $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
                   18594: 
                   18595:   fi
                   18596: 
                   18597: 
                   18598: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
                   18599: $as_echo_n "checking for IPv6 support... " >&6; }
                   18600: if ${ac_cv_ipv6_support+:} false; then :
                   18601:   $as_echo_n "(cached) " >&6
                   18602: else
                   18603:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18604: /* end confdefs.h.  */
                   18605:  #include <sys/types.h>
                   18606: #include <sys/socket.h>
                   18607: #include <netinet/in.h>
                   18608: int
                   18609: main ()
                   18610: {
                   18611: struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
                   18612:   ;
                   18613:   return 0;
                   18614: }
                   18615: _ACEOF
                   18616: if ac_fn_c_try_link "$LINENO"; then :
                   18617:   ac_cv_ipv6_support=yes
                   18618: else
                   18619:   ac_cv_ipv6_support=no
                   18620: fi
                   18621: rm -f core conftest.err conftest.$ac_objext \
                   18622:     conftest$ac_exeext conftest.$ac_ext
                   18623: fi
                   18624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5
                   18625: $as_echo "$ac_cv_ipv6_support" >&6; }
                   18626: 
                   18627: 
                   18628: for ac_func in vprintf
                   18629: do :
                   18630:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
                   18631: if test "x$ac_cv_func_vprintf" = xyes; then :
                   18632:   cat >>confdefs.h <<_ACEOF
                   18633: #define HAVE_VPRINTF 1
                   18634: _ACEOF
                   18635: 
                   18636: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
                   18637: if test "x$ac_cv_func__doprnt" = xyes; then :
                   18638: 
                   18639: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
                   18640: 
                   18641: fi
                   18642: 
                   18643: fi
                   18644: done
                   18645: 
                   18646: 
                   18647: for ac_func in alphasort \
                   18648: asctime_r \
                   18649: chroot \
                   18650: ctime_r \
                   18651: cuserid \
                   18652: crypt \
                   18653: flock \
                   18654: ftok \
                   18655: funopen \
                   18656: gai_strerror \
                   18657: gcvt \
                   18658: getloadavg \
                   18659: getlogin \
                   18660: getprotobyname \
                   18661: getprotobynumber \
                   18662: getservbyname \
                   18663: getservbyport \
                   18664: gethostname \
                   18665: getrusage \
                   18666: gettimeofday \
                   18667: gmtime_r \
                   18668: getpwnam_r \
                   18669: getgrnam_r \
                   18670: getpwuid_r \
                   18671: grantpt \
                   18672: inet_ntoa \
                   18673: inet_ntop \
                   18674: inet_pton \
                   18675: isascii \
                   18676: link \
                   18677: localtime_r \
                   18678: lockf \
                   18679: lchown \
                   18680: lrand48 \
                   18681: memcpy \
                   18682: memmove \
                   18683: mkstemp \
                   18684: mmap \
                   18685: nl_langinfo \
                   18686: perror \
                   18687: poll \
                   18688: ptsname \
                   18689: putenv \
                   18690: realpath \
                   18691: random \
                   18692: rand_r \
                   18693: scandir \
                   18694: setitimer \
                   18695: setlocale \
                   18696: localeconv \
                   18697: setenv \
                   18698: setpgid \
                   18699: setsockopt \
                   18700: setvbuf \
                   18701: shutdown \
                   18702: sin \
                   18703: snprintf \
                   18704: srand48 \
                   18705: srandom \
                   18706: statfs \
                   18707: statvfs \
                   18708: std_syslog \
                   18709: strcasecmp \
                   18710: strcoll \
                   18711: strdup \
                   18712: strerror \
                   18713: strftime \
                   18714: strnlen \
                   18715: strptime \
                   18716: strstr \
                   18717: strtok_r \
                   18718: symlink \
                   18719: tempnam \
                   18720: tzset \
                   18721: unlockpt \
                   18722: unsetenv \
                   18723: usleep \
                   18724: utime \
                   18725: vsnprintf \
                   18726: vasprintf \
                   18727: asprintf \
                   18728: nanosleep \
                   18729: 
                   18730: do :
                   18731:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18732: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   18733: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   18734:   cat >>confdefs.h <<_ACEOF
                   18735: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18736: _ACEOF
                   18737: 
                   18738: fi
                   18739: done
                   18740: 
                   18741: 
                   18742: 
                   18743:   unset ac_cv_func_nanosleep
                   18744:   unset ac_cv_func___nanosleep
                   18745:   unset found
                   18746: 
                   18747:   ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
                   18748: if test "x$ac_cv_func_nanosleep" = xyes; then :
                   18749:   found=yes
                   18750: else
                   18751:    ac_fn_c_check_func "$LINENO" "__nanosleep" "ac_cv_func___nanosleep"
                   18752: if test "x$ac_cv_func___nanosleep" = xyes; then :
                   18753:   found=yes
                   18754: else
                   18755:   found=no
                   18756: fi
                   18757: 
                   18758: fi
                   18759: 
                   18760: 
                   18761:   case $found in
                   18762:   yes)
                   18763: 
                   18764: $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
                   18765: 
                   18766:     ac_cv_func_nanosleep=yes
                   18767:   ;;
                   18768: 
                   18769:     *)
                   18770: 
                   18771:   unset ac_cv_lib_rt_nanosleep
                   18772:   unset ac_cv_lib_rt___nanosleep
                   18773:   unset found
                   18774:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   18775: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
                   18776: if ${ac_cv_lib_rt_nanosleep+:} false; then :
                   18777:   $as_echo_n "(cached) " >&6
                   18778: else
                   18779:   ac_check_lib_save_LIBS=$LIBS
                   18780: LIBS="-lrt  $LIBS"
                   18781: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18782: /* end confdefs.h.  */
                   18783: 
                   18784: /* Override any GCC internal prototype to avoid an error.
                   18785:    Use char because int might match the return type of a GCC
                   18786:    builtin and then its argument prototype would still apply.  */
                   18787: #ifdef __cplusplus
                   18788: extern "C"
                   18789: #endif
                   18790: char nanosleep ();
                   18791: int
                   18792: main ()
                   18793: {
                   18794: return nanosleep ();
                   18795:   ;
                   18796:   return 0;
                   18797: }
                   18798: _ACEOF
                   18799: if ac_fn_c_try_link "$LINENO"; then :
                   18800:   ac_cv_lib_rt_nanosleep=yes
                   18801: else
                   18802:   ac_cv_lib_rt_nanosleep=no
                   18803: fi
                   18804: rm -f core conftest.err conftest.$ac_objext \
                   18805:     conftest$ac_exeext conftest.$ac_ext
                   18806: LIBS=$ac_check_lib_save_LIBS
                   18807: fi
                   18808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   18809: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
                   18810: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
                   18811:   found=yes
                   18812: else
                   18813: 
                   18814:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __nanosleep in -lrt" >&5
                   18815: $as_echo_n "checking for __nanosleep in -lrt... " >&6; }
                   18816: if ${ac_cv_lib_rt___nanosleep+:} false; then :
                   18817:   $as_echo_n "(cached) " >&6
                   18818: else
                   18819:   ac_check_lib_save_LIBS=$LIBS
                   18820: LIBS="-lrt  $LIBS"
                   18821: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18822: /* end confdefs.h.  */
                   18823: 
                   18824: /* Override any GCC internal prototype to avoid an error.
                   18825:    Use char because int might match the return type of a GCC
                   18826:    builtin and then its argument prototype would still apply.  */
                   18827: #ifdef __cplusplus
                   18828: extern "C"
                   18829: #endif
                   18830: char __nanosleep ();
                   18831: int
                   18832: main ()
                   18833: {
                   18834: return __nanosleep ();
                   18835:   ;
                   18836:   return 0;
                   18837: }
                   18838: _ACEOF
                   18839: if ac_fn_c_try_link "$LINENO"; then :
                   18840:   ac_cv_lib_rt___nanosleep=yes
                   18841: else
                   18842:   ac_cv_lib_rt___nanosleep=no
                   18843: fi
                   18844: rm -f core conftest.err conftest.$ac_objext \
                   18845:     conftest$ac_exeext conftest.$ac_ext
                   18846: LIBS=$ac_check_lib_save_LIBS
                   18847: fi
                   18848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___nanosleep" >&5
                   18849: $as_echo "$ac_cv_lib_rt___nanosleep" >&6; }
                   18850: if test "x$ac_cv_lib_rt___nanosleep" = xyes; then :
                   18851:   found=yes
                   18852: else
                   18853:   found=no
                   18854: fi
                   18855: 
                   18856: 
                   18857: fi
                   18858: 
                   18859: 
                   18860:   if test "$found" = "yes"; then
                   18861:     ac_libs=$LIBS
                   18862:     LIBS="$LIBS -lrt"
                   18863:     if test "$cross_compiling" = yes; then :
                   18864:   found=no
                   18865: else
                   18866:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18867: /* end confdefs.h.  */
                   18868: main() { return (0); }
                   18869: _ACEOF
                   18870: if ac_fn_c_try_run "$LINENO"; then :
                   18871:   found=yes
                   18872: else
                   18873:   found=no
                   18874: fi
                   18875: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   18876:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   18877: fi
                   18878: 
                   18879:     LIBS=$ac_libs
                   18880:   fi
                   18881: 
                   18882:   if test "$found" = "yes"; then
                   18883: 
                   18884: 
                   18885:   case rt in
                   18886:   c|c_r|pthread*) ;;
                   18887:   *)
                   18888:       LIBS="-lrt $LIBS"
                   18889:    ;;
                   18890:   esac
                   18891: 
                   18892: 
                   18893: 
                   18894: $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
                   18895: 
                   18896: 
                   18897: $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
                   18898: 
                   18899:     ac_cv_func_nanosleep=yes
                   18900:   else
                   18901: 
                   18902:   :
                   18903: 
                   18904:   fi
                   18905: 
                   18906:  ;;
                   18907: 
                   18908:   esac
                   18909: 
                   18910: 
                   18911: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
                   18912: $as_echo_n "checking for getaddrinfo... " >&6; }
                   18913: if ${ac_cv_func_getaddrinfo+:} false; then :
                   18914:   $as_echo_n "(cached) " >&6
                   18915: else
                   18916:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18917: /* end confdefs.h.  */
                   18918: #include <netdb.h>
                   18919: int
                   18920: main ()
                   18921: {
                   18922: struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g);
                   18923:   ;
                   18924:   return 0;
                   18925: }
                   18926: _ACEOF
                   18927: if ac_fn_c_try_link "$LINENO"; then :
                   18928:   if test "$cross_compiling" = yes; then :
                   18929:   ac_cv_func_getaddrinfo=no
                   18930: else
                   18931:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   18932: /* end confdefs.h.  */
                   18933: 
                   18934: #include <netdb.h>
                   18935: #include <sys/types.h>
                   18936: #ifndef AF_INET
                   18937: # include <sys/socket.h>
                   18938: #endif
                   18939: int main(void) {
                   18940:   struct addrinfo *ai, *pai, hints;
                   18941: 
                   18942:   memset(&hints, 0, sizeof(hints));
                   18943:   hints.ai_flags = AI_NUMERICHOST;
                   18944: 
                   18945:   if (getaddrinfo("127.0.0.1", 0, &hints, &ai) < 0) {
                   18946:     exit(1);
                   18947:   }
                   18948: 
                   18949:   if (ai == 0) {
                   18950:     exit(1);
                   18951:   }
                   18952: 
                   18953:   pai = ai;
                   18954: 
                   18955:   while (pai) {
                   18956:     if (pai->ai_family != AF_INET) {
                   18957:       /* 127.0.0.1/NUMERICHOST should only resolve ONE way */
                   18958:       exit(1);
                   18959:     }
                   18960:     if (pai->ai_addr->sa_family != AF_INET) {
                   18961:       /* 127.0.0.1/NUMERICHOST should only resolve ONE way */
                   18962:       exit(1);
                   18963:     }
                   18964:     pai = pai->ai_next;
                   18965:   }
                   18966:   freeaddrinfo(ai);
                   18967:   exit(0);
                   18968: }
                   18969: 
                   18970: _ACEOF
                   18971: if ac_fn_c_try_run "$LINENO"; then :
                   18972:   ac_cv_func_getaddrinfo=yes
                   18973: else
                   18974:   ac_cv_func_getaddrinfo=no
                   18975: fi
                   18976: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   18977:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   18978: fi
                   18979: 
                   18980: else
                   18981:   ac_cv_func_getaddrinfo=no
                   18982: fi
                   18983: rm -f core conftest.err conftest.$ac_objext \
                   18984:     conftest$ac_exeext conftest.$ac_ext
                   18985: fi
                   18986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
                   18987: $as_echo "$ac_cv_func_getaddrinfo" >&6; }
                   18988: if test "$ac_cv_func_getaddrinfo" = yes; then
                   18989: 
                   18990: $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
                   18991: 
                   18992: fi
                   18993: 
                   18994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add" >&5
                   18995: $as_echo_n "checking for __sync_fetch_and_add... " >&6; }
                   18996: if ${ac_cv_func_sync_fetch_and_add+:} false; then :
                   18997:   $as_echo_n "(cached) " >&6
                   18998: else
                   18999:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19000: /* end confdefs.h.  */
                   19001: 
                   19002: int
                   19003: main ()
                   19004: {
                   19005: int x;__sync_fetch_and_add(&x,1);
                   19006:   ;
                   19007:   return 0;
                   19008: }
                   19009: _ACEOF
                   19010: if ac_fn_c_try_link "$LINENO"; then :
                   19011:   ac_cv_func_sync_fetch_and_add=yes
                   19012: else
                   19013:   ac_cv_func_sync_fetch_and_add=no
                   19014: fi
                   19015: rm -f core conftest.err conftest.$ac_objext \
                   19016:     conftest$ac_exeext conftest.$ac_ext
                   19017: fi
                   19018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sync_fetch_and_add" >&5
                   19019: $as_echo "$ac_cv_func_sync_fetch_and_add" >&6; }
                   19020: if test "$ac_cv_func_sync_fetch_and_add" = yes; then
                   19021: 
                   19022: $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
                   19023: 
                   19024: fi
                   19025: 
                   19026: ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
                   19027: if test "x$ac_cv_func_strlcat" = xyes; then :
                   19028:   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
                   19029: 
                   19030: else
                   19031:   case " $LIBOBJS " in
                   19032:   *" strlcat.$ac_objext "* ) ;;
                   19033:   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
                   19034:  ;;
                   19035: esac
                   19036: 
                   19037: fi
                   19038: 
                   19039: ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
                   19040: if test "x$ac_cv_func_strlcpy" = xyes; then :
                   19041:   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
                   19042: 
                   19043: else
                   19044:   case " $LIBOBJS " in
                   19045:   *" strlcpy.$ac_objext "* ) ;;
                   19046:   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
                   19047:  ;;
                   19048: esac
                   19049: 
                   19050: fi
                   19051: 
                   19052: ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
                   19053: if test "x$ac_cv_func_getopt" = xyes; then :
                   19054:   $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
                   19055: 
                   19056: else
                   19057:   case " $LIBOBJS " in
                   19058:   *" getopt.$ac_objext "* ) ;;
                   19059:   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
                   19060:  ;;
                   19061: esac
                   19062: 
                   19063: fi
                   19064: 
                   19065: 
                   19066: 
                   19067: 
                   19068: 
                   19069:   for ac_header in $ac_header_list
                   19070: do :
                   19071:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   19072: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   19073: "
                   19074: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   19075:   cat >>confdefs.h <<_ACEOF
                   19076: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   19077: _ACEOF
                   19078: 
                   19079: fi
                   19080: 
                   19081: done
                   19082: 
                   19083: 
                   19084: 
                   19085: 
                   19086: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
                   19087: $as_echo_n "checking whether utime accepts a null argument... " >&6; }
                   19088: if ${ac_cv_func_utime_null+:} false; then :
                   19089:   $as_echo_n "(cached) " >&6
                   19090: else
                   19091:   rm -f conftest.data; >conftest.data
                   19092: # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
                   19093: if test "$cross_compiling" = yes; then :
                   19094:   ac_cv_func_utime_null='guessing yes'
                   19095: else
                   19096:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19097: /* end confdefs.h.  */
                   19098: $ac_includes_default
                   19099:               #ifdef HAVE_UTIME_H
                   19100:               # include <utime.h>
                   19101:               #endif
                   19102: int
                   19103: main ()
                   19104: {
                   19105: struct stat s, t;
                   19106:   return ! (stat ("conftest.data", &s) == 0
                   19107:            && utime ("conftest.data", 0) == 0
                   19108:            && stat ("conftest.data", &t) == 0
                   19109:            && t.st_mtime >= s.st_mtime
                   19110:            && t.st_mtime - s.st_mtime < 120);
                   19111:   ;
                   19112:   return 0;
                   19113: }
                   19114: _ACEOF
                   19115: if ac_fn_c_try_run "$LINENO"; then :
                   19116:   ac_cv_func_utime_null=yes
                   19117: else
                   19118:   ac_cv_func_utime_null=no
                   19119: fi
                   19120: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   19121:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   19122: fi
                   19123: 
                   19124: fi
                   19125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
                   19126: $as_echo "$ac_cv_func_utime_null" >&6; }
                   19127: if test "x$ac_cv_func_utime_null" != xno; then
                   19128:   ac_cv_func_utime_null=yes
                   19129: 
                   19130: $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
                   19131: 
                   19132: fi
                   19133: rm -f conftest.data
                   19134: 
                   19135: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
                   19136: # for constant arguments.  Useless!
                   19137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
                   19138: $as_echo_n "checking for working alloca.h... " >&6; }
                   19139: if ${ac_cv_working_alloca_h+:} false; then :
                   19140:   $as_echo_n "(cached) " >&6
                   19141: else
                   19142:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19143: /* end confdefs.h.  */
                   19144: #include <alloca.h>
                   19145: int
                   19146: main ()
                   19147: {
                   19148: char *p = (char *) alloca (2 * sizeof (int));
                   19149:                          if (p) return 0;
                   19150:   ;
                   19151:   return 0;
                   19152: }
                   19153: _ACEOF
                   19154: if ac_fn_c_try_link "$LINENO"; then :
                   19155:   ac_cv_working_alloca_h=yes
                   19156: else
                   19157:   ac_cv_working_alloca_h=no
                   19158: fi
                   19159: rm -f core conftest.err conftest.$ac_objext \
                   19160:     conftest$ac_exeext conftest.$ac_ext
                   19161: fi
                   19162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
                   19163: $as_echo "$ac_cv_working_alloca_h" >&6; }
                   19164: if test $ac_cv_working_alloca_h = yes; then
                   19165: 
                   19166: $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
                   19167: 
                   19168: fi
                   19169: 
                   19170: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
                   19171: $as_echo_n "checking for alloca... " >&6; }
                   19172: if ${ac_cv_func_alloca_works+:} false; then :
                   19173:   $as_echo_n "(cached) " >&6
                   19174: else
                   19175:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19176: /* end confdefs.h.  */
                   19177: #ifdef __GNUC__
                   19178: # define alloca __builtin_alloca
                   19179: #else
                   19180: # ifdef _MSC_VER
                   19181: #  include <malloc.h>
                   19182: #  define alloca _alloca
                   19183: # else
                   19184: #  ifdef HAVE_ALLOCA_H
                   19185: #   include <alloca.h>
                   19186: #  else
                   19187: #   ifdef _AIX
                   19188:  #pragma alloca
                   19189: #   else
                   19190: #    ifndef alloca /* predefined by HP cc +Olibcalls */
                   19191: void *alloca (size_t);
                   19192: #    endif
                   19193: #   endif
                   19194: #  endif
                   19195: # endif
                   19196: #endif
                   19197: 
                   19198: int
                   19199: main ()
                   19200: {
                   19201: char *p = (char *) alloca (1);
                   19202:                                    if (p) return 0;
                   19203:   ;
                   19204:   return 0;
                   19205: }
                   19206: _ACEOF
                   19207: if ac_fn_c_try_link "$LINENO"; then :
                   19208:   ac_cv_func_alloca_works=yes
                   19209: else
                   19210:   ac_cv_func_alloca_works=no
                   19211: fi
                   19212: rm -f core conftest.err conftest.$ac_objext \
                   19213:     conftest$ac_exeext conftest.$ac_ext
                   19214: fi
                   19215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
                   19216: $as_echo "$ac_cv_func_alloca_works" >&6; }
                   19217: 
                   19218: if test $ac_cv_func_alloca_works = yes; then
                   19219: 
                   19220: $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
                   19221: 
                   19222: else
                   19223:   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
                   19224: # that cause trouble.  Some versions do not even contain alloca or
                   19225: # contain a buggy version.  If you still want to use their alloca,
                   19226: # use ar to extract alloca.o from them instead of compiling alloca.c.
                   19227: 
                   19228: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
                   19229: 
                   19230: $as_echo "#define C_ALLOCA 1" >>confdefs.h
                   19231: 
                   19232: 
                   19233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
                   19234: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
                   19235: if ${ac_cv_os_cray+:} false; then :
                   19236:   $as_echo_n "(cached) " >&6
                   19237: else
                   19238:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19239: /* end confdefs.h.  */
                   19240: #if defined CRAY && ! defined CRAY2
                   19241: webecray
                   19242: #else
                   19243: wenotbecray
                   19244: #endif
                   19245: 
                   19246: _ACEOF
                   19247: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   19248:   $EGREP "webecray" >/dev/null 2>&1; then :
                   19249:   ac_cv_os_cray=yes
                   19250: else
                   19251:   ac_cv_os_cray=no
                   19252: fi
                   19253: rm -f conftest*
                   19254: 
                   19255: fi
                   19256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
                   19257: $as_echo "$ac_cv_os_cray" >&6; }
                   19258: if test $ac_cv_os_cray = yes; then
                   19259:   for ac_func in _getb67 GETB67 getb67; do
                   19260:     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   19261: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   19262: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   19263: 
                   19264: cat >>confdefs.h <<_ACEOF
                   19265: #define CRAY_STACKSEG_END $ac_func
                   19266: _ACEOF
                   19267: 
                   19268:     break
                   19269: fi
                   19270: 
                   19271:   done
                   19272: fi
                   19273: 
                   19274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
                   19275: $as_echo_n "checking stack direction for C alloca... " >&6; }
                   19276: if ${ac_cv_c_stack_direction+:} false; then :
                   19277:   $as_echo_n "(cached) " >&6
                   19278: else
                   19279:   if test "$cross_compiling" = yes; then :
                   19280:   ac_cv_c_stack_direction=0
                   19281: else
                   19282:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19283: /* end confdefs.h.  */
                   19284: $ac_includes_default
                   19285: int
1.1.1.2 ! misho    19286: find_stack_direction (int *addr, int depth)
1.1       misho    19287: {
1.1.1.2 ! misho    19288:   int dir, dummy = 0;
        !          19289:   if (! addr)
        !          19290:     addr = &dummy;
        !          19291:   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
        !          19292:   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
        !          19293:   return dir + dummy;
1.1       misho    19294: }
                   19295: 
                   19296: int
1.1.1.2 ! misho    19297: main (int argc, char **argv)
1.1       misho    19298: {
1.1.1.2 ! misho    19299:   return find_stack_direction (0, argc + !argv + 20) < 0;
1.1       misho    19300: }
                   19301: _ACEOF
                   19302: if ac_fn_c_try_run "$LINENO"; then :
                   19303:   ac_cv_c_stack_direction=1
                   19304: else
                   19305:   ac_cv_c_stack_direction=-1
                   19306: fi
                   19307: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   19308:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   19309: fi
                   19310: 
                   19311: fi
                   19312: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
                   19313: $as_echo "$ac_cv_c_stack_direction" >&6; }
                   19314: cat >>confdefs.h <<_ACEOF
                   19315: #define STACK_DIRECTION $ac_cv_c_stack_direction
                   19316: _ACEOF
                   19317: 
                   19318: 
                   19319: fi
                   19320: 
                   19321: 
                   19322:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declared timezone" >&5
                   19323: $as_echo_n "checking for declared timezone... " >&6; }
                   19324: if ${ac_cv_declared_timezone+:} false; then :
                   19325:   $as_echo_n "(cached) " >&6
                   19326: else
                   19327: 
                   19328:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19329: /* end confdefs.h.  */
                   19330: 
                   19331: #include <sys/types.h>
                   19332: #include <time.h>
                   19333: #ifdef HAVE_SYS_TIME_H
                   19334: #include <sys/time.h>
                   19335: #endif
                   19336: 
                   19337: int
                   19338: main ()
                   19339: {
                   19340: 
                   19341:     time_t foo = (time_t) timezone;
                   19342: 
                   19343:   ;
                   19344:   return 0;
                   19345: }
                   19346: _ACEOF
                   19347: if ac_fn_c_try_compile "$LINENO"; then :
                   19348: 
                   19349:   ac_cv_declared_timezone=yes
                   19350: 
                   19351: else
                   19352: 
                   19353:   ac_cv_declared_timezone=no
                   19354: 
                   19355: fi
                   19356: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   19357: fi
                   19358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declared_timezone" >&5
                   19359: $as_echo "$ac_cv_declared_timezone" >&6; }
                   19360:   if test "$ac_cv_declared_timezone" = "yes"; then
                   19361: 
                   19362: $as_echo "#define HAVE_DECLARED_TIMEZONE 1" >>confdefs.h
                   19363: 
                   19364:   fi
                   19365: 
                   19366: 
                   19367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of reentrant time-related functions" >&5
                   19368: $as_echo_n "checking for type of reentrant time-related functions... " >&6; }
                   19369: if ${ac_cv_time_r_type+:} false; then :
                   19370:   $as_echo_n "(cached) " >&6
                   19371: else
                   19372: 
                   19373: if test "$cross_compiling" = yes; then :
                   19374: 
                   19375:   ac_cv_time_r_type=POSIX
                   19376: 
                   19377: else
                   19378:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19379: /* end confdefs.h.  */
                   19380: 
                   19381: #include <time.h>
                   19382: 
                   19383: main() {
                   19384: char buf[27];
                   19385: struct tm t;
                   19386: time_t old = 0;
                   19387: int r, s;
                   19388: 
                   19389: s = gmtime_r(&old, &t);
                   19390: r = (int) asctime_r(&t, buf, 26);
                   19391: if (r == s && s == 0) return (0);
                   19392: return (1);
                   19393: }
                   19394: 
                   19395: _ACEOF
                   19396: if ac_fn_c_try_run "$LINENO"; then :
                   19397: 
                   19398:   ac_cv_time_r_type=hpux
                   19399: 
                   19400: else
                   19401: 
                   19402:   if test "$cross_compiling" = yes; then :
                   19403: 
                   19404:     ac_cv_time_r_type=POSIX
                   19405: 
                   19406: else
                   19407:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19408: /* end confdefs.h.  */
                   19409: 
                   19410: #include <time.h>
                   19411: main() {
                   19412:   struct tm t, *s;
                   19413:   time_t old = 0;
                   19414:   char buf[27], *p;
                   19415: 
                   19416:   s = gmtime_r(&old, &t);
                   19417:   p = asctime_r(&t, buf, 26);
                   19418:   if (p == buf && s == &t) return (0);
                   19419:   return (1);
                   19420: }
                   19421: 
                   19422: _ACEOF
                   19423: if ac_fn_c_try_run "$LINENO"; then :
                   19424: 
                   19425:     ac_cv_time_r_type=irix
                   19426: 
                   19427: else
                   19428: 
                   19429:     ac_cv_time_r_type=POSIX
                   19430: 
                   19431: fi
                   19432: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   19433:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   19434: fi
                   19435: 
                   19436: 
                   19437: fi
                   19438: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   19439:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   19440: fi
                   19441: 
                   19442: 
                   19443: fi
                   19444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_time_r_type" >&5
                   19445: $as_echo "$ac_cv_time_r_type" >&6; }
                   19446:   case $ac_cv_time_r_type in
                   19447:   hpux)
                   19448: $as_echo "#define PHP_HPUX_TIME_R 1" >>confdefs.h
                   19449:  ;;
                   19450:   irix)
                   19451: $as_echo "#define PHP_IRIX_TIME_R 1" >>confdefs.h
                   19452:  ;;
                   19453:   esac
                   19454: 
                   19455: 
                   19456:     ac_fn_c_check_func "$LINENO" "readdir_r" "ac_cv_func_readdir_r"
                   19457: if test "x$ac_cv_func_readdir_r" = xyes; then :
                   19458:   ac_cv_func_readdir_r=yes
                   19459: else
                   19460:   ac_cv_func_readdir=no
                   19461: fi
                   19462: 
                   19463:   if test "$ac_cv_func_readdir_r" = "yes"; then
                   19464:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of readdir_r" >&5
                   19465: $as_echo_n "checking for type of readdir_r... " >&6; }
                   19466: if ${ac_cv_what_readdir_r+:} false; then :
                   19467:   $as_echo_n "(cached) " >&6
                   19468: else
                   19469: 
                   19470:     if test "$cross_compiling" = yes; then :
                   19471: 
                   19472:       ac_cv_what_readdir_r=none
                   19473: 
                   19474: else
                   19475:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19476: /* end confdefs.h.  */
                   19477: 
                   19478: #define _REENTRANT
                   19479: #include <sys/types.h>
                   19480: #include <dirent.h>
                   19481: 
                   19482: #ifndef PATH_MAX
                   19483: #define PATH_MAX 1024
                   19484: #endif
                   19485: 
                   19486: main() {
                   19487:   DIR *dir;
                   19488:   char entry[sizeof(struct dirent)+PATH_MAX];
                   19489:   struct dirent *pentry = (struct dirent *) &entry;
                   19490: 
                   19491:   dir = opendir("/");
                   19492:   if (!dir)
                   19493:     exit(1);
                   19494:   if (readdir_r(dir, (struct dirent *) entry, &pentry) == 0)
                   19495:     exit(0);
                   19496:   exit(1);
                   19497: }
                   19498: 
                   19499: _ACEOF
                   19500: if ac_fn_c_try_run "$LINENO"; then :
                   19501: 
                   19502:       ac_cv_what_readdir_r=POSIX
                   19503: 
                   19504: else
                   19505: 
                   19506:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19507: /* end confdefs.h.  */
                   19508: 
                   19509: #define _REENTRANT
                   19510: #include <sys/types.h>
                   19511: #include <dirent.h>
                   19512: int readdir_r(DIR *, struct dirent *);
                   19513: 
                   19514: _ACEOF
                   19515: if ac_fn_c_try_cpp "$LINENO"; then :
                   19516: 
                   19517:           ac_cv_what_readdir_r=old-style
                   19518: 
                   19519: else
                   19520: 
                   19521:           ac_cv_what_readdir_r=none
                   19522: 
                   19523: fi
                   19524: rm -f conftest.err conftest.i conftest.$ac_ext
                   19525: 
                   19526: fi
                   19527: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   19528:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   19529: fi
                   19530: 
                   19531: 
                   19532: fi
                   19533: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_what_readdir_r" >&5
                   19534: $as_echo "$ac_cv_what_readdir_r" >&6; }
                   19535:     case $ac_cv_what_readdir_r in
                   19536:     POSIX)
                   19537: 
                   19538: $as_echo "#define HAVE_POSIX_READDIR_R 1" >>confdefs.h
                   19539: ;;
                   19540:     old-style)
                   19541: 
                   19542: $as_echo "#define HAVE_OLD_READDIR_R 1" >>confdefs.h
                   19543: ;;
                   19544:     esac
                   19545:   fi
                   19546: 
                   19547: 
                   19548: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
                   19549: $as_echo_n "checking for in_addr_t... " >&6; }
                   19550: if ${ac_cv_type_in_addr_t+:} false; then :
                   19551:   $as_echo_n "(cached) " >&6
                   19552: else
                   19553:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19554: /* end confdefs.h.  */
                   19555: #include <sys/types.h>
                   19556: #if STDC_HEADERS
                   19557: #include <stdlib.h>
                   19558: #include <stddef.h>
                   19559: #endif
                   19560: #ifdef HAVE_NETINET_IN_H
                   19561: #include <netinet/in.h>
                   19562: #endif
                   19563: _ACEOF
                   19564: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   19565:   $EGREP "in_addr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
                   19566:   ac_cv_type_in_addr_t=yes
                   19567: else
                   19568:   ac_cv_type_in_addr_t=no
                   19569: fi
                   19570: rm -f conftest*
                   19571: 
                   19572: fi
                   19573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr_t" >&5
                   19574: $as_echo "$ac_cv_type_in_addr_t" >&6; }
                   19575: if test $ac_cv_type_in_addr_t = no; then
                   19576: 
                   19577: $as_echo "#define in_addr_t u_int" >>confdefs.h
                   19578: 
                   19579: fi
                   19580: 
                   19581: 
                   19582: for ac_func in crypt_r
                   19583: do :
                   19584:   ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r"
                   19585: if test "x$ac_cv_func_crypt_r" = xyes; then :
                   19586:   cat >>confdefs.h <<_ACEOF
                   19587: #define HAVE_CRYPT_R 1
                   19588: _ACEOF
                   19589:   php_crypt_r="1"
                   19590: else
                   19591:    php_crypt_r="0"
                   19592: fi
                   19593: done
                   19594: 
                   19595: if test "x$php_crypt_r" = "x1"; then
                   19596: 
                   19597:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which data struct is used by crypt_r" >&5
                   19598: $as_echo_n "checking which data struct is used by crypt_r... " >&6; }
                   19599: if ${php_cv_crypt_r_style+:} false; then :
                   19600:   $as_echo_n "(cached) " >&6
                   19601: else
                   19602: 
                   19603:     php_cv_crypt_r_style=none
                   19604:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19605: /* end confdefs.h.  */
                   19606: 
                   19607: #define _REENTRANT 1
                   19608: #include <crypt.h>
                   19609: 
                   19610: int
                   19611: main ()
                   19612: {
                   19613: 
                   19614: CRYPTD buffer;
                   19615: crypt_r("passwd", "hash", &buffer);
                   19616: 
                   19617:   ;
                   19618:   return 0;
                   19619: }
                   19620: _ACEOF
                   19621: if ac_fn_c_try_compile "$LINENO"; then :
                   19622:   php_cv_crypt_r_style=cryptd
                   19623: fi
                   19624: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   19625: 
                   19626:     if test "$php_cv_crypt_r_style" = "none"; then
                   19627:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19628: /* end confdefs.h.  */
                   19629: 
                   19630: #define _REENTRANT 1
                   19631: #include <crypt.h>
                   19632: 
                   19633: int
                   19634: main ()
                   19635: {
                   19636: 
                   19637: struct crypt_data buffer;
                   19638: crypt_r("passwd", "hash", &buffer);
                   19639: 
                   19640:   ;
                   19641:   return 0;
                   19642: }
                   19643: _ACEOF
                   19644: if ac_fn_c_try_compile "$LINENO"; then :
                   19645:   php_cv_crypt_r_style=struct_crypt_data
                   19646: fi
                   19647: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   19648:     fi
                   19649: 
                   19650:     if test "$php_cv_crypt_r_style" = "none"; then
                   19651:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   19652: /* end confdefs.h.  */
                   19653: 
                   19654: #define _REENTRANT 1
                   19655: #define _GNU_SOURCE
                   19656: #include <crypt.h>
                   19657: 
                   19658: int
                   19659: main ()
                   19660: {
                   19661: 
                   19662: struct crypt_data buffer;
                   19663: crypt_r("passwd", "hash", &buffer);
                   19664: 
                   19665:   ;
                   19666:   return 0;
                   19667: }
                   19668: _ACEOF
                   19669: if ac_fn_c_try_compile "$LINENO"; then :
                   19670:   php_cv_crypt_r_style=struct_crypt_data_gnu_source
                   19671: fi
                   19672: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   19673:     fi
                   19674: 
                   19675: fi
                   19676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_crypt_r_style" >&5
                   19677: $as_echo "$php_cv_crypt_r_style" >&6; }
                   19678: 
                   19679:   if test "$php_cv_crypt_r_style" = "cryptd"; then
                   19680: 
                   19681: $as_echo "#define CRYPT_R_CRYPTD 1" >>confdefs.h
                   19682: 
                   19683:   fi
                   19684:   if test "$php_cv_crypt_r_style" = "struct_crypt_data" -o "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then
                   19685: 
                   19686: $as_echo "#define CRYPT_R_STRUCT_CRYPT_DATA 1" >>confdefs.h
                   19687: 
                   19688:   fi
                   19689:   if test "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then
                   19690: 
                   19691: $as_echo "#define CRYPT_R_GNU_SOURCE 1" >>confdefs.h
                   19692: 
                   19693:   fi
                   19694:   if test "$php_cv_crypt_r_style" = "none"; then
                   19695:     as_fn_error $? "Unable to detect data struct used by crypt_r" "$LINENO" 5
                   19696:   fi
                   19697: 
                   19698: fi
                   19699: 
                   19700: 
1.1.1.2 ! misho    19701:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
        !          19702: $as_echo "" >&6; }
        !          19703:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}General settings${T_ME}" >&5
        !          19704: $as_echo "${T_MD}General settings${T_ME}" >&6; }
1.1       misho    19705: 
                   19706: 
                   19707: 
1.1.1.2 ! misho    19708: # Check whether --enable- was given.
        !          19709: if test "${enable_+set}" = set; then :
        !          19710:   enableval=$enable_;
        !          19711: fi
        !          19712: 
        !          19713: 
        !          19714: 
        !          19715: 
        !          19716: php_enable_gcov=no
        !          19717: 
        !          19718: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include gcov symbols" >&5
        !          19719: $as_echo_n "checking whether to include gcov symbols... " >&6; }
        !          19720: # Check whether --enable-gcov was given.
        !          19721: if test "${enable_gcov+set}" = set; then :
        !          19722:   enableval=$enable_gcov; PHP_GCOV=$enableval
1.1       misho    19723: else
                   19724: 
1.1.1.2 ! misho    19725:   PHP_GCOV=no
1.1       misho    19726: 
                   19727: 
1.1.1.2 ! misho    19728: fi
1.1       misho    19729: 
                   19730: 
1.1.1.2 ! misho    19731: ext_output=$PHP_GCOV
        !          19732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
        !          19733: $as_echo "$ext_output" >&6; }
1.1       misho    19734: 
                   19735: 
                   19736: 
                   19737: 
1.1.1.2 ! misho    19738: if test "$PHP_GCOV" = "yes"; then
1.1       misho    19739: 
1.1.1.2 ! misho    19740:   if test "$GCC" != "yes"; then
        !          19741:     as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
        !          19742:   fi
1.1       misho    19743: 
1.1.1.2 ! misho    19744:     case `$php_shtool path $CC` in
        !          19745:     *ccache*) gcc_ccache=yes;;
        !          19746:     *) gcc_ccache=no;;
        !          19747:   esac
1.1       misho    19748: 
1.1.1.2 ! misho    19749:   if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
        !          19750:     as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
        !          19751:   fi
1.1       misho    19752: 
1.1.1.2 ! misho    19753:   ltp_version_list="1.5 1.6 1.7"
1.1       misho    19754: 
1.1.1.2 ! misho    19755:   # Extract the first word of "lcov", so it can be a program name with args.
        !          19756: set dummy lcov; ac_word=$2
        !          19757: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
        !          19758: $as_echo_n "checking for $ac_word... " >&6; }
        !          19759: if ${ac_cv_prog_LTP+:} false; then :
1.1       misho    19760:   $as_echo_n "(cached) " >&6
                   19761: else
1.1.1.2 ! misho    19762:   if test -n "$LTP"; then
        !          19763:   ac_cv_prog_LTP="$LTP" # Let the user override the test.
1.1       misho    19764: else
1.1.1.2 ! misho    19765: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          19766: for as_dir in $PATH
        !          19767: do
        !          19768:   IFS=$as_save_IFS
        !          19769:   test -z "$as_dir" && as_dir=.
        !          19770:     for ac_exec_ext in '' $ac_executable_extensions; do
        !          19771:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          19772:     ac_cv_prog_LTP="lcov"
        !          19773:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          19774:     break 2
        !          19775:   fi
        !          19776: done
        !          19777:   done
        !          19778: IFS=$as_save_IFS
        !          19779: 
1.1       misho    19780: fi
                   19781: fi
1.1.1.2 ! misho    19782: LTP=$ac_cv_prog_LTP
        !          19783: if test -n "$LTP"; then
        !          19784:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
        !          19785: $as_echo "$LTP" >&6; }
        !          19786: else
        !          19787:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
        !          19788: $as_echo "no" >&6; }
1.1       misho    19789: fi
                   19790: 
                   19791: 
1.1.1.2 ! misho    19792:   # Extract the first word of "genhtml", so it can be a program name with args.
        !          19793: set dummy genhtml; ac_word=$2
        !          19794: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
        !          19795: $as_echo_n "checking for $ac_word... " >&6; }
        !          19796: if ${ac_cv_prog_LTP_GENHTML+:} false; then :
1.1       misho    19797:   $as_echo_n "(cached) " >&6
                   19798: else
1.1.1.2 ! misho    19799:   if test -n "$LTP_GENHTML"; then
        !          19800:   ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
        !          19801: else
        !          19802: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          19803: for as_dir in $PATH
        !          19804: do
        !          19805:   IFS=$as_save_IFS
        !          19806:   test -z "$as_dir" && as_dir=.
        !          19807:     for ac_exec_ext in '' $ac_executable_extensions; do
        !          19808:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          19809:     ac_cv_prog_LTP_GENHTML="genhtml"
        !          19810:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          19811:     break 2
        !          19812:   fi
        !          19813: done
        !          19814:   done
        !          19815: IFS=$as_save_IFS
1.1       misho    19816: 
1.1.1.2 ! misho    19817: fi
        !          19818: fi
        !          19819: LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
        !          19820: if test -n "$LTP_GENHTML"; then
        !          19821:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
        !          19822: $as_echo "$LTP_GENHTML" >&6; }
        !          19823: else
        !          19824:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
        !          19825: $as_echo "no" >&6; }
        !          19826: fi
1.1       misho    19827: 
                   19828: 
                   19829: 
1.1.1.2 ! misho    19830:   PHP_VAR_SUBST="$PHP_VAR_SUBST LTP"
1.1       misho    19831: 
                   19832: 
1.1.1.2 ! misho    19833:   PHP_VAR_SUBST="$PHP_VAR_SUBST LTP_GENHTML"
1.1       misho    19834: 
                   19835: 
1.1.1.2 ! misho    19836:   if test "$LTP"; then
        !          19837:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
        !          19838: $as_echo_n "checking for ltp version... " >&6; }
        !          19839: if ${php_cv_ltp_version+:} false; then :
        !          19840:   $as_echo_n "(cached) " >&6
1.1       misho    19841: else
                   19842: 
1.1.1.2 ! misho    19843:       php_cv_ltp_version=invalid
        !          19844:       ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
        !          19845:       for ltp_check_version in $ltp_version_list; do
        !          19846:         if test "$ltp_version" = "$ltp_check_version"; then
        !          19847:           php_cv_ltp_version="$ltp_check_version (ok)"
        !          19848:         fi
        !          19849:       done
1.1       misho    19850: 
                   19851: fi
1.1.1.2 ! misho    19852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_ltp_version" >&5
        !          19853: $as_echo "$php_cv_ltp_version" >&6; }
        !          19854:   else
        !          19855:     ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list"
        !          19856:     as_fn_error $? "$ltp_msg" "$LINENO" 5
        !          19857:   fi
1.1       misho    19858: 
1.1.1.2 ! misho    19859:   case $php_cv_ltp_version in
        !          19860:     ""|invalid)
        !          19861:       ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)."
        !          19862:       as_fn_error $? "$ltp_msg" "$LINENO" 5
        !          19863:       LTP="exit 0;"
        !          19864:       ;;
        !          19865:   esac
1.1       misho    19866: 
1.1.1.2 ! misho    19867:   if test -z "$LTP_GENHTML"; then
        !          19868:     as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5
        !          19869:   fi
1.1       misho    19870: 
                   19871: 
1.1.1.2 ! misho    19872: $as_echo "#define HAVE_GCOV 1" >>confdefs.h
1.1       misho    19873: 
                   19874: 
1.1.1.2 ! misho    19875:   src=$abs_srcdir/Makefile.gcov
        !          19876:   ac_srcdir=$abs_srcdir
        !          19877:   ac_builddir=$ext_builddir
        !          19878:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
1.1       misho    19879: 
                   19880: 
                   19881: 
1.1.1.2 ! misho    19882:   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
        !          19883:   CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
1.1       misho    19884: 
                   19885: 
1.1.1.2 ! misho    19886:     CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
        !          19887:   CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
1.1       misho    19888: fi
                   19889: 
                   19890: 
1.1.1.2 ! misho    19891: php_enable_debug=no
        !          19892: 
        !          19893: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols" >&5
        !          19894: $as_echo_n "checking whether to include debugging symbols... " >&6; }
        !          19895: # Check whether --enable-debug was given.
        !          19896: if test "${enable_debug+set}" = set; then :
        !          19897:   enableval=$enable_debug; PHP_DEBUG=$enableval
1.1       misho    19898: else
                   19899: 
1.1.1.2 ! misho    19900:   PHP_DEBUG=no
1.1       misho    19901: 
                   19902: 
1.1.1.2 ! misho    19903: fi
1.1       misho    19904: 
                   19905: 
1.1.1.2 ! misho    19906: ext_output=$PHP_DEBUG
        !          19907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
        !          19908: $as_echo "$ext_output" >&6; }
1.1       misho    19909: 
                   19910: 
                   19911: 
                   19912: 
1.1.1.2 ! misho    19913: if test "$PHP_DEBUG" = "yes"; then
        !          19914:   PHP_DEBUG=1
        !          19915:   ZEND_DEBUG=yes
1.1       misho    19916: 
1.1.1.2 ! misho    19917:   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
        !          19918:   CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
1.1       misho    19919: 
1.1.1.2 ! misho    19920:     if test "$GCC" = "yes" || test "$ICC" = "yes"; then
        !          19921:     CFLAGS="$CFLAGS -O0"
        !          19922:     CXXFLAGS="$CXXFLAGS -g -O0"
        !          19923:   fi
        !          19924:   if test "$SUNCC" = "yes"; then
        !          19925:     if test -n "$auto_cflags"; then
        !          19926:       CFLAGS="-g"
        !          19927:       CXXFLAGS="-g"
        !          19928:     else
        !          19929:       CFLAGS="$CFLAGS -g"
        !          19930:       CXXFLAGS="$CFLAGS -g"
        !          19931:     fi
        !          19932:   fi
        !          19933: else
        !          19934:   PHP_DEBUG=0
        !          19935:   ZEND_DEBUG=no
1.1       misho    19936: fi
                   19937: 
                   19938: 
1.1.1.2 ! misho    19939: php_with_layout=PHP
        !          19940: 
        !          19941: { $as_echo "$as_me:${as_lineno-$LINENO}: checking layout of installed files" >&5
        !          19942: $as_echo_n "checking layout of installed files... " >&6; }
        !          19943: 
        !          19944: # Check whether --with-layout was given.
        !          19945: if test "${with_layout+set}" = set; then :
        !          19946:   withval=$with_layout; PHP_LAYOUT=$withval
1.1       misho    19947: else
                   19948: 
1.1.1.2 ! misho    19949:   PHP_LAYOUT=PHP
1.1       misho    19950: 
                   19951: 
1.1.1.2 ! misho    19952: fi
1.1       misho    19953: 
                   19954: 
1.1.1.2 ! misho    19955: ext_output=$PHP_LAYOUT
        !          19956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
        !          19957: $as_echo "$ext_output" >&6; }
1.1       misho    19958: 
                   19959: 
                   19960: 
                   19961: 
1.1.1.2 ! misho    19962: case $PHP_LAYOUT in
        !          19963:   GNU)
        !          19964:     oldstyleextdir=no
        !          19965:     ;;
        !          19966:   *)
        !          19967:     oldstyleextdir=yes
        !          19968:     ;;
        !          19969: esac
1.1       misho    19970: 
                   19971: 
1.1.1.2 ! misho    19972: php_with_config_file_path=DEFAULT
1.1       misho    19973: 
1.1.1.2 ! misho    19974: { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to configuration file" >&5
        !          19975: $as_echo_n "checking path to configuration file... " >&6; }
1.1       misho    19976: 
1.1.1.2 ! misho    19977: # Check whether --with-config-file-path was given.
        !          19978: if test "${with_config_file_path+set}" = set; then :
        !          19979:   withval=$with_config_file_path; PHP_CONFIG_FILE_PATH=$withval
1.1       misho    19980: else
                   19981: 
1.1.1.2 ! misho    19982:   PHP_CONFIG_FILE_PATH=DEFAULT
1.1       misho    19983: 
                   19984: 
1.1.1.2 ! misho    19985: fi
1.1       misho    19986: 
                   19987: 
1.1.1.2 ! misho    19988: ext_output=$PHP_CONFIG_FILE_PATH
        !          19989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
        !          19990: $as_echo "$ext_output" >&6; }
1.1       misho    19991: 
                   19992: 
                   19993: 
                   19994: 
1.1.1.2 ! misho    19995: if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then
        !          19996:   case $PHP_LAYOUT in
        !          19997:     GNU)
        !          19998:       PHP_CONFIG_FILE_PATH=$sysconfdir
        !          19999:       ;;
        !          20000:     *)
        !          20001:       PHP_CONFIG_FILE_PATH=$libdir
        !          20002:       ;;
        !          20003:   esac
1.1       misho    20004: fi
                   20005: 
1.1.1.2 ! misho    20006: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to scan for configuration files" >&5
        !          20007: $as_echo_n "checking where to scan for configuration files... " >&6; }
1.1       misho    20008: 
1.1.1.2 ! misho    20009: php_with_config_file_scan_dir=DEFAULT
1.1       misho    20010: 
                   20011: 
                   20012: 
1.1.1.2 ! misho    20013: # Check whether --with-config-file-scan-dir was given.
        !          20014: if test "${with_config_file_scan_dir+set}" = set; then :
        !          20015:   withval=$with_config_file_scan_dir; PHP_CONFIG_FILE_SCAN_DIR=$withval
1.1       misho    20016: else
                   20017: 
1.1.1.2 ! misho    20018:   PHP_CONFIG_FILE_SCAN_DIR=DEFAULT
1.1       misho    20019: 
                   20020: 
1.1.1.2 ! misho    20021: fi
1.1       misho    20022: 
                   20023: 
1.1.1.2 ! misho    20024: ext_output=$PHP_CONFIG_FILE_SCAN_DIR
        !          20025: 
1.1       misho    20026: 
                   20027: 
                   20028: 
1.1.1.2 ! misho    20029: if test "$PHP_CONFIG_FILE_SCAN_DIR" = "DEFAULT"; then
        !          20030:   PHP_CONFIG_FILE_SCAN_DIR=
1.1       misho    20031: fi
1.1.1.2 ! misho    20032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG_FILE_SCAN_DIR" >&5
        !          20033: $as_echo "$PHP_CONFIG_FILE_SCAN_DIR" >&6; }
1.1       misho    20034: 
1.1.1.2 ! misho    20035: test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
1.1       misho    20036: 
                   20037: 
1.1.1.2 ! misho    20038: php_enable_sigchild=no
1.1       misho    20039: 
1.1.1.2 ! misho    20040: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP's own SIGCHLD handler" >&5
        !          20041: $as_echo_n "checking whether to enable PHP's own SIGCHLD handler... " >&6; }
        !          20042: # Check whether --enable-sigchild was given.
        !          20043: if test "${enable_sigchild+set}" = set; then :
        !          20044:   enableval=$enable_sigchild; PHP_SIGCHILD=$enableval
        !          20045: else
1.1       misho    20046: 
1.1.1.2 ! misho    20047:   PHP_SIGCHILD=no
1.1       misho    20048: 
                   20049: 
1.1.1.2 ! misho    20050: fi
1.1       misho    20051: 
                   20052: 
1.1.1.2 ! misho    20053: ext_output=$PHP_SIGCHILD
        !          20054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
        !          20055: $as_echo "$ext_output" >&6; }
1.1       misho    20056: 
                   20057: 
                   20058: 
                   20059: 
1.1.1.2 ! misho    20060: if test "$PHP_SIGCHILD" = "yes"; then
1.1       misho    20061: 
1.1.1.2 ! misho    20062: $as_echo "#define PHP_SIGCHILD 1" >>confdefs.h
1.1       misho    20063: 
                   20064: else
                   20065: 
1.1.1.2 ! misho    20066: $as_echo "#define PHP_SIGCHILD 0" >>confdefs.h
1.1       misho    20067: 
1.1.1.2 ! misho    20068: fi
1.1       misho    20069: 
                   20070: 
1.1.1.2 ! misho    20071: php_enable_libgcc=no
1.1       misho    20072: 
1.1.1.2 ! misho    20073: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to explicitly link against libgcc" >&5
        !          20074: $as_echo_n "checking whether to explicitly link against libgcc... " >&6; }
        !          20075: # Check whether --enable-libgcc was given.
        !          20076: if test "${enable_libgcc+set}" = set; then :
        !          20077:   enableval=$enable_libgcc; PHP_LIBGCC=$enableval
1.1       misho    20078: else
                   20079: 
1.1.1.2 ! misho    20080:   PHP_LIBGCC=no
        !          20081: 
1.1       misho    20082: 
                   20083: fi
                   20084: 
                   20085: 
1.1.1.2 ! misho    20086: ext_output=$PHP_LIBGCC
        !          20087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
        !          20088: $as_echo "$ext_output" >&6; }
1.1       misho    20089: 
                   20090: 
                   20091: 
                   20092: 
1.1.1.2 ! misho    20093: if test "$PHP_LIBGCC" = "yes"; then
1.1       misho    20094: 
                   20095: 
1.1.1.2 ! misho    20096:   libgcc_libpath=`gcc --print-libgcc-file-name|$SED 's%/*[^/][^/]*$%%'`
1.1       misho    20097: 
                   20098: 
1.1.1.2 ! misho    20099:   if test -z "$libgcc_libpath"; then
        !          20100:     as_fn_error $? "Cannot locate libgcc. Make sure that gcc is in your path" "$LINENO" 5
        !          20101:   fi
1.1       misho    20102: 
1.1.1.2 ! misho    20103:   if test "$libgcc_libpath" != "/usr/$PHP_LIBDIR" && test "$libgcc_libpath" != "/usr/lib"; then
1.1       misho    20104: 
1.1.1.2 ! misho    20105:   if test -z "$libgcc_libpath" || echo "$libgcc_libpath" | grep '^/' >/dev/null ; then
        !          20106:     ai_p=$libgcc_libpath
        !          20107:   else
1.1       misho    20108: 
1.1.1.2 ! misho    20109:     ep_dir="`echo $libgcc_libpath|$SED 's%/*[^/][^/]*/*$%%'`"
1.1       misho    20110: 
1.1.1.2 ! misho    20111:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          20112:     ai_p="$ep_realdir/`basename \"$libgcc_libpath\"`"
        !          20113:   fi
1.1       misho    20114: 
                   20115: 
                   20116: 
                   20117: 
                   20118: 
1.1.1.2 ! misho    20119:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1       misho    20120: 
1.1.1.2 ! misho    20121:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
        !          20122:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          20123:     eval "LIBPATH$unique=set"
1.1       misho    20124: 
1.1.1.2 ! misho    20125:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
        !          20126:     LDFLAGS="$LDFLAGS -L$ai_p"
        !          20127:     PHP_RPATHS="$PHP_RPATHS $ai_p"
1.1       misho    20128: 
1.1.1.2 ! misho    20129:   fi
1.1       misho    20130: 
                   20131: 
                   20132: 
1.1.1.2 ! misho    20133:   fi
1.1       misho    20134: 
                   20135: 
                   20136: 
1.1.1.2 ! misho    20137:   case gcc in
        !          20138:   c|c_r|pthread*) ;;
        !          20139:   *)
        !          20140:       LIBS="$LIBS -lgcc"
        !          20141:    ;;
        !          20142:   esac
1.1       misho    20143: 
                   20144: 
1.1.1.2 ! misho    20145: fi
1.1       misho    20146: 
                   20147: 
1.1.1.2 ! misho    20148: php_enable_short_tags=yes
1.1       misho    20149: 
1.1.1.2 ! misho    20150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable short tags by default" >&5
        !          20151: $as_echo_n "checking whether to enable short tags by default... " >&6; }
        !          20152: # Check whether --enable-short-tags was given.
        !          20153: if test "${enable_short_tags+set}" = set; then :
        !          20154:   enableval=$enable_short_tags; PHP_SHORT_TAGS=$enableval
        !          20155: else
1.1       misho    20156: 
1.1.1.2 ! misho    20157:   PHP_SHORT_TAGS=yes
1.1       misho    20158: 
                   20159: 
1.1.1.2 ! misho    20160: fi
1.1       misho    20161: 
                   20162: 
1.1.1.2 ! misho    20163: ext_output=$PHP_SHORT_TAGS
        !          20164: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
        !          20165: $as_echo "$ext_output" >&6; }
1.1       misho    20166: 
                   20167: 
                   20168: 
                   20169: 
1.1.1.2 ! misho    20170: if test "$PHP_SHORT_TAGS" = "yes"; then
1.1       misho    20171: 
1.1.1.2 ! misho    20172: $as_echo "#define DEFAULT_SHORT_OPEN_TAG \"1\"" >>confdefs.h
1.1       misho    20173: 
1.1.1.2 ! misho    20174: else
1.1       misho    20175: 
1.1.1.2 ! misho    20176: $as_echo "#define DEFAULT_SHORT_OPEN_TAG \"0\"" >>confdefs.h
1.1       misho    20177: 
1.1.1.2 ! misho    20178: fi
1.1       misho    20179: 
                   20180: 
1.1.1.2 ! misho    20181: php_enable_dmalloc=no
1.1       misho    20182: 
1.1.1.2 ! misho    20183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dmalloc" >&5
        !          20184: $as_echo_n "checking whether to enable dmalloc... " >&6; }
        !          20185: # Check whether --enable-dmalloc was given.
        !          20186: if test "${enable_dmalloc+set}" = set; then :
        !          20187:   enableval=$enable_dmalloc; PHP_DMALLOC=$enableval
        !          20188: else
1.1       misho    20189: 
1.1.1.2 ! misho    20190:   PHP_DMALLOC=no
1.1       misho    20191: 
                   20192: 
                   20193: fi
                   20194: 
                   20195: 
1.1.1.2 ! misho    20196: ext_output=$PHP_DMALLOC
        !          20197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
        !          20198: $as_echo "$ext_output" >&6; }
1.1       misho    20199: 
1.1.1.2 ! misho    20200: 
        !          20201: 
        !          20202: 
        !          20203: if test "$PHP_DMALLOC" = "yes"; then
        !          20204:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_error in -ldmalloc" >&5
        !          20205: $as_echo_n "checking for dmalloc_error in -ldmalloc... " >&6; }
        !          20206: if ${ac_cv_lib_dmalloc_dmalloc_error+:} false; then :
1.1       misho    20207:   $as_echo_n "(cached) " >&6
                   20208: else
1.1.1.2 ! misho    20209:   ac_check_lib_save_LIBS=$LIBS
        !          20210: LIBS="-ldmalloc  $LIBS"
        !          20211: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       misho    20212: /* end confdefs.h.  */
                   20213: 
1.1.1.2 ! misho    20214: /* Override any GCC internal prototype to avoid an error.
        !          20215:    Use char because int might match the return type of a GCC
        !          20216:    builtin and then its argument prototype would still apply.  */
        !          20217: #ifdef __cplusplus
        !          20218: extern "C"
        !          20219: #endif
        !          20220: char dmalloc_error ();
1.1       misho    20221: int
                   20222: main ()
                   20223: {
1.1.1.2 ! misho    20224: return dmalloc_error ();
1.1       misho    20225:   ;
                   20226:   return 0;
                   20227: }
                   20228: _ACEOF
1.1.1.2 ! misho    20229: if ac_fn_c_try_link "$LINENO"; then :
        !          20230:   ac_cv_lib_dmalloc_dmalloc_error=yes
1.1       misho    20231: else
1.1.1.2 ! misho    20232:   ac_cv_lib_dmalloc_dmalloc_error=no
1.1       misho    20233: fi
1.1.1.2 ! misho    20234: rm -f core conftest.err conftest.$ac_objext \
        !          20235:     conftest$ac_exeext conftest.$ac_ext
        !          20236: LIBS=$ac_check_lib_save_LIBS
1.1       misho    20237: fi
1.1.1.2 ! misho    20238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_error" >&5
        !          20239: $as_echo "$ac_cv_lib_dmalloc_dmalloc_error" >&6; }
        !          20240: if test "x$ac_cv_lib_dmalloc_dmalloc_error" = xyes; then :
1.1       misho    20241: 
                   20242: 
                   20243: 
1.1.1.2 ! misho    20244:   case dmalloc in
        !          20245:   c|c_r|pthread*) ;;
        !          20246:   *)
        !          20247:       LIBS="-ldmalloc $LIBS"
        !          20248:    ;;
        !          20249:   esac
        !          20250: 
        !          20251: 
        !          20252: 
        !          20253: $as_echo "#define HAVE_DMALLOC 1" >>confdefs.h
1.1       misho    20254: 
1.1.1.2 ! misho    20255:     CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK"
1.1       misho    20256: 
1.1.1.2 ! misho    20257: else
1.1       misho    20258: 
1.1.1.2 ! misho    20259:     as_fn_error $? "Problem with enabling dmalloc. Please check config.log for details." "$LINENO" 5
1.1       misho    20260: 
1.1.1.2 ! misho    20261: fi
1.1       misho    20262: 
1.1.1.2 ! misho    20263: fi
1.1       misho    20264: 
                   20265: 
1.1.1.2 ! misho    20266: php_enable_ipv6=yes
        !          20267: 
        !          20268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6 support" >&5
        !          20269: $as_echo_n "checking whether to enable IPv6 support... " >&6; }
        !          20270: # Check whether --enable-ipv6 was given.
        !          20271: if test "${enable_ipv6+set}" = set; then :
        !          20272:   enableval=$enable_ipv6; PHP_IPV6=$enableval
        !          20273: else
1.1       misho    20274: 
1.1.1.2 ! misho    20275:   PHP_IPV6=yes
1.1       misho    20276: 
                   20277: 
                   20278: fi
                   20279: 
                   20280: 
1.1.1.2 ! misho    20281: ext_output=$PHP_IPV6
        !          20282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
        !          20283: $as_echo "$ext_output" >&6; }
        !          20284: 
1.1       misho    20285: 
                   20286: 
                   20287: 
1.1.1.2 ! misho    20288: if test "$PHP_IPV6" != "no" && test "$ac_cv_ipv6_support" = yes; then
        !          20289: 
        !          20290: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
        !          20291: 
        !          20292: fi
        !          20293: 
        !          20294: 
        !          20295: php_enable_dtrace=no
        !          20296: 
        !          20297: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DTrace support" >&5
        !          20298: $as_echo_n "checking whether to enable DTrace support... " >&6; }
        !          20299: # Check whether --enable-dtrace was given.
        !          20300: if test "${enable_dtrace+set}" = set; then :
        !          20301:   enableval=$enable_dtrace; PHP_DTRACE=$enableval
1.1       misho    20302: else
                   20303: 
1.1.1.2 ! misho    20304:   PHP_DTRACE=no
1.1       misho    20305: 
                   20306: 
                   20307: fi
                   20308: 
                   20309: 
1.1.1.2 ! misho    20310: ext_output=$PHP_DTRACE
1.1       misho    20311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   20312: $as_echo "$ext_output" >&6; }
                   20313: 
                   20314: 
                   20315: 
                   20316: 
1.1.1.2 ! misho    20317: if test "$PHP_DTRACE" = "yes"; then
        !          20318:   for ac_header in sys/sdt.h
        !          20319: do :
        !          20320:   ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
        !          20321: if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
        !          20322:   cat >>confdefs.h <<_ACEOF
        !          20323: #define HAVE_SYS_SDT_H 1
        !          20324: _ACEOF
1.1       misho    20325: 
                   20326: 
1.1.1.2 ! misho    20327:   case "" in
        !          20328:     "") ac_srcdir="$abs_srcdir/"; unset ac_bdir;;
        !          20329:     /*) ac_srcdir=`echo ""|cut -c 2-`"/"; ac_bdir=$ac_srcdir;;
        !          20330:     *) ac_srcdir="$abs_srcdir/Zend/zend_dtrace.d/"; ac_bdir="/";;
1.1       misho    20331:   esac
                   20332: 
1.1.1.2 ! misho    20333:   ac_provsrc=Zend/zend_dtrace.d
        !          20334:   old_IFS=$IFS
        !          20335:   IFS=.
        !          20336:   set $ac_provsrc
        !          20337:   ac_provobj=$1
        !          20338:   IFS=$old_IFS
1.1       misho    20339: 
1.1.1.2 ! misho    20340:   ac_hdrobj=Zend/zend_dtrace_gen.h
1.1       misho    20341: 
1.1.1.2 ! misho    20342:   case $host_alias in
        !          20343:   *freebsd*)
        !          20344:     PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.o"
        !          20345:     PHP_LDFLAGS="$PHP_LDFLAGS -lelf"
        !          20346:     ;;
        !          20347:   *solaris*)
        !          20348:     PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.o"
        !          20349:     ;;
        !          20350:   esac
1.1       misho    20351: 
1.1.1.2 ! misho    20352:   old_IFS=$IFS
        !          20353:   for ac_src in main/main.c Zend/zend_API.c \
        !          20354:       Zend/zend_execute.c Zend/zend_exceptions.c \
        !          20355:       Zend/zend_dtrace.c Zend/zend.c; do
        !          20356:     IFS=.
        !          20357:     set $ac_src
        !          20358:     ac_obj=$1
        !          20359:     IFS=$old_IFS
1.1       misho    20360: 
1.1.1.2 ! misho    20361:     PHP_DTRACE_OBJS="$PHP_DTRACE_OBJS $ac_bdir$ac_obj.lo"
        !          20362:   done;
1.1       misho    20363: 
1.1.1.2 ! misho    20364:   case $php_sapi_module in
        !          20365:   shared)
        !          20366:     for ac_lo in $PHP_DTRACE_OBJS; do
        !          20367:       dtrace_objs="$dtrace_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`"
        !          20368:     done;
        !          20369:     ;;
        !          20370:   *)
        !          20371:     dtrace_objs='$(PHP_DTRACE_OBJS:.lo=.o)'
        !          20372:     ;;
        !          20373:   esac
1.1       misho    20374: 
1.1.1.2 ! misho    20375:   cat>>Makefile.objects<<EOF
1.1       misho    20376: 
1.1.1.2 ! misho    20377: $ac_bdir$ac_hdrobj: $abs_srcdir/$ac_provsrc
        !          20378:        dtrace -h -C -s $ac_srcdir$ac_provsrc -o \$@ && \$(SED) -ibak 's,PHP_,DTRACE_,g' \$@
1.1       misho    20379: 
1.1.1.2 ! misho    20380: \$(PHP_DTRACE_OBJS): $ac_bdir$ac_hdrobj
1.1       misho    20381: 
1.1.1.2 ! misho    20382: $ac_bdir$ac_provsrc.o: \$(PHP_DTRACE_OBJS)
        !          20383:        dtrace -G -o \$@ -s $abs_srcdir/$ac_provsrc $dtrace_objs
1.1       misho    20384: 
1.1.1.2 ! misho    20385: EOF
1.1       misho    20386: 
                   20387: 
1.1.1.2 ! misho    20388: $as_echo "#define HAVE_DTRACE 1" >>confdefs.h
1.1       misho    20389: 
                   20390: 
1.1.1.2 ! misho    20391:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_DTRACE_OBJS"
1.1       misho    20392: 
                   20393: 
1.1.1.2 ! misho    20394: else
1.1       misho    20395: 
1.1.1.2 ! misho    20396:     as_fn_error $? "Cannot find sys/sdt.h which is required for DTrace support" "$LINENO" 5
1.1       misho    20397: 
1.1.1.2 ! misho    20398: fi
1.1       misho    20399: 
1.1.1.2 ! misho    20400: done
1.1       misho    20401: 
                   20402: fi
                   20403: 
1.1.1.2 ! misho    20404: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how big to make fd sets" >&5
        !          20405: $as_echo_n "checking how big to make fd sets... " >&6; }
1.1       misho    20406: 
1.1.1.2 ! misho    20407: php_enable_fd_setsize=no
1.1       misho    20408: 
1.1.1.2 ! misho    20409: 
        !          20410: # Check whether --enable-fd-setsize was given.
        !          20411: if test "${enable_fd_setsize+set}" = set; then :
        !          20412:   enableval=$enable_fd_setsize; PHP_FD_SETSIZE=$enableval
1.1       misho    20413: else
                   20414: 
1.1.1.2 ! misho    20415:   PHP_FD_SETSIZE=no
1.1       misho    20416: 
                   20417: 
                   20418: fi
                   20419: 
                   20420: 
1.1.1.2 ! misho    20421: ext_output=$PHP_FD_SETSIZE
1.1       misho    20422: 
                   20423: 
                   20424: 
                   20425: 
                   20426: 
1.1.1.2 ! misho    20427: if test "$PHP_FD_SETSIZE" != "no"; then
        !          20428:   if test "0$PHP_FD_SETSIZE" -gt 0 2>/dev/null; then
        !          20429:     CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PHP_FD_SETSIZE"
        !          20430:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PHP_FD_SETSIZE" >&5
        !          20431: $as_echo "using $PHP_FD_SETSIZE" >&6; }
        !          20432:   else
        !          20433:     as_fn_error $? "Invalid value passed to --enable-fd-setsize!" "$LINENO" 5
1.1       misho    20434:   fi
                   20435: else
1.1.1.2 ! misho    20436:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system default" >&5
        !          20437: $as_echo "using system default" >&6; }
1.1       misho    20438: fi
                   20439: 
                   20440: 
                   20441: 
1.1.1.2 ! misho    20442: # Check whether --enable- was given.
        !          20443: if test "${enable_+set}" = set; then :
        !          20444:   enableval=$enable_;
        !          20445: fi
1.1       misho    20446: 
                   20447: 
                   20448: 
                   20449: 
1.1.1.2 ! misho    20450:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
        !          20451: $as_echo "" >&6; }
        !          20452:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring extensions${T_ME}" >&5
        !          20453: $as_echo "${T_MD}Configuring extensions${T_ME}" >&6; }
1.1       misho    20454: 
                   20455: 
                   20456: 
1.1.1.2 ! misho    20457: # Check whether --enable-all was given.
        !          20458: if test "${enable_all+set}" = set; then :
        !          20459:   enableval=$enable_all;
        !          20460:   PHP_ENABLE_ALL=$enableval
1.1       misho    20461: 
1.1.1.2 ! misho    20462: fi
1.1       misho    20463: 
                   20464: 
1.1.1.2 ! misho    20465: # reading config stubs
1.1       misho    20466: 
                   20467: 
                   20468: 
                   20469: 
1.1.1.2 ! misho    20470: # The cast to long int works around a bug in the HP C Compiler
        !          20471: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
        !          20472: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
        !          20473: # This bug is HP SR number 8606223364.
        !          20474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
        !          20475: $as_echo_n "checking size of long... " >&6; }
        !          20476: if ${ac_cv_sizeof_long+:} false; then :
        !          20477:   $as_echo_n "(cached) " >&6
1.1       misho    20478: else
1.1.1.2 ! misho    20479:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
1.1       misho    20480: 
1.1.1.2 ! misho    20481: else
        !          20482:   if test "$ac_cv_type_long" = yes; then
        !          20483:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
        !          20484: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
        !          20485: as_fn_error 77 "cannot compute sizeof (long)
        !          20486: See \`config.log' for more details" "$LINENO" 5; }
        !          20487:    else
        !          20488:      ac_cv_sizeof_long=0
        !          20489:    fi
1.1       misho    20490: fi
                   20491: 
                   20492: fi
1.1.1.2 ! misho    20493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
        !          20494: $as_echo "$ac_cv_sizeof_long" >&6; }
1.1       misho    20495: 
                   20496: 
                   20497: 
1.1.1.2 ! misho    20498: cat >>confdefs.h <<_ACEOF
        !          20499: #define SIZEOF_LONG $ac_cv_sizeof_long
        !          20500: _ACEOF
1.1       misho    20501: 
                   20502: 
1.1.1.2 ! misho    20503: # The cast to long int works around a bug in the HP C Compiler
        !          20504: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
        !          20505: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
        !          20506: # This bug is HP SR number 8606223364.
        !          20507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
        !          20508: $as_echo_n "checking size of int... " >&6; }
        !          20509: if ${ac_cv_sizeof_int+:} false; then :
        !          20510:   $as_echo_n "(cached) " >&6
1.1       misho    20511: else
1.1.1.2 ! misho    20512:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       misho    20513: 
1.1.1.2 ! misho    20514: else
        !          20515:   if test "$ac_cv_type_int" = yes; then
        !          20516:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
        !          20517: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
        !          20518: as_fn_error 77 "cannot compute sizeof (int)
        !          20519: See \`config.log' for more details" "$LINENO" 5; }
        !          20520:    else
        !          20521:      ac_cv_sizeof_int=0
        !          20522:    fi
1.1       misho    20523: fi
                   20524: 
1.1.1.2 ! misho    20525: fi
        !          20526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
        !          20527: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       misho    20528: 
                   20529: 
                   20530: 
1.1.1.2 ! misho    20531: cat >>confdefs.h <<_ACEOF
        !          20532: #define SIZEOF_INT $ac_cv_sizeof_int
        !          20533: _ACEOF
1.1       misho    20534: 
                   20535: 
                   20536: 
1.1.1.2 ! misho    20537: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5
        !          20538: $as_echo_n "checking for int32_t... " >&6; }
        !          20539: if ${ac_cv_int_type_int32_t+:} false; then :
        !          20540:   $as_echo_n "(cached) " >&6
1.1       misho    20541: else
                   20542: 
1.1.1.2 ! misho    20543: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          20544: /* end confdefs.h.  */
1.1       misho    20545: 
1.1.1.2 ! misho    20546: #if HAVE_SYS_TYPES_H
        !          20547: # include <sys/types.h>
        !          20548: #endif
        !          20549: #if HAVE_INTTYPES_H
        !          20550: # include <inttypes.h>
        !          20551: #elif HAVE_STDINT_H
        !          20552: # include <stdint.h>
        !          20553: #endif
        !          20554: int
        !          20555: main ()
        !          20556: {
        !          20557: if ((int32_t *) 0)
        !          20558:   return 0;
        !          20559: if (sizeof (int32_t))
        !          20560:   return 0;
1.1       misho    20561: 
1.1.1.2 ! misho    20562:   ;
        !          20563:   return 0;
        !          20564: }
        !          20565: _ACEOF
        !          20566: if ac_fn_c_try_compile "$LINENO"; then :
        !          20567:   ac_cv_int_type_int32_t=yes
        !          20568: else
        !          20569:   ac_cv_int_type_int32_t=no
1.1       misho    20570: fi
1.1.1.2 ! misho    20571: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       misho    20572: 
1.1.1.2 ! misho    20573: fi
        !          20574: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int_type_int32_t" >&5
        !          20575: $as_echo "$ac_cv_int_type_int32_t" >&6; }
        !          20576: if test "$ac_cv_int_type_int32_t" = "yes"; then
1.1       misho    20577: 
1.1.1.2 ! misho    20578: $as_echo "#define HAVE_INT32_T 1" >>confdefs.h
1.1       misho    20579: 
                   20580: fi
                   20581: 
                   20582: 
1.1.1.2 ! misho    20583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
        !          20584: $as_echo_n "checking for uint32_t... " >&6; }
        !          20585: if ${ac_cv_int_type_uint32_t+:} false; then :
        !          20586:   $as_echo_n "(cached) " >&6
        !          20587: else
1.1       misho    20588: 
1.1.1.2 ! misho    20589: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          20590: /* end confdefs.h.  */
1.1       misho    20591: 
1.1.1.2 ! misho    20592: #if HAVE_SYS_TYPES_H
        !          20593: # include <sys/types.h>
        !          20594: #endif
        !          20595: #if HAVE_INTTYPES_H
        !          20596: # include <inttypes.h>
        !          20597: #elif HAVE_STDINT_H
        !          20598: # include <stdint.h>
        !          20599: #endif
        !          20600: int
        !          20601: main ()
        !          20602: {
        !          20603: if ((uint32_t *) 0)
        !          20604:   return 0;
        !          20605: if (sizeof (uint32_t))
        !          20606:   return 0;
1.1       misho    20607: 
1.1.1.2 ! misho    20608:   ;
        !          20609:   return 0;
        !          20610: }
        !          20611: _ACEOF
        !          20612: if ac_fn_c_try_compile "$LINENO"; then :
        !          20613:   ac_cv_int_type_uint32_t=yes
1.1       misho    20614: else
1.1.1.2 ! misho    20615:   ac_cv_int_type_uint32_t=no
        !          20616: fi
        !          20617: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       misho    20618: 
1.1.1.2 ! misho    20619: fi
        !          20620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int_type_uint32_t" >&5
        !          20621: $as_echo "$ac_cv_int_type_uint32_t" >&6; }
        !          20622: if test "$ac_cv_int_type_uint32_t" = "yes"; then
1.1       misho    20623: 
1.1.1.2 ! misho    20624: $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h
1.1       misho    20625: 
                   20626: fi
                   20627: 
                   20628: 
1.1.1.2 ! misho    20629: for ac_header in  \
        !          20630: sys/types.h \
        !          20631: inttypes.h \
        !          20632: stdint.h \
        !          20633: string.h \
        !          20634: stdlib.h
1.1       misho    20635: 
1.1.1.2 ! misho    20636: do :
        !          20637:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
        !          20638: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
        !          20639: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
        !          20640:   cat >>confdefs.h <<_ACEOF
        !          20641: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
        !          20642: _ACEOF
1.1       misho    20643: 
1.1.1.2 ! misho    20644: fi
1.1       misho    20645: 
1.1.1.2 ! misho    20646: done
1.1       misho    20647: 
                   20648: 
1.1.1.2 ! misho    20649: for ac_func in strtoll atoll strftime
        !          20650: do :
        !          20651:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
        !          20652: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
        !          20653: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
        !          20654:   cat >>confdefs.h <<_ACEOF
        !          20655: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       misho    20656: _ACEOF
                   20657: 
                   20658: fi
1.1.1.2 ! misho    20659: done
1.1       misho    20660: 
                   20661: 
                   20662: 
                   20663: 
1.1.1.2 ! misho    20664: PHP_DATE_CFLAGS="-I@ext_builddir@/lib"
        !          20665: timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c
        !          20666:                  lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c"
1.1       misho    20667: 
                   20668: 
1.1.1.2 ! misho    20669:   ext_builddir=ext/date
        !          20670:   ext_srcdir=$abs_srcdir/ext/date
1.1       misho    20671: 
1.1.1.2 ! misho    20672:   ac_extra=`echo "$PHP_DATE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1       misho    20673: 
1.1.1.2 ! misho    20674:   if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
        !          20675:     PHP_DATE_SHARED=no
1.1       misho    20676: 
                   20677: 
1.1.1.2 ! misho    20678:   case ext/date in
        !          20679:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          20680:   /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          20681:   *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
        !          20682:   esac
1.1       misho    20683: 
                   20684: 
                   20685: 
1.1.1.2 ! misho    20686:   b_c_pre=$php_c_pre
        !          20687:   b_cxx_pre=$php_cxx_pre
        !          20688:   b_c_meta=$php_c_meta
        !          20689:   b_cxx_meta=$php_cxx_meta
        !          20690:   b_c_post=$php_c_post
        !          20691:   b_cxx_post=$php_cxx_post
        !          20692:   b_lo=$php_lo
1.1       misho    20693: 
                   20694: 
1.1.1.2 ! misho    20695:   old_IFS=$IFS
        !          20696:   for ac_src in php_date.c $timelib_sources; do
1.1       misho    20697: 
1.1.1.2 ! misho    20698:       IFS=.
        !          20699:       set $ac_src
        !          20700:       ac_obj=$1
        !          20701:       IFS=$old_IFS
1.1       misho    20702: 
1.1.1.2 ! misho    20703:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    20704: 
1.1.1.2 ! misho    20705:       case $ac_src in
        !          20706:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          20707:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          20708:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          20709:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
        !          20710:       esac
1.1       misho    20711: 
1.1.1.2 ! misho    20712:     cat >>Makefile.objects<<EOF
        !          20713: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
        !          20714:        $ac_comp
        !          20715: EOF
        !          20716:   done
1.1       misho    20717: 
                   20718: 
1.1.1.2 ! misho    20719:     EXT_STATIC="$EXT_STATIC date"
        !          20720:     if test "no" != "nocli"; then
        !          20721:       EXT_CLI_STATIC="$EXT_CLI_STATIC date"
        !          20722:     fi
        !          20723:   else
        !          20724:     if test "no" = "shared" || test "no" = "yes"; then
        !          20725:       PHP_DATE_SHARED=yes
1.1       misho    20726: 
1.1.1.2 ! misho    20727:   case ext/date in
        !          20728:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          20729:   /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          20730:   *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
        !          20731:   esac
1.1       misho    20732: 
                   20733: 
                   20734: 
1.1.1.2 ! misho    20735:   b_c_pre=$shared_c_pre
        !          20736:   b_cxx_pre=$shared_cxx_pre
        !          20737:   b_c_meta=$shared_c_meta
        !          20738:   b_cxx_meta=$shared_cxx_meta
        !          20739:   b_c_post=$shared_c_post
        !          20740:   b_cxx_post=$shared_cxx_post
        !          20741:   b_lo=$shared_lo
1.1       misho    20742: 
                   20743: 
1.1.1.2 ! misho    20744:   old_IFS=$IFS
        !          20745:   for ac_src in php_date.c $timelib_sources; do
1.1       misho    20746: 
1.1.1.2 ! misho    20747:       IFS=.
        !          20748:       set $ac_src
        !          20749:       ac_obj=$1
        !          20750:       IFS=$old_IFS
1.1       misho    20751: 
1.1.1.2 ! misho    20752:       shared_objects_date="$shared_objects_date $ac_bdir$ac_obj.lo"
1.1       misho    20753: 
1.1.1.2 ! misho    20754:       case $ac_src in
        !          20755:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          20756:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          20757:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          20758:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
        !          20759:       esac
1.1       misho    20760: 
1.1.1.2 ! misho    20761:     cat >>Makefile.objects<<EOF
        !          20762: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
        !          20763:        $ac_comp
        !          20764: EOF
        !          20765:   done
1.1       misho    20766: 
1.1.1.2 ! misho    20767:       case $host_alias in
        !          20768:         *netware*)
1.1       misho    20769: 
1.1.1.2 ! misho    20770:   install_modules="install-modules"
1.1       misho    20771: 
1.1.1.2 ! misho    20772:   case $host_alias in
        !          20773:     *aix*)
        !          20774:       suffix=so
        !          20775:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpdate.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) $(PHPDATE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpdate.so '$ext_builddir'/phpdate.so'
        !          20776:       ;;
        !          20777:     *netware*)
        !          20778:       suffix=nlm
        !          20779:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) -L$(top_builddir)/netware -lphp5lib $(DATE_SHARED_LIBADD)'
        !          20780:       ;;
        !          20781:     *)
        !          20782:       suffix=la
        !          20783:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) $(PHPDATE_SHARED_LIBADD)'
        !          20784:       ;;
        !          20785:   esac
1.1       misho    20786: 
1.1.1.2 ! misho    20787:   if test "x" = "xyes"; then
        !          20788:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdate.$suffix"
        !          20789:   else
        !          20790:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdate.$suffix"
        !          20791:   fi
1.1       misho    20792: 
1.1.1.2 ! misho    20793:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_date"
1.1       misho    20794: 
1.1.1.2 ! misho    20795:   cat >>Makefile.objects<<EOF
        !          20796: \$(phplibdir)/phpdate.$suffix: $ext_builddir/phpdate.$suffix
        !          20797:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpdate.$suffix \$(phplibdir)
1.1       misho    20798: 
1.1.1.2 ! misho    20799: $ext_builddir/phpdate.$suffix: \$(shared_objects_date) \$(PHPDATE_SHARED_DEPENDENCIES)
        !          20800:        $link_cmd
1.1       misho    20801: 
1.1.1.2 ! misho    20802: EOF
1.1       misho    20803: 
1.1.1.2 ! misho    20804:           ;;
        !          20805:         *)
1.1       misho    20806: 
1.1.1.2 ! misho    20807:   install_modules="install-modules"
1.1       misho    20808: 
1.1.1.2 ! misho    20809:   case $host_alias in
        !          20810:     *aix*)
        !          20811:       suffix=so
        !          20812:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/date.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) $(DATE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/date.so '$ext_builddir'/date.so'
        !          20813:       ;;
        !          20814:     *netware*)
        !          20815:       suffix=nlm
        !          20816:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) -L$(top_builddir)/netware -lphp5lib $(E_SHARED_LIBADD)'
        !          20817:       ;;
        !          20818:     *)
        !          20819:       suffix=la
        !          20820:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) $(DATE_SHARED_LIBADD)'
        !          20821:       ;;
        !          20822:   esac
1.1       misho    20823: 
1.1.1.2 ! misho    20824:   if test "x" = "xyes"; then
        !          20825:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/date.$suffix"
        !          20826:   else
        !          20827:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/date.$suffix"
        !          20828:   fi
1.1       misho    20829: 
1.1.1.2 ! misho    20830:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_date"
1.1       misho    20831: 
1.1.1.2 ! misho    20832:   cat >>Makefile.objects<<EOF
        !          20833: \$(phplibdir)/date.$suffix: $ext_builddir/date.$suffix
        !          20834:        \$(LIBTOOL) --mode=install cp $ext_builddir/date.$suffix \$(phplibdir)
1.1       misho    20835: 
1.1.1.2 ! misho    20836: $ext_builddir/date.$suffix: \$(shared_objects_date) \$(DATE_SHARED_DEPENDENCIES)
        !          20837:        $link_cmd
1.1       misho    20838: 
1.1.1.2 ! misho    20839: EOF
1.1       misho    20840: 
1.1.1.2 ! misho    20841:           ;;
        !          20842:       esac
1.1       misho    20843: 
1.1.1.2 ! misho    20844: cat >>confdefs.h <<_ACEOF
        !          20845: #define COMPILE_DL_DATE 1
        !          20846: _ACEOF
1.1       misho    20847: 
1.1.1.2 ! misho    20848:     fi
        !          20849:   fi
1.1       misho    20850: 
1.1.1.2 ! misho    20851:   if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
        !          20852:     PHP_DATE_SHARED=no
1.1       misho    20853: 
                   20854: 
1.1.1.2 ! misho    20855:   case ext/date in
        !          20856:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          20857:   /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          20858:   *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
        !          20859:   esac
1.1       misho    20860: 
                   20861: 
                   20862: 
1.1.1.2 ! misho    20863:   b_c_pre=$php_c_pre
        !          20864:   b_cxx_pre=$php_cxx_pre
        !          20865:   b_c_meta=$php_c_meta
        !          20866:   b_cxx_meta=$php_cxx_meta
        !          20867:   b_c_post=$php_c_post
        !          20868:   b_cxx_post=$php_cxx_post
        !          20869:   b_lo=$php_lo
1.1       misho    20870: 
                   20871: 
1.1.1.2 ! misho    20872:   old_IFS=$IFS
        !          20873:   for ac_src in php_date.c $timelib_sources; do
1.1       misho    20874: 
1.1.1.2 ! misho    20875:       IFS=.
        !          20876:       set $ac_src
        !          20877:       ac_obj=$1
        !          20878:       IFS=$old_IFS
1.1       misho    20879: 
1.1.1.2 ! misho    20880:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    20881: 
1.1.1.2 ! misho    20882:       case $ac_src in
        !          20883:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          20884:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          20885:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          20886:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
        !          20887:       esac
1.1       misho    20888: 
1.1.1.2 ! misho    20889:     cat >>Makefile.objects<<EOF
        !          20890: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
        !          20891:        $ac_comp
        !          20892: EOF
        !          20893:   done
1.1       misho    20894: 
                   20895: 
                   20896: 
                   20897: 
1.1.1.2 ! misho    20898:   case ext/date in
        !          20899:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          20900:   /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          20901:   *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    20902:   esac
                   20903: 
                   20904: 
                   20905: 
1.1.1.2 ! misho    20906:   b_c_pre=$php_c_pre
        !          20907:   b_cxx_pre=$php_cxx_pre
        !          20908:   b_c_meta=$php_c_meta
        !          20909:   b_cxx_meta=$php_cxx_meta
        !          20910:   b_c_post=$php_c_post
        !          20911:   b_cxx_post=$php_cxx_post
        !          20912:   b_lo=$php_lo
1.1       misho    20913: 
                   20914: 
1.1.1.2 ! misho    20915:   old_IFS=$IFS
        !          20916:   for ac_src in php_date.c $timelib_sources; do
1.1       misho    20917: 
1.1.1.2 ! misho    20918:       IFS=.
        !          20919:       set $ac_src
        !          20920:       ac_obj=$1
        !          20921:       IFS=$old_IFS
1.1       misho    20922: 
1.1.1.2 ! misho    20923:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    20924: 
1.1.1.2 ! misho    20925:       case $ac_src in
        !          20926:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          20927:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          20928:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          20929:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
        !          20930:       esac
1.1       misho    20931: 
1.1.1.2 ! misho    20932:     cat >>Makefile.objects<<EOF
        !          20933: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
        !          20934:        $ac_comp
        !          20935: EOF
        !          20936:   done
1.1       misho    20937: 
                   20938: 
                   20939: 
                   20940: 
1.1.1.2 ! misho    20941:   case ext/date in
        !          20942:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          20943:   /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          20944:   *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
        !          20945:   esac
1.1       misho    20946: 
                   20947: 
                   20948: 
1.1.1.2 ! misho    20949:   b_c_pre=$php_c_pre
        !          20950:   b_cxx_pre=$php_cxx_pre
        !          20951:   b_c_meta=$php_c_meta
        !          20952:   b_cxx_meta=$php_cxx_meta
        !          20953:   b_c_post=$php_c_post
        !          20954:   b_cxx_post=$php_cxx_post
        !          20955:   b_lo=$php_lo
1.1       misho    20956: 
                   20957: 
1.1.1.2 ! misho    20958:   old_IFS=$IFS
        !          20959:   for ac_src in php_date.c $timelib_sources; do
1.1       misho    20960: 
1.1.1.2 ! misho    20961:       IFS=.
        !          20962:       set $ac_src
        !          20963:       ac_obj=$1
        !          20964:       IFS=$old_IFS
1.1       misho    20965: 
1.1.1.2 ! misho    20966:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    20967: 
1.1.1.2 ! misho    20968:       case $ac_src in
        !          20969:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          20970:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          20971:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          20972:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
        !          20973:       esac
1.1       misho    20974: 
1.1.1.2 ! misho    20975:     cat >>Makefile.objects<<EOF
        !          20976: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
        !          20977:        $ac_comp
        !          20978: EOF
        !          20979:   done
1.1       misho    20980: 
                   20981: 
1.1.1.2 ! misho    20982:     EXT_CLI_STATIC="$EXT_CLI_STATIC date"
        !          20983:   fi
1.1       misho    20984: 
                   20985: 
1.1.1.2 ! misho    20986:     BUILD_DIR="$BUILD_DIR $ext_builddir"
1.1       misho    20987: 
                   20988: 
                   20989: 
1.1.1.2 ! misho    20990:   if test "$ext_builddir" = "."; then
        !          20991:     PHP_PECL_EXTENSION=date
1.1       misho    20992: 
1.1.1.2 ! misho    20993:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
1.1       misho    20994: 
1.1.1.2 ! misho    20995:   fi
1.1       misho    20996: 
                   20997: 
                   20998: 
                   20999: 
1.1.1.2 ! misho    21000:     $php_shtool mkdir -p $ext_builddir/lib
1.1       misho    21001: 
                   21002: 
                   21003: 
1.1.1.2 ! misho    21004:   if test "$ext_builddir/lib" != "/usr/include"; then
1.1       misho    21005: 
1.1.1.2 ! misho    21006:   if test -z "$ext_builddir/lib" || echo "$ext_builddir/lib" | grep '^/' >/dev/null ; then
        !          21007:     ai_p=$ext_builddir/lib
        !          21008:   else
1.1       misho    21009: 
1.1.1.2 ! misho    21010:     ep_dir="`echo $ext_builddir/lib|$SED 's%/*[^/][^/]*/*$%%'`"
1.1       misho    21011: 
1.1.1.2 ! misho    21012:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          21013:     ai_p="$ep_realdir/`basename \"$ext_builddir/lib\"`"
        !          21014:   fi
1.1       misho    21015: 
                   21016: 
                   21017: 
1.1.1.2 ! misho    21018:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1       misho    21019: 
1.1.1.2 ! misho    21020:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
        !          21021:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          21022:     eval "INCLUDEPATH$unique=set"
1.1       misho    21023: 
1.1.1.2 ! misho    21024:       if test ""; then
        !          21025:         INCLUDES="-I$ai_p $INCLUDES"
        !          21026:       else
        !          21027:         INCLUDES="$INCLUDES -I$ai_p"
        !          21028:       fi
1.1       misho    21029: 
1.1.1.2 ! misho    21030:   fi
1.1       misho    21031: 
1.1.1.2 ! misho    21032:   fi
1.1       misho    21033: 
                   21034: 
1.1.1.2 ! misho    21035:   if test "$ext_srcdir/lib" != "/usr/include"; then
1.1       misho    21036: 
1.1.1.2 ! misho    21037:   if test -z "$ext_srcdir/lib" || echo "$ext_srcdir/lib" | grep '^/' >/dev/null ; then
        !          21038:     ai_p=$ext_srcdir/lib
        !          21039:   else
1.1       misho    21040: 
1.1.1.2 ! misho    21041:     ep_dir="`echo $ext_srcdir/lib|$SED 's%/*[^/][^/]*/*$%%'`"
1.1       misho    21042: 
1.1.1.2 ! misho    21043:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          21044:     ai_p="$ep_realdir/`basename \"$ext_srcdir/lib\"`"
        !          21045:   fi
1.1       misho    21046: 
                   21047: 
                   21048: 
1.1.1.2 ! misho    21049:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1       misho    21050: 
1.1.1.2 ! misho    21051:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
        !          21052:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          21053:     eval "INCLUDEPATH$unique=set"
1.1       misho    21054: 
1.1.1.2 ! misho    21055:       if test ""; then
        !          21056:         INCLUDES="-I$ai_p $INCLUDES"
        !          21057:       else
        !          21058:         INCLUDES="$INCLUDES -I$ai_p"
        !          21059:       fi
1.1       misho    21060: 
1.1.1.2 ! misho    21061:   fi
1.1       misho    21062: 
1.1.1.2 ! misho    21063:   fi
1.1       misho    21064: 
                   21065: 
                   21066: 
                   21067: 
1.1.1.2 ! misho    21068:     header_path=ext/date
        !          21069:     for header_file in php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h; do
        !          21070:       hp_hf="$header_path/$header_file"
1.1       misho    21071: 
                   21072: 
1.1.1.2 ! misho    21073:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1       misho    21074: 
1.1.1.2 ! misho    21075:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
        !          21076:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          21077:     eval "INSTALLHEADERS$unique=set"
1.1       misho    21078: 
1.1.1.2 ! misho    21079:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
1.1       misho    21080: 
                   21081:   fi
                   21082: 
1.1.1.2 ! misho    21083:     done
1.1       misho    21084: 
                   21085: 
                   21086: 
1.1.1.2 ! misho    21087: cat > $ext_builddir/lib/timelib_config.h <<EOF
        !          21088: #ifdef PHP_WIN32
        !          21089: # include "config.w32.h"
        !          21090: #else
        !          21091: # include <php_config.h>
        !          21092: #endif
        !          21093: EOF
1.1       misho    21094: 
                   21095: 
                   21096: 
1.1.1.2 ! misho    21097: php_with_regex=php
1.1       misho    21098: 
                   21099: 
                   21100: 
1.1.1.2 ! misho    21101: # Check whether --with-regex was given.
        !          21102: if test "${with_regex+set}" = set; then :
        !          21103:   withval=$with_regex; PHP_REGEX=$withval
        !          21104: else
1.1       misho    21105: 
1.1.1.2 ! misho    21106:   PHP_REGEX=php
1.1       misho    21107: 
                   21108: 
                   21109: fi
                   21110: 
                   21111: 
1.1.1.2 ! misho    21112: ext_output=$PHP_REGEX
1.1       misho    21113: 
                   21114: 
                   21115: 
                   21116: 
                   21117: 
1.1.1.2 ! misho    21118: case $PHP_REGEX in
        !          21119:   system)
        !          21120:     if test "$PHP_SAPI" = "apache" || test "$PHP_SAPI" = "apache2filter" || test "$PHP_SAPI" = "apache2handler"; then
        !          21121:       REGEX_TYPE=php
        !          21122:     else
        !          21123:       REGEX_TYPE=system
        !          21124:     fi
        !          21125:     ;;
        !          21126:   yes | php)
        !          21127:     REGEX_TYPE=php
        !          21128:     ;;
        !          21129:   *)
        !          21130:     REGEX_TYPE=php
        !          21131:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid regex library type selected. Using default value: php" >&5
        !          21132: $as_echo "$as_me: WARNING: Invalid regex library type selected. Using default value: php" >&2;}
        !          21133:     ;;
        !          21134: esac
        !          21135: 
        !          21136: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which regex library to use" >&5
        !          21137: $as_echo_n "checking which regex library to use... " >&6; }
        !          21138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REGEX_TYPE" >&5
        !          21139: $as_echo "$REGEX_TYPE" >&6; }
1.1       misho    21140: 
1.1.1.2 ! misho    21141: if test "$REGEX_TYPE" = "php"; then
        !          21142:   ereg_regex_sources="regex/regcomp.c regex/regexec.c regex/regerror.c regex/regfree.c"
        !          21143:   ereg_regex_headers="regex/"
        !          21144:   PHP_EREG_CFLAGS="-Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp"
1.1       misho    21145: fi
                   21146: 
                   21147: 
1.1.1.2 ! misho    21148:   ext_builddir=ext/ereg
        !          21149:   ext_srcdir=$abs_srcdir/ext/ereg
1.1       misho    21150: 
1.1.1.2 ! misho    21151:   ac_extra=`echo "$PHP_EREG_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1       misho    21152: 
1.1.1.2 ! misho    21153:   if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
        !          21154:     PHP_EREG_SHARED=no
1.1       misho    21155: 
                   21156: 
1.1.1.2 ! misho    21157:   case ext/ereg in
        !          21158:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          21159:   /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          21160:   *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
        !          21161:   esac
1.1       misho    21162: 
                   21163: 
                   21164: 
1.1.1.2 ! misho    21165:   b_c_pre=$php_c_pre
        !          21166:   b_cxx_pre=$php_cxx_pre
        !          21167:   b_c_meta=$php_c_meta
        !          21168:   b_cxx_meta=$php_cxx_meta
        !          21169:   b_c_post=$php_c_post
        !          21170:   b_cxx_post=$php_cxx_post
        !          21171:   b_lo=$php_lo
1.1       misho    21172: 
                   21173: 
1.1.1.2 ! misho    21174:   old_IFS=$IFS
        !          21175:   for ac_src in ereg.c $ereg_regex_sources; do
1.1       misho    21176: 
1.1.1.2 ! misho    21177:       IFS=.
        !          21178:       set $ac_src
        !          21179:       ac_obj=$1
        !          21180:       IFS=$old_IFS
1.1       misho    21181: 
1.1.1.2 ! misho    21182:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    21183: 
1.1.1.2 ! misho    21184:       case $ac_src in
        !          21185:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          21186:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          21187:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          21188:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
        !          21189:       esac
1.1       misho    21190: 
1.1.1.2 ! misho    21191:     cat >>Makefile.objects<<EOF
        !          21192: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
        !          21193:        $ac_comp
        !          21194: EOF
        !          21195:   done
1.1       misho    21196: 
                   21197: 
1.1.1.2 ! misho    21198:     EXT_STATIC="$EXT_STATIC ereg"
        !          21199:     if test "no" != "nocli"; then
        !          21200:       EXT_CLI_STATIC="$EXT_CLI_STATIC ereg"
        !          21201:     fi
        !          21202:   else
        !          21203:     if test "no" = "shared" || test "no" = "yes"; then
        !          21204:       PHP_EREG_SHARED=yes
1.1       misho    21205: 
1.1.1.2 ! misho    21206:   case ext/ereg in
        !          21207:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          21208:   /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          21209:   *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
        !          21210:   esac
1.1       misho    21211: 
                   21212: 
                   21213: 
                   21214:   b_c_pre=$shared_c_pre
                   21215:   b_cxx_pre=$shared_cxx_pre
                   21216:   b_c_meta=$shared_c_meta
                   21217:   b_cxx_meta=$shared_cxx_meta
                   21218:   b_c_post=$shared_c_post
                   21219:   b_cxx_post=$shared_cxx_post
                   21220:   b_lo=$shared_lo
                   21221: 
                   21222: 
                   21223:   old_IFS=$IFS
1.1.1.2 ! misho    21224:   for ac_src in ereg.c $ereg_regex_sources; do
1.1       misho    21225: 
                   21226:       IFS=.
                   21227:       set $ac_src
                   21228:       ac_obj=$1
                   21229:       IFS=$old_IFS
                   21230: 
1.1.1.2 ! misho    21231:       shared_objects_ereg="$shared_objects_ereg $ac_bdir$ac_obj.lo"
1.1       misho    21232: 
                   21233:       case $ac_src in
                   21234:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21235:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21236:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21237:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   21238:       esac
                   21239: 
                   21240:     cat >>Makefile.objects<<EOF
                   21241: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   21242:        $ac_comp
                   21243: EOF
                   21244:   done
                   21245: 
                   21246:       case $host_alias in
                   21247:         *netware*)
                   21248: 
                   21249:   install_modules="install-modules"
                   21250: 
                   21251:   case $host_alias in
                   21252:     *aix*)
                   21253:       suffix=so
1.1.1.2 ! misho    21254:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpereg.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) $(PHPEREG_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpereg.so '$ext_builddir'/phpereg.so'
1.1       misho    21255:       ;;
                   21256:     *netware*)
                   21257:       suffix=nlm
1.1.1.2 ! misho    21258:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) -L$(top_builddir)/netware -lphp5lib $(EREG_SHARED_LIBADD)'
1.1       misho    21259:       ;;
                   21260:     *)
                   21261:       suffix=la
1.1.1.2 ! misho    21262:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) $(PHPEREG_SHARED_LIBADD)'
1.1       misho    21263:       ;;
                   21264:   esac
                   21265: 
                   21266:   if test "x" = "xyes"; then
1.1.1.2 ! misho    21267:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpereg.$suffix"
1.1       misho    21268:   else
1.1.1.2 ! misho    21269:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpereg.$suffix"
1.1       misho    21270:   fi
                   21271: 
1.1.1.2 ! misho    21272:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ereg"
1.1       misho    21273: 
                   21274:   cat >>Makefile.objects<<EOF
1.1.1.2 ! misho    21275: \$(phplibdir)/phpereg.$suffix: $ext_builddir/phpereg.$suffix
        !          21276:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpereg.$suffix \$(phplibdir)
1.1       misho    21277: 
1.1.1.2 ! misho    21278: $ext_builddir/phpereg.$suffix: \$(shared_objects_ereg) \$(PHPEREG_SHARED_DEPENDENCIES)
1.1       misho    21279:        $link_cmd
                   21280: 
                   21281: EOF
                   21282: 
                   21283:           ;;
                   21284:         *)
                   21285: 
                   21286:   install_modules="install-modules"
                   21287: 
                   21288:   case $host_alias in
                   21289:     *aix*)
                   21290:       suffix=so
1.1.1.2 ! misho    21291:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/ereg.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) $(EREG_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/ereg.so '$ext_builddir'/ereg.so'
1.1       misho    21292:       ;;
                   21293:     *netware*)
                   21294:       suffix=nlm
1.1.1.2 ! misho    21295:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) -L$(top_builddir)/netware -lphp5lib $(G_SHARED_LIBADD)'
1.1       misho    21296:       ;;
                   21297:     *)
                   21298:       suffix=la
1.1.1.2 ! misho    21299:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) $(EREG_SHARED_LIBADD)'
1.1       misho    21300:       ;;
                   21301:   esac
                   21302: 
                   21303:   if test "x" = "xyes"; then
1.1.1.2 ! misho    21304:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ereg.$suffix"
1.1       misho    21305:   else
1.1.1.2 ! misho    21306:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/ereg.$suffix"
1.1       misho    21307:   fi
                   21308: 
1.1.1.2 ! misho    21309:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ereg"
1.1       misho    21310: 
                   21311:   cat >>Makefile.objects<<EOF
1.1.1.2 ! misho    21312: \$(phplibdir)/ereg.$suffix: $ext_builddir/ereg.$suffix
        !          21313:        \$(LIBTOOL) --mode=install cp $ext_builddir/ereg.$suffix \$(phplibdir)
1.1       misho    21314: 
1.1.1.2 ! misho    21315: $ext_builddir/ereg.$suffix: \$(shared_objects_ereg) \$(EREG_SHARED_DEPENDENCIES)
1.1       misho    21316:        $link_cmd
                   21317: 
                   21318: EOF
                   21319: 
                   21320:           ;;
                   21321:       esac
                   21322: 
                   21323: cat >>confdefs.h <<_ACEOF
1.1.1.2 ! misho    21324: #define COMPILE_DL_EREG 1
1.1       misho    21325: _ACEOF
                   21326: 
                   21327:     fi
                   21328:   fi
                   21329: 
                   21330:   if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
1.1.1.2 ! misho    21331:     PHP_EREG_SHARED=no
1.1       misho    21332: 
                   21333: 
1.1.1.2 ! misho    21334:   case ext/ereg in
1.1       misho    21335:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    21336:   /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          21337:   *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    21338:   esac
                   21339: 
                   21340: 
                   21341: 
                   21342:   b_c_pre=$php_c_pre
                   21343:   b_cxx_pre=$php_cxx_pre
                   21344:   b_c_meta=$php_c_meta
                   21345:   b_cxx_meta=$php_cxx_meta
                   21346:   b_c_post=$php_c_post
                   21347:   b_cxx_post=$php_cxx_post
                   21348:   b_lo=$php_lo
                   21349: 
                   21350: 
                   21351:   old_IFS=$IFS
1.1.1.2 ! misho    21352:   for ac_src in ereg.c $ereg_regex_sources; do
1.1       misho    21353: 
                   21354:       IFS=.
                   21355:       set $ac_src
                   21356:       ac_obj=$1
                   21357:       IFS=$old_IFS
                   21358: 
1.1.1.2 ! misho    21359:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    21360: 
                   21361:       case $ac_src in
                   21362:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21363:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21364:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21365:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   21366:       esac
                   21367: 
                   21368:     cat >>Makefile.objects<<EOF
                   21369: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   21370:        $ac_comp
                   21371: EOF
                   21372:   done
                   21373: 
                   21374: 
                   21375: 
                   21376: 
1.1.1.2 ! misho    21377:   case ext/ereg in
1.1       misho    21378:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    21379:   /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          21380:   *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    21381:   esac
                   21382: 
                   21383: 
                   21384: 
                   21385:   b_c_pre=$php_c_pre
                   21386:   b_cxx_pre=$php_cxx_pre
                   21387:   b_c_meta=$php_c_meta
                   21388:   b_cxx_meta=$php_cxx_meta
                   21389:   b_c_post=$php_c_post
                   21390:   b_cxx_post=$php_cxx_post
                   21391:   b_lo=$php_lo
                   21392: 
                   21393: 
                   21394:   old_IFS=$IFS
1.1.1.2 ! misho    21395:   for ac_src in ereg.c $ereg_regex_sources; do
1.1       misho    21396: 
                   21397:       IFS=.
                   21398:       set $ac_src
                   21399:       ac_obj=$1
                   21400:       IFS=$old_IFS
                   21401: 
1.1.1.2 ! misho    21402:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    21403: 
                   21404:       case $ac_src in
                   21405:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21406:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21407:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21408:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   21409:       esac
                   21410: 
                   21411:     cat >>Makefile.objects<<EOF
                   21412: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   21413:        $ac_comp
                   21414: EOF
                   21415:   done
                   21416: 
                   21417: 
                   21418: 
                   21419: 
1.1.1.2 ! misho    21420:   case ext/ereg in
1.1       misho    21421:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    21422:   /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          21423:   *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    21424:   esac
                   21425: 
                   21426: 
                   21427: 
                   21428:   b_c_pre=$php_c_pre
                   21429:   b_cxx_pre=$php_cxx_pre
                   21430:   b_c_meta=$php_c_meta
                   21431:   b_cxx_meta=$php_cxx_meta
                   21432:   b_c_post=$php_c_post
                   21433:   b_cxx_post=$php_cxx_post
                   21434:   b_lo=$php_lo
                   21435: 
                   21436: 
                   21437:   old_IFS=$IFS
1.1.1.2 ! misho    21438:   for ac_src in ereg.c $ereg_regex_sources; do
1.1       misho    21439: 
                   21440:       IFS=.
                   21441:       set $ac_src
                   21442:       ac_obj=$1
                   21443:       IFS=$old_IFS
                   21444: 
1.1.1.2 ! misho    21445:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    21446: 
                   21447:       case $ac_src in
                   21448:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21449:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21450:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21451:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   21452:       esac
                   21453: 
                   21454:     cat >>Makefile.objects<<EOF
                   21455: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   21456:        $ac_comp
                   21457: EOF
                   21458:   done
                   21459: 
                   21460: 
1.1.1.2 ! misho    21461:     EXT_CLI_STATIC="$EXT_CLI_STATIC ereg"
1.1       misho    21462:   fi
                   21463: 
                   21464: 
                   21465:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   21466: 
                   21467: 
                   21468: 
                   21469:   if test "$ext_builddir" = "."; then
1.1.1.2 ! misho    21470:     PHP_PECL_EXTENSION=ereg
1.1       misho    21471: 
                   21472:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   21473: 
                   21474:   fi
                   21475: 
                   21476: 
                   21477: 
1.1.1.2 ! misho    21478:     header_path=ext/ereg
        !          21479:     for header_file in php_ereg.h php_regex.h $ereg_regex_headers; do
        !          21480:       hp_hf="$header_path/$header_file"
1.1       misho    21481: 
                   21482: 
1.1.1.2 ! misho    21483:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1       misho    21484: 
1.1.1.2 ! misho    21485:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
        !          21486:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          21487:     eval "INSTALLHEADERS$unique=set"
1.1       misho    21488: 
1.1.1.2 ! misho    21489:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
1.1       misho    21490: 
1.1.1.2 ! misho    21491:   fi
1.1       misho    21492: 
1.1.1.2 ! misho    21493:     done
1.1       misho    21494: 
                   21495: 
                   21496: 
1.1.1.2 ! misho    21497: if test "$REGEX_TYPE" = "php"; then
1.1       misho    21498: 
1.1.1.2 ! misho    21499: $as_echo "#define HAVE_REGEX_T_RE_MAGIC 1" >>confdefs.h
1.1       misho    21500: 
                   21501: 
1.1.1.2 ! misho    21502: $as_echo "#define HSREGEX 1" >>confdefs.h
1.1       misho    21503: 
                   21504: 
1.1.1.2 ! misho    21505: $as_echo "#define REGEX 1" >>confdefs.h
1.1       misho    21506: 
                   21507: 
                   21508: 
1.1.1.2 ! misho    21509:     $php_shtool mkdir -p $ext_builddir/regex
        !          21510: 
        !          21511: 
        !          21512: 
        !          21513:   if test "$ext_srcdir/regex" != "/usr/include"; then
        !          21514: 
        !          21515:   if test -z "$ext_srcdir/regex" || echo "$ext_srcdir/regex" | grep '^/' >/dev/null ; then
        !          21516:     ai_p=$ext_srcdir/regex
1.1       misho    21517:   else
                   21518: 
1.1.1.2 ! misho    21519:     ep_dir="`echo $ext_srcdir/regex|$SED 's%/*[^/][^/]*/*$%%'`"
1.1       misho    21520: 
                   21521:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 ! misho    21522:     ai_p="$ep_realdir/`basename \"$ext_srcdir/regex\"`"
1.1       misho    21523:   fi
                   21524: 
                   21525: 
                   21526: 
                   21527:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   21528: 
                   21529:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   21530:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   21531:     eval "INCLUDEPATH$unique=set"
                   21532: 
                   21533:       if test ""; then
                   21534:         INCLUDES="-I$ai_p $INCLUDES"
                   21535:       else
                   21536:         INCLUDES="$INCLUDES -I$ai_p"
                   21537:       fi
                   21538: 
                   21539:   fi
                   21540: 
                   21541:   fi
                   21542: 
1.1.1.2 ! misho    21543: elif test "$REGEX_TYPE" = "system"; then
1.1       misho    21544: 
1.1.1.2 ! misho    21545: $as_echo "#define REGEX 0" >>confdefs.h
1.1       misho    21546: 
1.1.1.2 ! misho    21547:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether field re_magic exists in struct regex_t" >&5
        !          21548: $as_echo_n "checking whether field re_magic exists in struct regex_t... " >&6; }
        !          21549: if ${ac_cv_regex_t_re_magic+:} false; then :
        !          21550:   $as_echo_n "(cached) " >&6
        !          21551: else
1.1       misho    21552: 
1.1.1.2 ! misho    21553:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          21554: /* end confdefs.h.  */
        !          21555: #include <sys/types.h>
        !          21556: #include <regex.h>
        !          21557: int
        !          21558: main ()
        !          21559: {
        !          21560: regex_t rt; rt.re_magic;
        !          21561:   ;
        !          21562:   return 0;
        !          21563: }
        !          21564: _ACEOF
        !          21565: if ac_fn_c_try_compile "$LINENO"; then :
        !          21566:   ac_cv_regex_t_re_magic=yes
        !          21567: else
        !          21568:   ac_cv_regex_t_re_magic=no
        !          21569: fi
        !          21570: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          21571: fi
        !          21572: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_regex_t_re_magic" >&5
        !          21573: $as_echo "$ac_cv_regex_t_re_magic" >&6; }
        !          21574:   if test "$ac_cv_regex_t_re_magic" = "yes"; then
1.1       misho    21575: 
1.1.1.2 ! misho    21576: $as_echo "#define HAVE_REGEX_T_RE_MAGIC  " >>confdefs.h
1.1       misho    21577: 
1.1.1.2 ! misho    21578:   fi
        !          21579: fi
1.1       misho    21580: 
                   21581: 
                   21582: 
1.1.1.2 ! misho    21583: php_enable_libxml=yes
1.1       misho    21584: 
1.1.1.2 ! misho    21585: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable LIBXML support" >&5
        !          21586: $as_echo_n "checking whether to enable LIBXML support... " >&6; }
        !          21587: # Check whether --enable-libxml was given.
        !          21588: if test "${enable_libxml+set}" = set; then :
        !          21589:   enableval=$enable_libxml; PHP_LIBXML=$enableval
        !          21590: else
1.1       misho    21591: 
1.1.1.2 ! misho    21592:   PHP_LIBXML=yes
        !          21593:   test "$PHP_ENABLE_ALL" && PHP_LIBXML=$PHP_ENABLE_ALL
1.1       misho    21594: 
1.1.1.2 ! misho    21595: fi
1.1       misho    21596: 
                   21597: 
                   21598: 
1.1.1.2 ! misho    21599: ext_output="yes, shared"
        !          21600: ext_shared=yes
        !          21601: case $PHP_LIBXML in
        !          21602: shared,*)
        !          21603:   PHP_LIBXML=`echo "$PHP_LIBXML"|$SED 's/^shared,//'`
        !          21604:   ;;
        !          21605: shared)
        !          21606:   PHP_LIBXML=yes
        !          21607:   ;;
        !          21608: no)
        !          21609:   ext_output=no
        !          21610:   ext_shared=no
        !          21611:   ;;
        !          21612: *)
        !          21613:   ext_output=yes
        !          21614:   ext_shared=no
        !          21615:   ;;
        !          21616: esac
1.1       misho    21617: 
                   21618: 
                   21619: 
1.1.1.2 ! misho    21620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
        !          21621: $as_echo "$ext_output" >&6; }
1.1       misho    21622: 
                   21623: 
                   21624: 
                   21625: 
1.1.1.2 ! misho    21626: if test -z "$PHP_LIBXML_DIR"; then
1.1       misho    21627: 
1.1.1.2 ! misho    21628: php_with_libxml_dir=no
1.1       misho    21629: 
1.1.1.2 ! misho    21630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
        !          21631: $as_echo_n "checking libxml2 install dir... " >&6; }
1.1       misho    21632: 
1.1.1.2 ! misho    21633: # Check whether --with-libxml-dir was given.
        !          21634: if test "${with_libxml_dir+set}" = set; then :
        !          21635:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
        !          21636: else
1.1       misho    21637: 
1.1.1.2 ! misho    21638:   PHP_LIBXML_DIR=no
1.1       misho    21639: 
                   21640: 
1.1.1.2 ! misho    21641: fi
1.1       misho    21642: 
                   21643: 
1.1.1.2 ! misho    21644: ext_output=$PHP_LIBXML_DIR
        !          21645: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
        !          21646: $as_echo "$ext_output" >&6; }
1.1       misho    21647: 
                   21648: 
                   21649: 
1.1.1.2 ! misho    21650: fi
1.1       misho    21651: 
1.1.1.2 ! misho    21652: if test "$PHP_LIBXML" != "no"; then
1.1       misho    21653: 
1.1.1.2 ! misho    21654:     ext_shared=no
1.1       misho    21655: 
                   21656: 
1.1.1.2 ! misho    21657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
        !          21658: $as_echo_n "checking for xml2-config path... " >&6; }
        !          21659: if ${ac_cv_php_xml2_config_path+:} false; then :
        !          21660:   $as_echo_n "(cached) " >&6
        !          21661: else
1.1       misho    21662: 
1.1.1.2 ! misho    21663:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
        !          21664:     if test -x "$i/bin/xml2-config"; then
        !          21665:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
        !          21666:       break
        !          21667:     fi
        !          21668:   done
1.1       misho    21669: 
1.1.1.2 ! misho    21670: fi
        !          21671: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
        !          21672: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
1.1       misho    21673: 
1.1.1.2 ! misho    21674:   if test -x "$ac_cv_php_xml2_config_path"; then
        !          21675:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
        !          21676:     libxml_full_version=`$XML2_CONFIG --version`
        !          21677:     ac_IFS=$IFS
        !          21678:     IFS="."
        !          21679:     set $libxml_full_version
        !          21680:     IFS=$ac_IFS
        !          21681:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
        !          21682:     if test "$LIBXML_VERSION" -ge "2006011"; then
        !          21683:       LIBXML_LIBS=`$XML2_CONFIG --libs`
        !          21684:       LIBXML_INCS=`$XML2_CONFIG --cflags`
1.1       misho    21685: 
1.1.1.2 ! misho    21686:   for ac_i in $LIBXML_LIBS; do
        !          21687:     case $ac_i in
        !          21688:     -pthread)
        !          21689:       if test "$ext_shared" = "yes"; then
        !          21690:         LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -pthread"
        !          21691:       else
1.1       misho    21692: 
                   21693: 
1.1.1.2 ! misho    21694:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1       misho    21695: 
1.1.1.2 ! misho    21696:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
        !          21697:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          21698:     eval "EXTRA_LDFLAGS$unique=set"
        !          21699:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
        !          21700:   fi
1.1       misho    21701: 
1.1.1.2 ! misho    21702:       fi
        !          21703:     ;;
        !          21704:     -l*)
        !          21705:       ac_ii=`echo $ac_i|cut -c 3-`
1.1       misho    21706: 
                   21707: 
1.1.1.2 ! misho    21708:   case $ac_ii in
        !          21709:   c|c_r|pthread*) ;;
        !          21710:   *)
        !          21711:     if test "$ext_shared" = "yes"; then
        !          21712:         LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -l$ac_ii"
        !          21713:     else
1.1       misho    21714: 
                   21715: 
1.1.1.2 ! misho    21716:   case $ac_ii in
        !          21717:   c|c_r|pthread*) ;;
        !          21718:   *)
        !          21719:       LIBS="$LIBS -l$ac_ii"
        !          21720:    ;;
1.1       misho    21721:   esac
                   21722: 
                   21723: 
1.1.1.2 ! misho    21724:     fi
        !          21725:    ;;
        !          21726:   esac
1.1       misho    21727: 
                   21728: 
                   21729:     ;;
                   21730:     -L*)
                   21731:       ac_ii=`echo $ac_i|cut -c 3-`
                   21732: 
                   21733:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   21734: 
                   21735:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   21736:     ai_p=$ac_ii
                   21737:   else
                   21738: 
                   21739:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   21740: 
                   21741:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   21742:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   21743:   fi
                   21744: 
                   21745: 
                   21746:       if test "$ext_shared" = "yes"; then
                   21747:         LIBXML_SHARED_LIBADD="-L$ai_p $LIBXML_SHARED_LIBADD"
                   21748:         test -n "$ld_runpath_switch" && LIBXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $LIBXML_SHARED_LIBADD"
                   21749:       else
                   21750: 
                   21751: 
                   21752: 
                   21753:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   21754: 
                   21755:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   21756:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   21757:     eval "LIBPATH$unique=set"
                   21758: 
                   21759:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   21760:     LDFLAGS="$LDFLAGS -L$ai_p"
                   21761:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   21762: 
                   21763:   fi
                   21764: 
                   21765: 
                   21766:       fi
                   21767: 
                   21768:   fi
                   21769: 
                   21770:     ;;
                   21771:     esac
                   21772:   done
                   21773: 
                   21774: 
                   21775:   for ac_i in $LIBXML_INCS; do
                   21776:     case $ac_i in
                   21777:     -I*)
                   21778:       ac_ii=`echo $ac_i|cut -c 3-`
                   21779: 
                   21780:   if test "$ac_ii" != "/usr/include"; then
                   21781: 
                   21782:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   21783:     ai_p=$ac_ii
                   21784:   else
                   21785: 
                   21786:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   21787: 
                   21788:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   21789:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   21790:   fi
                   21791: 
                   21792: 
                   21793: 
                   21794:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   21795: 
                   21796:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   21797:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   21798:     eval "INCLUDEPATH$unique=set"
                   21799: 
                   21800:       if test ""; then
                   21801:         INCLUDES="-I$ai_p $INCLUDES"
                   21802:       else
                   21803:         INCLUDES="$INCLUDES -I$ai_p"
                   21804:       fi
                   21805: 
                   21806:   fi
                   21807: 
                   21808:   fi
                   21809: 
                   21810:     ;;
                   21811:     esac
                   21812:   done
                   21813: 
                   21814: 
                   21815:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
                   21816: $as_echo_n "checking whether libxml build works... " >&6; }
                   21817: if ${php_cv_libxml_build_works+:} false; then :
                   21818:   $as_echo_n "(cached) " >&6
                   21819: else
                   21820: 
                   21821: 
                   21822:   old_LIBS=$LIBS
                   21823:   LIBS="
                   21824:           $LIBXML_SHARED_LIBADD
                   21825:          $LIBS"
                   21826:   if test "$cross_compiling" = yes; then :
                   21827: 
                   21828:     LIBS=$old_LIBS
                   21829: 
                   21830: else
                   21831:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   21832: /* end confdefs.h.  */
                   21833: 
                   21834: 
                   21835:     char xmlInitParser();
                   21836:     int main() {
                   21837:       xmlInitParser();
                   21838:       return 0;
                   21839:     }
                   21840: 
                   21841: _ACEOF
                   21842: if ac_fn_c_try_run "$LINENO"; then :
                   21843: 
                   21844:     LIBS=$old_LIBS
                   21845: 
                   21846:           php_cv_libxml_build_works=yes
                   21847: 
                   21848: 
                   21849: else
                   21850: 
                   21851:     LIBS=$old_LIBS
                   21852: 
                   21853:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   21854: $as_echo "no" >&6; }
                   21855:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
                   21856: 
                   21857: 
                   21858: fi
                   21859: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   21860:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   21861: fi
                   21862: 
                   21863: 
                   21864: 
                   21865: fi
                   21866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
                   21867: $as_echo "$php_cv_libxml_build_works" >&6; }
                   21868:       if test "$php_cv_libxml_build_works" = "yes"; then
                   21869: 
                   21870: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
                   21871: 
                   21872:       fi
                   21873: 
                   21874: 
                   21875: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
                   21876: 
                   21877: 
                   21878:   ext_builddir=ext/libxml
                   21879:   ext_srcdir=$abs_srcdir/ext/libxml
                   21880: 
                   21881:   ac_extra=
                   21882: 
                   21883:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   21884:     PHP_LIBXML_SHARED=no
                   21885: 
                   21886: 
                   21887:   case ext/libxml in
                   21888:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   21889:   /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   21890:   *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   21891:   esac
                   21892: 
                   21893: 
                   21894: 
                   21895:   b_c_pre=$php_c_pre
                   21896:   b_cxx_pre=$php_cxx_pre
                   21897:   b_c_meta=$php_c_meta
                   21898:   b_cxx_meta=$php_cxx_meta
                   21899:   b_c_post=$php_c_post
                   21900:   b_cxx_post=$php_cxx_post
                   21901:   b_lo=$php_lo
                   21902: 
                   21903: 
                   21904:   old_IFS=$IFS
                   21905:   for ac_src in libxml.c; do
                   21906: 
                   21907:       IFS=.
                   21908:       set $ac_src
                   21909:       ac_obj=$1
                   21910:       IFS=$old_IFS
                   21911: 
                   21912:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   21913: 
                   21914:       case $ac_src in
                   21915:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21916:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21917:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21918:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   21919:       esac
                   21920: 
                   21921:     cat >>Makefile.objects<<EOF
                   21922: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   21923:        $ac_comp
                   21924: EOF
                   21925:   done
                   21926: 
                   21927: 
                   21928:     EXT_STATIC="$EXT_STATIC libxml"
                   21929:     if test "$ext_shared" != "nocli"; then
                   21930:       EXT_CLI_STATIC="$EXT_CLI_STATIC libxml"
                   21931:     fi
                   21932:   else
                   21933:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   21934:       PHP_LIBXML_SHARED=yes
                   21935: 
                   21936:   case ext/libxml in
                   21937:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   21938:   /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   21939:   *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   21940:   esac
                   21941: 
                   21942: 
                   21943: 
                   21944:   b_c_pre=$shared_c_pre
                   21945:   b_cxx_pre=$shared_cxx_pre
                   21946:   b_c_meta=$shared_c_meta
                   21947:   b_cxx_meta=$shared_cxx_meta
                   21948:   b_c_post=$shared_c_post
                   21949:   b_cxx_post=$shared_cxx_post
                   21950:   b_lo=$shared_lo
                   21951: 
                   21952: 
                   21953:   old_IFS=$IFS
                   21954:   for ac_src in libxml.c; do
                   21955: 
                   21956:       IFS=.
                   21957:       set $ac_src
                   21958:       ac_obj=$1
                   21959:       IFS=$old_IFS
                   21960: 
                   21961:       shared_objects_libxml="$shared_objects_libxml $ac_bdir$ac_obj.lo"
                   21962: 
                   21963:       case $ac_src in
                   21964:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21965:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21966:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   21967:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   21968:       esac
                   21969: 
                   21970:     cat >>Makefile.objects<<EOF
                   21971: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   21972:        $ac_comp
                   21973: EOF
                   21974:   done
                   21975: 
                   21976:       case $host_alias in
                   21977:         *netware*)
                   21978: 
                   21979:   install_modules="install-modules"
                   21980: 
                   21981:   case $host_alias in
                   21982:     *aix*)
                   21983:       suffix=so
                   21984:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phplibxml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) $(PHPLIBXML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phplibxml.so '$ext_builddir'/phplibxml.so'
                   21985:       ;;
                   21986:     *netware*)
                   21987:       suffix=nlm
                   21988:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) -L$(top_builddir)/netware -lphp5lib $(LIBXML_SHARED_LIBADD)'
                   21989:       ;;
                   21990:     *)
                   21991:       suffix=la
                   21992:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) $(PHPLIBXML_SHARED_LIBADD)'
                   21993:       ;;
                   21994:   esac
                   21995: 
                   21996:   if test "x" = "xyes"; then
                   21997:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phplibxml.$suffix"
                   21998:   else
                   21999:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phplibxml.$suffix"
                   22000:   fi
                   22001: 
                   22002:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_libxml"
                   22003: 
                   22004:   cat >>Makefile.objects<<EOF
                   22005: \$(phplibdir)/phplibxml.$suffix: $ext_builddir/phplibxml.$suffix
                   22006:        \$(LIBTOOL) --mode=install cp $ext_builddir/phplibxml.$suffix \$(phplibdir)
                   22007: 
                   22008: $ext_builddir/phplibxml.$suffix: \$(shared_objects_libxml) \$(PHPLIBXML_SHARED_DEPENDENCIES)
                   22009:        $link_cmd
                   22010: 
                   22011: EOF
                   22012: 
                   22013:           ;;
                   22014:         *)
                   22015: 
                   22016:   install_modules="install-modules"
                   22017: 
                   22018:   case $host_alias in
                   22019:     *aix*)
                   22020:       suffix=so
                   22021:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/libxml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) $(LIBXML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/libxml.so '$ext_builddir'/libxml.so'
                   22022:       ;;
                   22023:     *netware*)
                   22024:       suffix=nlm
                   22025:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) -L$(top_builddir)/netware -lphp5lib $(XML_SHARED_LIBADD)'
                   22026:       ;;
                   22027:     *)
                   22028:       suffix=la
                   22029:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) $(LIBXML_SHARED_LIBADD)'
                   22030:       ;;
                   22031:   esac
                   22032: 
                   22033:   if test "x" = "xyes"; then
                   22034:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/libxml.$suffix"
                   22035:   else
                   22036:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/libxml.$suffix"
                   22037:   fi
                   22038: 
                   22039:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_libxml"
                   22040: 
                   22041:   cat >>Makefile.objects<<EOF
                   22042: \$(phplibdir)/libxml.$suffix: $ext_builddir/libxml.$suffix
                   22043:        \$(LIBTOOL) --mode=install cp $ext_builddir/libxml.$suffix \$(phplibdir)
                   22044: 
                   22045: $ext_builddir/libxml.$suffix: \$(shared_objects_libxml) \$(LIBXML_SHARED_DEPENDENCIES)
                   22046:        $link_cmd
                   22047: 
                   22048: EOF
                   22049: 
                   22050:           ;;
                   22051:       esac
                   22052: 
                   22053: cat >>confdefs.h <<_ACEOF
                   22054: #define COMPILE_DL_LIBXML 1
                   22055: _ACEOF
                   22056: 
                   22057:     fi
                   22058:   fi
                   22059: 
                   22060:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   22061:     PHP_LIBXML_SHARED=no
                   22062: 
                   22063: 
                   22064:   case ext/libxml in
                   22065:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   22066:   /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   22067:   *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   22068:   esac
                   22069: 
                   22070: 
                   22071: 
                   22072:   b_c_pre=$php_c_pre
                   22073:   b_cxx_pre=$php_cxx_pre
                   22074:   b_c_meta=$php_c_meta
                   22075:   b_cxx_meta=$php_cxx_meta
                   22076:   b_c_post=$php_c_post
                   22077:   b_cxx_post=$php_cxx_post
                   22078:   b_lo=$php_lo
                   22079: 
                   22080: 
                   22081:   old_IFS=$IFS
                   22082:   for ac_src in libxml.c; do
                   22083: 
                   22084:       IFS=.
                   22085:       set $ac_src
                   22086:       ac_obj=$1
                   22087:       IFS=$old_IFS
                   22088: 
1.1.1.2 ! misho    22089:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    22090: 
                   22091:       case $ac_src in
                   22092:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22093:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22094:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22095:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   22096:       esac
                   22097: 
                   22098:     cat >>Makefile.objects<<EOF
                   22099: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   22100:        $ac_comp
                   22101: EOF
                   22102:   done
                   22103: 
                   22104: 
                   22105: 
                   22106: 
                   22107:   case ext/libxml in
                   22108:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   22109:   /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   22110:   *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   22111:   esac
                   22112: 
                   22113: 
                   22114: 
                   22115:   b_c_pre=$php_c_pre
                   22116:   b_cxx_pre=$php_cxx_pre
                   22117:   b_c_meta=$php_c_meta
                   22118:   b_cxx_meta=$php_cxx_meta
                   22119:   b_c_post=$php_c_post
                   22120:   b_cxx_post=$php_cxx_post
                   22121:   b_lo=$php_lo
                   22122: 
                   22123: 
                   22124:   old_IFS=$IFS
                   22125:   for ac_src in libxml.c; do
                   22126: 
                   22127:       IFS=.
                   22128:       set $ac_src
                   22129:       ac_obj=$1
                   22130:       IFS=$old_IFS
                   22131: 
1.1.1.2 ! misho    22132:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    22133: 
                   22134:       case $ac_src in
                   22135:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22136:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22137:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22138:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   22139:       esac
                   22140: 
                   22141:     cat >>Makefile.objects<<EOF
                   22142: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   22143:        $ac_comp
                   22144: EOF
                   22145:   done
                   22146: 
                   22147: 
                   22148: 
                   22149: 
                   22150:   case ext/libxml in
                   22151:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   22152:   /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   22153:   *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   22154:   esac
                   22155: 
                   22156: 
                   22157: 
                   22158:   b_c_pre=$php_c_pre
                   22159:   b_cxx_pre=$php_cxx_pre
                   22160:   b_c_meta=$php_c_meta
                   22161:   b_cxx_meta=$php_cxx_meta
                   22162:   b_c_post=$php_c_post
                   22163:   b_cxx_post=$php_cxx_post
                   22164:   b_lo=$php_lo
                   22165: 
                   22166: 
                   22167:   old_IFS=$IFS
                   22168:   for ac_src in libxml.c; do
                   22169: 
                   22170:       IFS=.
                   22171:       set $ac_src
                   22172:       ac_obj=$1
                   22173:       IFS=$old_IFS
                   22174: 
1.1.1.2 ! misho    22175:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    22176: 
                   22177:       case $ac_src in
                   22178:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22179:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22180:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22181:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   22182:       esac
                   22183: 
                   22184:     cat >>Makefile.objects<<EOF
                   22185: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   22186:        $ac_comp
                   22187: EOF
                   22188:   done
                   22189: 
                   22190: 
                   22191:     EXT_CLI_STATIC="$EXT_CLI_STATIC libxml"
                   22192:   fi
                   22193: 
                   22194: 
                   22195:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   22196: 
                   22197: 
                   22198: 
                   22199:   if test "$ext_builddir" = "."; then
                   22200:     PHP_PECL_EXTENSION=libxml
                   22201: 
                   22202:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   22203: 
                   22204:   fi
                   22205: 
                   22206: 
                   22207: 
                   22208:     for header_file in ext/libxml/php_libxml.h; do
                   22209: 
                   22210: 
                   22211:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
                   22212: 
                   22213:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   22214:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   22215:     eval "INSTALLHEADERS$unique=set"
                   22216: 
                   22217:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
                   22218: 
                   22219:   fi
                   22220: 
                   22221:     done
                   22222: 
                   22223: 
                   22224: 
                   22225:     else
                   22226:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
                   22227:     fi
                   22228: else
                   22229:     as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
                   22230: 
                   22231:   fi
                   22232: 
                   22233: fi
                   22234: 
                   22235: 
                   22236: 
                   22237: php_with_openssl=no
                   22238: 
                   22239: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL support" >&5
                   22240: $as_echo_n "checking for OpenSSL support... " >&6; }
                   22241: 
                   22242: # Check whether --with-openssl was given.
                   22243: if test "${with_openssl+set}" = set; then :
                   22244:   withval=$with_openssl; PHP_OPENSSL=$withval
                   22245: else
                   22246: 
                   22247:   PHP_OPENSSL=no
                   22248:   test "$PHP_ENABLE_ALL" && PHP_OPENSSL=$PHP_ENABLE_ALL
                   22249: 
                   22250: fi
                   22251: 
                   22252: 
                   22253: 
                   22254: ext_output="yes, shared"
                   22255: ext_shared=yes
                   22256: case $PHP_OPENSSL in
                   22257: shared,*)
                   22258:   PHP_OPENSSL=`echo "$PHP_OPENSSL"|$SED 's/^shared,//'`
                   22259:   ;;
                   22260: shared)
                   22261:   PHP_OPENSSL=yes
                   22262:   ;;
                   22263: no)
                   22264:   ext_output=no
                   22265:   ext_shared=no
                   22266:   ;;
                   22267: *)
                   22268:   ext_output=yes
                   22269:   ext_shared=no
                   22270:   ;;
                   22271: esac
                   22272: 
                   22273: 
                   22274: 
                   22275: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   22276: $as_echo "$ext_output" >&6; }
                   22277: 
                   22278: 
                   22279: 
                   22280: 
                   22281: 
                   22282: php_with_kerberos=no
                   22283: 
                   22284: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos support" >&5
                   22285: $as_echo_n "checking for Kerberos support... " >&6; }
                   22286: 
                   22287: # Check whether --with-kerberos was given.
                   22288: if test "${with_kerberos+set}" = set; then :
                   22289:   withval=$with_kerberos; PHP_KERBEROS=$withval
                   22290: else
                   22291: 
                   22292:   PHP_KERBEROS=no
                   22293: 
                   22294: 
                   22295: fi
                   22296: 
                   22297: 
                   22298: ext_output=$PHP_KERBEROS
                   22299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   22300: $as_echo "$ext_output" >&6; }
                   22301: 
                   22302: 
                   22303: 
                   22304: 
                   22305: if test "$PHP_OPENSSL" != "no"; then
                   22306: 
                   22307:   ext_builddir=ext/openssl
                   22308:   ext_srcdir=$abs_srcdir/ext/openssl
                   22309: 
                   22310:   ac_extra=
                   22311: 
                   22312:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   22313:     PHP_OPENSSL_SHARED=no
                   22314: 
                   22315: 
                   22316:   case ext/openssl in
                   22317:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   22318:   /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   22319:   *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   22320:   esac
                   22321: 
                   22322: 
                   22323: 
                   22324:   b_c_pre=$php_c_pre
                   22325:   b_cxx_pre=$php_cxx_pre
                   22326:   b_c_meta=$php_c_meta
                   22327:   b_cxx_meta=$php_cxx_meta
                   22328:   b_c_post=$php_c_post
                   22329:   b_cxx_post=$php_cxx_post
                   22330:   b_lo=$php_lo
                   22331: 
                   22332: 
                   22333:   old_IFS=$IFS
                   22334:   for ac_src in openssl.c xp_ssl.c; do
                   22335: 
                   22336:       IFS=.
                   22337:       set $ac_src
                   22338:       ac_obj=$1
                   22339:       IFS=$old_IFS
                   22340: 
                   22341:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   22342: 
                   22343:       case $ac_src in
                   22344:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22345:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22346:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22347:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   22348:       esac
                   22349: 
                   22350:     cat >>Makefile.objects<<EOF
                   22351: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   22352:        $ac_comp
                   22353: EOF
                   22354:   done
                   22355: 
                   22356: 
                   22357:     EXT_STATIC="$EXT_STATIC openssl"
                   22358:     if test "$ext_shared" != "nocli"; then
                   22359:       EXT_CLI_STATIC="$EXT_CLI_STATIC openssl"
                   22360:     fi
                   22361:   else
                   22362:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   22363:       PHP_OPENSSL_SHARED=yes
                   22364: 
                   22365:   case ext/openssl in
                   22366:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   22367:   /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   22368:   *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   22369:   esac
                   22370: 
                   22371: 
                   22372: 
                   22373:   b_c_pre=$shared_c_pre
                   22374:   b_cxx_pre=$shared_cxx_pre
                   22375:   b_c_meta=$shared_c_meta
                   22376:   b_cxx_meta=$shared_cxx_meta
                   22377:   b_c_post=$shared_c_post
                   22378:   b_cxx_post=$shared_cxx_post
                   22379:   b_lo=$shared_lo
                   22380: 
                   22381: 
                   22382:   old_IFS=$IFS
                   22383:   for ac_src in openssl.c xp_ssl.c; do
                   22384: 
                   22385:       IFS=.
                   22386:       set $ac_src
                   22387:       ac_obj=$1
                   22388:       IFS=$old_IFS
                   22389: 
                   22390:       shared_objects_openssl="$shared_objects_openssl $ac_bdir$ac_obj.lo"
                   22391: 
                   22392:       case $ac_src in
                   22393:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22394:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22395:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22396:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   22397:       esac
                   22398: 
                   22399:     cat >>Makefile.objects<<EOF
                   22400: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   22401:        $ac_comp
                   22402: EOF
                   22403:   done
                   22404: 
                   22405:       case $host_alias in
                   22406:         *netware*)
                   22407: 
                   22408:   install_modules="install-modules"
                   22409: 
                   22410:   case $host_alias in
                   22411:     *aix*)
                   22412:       suffix=so
                   22413:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpopenssl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) $(PHPOPENSSL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpopenssl.so '$ext_builddir'/phpopenssl.so'
                   22414:       ;;
                   22415:     *netware*)
                   22416:       suffix=nlm
                   22417:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) -L$(top_builddir)/netware -lphp5lib $(OPENSSL_SHARED_LIBADD)'
                   22418:       ;;
                   22419:     *)
                   22420:       suffix=la
                   22421:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) $(PHPOPENSSL_SHARED_LIBADD)'
                   22422:       ;;
                   22423:   esac
                   22424: 
                   22425:   if test "x" = "xyes"; then
                   22426:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpopenssl.$suffix"
                   22427:   else
                   22428:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpopenssl.$suffix"
                   22429:   fi
                   22430: 
                   22431:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_openssl"
                   22432: 
                   22433:   cat >>Makefile.objects<<EOF
                   22434: \$(phplibdir)/phpopenssl.$suffix: $ext_builddir/phpopenssl.$suffix
                   22435:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpopenssl.$suffix \$(phplibdir)
                   22436: 
                   22437: $ext_builddir/phpopenssl.$suffix: \$(shared_objects_openssl) \$(PHPOPENSSL_SHARED_DEPENDENCIES)
                   22438:        $link_cmd
                   22439: 
                   22440: EOF
                   22441: 
                   22442:           ;;
                   22443:         *)
                   22444: 
                   22445:   install_modules="install-modules"
                   22446: 
                   22447:   case $host_alias in
                   22448:     *aix*)
                   22449:       suffix=so
                   22450:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/openssl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) $(OPENSSL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/openssl.so '$ext_builddir'/openssl.so'
                   22451:       ;;
                   22452:     *netware*)
                   22453:       suffix=nlm
                   22454:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) -L$(top_builddir)/netware -lphp5lib $(NSSL_SHARED_LIBADD)'
                   22455:       ;;
                   22456:     *)
                   22457:       suffix=la
                   22458:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) $(OPENSSL_SHARED_LIBADD)'
                   22459:       ;;
                   22460:   esac
                   22461: 
                   22462:   if test "x" = "xyes"; then
                   22463:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/openssl.$suffix"
                   22464:   else
                   22465:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/openssl.$suffix"
                   22466:   fi
                   22467: 
                   22468:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_openssl"
                   22469: 
                   22470:   cat >>Makefile.objects<<EOF
                   22471: \$(phplibdir)/openssl.$suffix: $ext_builddir/openssl.$suffix
                   22472:        \$(LIBTOOL) --mode=install cp $ext_builddir/openssl.$suffix \$(phplibdir)
                   22473: 
                   22474: $ext_builddir/openssl.$suffix: \$(shared_objects_openssl) \$(OPENSSL_SHARED_DEPENDENCIES)
                   22475:        $link_cmd
                   22476: 
                   22477: EOF
                   22478: 
                   22479:           ;;
                   22480:       esac
                   22481: 
                   22482: cat >>confdefs.h <<_ACEOF
                   22483: #define COMPILE_DL_OPENSSL 1
                   22484: _ACEOF
                   22485: 
                   22486:     fi
                   22487:   fi
                   22488: 
                   22489:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   22490:     PHP_OPENSSL_SHARED=no
                   22491: 
                   22492: 
                   22493:   case ext/openssl in
                   22494:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   22495:   /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   22496:   *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   22497:   esac
                   22498: 
                   22499: 
                   22500: 
                   22501:   b_c_pre=$php_c_pre
                   22502:   b_cxx_pre=$php_cxx_pre
                   22503:   b_c_meta=$php_c_meta
                   22504:   b_cxx_meta=$php_cxx_meta
                   22505:   b_c_post=$php_c_post
                   22506:   b_cxx_post=$php_cxx_post
                   22507:   b_lo=$php_lo
                   22508: 
                   22509: 
                   22510:   old_IFS=$IFS
                   22511:   for ac_src in openssl.c xp_ssl.c; do
                   22512: 
                   22513:       IFS=.
                   22514:       set $ac_src
                   22515:       ac_obj=$1
                   22516:       IFS=$old_IFS
                   22517: 
1.1.1.2 ! misho    22518:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    22519: 
                   22520:       case $ac_src in
                   22521:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22522:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22523:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22524:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   22525:       esac
                   22526: 
                   22527:     cat >>Makefile.objects<<EOF
                   22528: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   22529:        $ac_comp
                   22530: EOF
                   22531:   done
                   22532: 
                   22533: 
                   22534: 
                   22535: 
                   22536:   case ext/openssl in
                   22537:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   22538:   /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   22539:   *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   22540:   esac
                   22541: 
                   22542: 
                   22543: 
                   22544:   b_c_pre=$php_c_pre
                   22545:   b_cxx_pre=$php_cxx_pre
                   22546:   b_c_meta=$php_c_meta
                   22547:   b_cxx_meta=$php_cxx_meta
                   22548:   b_c_post=$php_c_post
                   22549:   b_cxx_post=$php_cxx_post
                   22550:   b_lo=$php_lo
                   22551: 
                   22552: 
                   22553:   old_IFS=$IFS
                   22554:   for ac_src in openssl.c xp_ssl.c; do
                   22555: 
                   22556:       IFS=.
                   22557:       set $ac_src
                   22558:       ac_obj=$1
                   22559:       IFS=$old_IFS
                   22560: 
1.1.1.2 ! misho    22561:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    22562: 
                   22563:       case $ac_src in
                   22564:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22565:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22566:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22567:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   22568:       esac
                   22569: 
                   22570:     cat >>Makefile.objects<<EOF
                   22571: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   22572:        $ac_comp
                   22573: EOF
                   22574:   done
                   22575: 
                   22576: 
                   22577: 
                   22578: 
                   22579:   case ext/openssl in
                   22580:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   22581:   /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   22582:   *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   22583:   esac
                   22584: 
                   22585: 
                   22586: 
                   22587:   b_c_pre=$php_c_pre
                   22588:   b_cxx_pre=$php_cxx_pre
                   22589:   b_c_meta=$php_c_meta
                   22590:   b_cxx_meta=$php_cxx_meta
                   22591:   b_c_post=$php_c_post
                   22592:   b_cxx_post=$php_cxx_post
                   22593:   b_lo=$php_lo
                   22594: 
                   22595: 
                   22596:   old_IFS=$IFS
                   22597:   for ac_src in openssl.c xp_ssl.c; do
                   22598: 
                   22599:       IFS=.
                   22600:       set $ac_src
                   22601:       ac_obj=$1
                   22602:       IFS=$old_IFS
                   22603: 
1.1.1.2 ! misho    22604:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    22605: 
                   22606:       case $ac_src in
                   22607:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22608:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22609:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   22610:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   22611:       esac
                   22612: 
                   22613:     cat >>Makefile.objects<<EOF
                   22614: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   22615:        $ac_comp
                   22616: EOF
                   22617:   done
                   22618: 
                   22619: 
                   22620:     EXT_CLI_STATIC="$EXT_CLI_STATIC openssl"
                   22621:   fi
                   22622: 
                   22623: 
                   22624:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   22625: 
                   22626: 
                   22627: 
                   22628:   if test "$ext_builddir" = "."; then
                   22629:     PHP_PECL_EXTENSION=openssl
                   22630: 
                   22631:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   22632: 
                   22633:   fi
                   22634: 
                   22635: 
                   22636:   PHP_VAR_SUBST="$PHP_VAR_SUBST OPENSSL_SHARED_LIBADD"
                   22637: 
                   22638: 
                   22639:   if test "$PHP_KERBEROS" != "no"; then
                   22640: 
                   22641:   found_kerberos=no
                   22642:   unset KERBEROS_CFLAGS
                   22643:   unset KERBEROS_LIBS
                   22644: 
                   22645:     if test -z "$KRB5_CONFIG"; then
                   22646:     # Extract the first word of "krb5-config", so it can be a program name with args.
                   22647: set dummy krb5-config; ac_word=$2
                   22648: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   22649: $as_echo_n "checking for $ac_word... " >&6; }
                   22650: if ${ac_cv_path_KRB5_CONFIG+:} false; then :
                   22651:   $as_echo_n "(cached) " >&6
                   22652: else
                   22653:   case $KRB5_CONFIG in
                   22654:   [\\/]* | ?:[\\/]*)
                   22655:   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
                   22656:   ;;
                   22657:   *)
                   22658:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   22659: as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin"
                   22660: for as_dir in $as_dummy
                   22661: do
                   22662:   IFS=$as_save_IFS
                   22663:   test -z "$as_dir" && as_dir=.
                   22664:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    22665:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    22666:     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
                   22667:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   22668:     break 2
                   22669:   fi
                   22670: done
                   22671:   done
                   22672: IFS=$as_save_IFS
                   22673: 
                   22674:   test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
                   22675:   ;;
                   22676: esac
                   22677: fi
                   22678: KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
                   22679: if test -n "$KRB5_CONFIG"; then
                   22680:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
                   22681: $as_echo "$KRB5_CONFIG" >&6; }
                   22682: else
                   22683:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   22684: $as_echo "no" >&6; }
                   22685: fi
                   22686: 
                   22687: 
                   22688:   fi
                   22689: 
                   22690:     if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then
                   22691:     KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi`
                   22692:     KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi`
                   22693: 
                   22694:     if test -n "$KERBEROS_LIBS"; then
                   22695:       found_kerberos=yes
                   22696: 
                   22697:   for ac_i in $KERBEROS_LIBS; do
                   22698:     case $ac_i in
                   22699:     -pthread)
                   22700:       if test "$ext_shared" = "yes"; then
                   22701:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread"
                   22702:       else
                   22703: 
                   22704: 
                   22705:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   22706: 
                   22707:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   22708:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   22709:     eval "EXTRA_LDFLAGS$unique=set"
                   22710:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   22711:   fi
                   22712: 
                   22713:       fi
                   22714:     ;;
                   22715:     -l*)
                   22716:       ac_ii=`echo $ac_i|cut -c 3-`
                   22717: 
                   22718: 
                   22719:   case $ac_ii in
                   22720:   c|c_r|pthread*) ;;
                   22721:   *)
                   22722:     if test "$ext_shared" = "yes"; then
                   22723:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii"
                   22724:     else
                   22725: 
                   22726: 
                   22727:   case $ac_ii in
                   22728:   c|c_r|pthread*) ;;
                   22729:   *)
                   22730:       LIBS="$LIBS -l$ac_ii"
                   22731:    ;;
                   22732:   esac
                   22733: 
                   22734: 
                   22735:     fi
                   22736:    ;;
                   22737:   esac
                   22738: 
                   22739: 
                   22740:     ;;
                   22741:     -L*)
                   22742:       ac_ii=`echo $ac_i|cut -c 3-`
                   22743: 
                   22744:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   22745: 
                   22746:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   22747:     ai_p=$ac_ii
                   22748:   else
                   22749: 
                   22750:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   22751: 
                   22752:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   22753:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   22754:   fi
                   22755: 
                   22756: 
                   22757:       if test "$ext_shared" = "yes"; then
                   22758:         OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
                   22759:         test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
                   22760:       else
                   22761: 
                   22762: 
                   22763: 
                   22764:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   22765: 
                   22766:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   22767:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   22768:     eval "LIBPATH$unique=set"
                   22769: 
                   22770:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   22771:     LDFLAGS="$LDFLAGS -L$ai_p"
                   22772:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   22773: 
                   22774:   fi
                   22775: 
                   22776: 
                   22777:       fi
                   22778: 
                   22779:   fi
                   22780: 
                   22781:     ;;
                   22782:     esac
                   22783:   done
                   22784: 
                   22785: 
                   22786:   for ac_i in $KERBEROS_CFLAGS; do
                   22787:     case $ac_i in
                   22788:     -I*)
                   22789:       ac_ii=`echo $ac_i|cut -c 3-`
                   22790: 
                   22791:   if test "$ac_ii" != "/usr/include"; then
                   22792: 
                   22793:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   22794:     ai_p=$ac_ii
                   22795:   else
                   22796: 
                   22797:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   22798: 
                   22799:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   22800:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   22801:   fi
                   22802: 
                   22803: 
                   22804: 
                   22805:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   22806: 
                   22807:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   22808:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   22809:     eval "INCLUDEPATH$unique=set"
                   22810: 
                   22811:       if test ""; then
                   22812:         INCLUDES="-I$ai_p $INCLUDES"
                   22813:       else
                   22814:         INCLUDES="$INCLUDES -I$ai_p"
                   22815:       fi
                   22816: 
                   22817:   fi
                   22818: 
                   22819:   fi
                   22820: 
                   22821:     ;;
                   22822:     esac
                   22823:   done
                   22824: 
                   22825:     fi
                   22826:   fi
                   22827: 
                   22828:     if test "$found_kerberos" = "no"; then
                   22829: 
                   22830:     if test "$PHP_KERBEROS" = "yes"; then
                   22831:       PHP_KERBEROS="/usr/kerberos /usr/local /usr"
                   22832:     fi
                   22833: 
                   22834:     for i in $PHP_KERBEROS; do
                   22835:       if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then
                   22836:         PHP_KERBEROS_DIR=$i
                   22837:         break
                   22838:       fi
                   22839:     done
                   22840: 
                   22841:     if test "$PHP_KERBEROS_DIR"; then
                   22842:       found_kerberos=yes
                   22843: 
                   22844:   if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   22845: 
                   22846:   if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   22847:     ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR
                   22848:   else
                   22849: 
                   22850:     ep_dir="`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   22851: 
                   22852:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   22853:     ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/$PHP_LIBDIR\"`"
                   22854:   fi
                   22855: 
                   22856: 
                   22857:       if test "$ext_shared" = "yes"; then
                   22858:         OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
                   22859:         test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
                   22860:       else
                   22861: 
                   22862: 
                   22863: 
                   22864:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   22865: 
                   22866:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   22867:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   22868:     eval "LIBPATH$unique=set"
                   22869: 
                   22870:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   22871:     LDFLAGS="$LDFLAGS -L$ai_p"
                   22872:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   22873: 
                   22874:   fi
                   22875: 
                   22876: 
                   22877:       fi
                   22878: 
                   22879:   fi
                   22880: 
                   22881: 
                   22882: 
                   22883:   case gssapi_krb5 in
                   22884:   c|c_r|pthread*) ;;
                   22885:   *)
                   22886:     if test "$ext_shared" = "yes"; then
                   22887:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lgssapi_krb5"
                   22888:     else
                   22889: 
                   22890: 
                   22891:   case gssapi_krb5 in
                   22892:   c|c_r|pthread*) ;;
                   22893:   *)
                   22894:       LIBS="$LIBS -lgssapi_krb5"
                   22895:    ;;
                   22896:   esac
                   22897: 
                   22898: 
                   22899:     fi
                   22900:    ;;
                   22901:   esac
                   22902: 
                   22903: 
                   22904: 
                   22905: 
                   22906:   case krb5 in
                   22907:   c|c_r|pthread*) ;;
                   22908:   *)
                   22909:     if test "$ext_shared" = "yes"; then
                   22910:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lkrb5"
                   22911:     else
                   22912: 
                   22913: 
                   22914:   case krb5 in
                   22915:   c|c_r|pthread*) ;;
                   22916:   *)
                   22917:       LIBS="$LIBS -lkrb5"
                   22918:    ;;
                   22919:   esac
                   22920: 
                   22921: 
                   22922:     fi
                   22923:    ;;
                   22924:   esac
                   22925: 
                   22926: 
                   22927: 
                   22928: 
                   22929:   case k5crypto in
                   22930:   c|c_r|pthread*) ;;
                   22931:   *)
                   22932:     if test "$ext_shared" = "yes"; then
                   22933:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lk5crypto"
                   22934:     else
                   22935: 
                   22936: 
                   22937:   case k5crypto in
                   22938:   c|c_r|pthread*) ;;
                   22939:   *)
                   22940:       LIBS="$LIBS -lk5crypto"
                   22941:    ;;
                   22942:   esac
                   22943: 
                   22944: 
                   22945:     fi
                   22946:    ;;
                   22947:   esac
                   22948: 
                   22949: 
                   22950: 
                   22951: 
                   22952:   case com_err in
                   22953:   c|c_r|pthread*) ;;
                   22954:   *)
                   22955:     if test "$ext_shared" = "yes"; then
                   22956:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lcom_err"
                   22957:     else
                   22958: 
                   22959: 
                   22960:   case com_err in
                   22961:   c|c_r|pthread*) ;;
                   22962:   *)
                   22963:       LIBS="$LIBS -lcom_err"
                   22964:    ;;
                   22965:   esac
                   22966: 
                   22967: 
                   22968:     fi
                   22969:    ;;
                   22970:   esac
                   22971: 
                   22972: 
                   22973: 
                   22974:   if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then
                   22975: 
                   22976:   if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then
                   22977:     ai_p=$PHP_KERBEROS_DIR/include
                   22978:   else
                   22979: 
                   22980:     ep_dir="`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   22981: 
                   22982:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   22983:     ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/include\"`"
                   22984:   fi
                   22985: 
                   22986: 
                   22987: 
                   22988:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   22989: 
                   22990:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   22991:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   22992:     eval "INCLUDEPATH$unique=set"
                   22993: 
                   22994:       if test ""; then
                   22995:         INCLUDES="-I$ai_p $INCLUDES"
                   22996:       else
                   22997:         INCLUDES="$INCLUDES -I$ai_p"
                   22998:       fi
                   22999: 
                   23000:   fi
                   23001: 
                   23002:   fi
                   23003: 
                   23004:     fi
                   23005:   fi
                   23006: 
                   23007:   if test "$found_kerberos" = "yes"; then
                   23008: :
                   23009: 
                   23010:   fi
                   23011: 
                   23012:   fi
                   23013: 
                   23014:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSA_get_default_method in -lssl" >&5
                   23015: $as_echo_n "checking for DSA_get_default_method in -lssl... " >&6; }
                   23016: if ${ac_cv_lib_ssl_DSA_get_default_method+:} false; then :
                   23017:   $as_echo_n "(cached) " >&6
                   23018: else
                   23019:   ac_check_lib_save_LIBS=$LIBS
                   23020: LIBS="-lssl  $LIBS"
                   23021: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   23022: /* end confdefs.h.  */
                   23023: 
                   23024: /* Override any GCC internal prototype to avoid an error.
                   23025:    Use char because int might match the return type of a GCC
                   23026:    builtin and then its argument prototype would still apply.  */
                   23027: #ifdef __cplusplus
                   23028: extern "C"
                   23029: #endif
                   23030: char DSA_get_default_method ();
                   23031: int
                   23032: main ()
                   23033: {
                   23034: return DSA_get_default_method ();
                   23035:   ;
                   23036:   return 0;
                   23037: }
                   23038: _ACEOF
                   23039: if ac_fn_c_try_link "$LINENO"; then :
                   23040:   ac_cv_lib_ssl_DSA_get_default_method=yes
                   23041: else
                   23042:   ac_cv_lib_ssl_DSA_get_default_method=no
                   23043: fi
                   23044: rm -f core conftest.err conftest.$ac_objext \
                   23045:     conftest$ac_exeext conftest.$ac_ext
                   23046: LIBS=$ac_check_lib_save_LIBS
                   23047: fi
                   23048: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_DSA_get_default_method" >&5
                   23049: $as_echo "$ac_cv_lib_ssl_DSA_get_default_method" >&6; }
                   23050: if test "x$ac_cv_lib_ssl_DSA_get_default_method" = xyes; then :
                   23051: 
                   23052: $as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h
                   23053: 
                   23054: fi
                   23055: 
                   23056:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_free in -lcrypto" >&5
                   23057: $as_echo_n "checking for X509_free in -lcrypto... " >&6; }
                   23058: if ${ac_cv_lib_crypto_X509_free+:} false; then :
                   23059:   $as_echo_n "(cached) " >&6
                   23060: else
                   23061:   ac_check_lib_save_LIBS=$LIBS
                   23062: LIBS="-lcrypto  $LIBS"
                   23063: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   23064: /* end confdefs.h.  */
                   23065: 
                   23066: /* Override any GCC internal prototype to avoid an error.
                   23067:    Use char because int might match the return type of a GCC
                   23068:    builtin and then its argument prototype would still apply.  */
                   23069: #ifdef __cplusplus
                   23070: extern "C"
                   23071: #endif
                   23072: char X509_free ();
                   23073: int
                   23074: main ()
                   23075: {
                   23076: return X509_free ();
                   23077:   ;
                   23078:   return 0;
                   23079: }
                   23080: _ACEOF
                   23081: if ac_fn_c_try_link "$LINENO"; then :
                   23082:   ac_cv_lib_crypto_X509_free=yes
                   23083: else
                   23084:   ac_cv_lib_crypto_X509_free=no
                   23085: fi
                   23086: rm -f core conftest.err conftest.$ac_objext \
                   23087:     conftest$ac_exeext conftest.$ac_ext
                   23088: LIBS=$ac_check_lib_save_LIBS
                   23089: fi
                   23090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_X509_free" >&5
                   23091: $as_echo "$ac_cv_lib_crypto_X509_free" >&6; }
                   23092: if test "x$ac_cv_lib_crypto_X509_free" = xyes; then :
                   23093: 
                   23094: $as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h
                   23095: 
                   23096: fi
                   23097: 
                   23098: 
                   23099: 
                   23100:   found_openssl=no
                   23101:   unset OPENSSL_INCDIR
                   23102:   unset OPENSSL_LIBDIR
                   23103: 
                   23104:     test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
                   23105:   test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
                   23106: 
                   23107:     if test -n "$PHP_OPENSSL" && test "$PHP_OPENSSL" != "no"; then
                   23108:     PHP_OPENSSL_DIR=$PHP_OPENSSL
                   23109:   elif test -n "$PHP_IMAP_SSL" && test "$PHP_IMAP_SSL" != "no"; then
                   23110:     PHP_OPENSSL_DIR=$PHP_IMAP_SSL
                   23111:   fi
                   23112: 
                   23113:     if test -z "$PKG_CONFIG"; then
                   23114:     # Extract the first word of "pkg-config", so it can be a program name with args.
                   23115: set dummy pkg-config; ac_word=$2
                   23116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   23117: $as_echo_n "checking for $ac_word... " >&6; }
                   23118: if ${ac_cv_path_PKG_CONFIG+:} false; then :
                   23119:   $as_echo_n "(cached) " >&6
                   23120: else
                   23121:   case $PKG_CONFIG in
                   23122:   [\\/]* | ?:[\\/]*)
                   23123:   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
                   23124:   ;;
                   23125:   *)
                   23126:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   23127: for as_dir in $PATH
                   23128: do
                   23129:   IFS=$as_save_IFS
                   23130:   test -z "$as_dir" && as_dir=.
                   23131:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    23132:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    23133:     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
                   23134:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   23135:     break 2
                   23136:   fi
                   23137: done
                   23138:   done
                   23139: IFS=$as_save_IFS
                   23140: 
                   23141:   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
                   23142:   ;;
                   23143: esac
                   23144: fi
                   23145: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
                   23146: if test -n "$PKG_CONFIG"; then
                   23147:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
                   23148: $as_echo "$PKG_CONFIG" >&6; }
                   23149: else
                   23150:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   23151: $as_echo "no" >&6; }
                   23152: fi
                   23153: 
                   23154: 
                   23155:   fi
                   23156: 
                   23157:     if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
                   23158:     if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
                   23159:       found_openssl=yes
                   23160:       OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
                   23161:       OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
                   23162:       OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
                   23163:     else
                   23164:       as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
                   23165:     fi
                   23166: 
                   23167:     if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then
                   23168: 
                   23169:   for ac_i in $OPENSSL_LIBS; do
                   23170:     case $ac_i in
                   23171:     -pthread)
                   23172:       if test "$ext_shared" = "yes"; then
                   23173:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread"
                   23174:       else
                   23175: 
                   23176: 
                   23177:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   23178: 
                   23179:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   23180:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   23181:     eval "EXTRA_LDFLAGS$unique=set"
                   23182:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   23183:   fi
                   23184: 
                   23185:       fi
                   23186:     ;;
                   23187:     -l*)
                   23188:       ac_ii=`echo $ac_i|cut -c 3-`
                   23189: 
                   23190: 
                   23191:   case $ac_ii in
                   23192:   c|c_r|pthread*) ;;
                   23193:   *)
                   23194:     if test "$ext_shared" = "yes"; then
                   23195:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii"
                   23196:     else
                   23197: 
                   23198: 
                   23199:   case $ac_ii in
                   23200:   c|c_r|pthread*) ;;
                   23201:   *)
                   23202:       LIBS="$LIBS -l$ac_ii"
                   23203:    ;;
                   23204:   esac
                   23205: 
                   23206: 
                   23207:     fi
                   23208:    ;;
                   23209:   esac
                   23210: 
                   23211: 
                   23212:     ;;
                   23213:     -L*)
                   23214:       ac_ii=`echo $ac_i|cut -c 3-`
                   23215: 
                   23216:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   23217: 
                   23218:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   23219:     ai_p=$ac_ii
                   23220:   else
                   23221: 
                   23222:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   23223: 
                   23224:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   23225:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   23226:   fi
                   23227: 
                   23228: 
                   23229:       if test "$ext_shared" = "yes"; then
                   23230:         OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
                   23231:         test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
                   23232:       else
                   23233: 
                   23234: 
                   23235: 
                   23236:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   23237: 
                   23238:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   23239:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   23240:     eval "LIBPATH$unique=set"
                   23241: 
                   23242:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   23243:     LDFLAGS="$LDFLAGS -L$ai_p"
                   23244:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   23245: 
                   23246:   fi
                   23247: 
                   23248: 
                   23249:       fi
                   23250: 
                   23251:   fi
                   23252: 
                   23253:     ;;
                   23254:     esac
                   23255:   done
                   23256: 
                   23257: 
                   23258:   for ac_i in $OPENSSL_INCS; do
                   23259:     case $ac_i in
                   23260:     -I*)
                   23261:       ac_ii=`echo $ac_i|cut -c 3-`
                   23262: 
                   23263:   if test "$ac_ii" != "/usr/include"; then
                   23264: 
                   23265:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   23266:     ai_p=$ac_ii
                   23267:   else
                   23268: 
                   23269:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   23270: 
                   23271:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   23272:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   23273:   fi
                   23274: 
                   23275: 
                   23276: 
                   23277:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   23278: 
                   23279:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   23280:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   23281:     eval "INCLUDEPATH$unique=set"
                   23282: 
                   23283:       if test ""; then
                   23284:         INCLUDES="-I$ai_p $INCLUDES"
                   23285:       else
                   23286:         INCLUDES="$INCLUDES -I$ai_p"
                   23287:       fi
                   23288: 
                   23289:   fi
                   23290: 
                   23291:   fi
                   23292: 
                   23293:     ;;
                   23294:     esac
                   23295:   done
                   23296: 
                   23297:     fi
                   23298:   fi
                   23299: 
                   23300:     if test "$found_openssl" = "no"; then
                   23301: 
                   23302:     if test "$PHP_OPENSSL_DIR" = "yes"; then
                   23303:       PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
                   23304:     fi
                   23305: 
                   23306:     for i in $PHP_OPENSSL_DIR; do
                   23307:       if test -r $i/include/openssl/evp.h; then
                   23308:         OPENSSL_INCDIR=$i/include
                   23309:       fi
                   23310:       if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
                   23311:         OPENSSL_LIBDIR=$i/$PHP_LIBDIR
                   23312:       fi
                   23313:       test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
                   23314:     done
                   23315: 
                   23316:     if test -z "$OPENSSL_INCDIR"; then
                   23317:       as_fn_error $? "Cannot find OpenSSL's <evp.h>" "$LINENO" 5
                   23318:     fi
                   23319: 
                   23320:     if test -z "$OPENSSL_LIBDIR"; then
                   23321:       as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5
                   23322:     fi
                   23323: 
                   23324:     old_CPPFLAGS=$CPPFLAGS
                   23325:     CPPFLAGS=-I$OPENSSL_INCDIR
                   23326:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
                   23327: $as_echo_n "checking for OpenSSL version... " >&6; }
                   23328:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   23329: /* end confdefs.h.  */
                   23330: 
                   23331: #include <openssl/opensslv.h>
                   23332: #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
                   23333:   yes
                   23334: #endif
                   23335: 
                   23336: _ACEOF
                   23337: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   23338:   $EGREP "yes" >/dev/null 2>&1; then :
                   23339: 
                   23340:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5
                   23341: $as_echo ">= 0.9.6" >&6; }
                   23342: 
                   23343: else
                   23344: 
                   23345:       as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
                   23346: 
                   23347: fi
                   23348: rm -f conftest*
                   23349: 
                   23350:     CPPFLAGS=$old_CPPFLAGS
                   23351: 
                   23352: 
                   23353:   if test "$OPENSSL_INCDIR" != "/usr/include"; then
                   23354: 
                   23355:   if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
                   23356:     ai_p=$OPENSSL_INCDIR
                   23357:   else
                   23358: 
                   23359:     ep_dir="`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   23360: 
                   23361:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   23362:     ai_p="$ep_realdir/`basename \"$OPENSSL_INCDIR\"`"
                   23363:   fi
                   23364: 
                   23365: 
                   23366: 
                   23367:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   23368: 
                   23369:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   23370:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   23371:     eval "INCLUDEPATH$unique=set"
                   23372: 
                   23373:       if test ""; then
                   23374:         INCLUDES="-I$ai_p $INCLUDES"
                   23375:       else
                   23376:         INCLUDES="$INCLUDES -I$ai_p"
                   23377:       fi
                   23378: 
                   23379:   fi
                   23380: 
                   23381:   fi
                   23382: 
                   23383: 
                   23384: 
                   23385:   save_old_LDFLAGS=$LDFLAGS
                   23386:   ac_stuff="
                   23387:       -L$OPENSSL_LIBDIR
                   23388:     "
                   23389: 
                   23390:   save_ext_shared=$ext_shared
                   23391:   ext_shared=yes
                   23392: 
                   23393:   for ac_i in $ac_stuff; do
                   23394:     case $ac_i in
                   23395:     -pthread)
                   23396:       if test "$ext_shared" = "yes"; then
                   23397:         LDFLAGS="$LDFLAGS -pthread"
                   23398:       else
                   23399: 
                   23400: 
                   23401:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   23402: 
                   23403:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   23404:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   23405:     eval "EXTRA_LDFLAGS$unique=set"
                   23406:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   23407:   fi
                   23408: 
                   23409:       fi
                   23410:     ;;
                   23411:     -l*)
                   23412:       ac_ii=`echo $ac_i|cut -c 3-`
                   23413: 
                   23414: 
                   23415:   case $ac_ii in
                   23416:   c|c_r|pthread*) ;;
                   23417:   *)
                   23418:     if test "$ext_shared" = "yes"; then
                   23419:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   23420:     else
                   23421: 
                   23422: 
                   23423:   case $ac_ii in
                   23424:   c|c_r|pthread*) ;;
                   23425:   *)
                   23426:       LIBS="$LIBS -l$ac_ii"
                   23427:    ;;
                   23428:   esac
                   23429: 
                   23430: 
                   23431:     fi
                   23432:    ;;
                   23433:   esac
                   23434: 
                   23435: 
                   23436:     ;;
                   23437:     -L*)
                   23438:       ac_ii=`echo $ac_i|cut -c 3-`
                   23439: 
                   23440:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   23441: 
                   23442:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   23443:     ai_p=$ac_ii
                   23444:   else
                   23445: 
                   23446:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   23447: 
                   23448:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   23449:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   23450:   fi
                   23451: 
                   23452: 
                   23453:       if test "$ext_shared" = "yes"; then
                   23454:         LDFLAGS="-L$ai_p $LDFLAGS"
                   23455:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   23456:       else
                   23457: 
                   23458: 
                   23459: 
                   23460:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   23461: 
                   23462:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   23463:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   23464:     eval "LIBPATH$unique=set"
                   23465: 
                   23466:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   23467:     LDFLAGS="$LDFLAGS -L$ai_p"
                   23468:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   23469: 
                   23470:   fi
                   23471: 
                   23472: 
                   23473:       fi
                   23474: 
                   23475:   fi
                   23476: 
                   23477:     ;;
                   23478:     esac
                   23479:   done
                   23480: 
                   23481:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5
                   23482: $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
                   23483: if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then :
                   23484:   $as_echo_n "(cached) " >&6
                   23485: else
                   23486:   ac_check_lib_save_LIBS=$LIBS
                   23487: LIBS="-lcrypto  $LIBS"
                   23488: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   23489: /* end confdefs.h.  */
                   23490: 
                   23491: /* Override any GCC internal prototype to avoid an error.
                   23492:    Use char because int might match the return type of a GCC
                   23493:    builtin and then its argument prototype would still apply.  */
                   23494: #ifdef __cplusplus
                   23495: extern "C"
                   23496: #endif
                   23497: char CRYPTO_free ();
                   23498: int
                   23499: main ()
                   23500: {
                   23501: return CRYPTO_free ();
                   23502:   ;
                   23503:   return 0;
                   23504: }
                   23505: _ACEOF
                   23506: if ac_fn_c_try_link "$LINENO"; then :
                   23507:   ac_cv_lib_crypto_CRYPTO_free=yes
                   23508: else
                   23509:   ac_cv_lib_crypto_CRYPTO_free=no
                   23510: fi
                   23511: rm -f core conftest.err conftest.$ac_objext \
                   23512:     conftest$ac_exeext conftest.$ac_ext
                   23513: LIBS=$ac_check_lib_save_LIBS
                   23514: fi
                   23515: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
                   23516: $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
                   23517: if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then :
                   23518: 
                   23519:     LDFLAGS=$save_old_LDFLAGS
                   23520:     ext_shared=$save_ext_shared
                   23521: 
                   23522: 
                   23523: 
                   23524:   case crypto in
                   23525:   c|c_r|pthread*) ;;
                   23526:   *)
                   23527:     if test "$ext_shared" = "yes"; then
                   23528:         OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD"
                   23529:     else
                   23530: 
                   23531: 
                   23532:   case crypto in
                   23533:   c|c_r|pthread*) ;;
                   23534:   *)
                   23535:       LIBS="-lcrypto $LIBS"
                   23536:    ;;
                   23537:   esac
                   23538: 
                   23539: 
                   23540:     fi
                   23541:    ;;
                   23542:   esac
                   23543: 
                   23544: 
                   23545: 
                   23546: 
                   23547: else
                   23548: 
                   23549:     LDFLAGS=$save_old_LDFLAGS
                   23550:     ext_shared=$save_ext_shared
                   23551:     unset ac_cv_lib_crypto_CRYPTO_free
                   23552: 
                   23553:       as_fn_error $? "libcrypto not found!" "$LINENO" 5
                   23554: 
                   23555: 
                   23556: fi
                   23557: 
                   23558: 
                   23559:     old_LIBS=$LIBS
                   23560:     LIBS="$LIBS -lcrypto"
                   23561: 
                   23562:   save_old_LDFLAGS=$LDFLAGS
                   23563:   ac_stuff="
                   23564:       -L$OPENSSL_LIBDIR
                   23565:     "
                   23566: 
                   23567:   save_ext_shared=$ext_shared
                   23568:   ext_shared=yes
                   23569: 
                   23570:   for ac_i in $ac_stuff; do
                   23571:     case $ac_i in
                   23572:     -pthread)
                   23573:       if test "$ext_shared" = "yes"; then
                   23574:         LDFLAGS="$LDFLAGS -pthread"
                   23575:       else
                   23576: 
                   23577: 
                   23578:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   23579: 
                   23580:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   23581:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   23582:     eval "EXTRA_LDFLAGS$unique=set"
                   23583:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   23584:   fi
                   23585: 
                   23586:       fi
                   23587:     ;;
                   23588:     -l*)
                   23589:       ac_ii=`echo $ac_i|cut -c 3-`
                   23590: 
                   23591: 
                   23592:   case $ac_ii in
                   23593:   c|c_r|pthread*) ;;
                   23594:   *)
                   23595:     if test "$ext_shared" = "yes"; then
                   23596:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   23597:     else
                   23598: 
                   23599: 
                   23600:   case $ac_ii in
                   23601:   c|c_r|pthread*) ;;
                   23602:   *)
                   23603:       LIBS="$LIBS -l$ac_ii"
                   23604:    ;;
                   23605:   esac
                   23606: 
                   23607: 
                   23608:     fi
                   23609:    ;;
                   23610:   esac
                   23611: 
                   23612: 
                   23613:     ;;
                   23614:     -L*)
                   23615:       ac_ii=`echo $ac_i|cut -c 3-`
                   23616: 
                   23617:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   23618: 
                   23619:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   23620:     ai_p=$ac_ii
                   23621:   else
                   23622: 
                   23623:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   23624: 
                   23625:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   23626:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   23627:   fi
                   23628: 
                   23629: 
                   23630:       if test "$ext_shared" = "yes"; then
                   23631:         LDFLAGS="-L$ai_p $LDFLAGS"
                   23632:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   23633:       else
                   23634: 
                   23635: 
                   23636: 
                   23637:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   23638: 
                   23639:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   23640:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   23641:     eval "LIBPATH$unique=set"
                   23642: 
                   23643:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   23644:     LDFLAGS="$LDFLAGS -L$ai_p"
                   23645:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   23646: 
                   23647:   fi
                   23648: 
                   23649: 
                   23650:       fi
                   23651: 
                   23652:   fi
                   23653: 
                   23654:     ;;
                   23655:     esac
                   23656:   done
                   23657: 
                   23658:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5
                   23659: $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
                   23660: if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then :
                   23661:   $as_echo_n "(cached) " >&6
                   23662: else
                   23663:   ac_check_lib_save_LIBS=$LIBS
                   23664: LIBS="-lssl  $LIBS"
                   23665: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   23666: /* end confdefs.h.  */
                   23667: 
                   23668: /* Override any GCC internal prototype to avoid an error.
                   23669:    Use char because int might match the return type of a GCC
                   23670:    builtin and then its argument prototype would still apply.  */
                   23671: #ifdef __cplusplus
                   23672: extern "C"
                   23673: #endif
                   23674: char SSL_CTX_set_ssl_version ();
                   23675: int
                   23676: main ()
                   23677: {
                   23678: return SSL_CTX_set_ssl_version ();
                   23679:   ;
                   23680:   return 0;
                   23681: }
                   23682: _ACEOF
                   23683: if ac_fn_c_try_link "$LINENO"; then :
                   23684:   ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
                   23685: else
                   23686:   ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
                   23687: fi
                   23688: rm -f core conftest.err conftest.$ac_objext \
                   23689:     conftest$ac_exeext conftest.$ac_ext
                   23690: LIBS=$ac_check_lib_save_LIBS
                   23691: fi
                   23692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
                   23693: $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
                   23694: if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then :
                   23695: 
                   23696:     LDFLAGS=$save_old_LDFLAGS
                   23697:     ext_shared=$save_ext_shared
                   23698: 
                   23699:       found_openssl=yes
                   23700: 
                   23701: 
                   23702: else
                   23703: 
                   23704:     LDFLAGS=$save_old_LDFLAGS
                   23705:     ext_shared=$save_ext_shared
                   23706:     unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
                   23707: 
                   23708:       as_fn_error $? "libssl not found!" "$LINENO" 5
                   23709: 
                   23710: 
                   23711: fi
                   23712: 
                   23713:     LIBS=$old_LIBS
                   23714: 
                   23715: 
                   23716:   case ssl in
                   23717:   c|c_r|pthread*) ;;
                   23718:   *)
                   23719:     if test "$ext_shared" = "yes"; then
                   23720:         OPENSSL_SHARED_LIBADD="-lssl $OPENSSL_SHARED_LIBADD"
                   23721:     else
                   23722: 
                   23723: 
                   23724:   case ssl in
                   23725:   c|c_r|pthread*) ;;
                   23726:   *)
                   23727:       LIBS="-lssl $LIBS"
                   23728:    ;;
                   23729:   esac
                   23730: 
                   23731: 
                   23732:     fi
                   23733:    ;;
                   23734:   esac
                   23735: 
                   23736: 
                   23737: 
                   23738: 
                   23739:   case crypto in
                   23740:   c|c_r|pthread*) ;;
                   23741:   *)
                   23742:     if test "$ext_shared" = "yes"; then
                   23743:         OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD"
                   23744:     else
                   23745: 
                   23746: 
                   23747:   case crypto in
                   23748:   c|c_r|pthread*) ;;
                   23749:   *)
                   23750:       LIBS="-lcrypto $LIBS"
                   23751:    ;;
                   23752:   esac
                   23753: 
                   23754: 
                   23755:     fi
                   23756:    ;;
                   23757:   esac
                   23758: 
                   23759: 
                   23760: 
                   23761: 
                   23762:   if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
                   23763: 
                   23764:   if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
                   23765:     ai_p=$OPENSSL_LIBDIR
                   23766:   else
                   23767: 
                   23768:     ep_dir="`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   23769: 
                   23770:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   23771:     ai_p="$ep_realdir/`basename \"$OPENSSL_LIBDIR\"`"
                   23772:   fi
                   23773: 
                   23774: 
                   23775:       if test "$ext_shared" = "yes"; then
                   23776:         OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
                   23777:         test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
                   23778:       else
                   23779: 
                   23780: 
                   23781: 
                   23782:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   23783: 
                   23784:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   23785:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   23786:     eval "LIBPATH$unique=set"
                   23787: 
                   23788:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   23789:     LDFLAGS="$LDFLAGS -L$ai_p"
                   23790:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   23791: 
                   23792:   fi
                   23793: 
                   23794: 
                   23795:       fi
                   23796: 
                   23797:   fi
                   23798: 
                   23799:   fi
                   23800: 
                   23801:   if test "$found_openssl" = "yes"; then
                   23802:     OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
                   23803: 
                   23804: 
                   23805: 
                   23806: 
                   23807: $as_echo "#define HAVE_OPENSSL_EXT 1" >>confdefs.h
                   23808: 
                   23809: 
                   23810: else
                   23811:     as_fn_error $? "OpenSSL check failed. Please check config.log for more information." "$LINENO" 5
                   23812: 
                   23813:   fi
                   23814: 
                   23815: fi
                   23816: 
                   23817: 
                   23818: 
                   23819: 
                   23820: php_with_pcre_regex=yes
                   23821: 
                   23822: 
                   23823: 
                   23824: # Check whether --with-pcre-regex was given.
                   23825: if test "${with_pcre_regex+set}" = set; then :
                   23826:   withval=$with_pcre_regex; PHP_PCRE_REGEX=$withval
                   23827: else
                   23828: 
                   23829:   PHP_PCRE_REGEX=yes
                   23830: 
                   23831: 
                   23832: fi
                   23833: 
                   23834: 
                   23835: ext_output=$PHP_PCRE_REGEX
                   23836: 
                   23837: 
                   23838: 
                   23839: 
                   23840: 
                   23841:   if test "$PHP_PCRE_REGEX" != "yes" && test "$PHP_PCRE_REGEX" != "no"; then
                   23842:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE headers location" >&5
                   23843: $as_echo_n "checking for PCRE headers location... " >&6; }
                   23844:     for i in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/include $PHP_PCRE_REGEX/include/pcre $PHP_PCRE_REGEX/local/include; do
                   23845:       test -f $i/pcre.h && PCRE_INCDIR=$i
                   23846:     done
                   23847: 
                   23848:     if test -z "$PCRE_INCDIR"; then
                   23849:       as_fn_error $? "Could not find pcre.h in $PHP_PCRE_REGEX" "$LINENO" 5
                   23850:     fi
                   23851:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_INCDIR" >&5
                   23852: $as_echo "$PCRE_INCDIR" >&6; }
                   23853: 
                   23854:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE library location" >&5
                   23855: $as_echo_n "checking for PCRE library location... " >&6; }
                   23856:     for j in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/$PHP_LIBDIR; do
                   23857:       test -f $j/libpcre.a || test -f $j/libpcre.$SHLIB_SUFFIX_NAME && PCRE_LIBDIR=$j
                   23858:     done
                   23859: 
                   23860:     if test -z "$PCRE_LIBDIR" ; then
                   23861:       as_fn_error $? "Could not find libpcre.(a|$SHLIB_SUFFIX_NAME) in $PHP_PCRE_REGEX" "$LINENO" 5
                   23862:     fi
                   23863:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_LIBDIR" >&5
                   23864: $as_echo "$PCRE_LIBDIR" >&6; }
                   23865: 
                   23866: 
                   23867:     pcre_major=`grep PCRE_MAJOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'`
                   23868:     pcre_minor=`grep PCRE_MINOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'`
                   23869: 
                   23870:     pcre_minor_length=`echo "$pcre_minor" | wc -c | sed -e 's/^0-9//g'`
                   23871:     if test "$pcre_minor_length" -eq 2 ; then
                   23872:       pcre_minor="$pcre_minor"0
                   23873:     fi
                   23874:     pcre_version=$pcre_major$pcre_minor
                   23875:     if test "$pcre_version" -lt 660; then
                   23876:       as_fn_error $? "The PCRE extension requires PCRE library version >= 6.6" "$LINENO" 5
                   23877:     fi
                   23878: 
                   23879: 
                   23880: 
                   23881:   if test -n "$PCRE_LIBDIR"; then
                   23882: 
                   23883:   if test "$PCRE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PCRE_LIBDIR" != "/usr/lib"; then
                   23884: 
                   23885:   if test -z "$PCRE_LIBDIR" || echo "$PCRE_LIBDIR" | grep '^/' >/dev/null ; then
                   23886:     ai_p=$PCRE_LIBDIR
                   23887:   else
                   23888: 
                   23889:     ep_dir="`echo $PCRE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   23890: 
                   23891:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   23892:     ai_p="$ep_realdir/`basename \"$PCRE_LIBDIR\"`"
                   23893:   fi
                   23894: 
                   23895: 
                   23896: 
                   23897: 
                   23898: 
                   23899:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   23900: 
                   23901:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   23902:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   23903:     eval "LIBPATH$unique=set"
                   23904: 
                   23905:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   23906:     LDFLAGS="$LDFLAGS -L$ai_p"
                   23907:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   23908: 
                   23909:   fi
                   23910: 
                   23911: 
                   23912: 
                   23913:   fi
                   23914: 
                   23915:   fi
                   23916: 
                   23917: 
                   23918:   case pcre in
                   23919:   c|c_r|pthread*) ;;
                   23920:   *)
                   23921:       LIBS="-lpcre $LIBS"
                   23922:    ;;
                   23923:   esac
                   23924: 
                   23925: 
                   23926: 
                   23927: 
                   23928: 
                   23929: 
                   23930: $as_echo "#define HAVE_PCRE 1" >>confdefs.h
                   23931: 
                   23932: 
                   23933:   if test "$PCRE_INCDIR" != "/usr/include"; then
                   23934: 
                   23935:   if test -z "$PCRE_INCDIR" || echo "$PCRE_INCDIR" | grep '^/' >/dev/null ; then
                   23936:     ai_p=$PCRE_INCDIR
                   23937:   else
                   23938: 
                   23939:     ep_dir="`echo $PCRE_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   23940: 
                   23941:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   23942:     ai_p="$ep_realdir/`basename \"$PCRE_INCDIR\"`"
                   23943:   fi
                   23944: 
                   23945: 
                   23946: 
                   23947:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   23948: 
                   23949:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   23950:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   23951:     eval "INCLUDEPATH$unique=set"
                   23952: 
                   23953:       if test ""; then
                   23954:         INCLUDES="-I$ai_p $INCLUDES"
                   23955:       else
                   23956:         INCLUDES="$INCLUDES -I$ai_p"
                   23957:       fi
                   23958: 
                   23959:   fi
                   23960: 
                   23961:   fi
                   23962: 
                   23963: 
                   23964:   ext_builddir=ext/pcre
                   23965:   ext_srcdir=$abs_srcdir/ext/pcre
                   23966: 
                   23967:   ac_extra=
                   23968: 
                   23969:   if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
                   23970:     PHP_PCRE_SHARED=no
                   23971: 
                   23972: 
                   23973:   case ext/pcre in
                   23974:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   23975:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   23976:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   23977:   esac
                   23978: 
                   23979: 
                   23980: 
                   23981:   b_c_pre=$php_c_pre
                   23982:   b_cxx_pre=$php_cxx_pre
                   23983:   b_c_meta=$php_c_meta
                   23984:   b_cxx_meta=$php_cxx_meta
                   23985:   b_c_post=$php_c_post
                   23986:   b_cxx_post=$php_cxx_post
                   23987:   b_lo=$php_lo
                   23988: 
                   23989: 
                   23990:   old_IFS=$IFS
                   23991:   for ac_src in php_pcre.c; do
                   23992: 
                   23993:       IFS=.
                   23994:       set $ac_src
                   23995:       ac_obj=$1
                   23996:       IFS=$old_IFS
                   23997: 
                   23998:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   23999: 
                   24000:       case $ac_src in
                   24001:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24002:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24003:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24004:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   24005:       esac
                   24006: 
                   24007:     cat >>Makefile.objects<<EOF
                   24008: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   24009:        $ac_comp
                   24010: EOF
                   24011:   done
                   24012: 
                   24013: 
                   24014:     EXT_STATIC="$EXT_STATIC pcre"
                   24015:     if test "no" != "nocli"; then
                   24016:       EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
                   24017:     fi
                   24018:   else
                   24019:     if test "no" = "shared" || test "no" = "yes"; then
                   24020:       PHP_PCRE_SHARED=yes
                   24021: 
                   24022:   case ext/pcre in
                   24023:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   24024:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   24025:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   24026:   esac
                   24027: 
                   24028: 
                   24029: 
                   24030:   b_c_pre=$shared_c_pre
                   24031:   b_cxx_pre=$shared_cxx_pre
                   24032:   b_c_meta=$shared_c_meta
                   24033:   b_cxx_meta=$shared_cxx_meta
                   24034:   b_c_post=$shared_c_post
                   24035:   b_cxx_post=$shared_cxx_post
                   24036:   b_lo=$shared_lo
                   24037: 
                   24038: 
                   24039:   old_IFS=$IFS
                   24040:   for ac_src in php_pcre.c; do
                   24041: 
                   24042:       IFS=.
                   24043:       set $ac_src
                   24044:       ac_obj=$1
                   24045:       IFS=$old_IFS
                   24046: 
                   24047:       shared_objects_pcre="$shared_objects_pcre $ac_bdir$ac_obj.lo"
                   24048: 
                   24049:       case $ac_src in
                   24050:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24051:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24052:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24053:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   24054:       esac
                   24055: 
                   24056:     cat >>Makefile.objects<<EOF
                   24057: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   24058:        $ac_comp
                   24059: EOF
                   24060:   done
                   24061: 
                   24062:       case $host_alias in
                   24063:         *netware*)
                   24064: 
                   24065:   install_modules="install-modules"
                   24066: 
                   24067:   case $host_alias in
                   24068:     *aix*)
                   24069:       suffix=so
                   24070:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppcre.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PHPPCRE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppcre.so '$ext_builddir'/phppcre.so'
                   24071:       ;;
                   24072:     *netware*)
                   24073:       suffix=nlm
                   24074:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) -L$(top_builddir)/netware -lphp5lib $(PCRE_SHARED_LIBADD)'
                   24075:       ;;
                   24076:     *)
                   24077:       suffix=la
                   24078:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PHPPCRE_SHARED_LIBADD)'
                   24079:       ;;
                   24080:   esac
                   24081: 
                   24082:   if test "x" = "xyes"; then
                   24083:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppcre.$suffix"
                   24084:   else
                   24085:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppcre.$suffix"
                   24086:   fi
                   24087: 
                   24088:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
                   24089: 
                   24090:   cat >>Makefile.objects<<EOF
                   24091: \$(phplibdir)/phppcre.$suffix: $ext_builddir/phppcre.$suffix
                   24092:        \$(LIBTOOL) --mode=install cp $ext_builddir/phppcre.$suffix \$(phplibdir)
                   24093: 
                   24094: $ext_builddir/phppcre.$suffix: \$(shared_objects_pcre) \$(PHPPCRE_SHARED_DEPENDENCIES)
                   24095:        $link_cmd
                   24096: 
                   24097: EOF
                   24098: 
                   24099:           ;;
                   24100:         *)
                   24101: 
                   24102:   install_modules="install-modules"
                   24103: 
                   24104:   case $host_alias in
                   24105:     *aix*)
                   24106:       suffix=so
                   24107:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pcre.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PCRE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pcre.so '$ext_builddir'/pcre.so'
                   24108:       ;;
                   24109:     *netware*)
                   24110:       suffix=nlm
                   24111:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) -L$(top_builddir)/netware -lphp5lib $(E_SHARED_LIBADD)'
                   24112:       ;;
                   24113:     *)
                   24114:       suffix=la
                   24115:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PCRE_SHARED_LIBADD)'
                   24116:       ;;
                   24117:   esac
                   24118: 
                   24119:   if test "x" = "xyes"; then
                   24120:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcre.$suffix"
                   24121:   else
                   24122:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcre.$suffix"
                   24123:   fi
                   24124: 
                   24125:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
                   24126: 
                   24127:   cat >>Makefile.objects<<EOF
                   24128: \$(phplibdir)/pcre.$suffix: $ext_builddir/pcre.$suffix
                   24129:        \$(LIBTOOL) --mode=install cp $ext_builddir/pcre.$suffix \$(phplibdir)
                   24130: 
                   24131: $ext_builddir/pcre.$suffix: \$(shared_objects_pcre) \$(PCRE_SHARED_DEPENDENCIES)
                   24132:        $link_cmd
                   24133: 
                   24134: EOF
                   24135: 
                   24136:           ;;
                   24137:       esac
                   24138: 
                   24139: cat >>confdefs.h <<_ACEOF
                   24140: #define COMPILE_DL_PCRE 1
                   24141: _ACEOF
                   24142: 
                   24143:     fi
                   24144:   fi
                   24145: 
                   24146:   if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
                   24147:     PHP_PCRE_SHARED=no
                   24148: 
                   24149: 
                   24150:   case ext/pcre in
                   24151:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   24152:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   24153:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   24154:   esac
                   24155: 
                   24156: 
                   24157: 
                   24158:   b_c_pre=$php_c_pre
                   24159:   b_cxx_pre=$php_cxx_pre
                   24160:   b_c_meta=$php_c_meta
                   24161:   b_cxx_meta=$php_cxx_meta
                   24162:   b_c_post=$php_c_post
                   24163:   b_cxx_post=$php_cxx_post
                   24164:   b_lo=$php_lo
                   24165: 
                   24166: 
                   24167:   old_IFS=$IFS
                   24168:   for ac_src in php_pcre.c; do
                   24169: 
                   24170:       IFS=.
                   24171:       set $ac_src
                   24172:       ac_obj=$1
                   24173:       IFS=$old_IFS
                   24174: 
1.1.1.2 ! misho    24175:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    24176: 
                   24177:       case $ac_src in
                   24178:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24179:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24180:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24181:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   24182:       esac
                   24183: 
                   24184:     cat >>Makefile.objects<<EOF
                   24185: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   24186:        $ac_comp
                   24187: EOF
                   24188:   done
                   24189: 
                   24190: 
                   24191: 
                   24192: 
                   24193:   case ext/pcre in
                   24194:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   24195:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   24196:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   24197:   esac
                   24198: 
                   24199: 
                   24200: 
                   24201:   b_c_pre=$php_c_pre
                   24202:   b_cxx_pre=$php_cxx_pre
                   24203:   b_c_meta=$php_c_meta
                   24204:   b_cxx_meta=$php_cxx_meta
                   24205:   b_c_post=$php_c_post
                   24206:   b_cxx_post=$php_cxx_post
                   24207:   b_lo=$php_lo
                   24208: 
                   24209: 
                   24210:   old_IFS=$IFS
                   24211:   for ac_src in php_pcre.c; do
                   24212: 
                   24213:       IFS=.
                   24214:       set $ac_src
                   24215:       ac_obj=$1
                   24216:       IFS=$old_IFS
                   24217: 
1.1.1.2 ! misho    24218:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    24219: 
                   24220:       case $ac_src in
                   24221:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24222:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24223:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24224:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   24225:       esac
                   24226: 
                   24227:     cat >>Makefile.objects<<EOF
                   24228: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   24229:        $ac_comp
                   24230: EOF
                   24231:   done
                   24232: 
                   24233: 
                   24234: 
                   24235: 
                   24236:   case ext/pcre in
                   24237:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   24238:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   24239:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   24240:   esac
                   24241: 
                   24242: 
                   24243: 
                   24244:   b_c_pre=$php_c_pre
                   24245:   b_cxx_pre=$php_cxx_pre
                   24246:   b_c_meta=$php_c_meta
                   24247:   b_cxx_meta=$php_cxx_meta
                   24248:   b_c_post=$php_c_post
                   24249:   b_cxx_post=$php_cxx_post
                   24250:   b_lo=$php_lo
                   24251: 
                   24252: 
                   24253:   old_IFS=$IFS
                   24254:   for ac_src in php_pcre.c; do
                   24255: 
                   24256:       IFS=.
                   24257:       set $ac_src
                   24258:       ac_obj=$1
                   24259:       IFS=$old_IFS
                   24260: 
1.1.1.2 ! misho    24261:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    24262: 
                   24263:       case $ac_src in
                   24264:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24265:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24266:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24267:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   24268:       esac
                   24269: 
                   24270:     cat >>Makefile.objects<<EOF
                   24271: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   24272:        $ac_comp
                   24273: EOF
                   24274:   done
                   24275: 
                   24276: 
                   24277:     EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
                   24278:   fi
                   24279: 
                   24280: 
                   24281:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   24282: 
                   24283: 
                   24284: 
                   24285:   if test "$ext_builddir" = "."; then
                   24286:     PHP_PECL_EXTENSION=pcre
                   24287: 
                   24288:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   24289: 
                   24290:   fi
                   24291: 
                   24292: 
                   24293: 
                   24294:     header_path=ext/pcre
                   24295:     for header_file in php_pcre.h; do
                   24296:       hp_hf="$header_path/$header_file"
                   24297: 
                   24298: 
                   24299:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
                   24300: 
                   24301:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   24302:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   24303:     eval "INSTALLHEADERS$unique=set"
                   24304: 
                   24305:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
                   24306: 
                   24307:   fi
                   24308: 
                   24309:     done
                   24310: 
                   24311: 
                   24312:   else
                   24313:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE library to use" >&5
                   24314: $as_echo_n "checking for PCRE library to use... " >&6; }
                   24315:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
                   24316: $as_echo "bundled" >&6; }
                   24317:     pcrelib_sources="pcrelib/pcre_chartables.c pcrelib/pcre_ucd.c \
                   24318:                                 pcrelib/pcre_compile.c pcrelib/pcre_config.c pcrelib/pcre_exec.c \
                   24319:                                 pcrelib/pcre_fullinfo.c pcrelib/pcre_get.c pcrelib/pcre_globals.c \
                   24320:                                 pcrelib/pcre_info.c pcrelib/pcre_maketables.c pcrelib/pcre_newline.c \
                   24321:                                 pcrelib/pcre_ord2utf8.c pcrelib/pcre_refcount.c pcrelib/pcre_study.c \
                   24322:                                 pcrelib/pcre_tables.c pcrelib/pcre_try_flipped.c pcrelib/pcre_valid_utf8.c \
                   24323:                                 pcrelib/pcre_version.c pcrelib/pcre_xclass.c"
                   24324: 
                   24325:   ext_builddir=ext/pcre
                   24326:   ext_srcdir=$abs_srcdir/ext/pcre
                   24327: 
                   24328:   ac_extra=`echo "-I@ext_srcdir@/pcrelib"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
                   24329: 
                   24330:   if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
                   24331:     PHP_PCRE_SHARED=no
                   24332: 
                   24333: 
                   24334:   case ext/pcre in
                   24335:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   24336:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   24337:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   24338:   esac
                   24339: 
                   24340: 
                   24341: 
                   24342:   b_c_pre=$php_c_pre
                   24343:   b_cxx_pre=$php_cxx_pre
                   24344:   b_c_meta=$php_c_meta
                   24345:   b_cxx_meta=$php_cxx_meta
                   24346:   b_c_post=$php_c_post
                   24347:   b_cxx_post=$php_cxx_post
                   24348:   b_lo=$php_lo
                   24349: 
                   24350: 
                   24351:   old_IFS=$IFS
                   24352:   for ac_src in $pcrelib_sources php_pcre.c; do
                   24353: 
                   24354:       IFS=.
                   24355:       set $ac_src
                   24356:       ac_obj=$1
                   24357:       IFS=$old_IFS
                   24358: 
                   24359:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   24360: 
                   24361:       case $ac_src in
                   24362:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24363:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24364:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24365:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   24366:       esac
                   24367: 
                   24368:     cat >>Makefile.objects<<EOF
                   24369: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   24370:        $ac_comp
                   24371: EOF
                   24372:   done
                   24373: 
                   24374: 
                   24375:     EXT_STATIC="$EXT_STATIC pcre"
                   24376:     if test "no" != "nocli"; then
                   24377:       EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
                   24378:     fi
                   24379:   else
                   24380:     if test "no" = "shared" || test "no" = "yes"; then
                   24381:       PHP_PCRE_SHARED=yes
                   24382: 
                   24383:   case ext/pcre in
                   24384:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   24385:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   24386:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   24387:   esac
                   24388: 
                   24389: 
                   24390: 
                   24391:   b_c_pre=$shared_c_pre
                   24392:   b_cxx_pre=$shared_cxx_pre
                   24393:   b_c_meta=$shared_c_meta
                   24394:   b_cxx_meta=$shared_cxx_meta
                   24395:   b_c_post=$shared_c_post
                   24396:   b_cxx_post=$shared_cxx_post
                   24397:   b_lo=$shared_lo
                   24398: 
                   24399: 
                   24400:   old_IFS=$IFS
                   24401:   for ac_src in $pcrelib_sources php_pcre.c; do
                   24402: 
                   24403:       IFS=.
                   24404:       set $ac_src
                   24405:       ac_obj=$1
                   24406:       IFS=$old_IFS
                   24407: 
                   24408:       shared_objects_pcre="$shared_objects_pcre $ac_bdir$ac_obj.lo"
                   24409: 
                   24410:       case $ac_src in
                   24411:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24412:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24413:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24414:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   24415:       esac
                   24416: 
                   24417:     cat >>Makefile.objects<<EOF
                   24418: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   24419:        $ac_comp
                   24420: EOF
                   24421:   done
                   24422: 
                   24423:       case $host_alias in
                   24424:         *netware*)
                   24425: 
                   24426:   install_modules="install-modules"
                   24427: 
                   24428:   case $host_alias in
                   24429:     *aix*)
                   24430:       suffix=so
                   24431:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppcre.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PHPPCRE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppcre.so '$ext_builddir'/phppcre.so'
                   24432:       ;;
                   24433:     *netware*)
                   24434:       suffix=nlm
                   24435:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) -L$(top_builddir)/netware -lphp5lib $(PCRE_SHARED_LIBADD)'
                   24436:       ;;
                   24437:     *)
                   24438:       suffix=la
                   24439:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PHPPCRE_SHARED_LIBADD)'
                   24440:       ;;
                   24441:   esac
                   24442: 
                   24443:   if test "x" = "xyes"; then
                   24444:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppcre.$suffix"
                   24445:   else
                   24446:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppcre.$suffix"
                   24447:   fi
                   24448: 
                   24449:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
                   24450: 
                   24451:   cat >>Makefile.objects<<EOF
                   24452: \$(phplibdir)/phppcre.$suffix: $ext_builddir/phppcre.$suffix
                   24453:        \$(LIBTOOL) --mode=install cp $ext_builddir/phppcre.$suffix \$(phplibdir)
                   24454: 
                   24455: $ext_builddir/phppcre.$suffix: \$(shared_objects_pcre) \$(PHPPCRE_SHARED_DEPENDENCIES)
                   24456:        $link_cmd
                   24457: 
                   24458: EOF
                   24459: 
                   24460:           ;;
                   24461:         *)
                   24462: 
                   24463:   install_modules="install-modules"
                   24464: 
                   24465:   case $host_alias in
                   24466:     *aix*)
                   24467:       suffix=so
                   24468:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pcre.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PCRE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pcre.so '$ext_builddir'/pcre.so'
                   24469:       ;;
                   24470:     *netware*)
                   24471:       suffix=nlm
                   24472:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) -L$(top_builddir)/netware -lphp5lib $(E_SHARED_LIBADD)'
                   24473:       ;;
                   24474:     *)
                   24475:       suffix=la
                   24476:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PCRE_SHARED_LIBADD)'
                   24477:       ;;
                   24478:   esac
                   24479: 
                   24480:   if test "x" = "xyes"; then
                   24481:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcre.$suffix"
                   24482:   else
                   24483:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcre.$suffix"
                   24484:   fi
                   24485: 
                   24486:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
                   24487: 
                   24488:   cat >>Makefile.objects<<EOF
                   24489: \$(phplibdir)/pcre.$suffix: $ext_builddir/pcre.$suffix
                   24490:        \$(LIBTOOL) --mode=install cp $ext_builddir/pcre.$suffix \$(phplibdir)
                   24491: 
                   24492: $ext_builddir/pcre.$suffix: \$(shared_objects_pcre) \$(PCRE_SHARED_DEPENDENCIES)
                   24493:        $link_cmd
                   24494: 
                   24495: EOF
                   24496: 
                   24497:           ;;
                   24498:       esac
                   24499: 
                   24500: cat >>confdefs.h <<_ACEOF
                   24501: #define COMPILE_DL_PCRE 1
                   24502: _ACEOF
                   24503: 
                   24504:     fi
                   24505:   fi
                   24506: 
                   24507:   if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
                   24508:     PHP_PCRE_SHARED=no
                   24509: 
                   24510: 
                   24511:   case ext/pcre in
                   24512:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   24513:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   24514:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   24515:   esac
                   24516: 
                   24517: 
                   24518: 
                   24519:   b_c_pre=$php_c_pre
                   24520:   b_cxx_pre=$php_cxx_pre
                   24521:   b_c_meta=$php_c_meta
                   24522:   b_cxx_meta=$php_cxx_meta
                   24523:   b_c_post=$php_c_post
                   24524:   b_cxx_post=$php_cxx_post
                   24525:   b_lo=$php_lo
                   24526: 
                   24527: 
                   24528:   old_IFS=$IFS
                   24529:   for ac_src in $pcrelib_sources php_pcre.c; do
                   24530: 
                   24531:       IFS=.
                   24532:       set $ac_src
                   24533:       ac_obj=$1
                   24534:       IFS=$old_IFS
                   24535: 
1.1.1.2 ! misho    24536:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    24537: 
                   24538:       case $ac_src in
                   24539:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24540:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24541:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24542:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   24543:       esac
                   24544: 
                   24545:     cat >>Makefile.objects<<EOF
                   24546: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   24547:        $ac_comp
                   24548: EOF
                   24549:   done
                   24550: 
                   24551: 
                   24552: 
                   24553: 
                   24554:   case ext/pcre in
                   24555:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   24556:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   24557:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   24558:   esac
                   24559: 
                   24560: 
                   24561: 
                   24562:   b_c_pre=$php_c_pre
                   24563:   b_cxx_pre=$php_cxx_pre
                   24564:   b_c_meta=$php_c_meta
                   24565:   b_cxx_meta=$php_cxx_meta
                   24566:   b_c_post=$php_c_post
                   24567:   b_cxx_post=$php_cxx_post
                   24568:   b_lo=$php_lo
                   24569: 
                   24570: 
                   24571:   old_IFS=$IFS
                   24572:   for ac_src in $pcrelib_sources php_pcre.c; do
                   24573: 
                   24574:       IFS=.
                   24575:       set $ac_src
                   24576:       ac_obj=$1
                   24577:       IFS=$old_IFS
                   24578: 
1.1.1.2 ! misho    24579:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    24580: 
                   24581:       case $ac_src in
                   24582:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24583:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24584:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24585:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   24586:       esac
                   24587: 
                   24588:     cat >>Makefile.objects<<EOF
                   24589: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   24590:        $ac_comp
                   24591: EOF
                   24592:   done
                   24593: 
                   24594: 
                   24595: 
                   24596: 
                   24597:   case ext/pcre in
                   24598:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   24599:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   24600:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   24601:   esac
                   24602: 
                   24603: 
                   24604: 
                   24605:   b_c_pre=$php_c_pre
                   24606:   b_cxx_pre=$php_cxx_pre
                   24607:   b_c_meta=$php_c_meta
                   24608:   b_cxx_meta=$php_cxx_meta
                   24609:   b_c_post=$php_c_post
                   24610:   b_cxx_post=$php_cxx_post
                   24611:   b_lo=$php_lo
                   24612: 
                   24613: 
                   24614:   old_IFS=$IFS
                   24615:   for ac_src in $pcrelib_sources php_pcre.c; do
                   24616: 
                   24617:       IFS=.
                   24618:       set $ac_src
                   24619:       ac_obj=$1
                   24620:       IFS=$old_IFS
                   24621: 
1.1.1.2 ! misho    24622:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    24623: 
                   24624:       case $ac_src in
                   24625:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24626:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24627:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   24628:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   24629:       esac
                   24630: 
                   24631:     cat >>Makefile.objects<<EOF
                   24632: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   24633:        $ac_comp
                   24634: EOF
                   24635:   done
                   24636: 
                   24637: 
                   24638:     EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
                   24639:   fi
                   24640: 
                   24641: 
                   24642:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   24643: 
                   24644: 
                   24645: 
                   24646:   if test "$ext_builddir" = "."; then
                   24647:     PHP_PECL_EXTENSION=pcre
                   24648: 
                   24649:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   24650: 
                   24651:   fi
                   24652: 
                   24653: 
                   24654: 
                   24655:     BUILD_DIR="$BUILD_DIR $ext_builddir/pcrelib"
                   24656: 
                   24657: 
                   24658: 
                   24659: 
                   24660:     header_path=ext/pcre
                   24661:     for header_file in php_pcre.h pcrelib/; do
                   24662:       hp_hf="$header_path/$header_file"
                   24663: 
                   24664: 
                   24665:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
                   24666: 
                   24667:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   24668:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   24669:     eval "INSTALLHEADERS$unique=set"
                   24670: 
                   24671:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
                   24672: 
                   24673:   fi
                   24674: 
                   24675:     done
                   24676: 
                   24677: 
                   24678: 
                   24679: $as_echo "#define HAVE_BUNDLED_PCRE 1" >>confdefs.h
                   24680: 
                   24681:   fi
                   24682: 
                   24683: 
                   24684: 
                   24685: php_with_sqlite3=yes
                   24686: 
                   24687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SQLite3 extension" >&5
                   24688: $as_echo_n "checking whether to enable the SQLite3 extension... " >&6; }
                   24689: 
                   24690: # Check whether --with-sqlite3 was given.
                   24691: if test "${with_sqlite3+set}" = set; then :
                   24692:   withval=$with_sqlite3; PHP_SQLITE3=$withval
                   24693: else
                   24694: 
                   24695:   PHP_SQLITE3=yes
                   24696:   test "$PHP_ENABLE_ALL" && PHP_SQLITE3=$PHP_ENABLE_ALL
                   24697: 
                   24698: fi
                   24699: 
                   24700: 
                   24701: 
                   24702: ext_output="yes, shared"
                   24703: ext_shared=yes
                   24704: case $PHP_SQLITE3 in
                   24705: shared,*)
                   24706:   PHP_SQLITE3=`echo "$PHP_SQLITE3"|$SED 's/^shared,//'`
                   24707:   ;;
                   24708: shared)
                   24709:   PHP_SQLITE3=yes
                   24710:   ;;
                   24711: no)
                   24712:   ext_output=no
                   24713:   ext_shared=no
                   24714:   ;;
                   24715: *)
                   24716:   ext_output=yes
                   24717:   ext_shared=no
                   24718:   ;;
                   24719: esac
                   24720: 
                   24721: 
                   24722: 
                   24723: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   24724: $as_echo "$ext_output" >&6; }
                   24725: 
                   24726: 
                   24727: 
                   24728: 
                   24729: if test $PHP_SQLITE3 != "no"; then
                   24730:   sqlite3_extra_sources=""
                   24731:   PHP_SQLITE3_CFLAGS=""
                   24732: 
                   24733:     if test -z "$enable_maintainer_zts"; then
                   24734:     if test -f "$phpincludedir/main/php_config.h"; then
                   24735:       ZTS=`grep '#define ZTS' $phpincludedir/main/php_config.h|$SED 's/#define ZTS//'`
                   24736:       if test "$ZTS" -eq "1"; then
                   24737:         enable_maintainer_zts="yes"
                   24738:       fi
                   24739:     fi
                   24740:   fi
                   24741: 
                   24742:   if test $PHP_SQLITE3 != "yes"; then
                   24743:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 files in default path" >&5
                   24744: $as_echo_n "checking for sqlite3 files in default path... " >&6; }
                   24745:     for i in $PHP_SQLITE3 /usr/local /usr; do
                   24746:       if test -r $i/include/sqlite3.h; then
                   24747:         SQLITE3_DIR=$i
                   24748:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
                   24749: $as_echo "found in $i" >&6; }
                   24750:         break
                   24751:       fi
                   24752:     done
                   24753: 
                   24754:     if test -z "$SQLITE3_DIR"; then
                   24755:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   24756: $as_echo "not found" >&6; }
                   24757:       as_fn_error $? "Please reinstall the sqlite distribution from http://www.sqlite.org" "$LINENO" 5
                   24758:     fi
                   24759: 
                   24760:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite 3.3.9+" >&5
                   24761: $as_echo_n "checking for SQLite 3.3.9+... " >&6; }
                   24762: 
                   24763:   save_old_LDFLAGS=$LDFLAGS
                   24764:   ac_stuff="
                   24765:       -L$SQLITE3_DIR/$PHP_LIBDIR -lm
                   24766:     "
                   24767: 
                   24768:   save_ext_shared=$ext_shared
                   24769:   ext_shared=yes
                   24770: 
                   24771:   for ac_i in $ac_stuff; do
                   24772:     case $ac_i in
                   24773:     -pthread)
                   24774:       if test "$ext_shared" = "yes"; then
                   24775:         LDFLAGS="$LDFLAGS -pthread"
                   24776:       else
                   24777: 
                   24778: 
                   24779:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   24780: 
                   24781:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   24782:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   24783:     eval "EXTRA_LDFLAGS$unique=set"
                   24784:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   24785:   fi
                   24786: 
                   24787:       fi
                   24788:     ;;
                   24789:     -l*)
                   24790:       ac_ii=`echo $ac_i|cut -c 3-`
                   24791: 
                   24792: 
                   24793:   case $ac_ii in
                   24794:   c|c_r|pthread*) ;;
                   24795:   *)
                   24796:     if test "$ext_shared" = "yes"; then
                   24797:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   24798:     else
                   24799: 
                   24800: 
                   24801:   case $ac_ii in
                   24802:   c|c_r|pthread*) ;;
                   24803:   *)
                   24804:       LIBS="$LIBS -l$ac_ii"
                   24805:    ;;
                   24806:   esac
                   24807: 
                   24808: 
                   24809:     fi
                   24810:    ;;
                   24811:   esac
                   24812: 
                   24813: 
                   24814:     ;;
                   24815:     -L*)
                   24816:       ac_ii=`echo $ac_i|cut -c 3-`
                   24817: 
                   24818:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   24819: 
                   24820:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   24821:     ai_p=$ac_ii
                   24822:   else
                   24823: 
                   24824:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   24825: 
                   24826:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   24827:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   24828:   fi
                   24829: 
                   24830: 
                   24831:       if test "$ext_shared" = "yes"; then
                   24832:         LDFLAGS="-L$ai_p $LDFLAGS"
                   24833:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   24834:       else
                   24835: 
                   24836: 
                   24837: 
                   24838:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   24839: 
                   24840:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   24841:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   24842:     eval "LIBPATH$unique=set"
                   24843: 
                   24844:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   24845:     LDFLAGS="$LDFLAGS -L$ai_p"
                   24846:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   24847: 
                   24848:   fi
                   24849: 
                   24850: 
                   24851:       fi
                   24852: 
                   24853:   fi
                   24854: 
                   24855:     ;;
                   24856:     esac
                   24857:   done
                   24858: 
                   24859:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare_v2 in -lsqlite3" >&5
                   24860: $as_echo_n "checking for sqlite3_prepare_v2 in -lsqlite3... " >&6; }
                   24861: if ${ac_cv_lib_sqlite3_sqlite3_prepare_v2+:} false; then :
                   24862:   $as_echo_n "(cached) " >&6
                   24863: else
                   24864:   ac_check_lib_save_LIBS=$LIBS
                   24865: LIBS="-lsqlite3  $LIBS"
                   24866: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   24867: /* end confdefs.h.  */
                   24868: 
                   24869: /* Override any GCC internal prototype to avoid an error.
                   24870:    Use char because int might match the return type of a GCC
                   24871:    builtin and then its argument prototype would still apply.  */
                   24872: #ifdef __cplusplus
                   24873: extern "C"
                   24874: #endif
                   24875: char sqlite3_prepare_v2 ();
                   24876: int
                   24877: main ()
                   24878: {
                   24879: return sqlite3_prepare_v2 ();
                   24880:   ;
                   24881:   return 0;
                   24882: }
                   24883: _ACEOF
                   24884: if ac_fn_c_try_link "$LINENO"; then :
                   24885:   ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes
                   24886: else
                   24887:   ac_cv_lib_sqlite3_sqlite3_prepare_v2=no
                   24888: fi
                   24889: rm -f core conftest.err conftest.$ac_objext \
                   24890:     conftest$ac_exeext conftest.$ac_ext
                   24891: LIBS=$ac_check_lib_save_LIBS
                   24892: fi
                   24893: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5
                   24894: $as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; }
                   24895: if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = xyes; then :
                   24896: 
                   24897:     LDFLAGS=$save_old_LDFLAGS
                   24898:     ext_shared=$save_ext_shared
                   24899: 
                   24900:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
                   24901: $as_echo "found" >&6; }
                   24902: 
                   24903: 
                   24904:   if test "$ext_shared" = "yes"; then
                   24905:     SQLITE3_SHARED_LIBADD="-lsqlite3 $SQLITE3_SHARED_LIBADD"
                   24906:     if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then
                   24907: 
                   24908:   if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   24909: 
                   24910:   if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   24911:     ai_p=$SQLITE3_DIR/$PHP_LIBDIR
                   24912:   else
                   24913: 
                   24914:     ep_dir="`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   24915: 
                   24916:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   24917:     ai_p="$ep_realdir/`basename \"$SQLITE3_DIR/$PHP_LIBDIR\"`"
                   24918:   fi
                   24919: 
                   24920: 
                   24921:       if test "$ext_shared" = "yes"; then
                   24922:         SQLITE3_SHARED_LIBADD="-L$ai_p $SQLITE3_SHARED_LIBADD"
                   24923:         test -n "$ld_runpath_switch" && SQLITE3_SHARED_LIBADD="$ld_runpath_switch$ai_p $SQLITE3_SHARED_LIBADD"
                   24924:       else
                   24925: 
                   24926: 
                   24927: 
                   24928:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   24929: 
                   24930:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   24931:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   24932:     eval "LIBPATH$unique=set"
                   24933: 
                   24934:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   24935:     LDFLAGS="$LDFLAGS -L$ai_p"
                   24936:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   24937: 
                   24938:   fi
                   24939: 
                   24940: 
                   24941:       fi
                   24942: 
                   24943:   fi
                   24944: 
                   24945:     fi
                   24946:   else
                   24947: 
                   24948: 
                   24949:   if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then
                   24950: 
                   24951:   if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   24952: 
                   24953:   if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   24954:     ai_p=$SQLITE3_DIR/$PHP_LIBDIR
                   24955:   else
                   24956: 
                   24957:     ep_dir="`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   24958: 
                   24959:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   24960:     ai_p="$ep_realdir/`basename \"$SQLITE3_DIR/$PHP_LIBDIR\"`"
                   24961:   fi
                   24962: 
                   24963: 
                   24964: 
                   24965: 
                   24966: 
                   24967:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   24968: 
                   24969:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   24970:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   24971:     eval "LIBPATH$unique=set"
                   24972: 
                   24973:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   24974:     LDFLAGS="$LDFLAGS -L$ai_p"
                   24975:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   24976: 
                   24977:   fi
                   24978: 
                   24979: 
                   24980: 
                   24981:   fi
                   24982: 
                   24983:   fi
                   24984: 
                   24985: 
                   24986:   case sqlite3 in
                   24987:   c|c_r|pthread*) ;;
                   24988:   *)
                   24989:       LIBS="-lsqlite3 $LIBS"
                   24990:    ;;
                   24991:   esac
                   24992: 
                   24993: 
                   24994: 
                   24995: 
                   24996:   fi
                   24997: 
                   24998: 
                   24999: 
                   25000:   if test "$SQLITE3_DIR/include" != "/usr/include"; then
                   25001: 
                   25002:   if test -z "$SQLITE3_DIR/include" || echo "$SQLITE3_DIR/include" | grep '^/' >/dev/null ; then
                   25003:     ai_p=$SQLITE3_DIR/include
                   25004:   else
                   25005: 
                   25006:     ep_dir="`echo $SQLITE3_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   25007: 
                   25008:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   25009:     ai_p="$ep_realdir/`basename \"$SQLITE3_DIR/include\"`"
                   25010:   fi
                   25011: 
                   25012: 
                   25013: 
                   25014:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   25015: 
                   25016:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   25017:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   25018:     eval "INCLUDEPATH$unique=set"
                   25019: 
                   25020:       if test ""; then
                   25021:         INCLUDES="-I$ai_p $INCLUDES"
                   25022:       else
                   25023:         INCLUDES="$INCLUDES -I$ai_p"
                   25024:       fi
                   25025: 
                   25026:   fi
                   25027: 
                   25028:   fi
                   25029: 
                   25030: 
                   25031: 
                   25032: else
                   25033: 
                   25034:     LDFLAGS=$save_old_LDFLAGS
                   25035:     ext_shared=$save_ext_shared
                   25036:     unset ac_cv_lib_sqlite3_sqlite3_prepare_v2
                   25037: 
                   25038:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   25039: $as_echo "not found" >&6; }
                   25040:       as_fn_error $? "Please install SQLite 3.3.9 first or check libsqlite3 is present" "$LINENO" 5
                   25041: 
                   25042: 
                   25043: fi
                   25044: 
                   25045: 
                   25046: 
                   25047:   save_old_LDFLAGS=$LDFLAGS
                   25048:   ac_stuff=""
                   25049: 
                   25050:   save_ext_shared=$ext_shared
                   25051:   ext_shared=yes
                   25052: 
                   25053:   for ac_i in $ac_stuff; do
                   25054:     case $ac_i in
                   25055:     -pthread)
                   25056:       if test "$ext_shared" = "yes"; then
                   25057:         LDFLAGS="$LDFLAGS -pthread"
                   25058:       else
                   25059: 
                   25060: 
                   25061:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   25062: 
                   25063:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   25064:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   25065:     eval "EXTRA_LDFLAGS$unique=set"
                   25066:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   25067:   fi
                   25068: 
                   25069:       fi
                   25070:     ;;
                   25071:     -l*)
                   25072:       ac_ii=`echo $ac_i|cut -c 3-`
                   25073: 
                   25074: 
                   25075:   case $ac_ii in
                   25076:   c|c_r|pthread*) ;;
                   25077:   *)
                   25078:     if test "$ext_shared" = "yes"; then
                   25079:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   25080:     else
                   25081: 
                   25082: 
                   25083:   case $ac_ii in
                   25084:   c|c_r|pthread*) ;;
                   25085:   *)
                   25086:       LIBS="$LIBS -l$ac_ii"
                   25087:    ;;
                   25088:   esac
                   25089: 
                   25090: 
                   25091:     fi
                   25092:    ;;
                   25093:   esac
                   25094: 
                   25095: 
                   25096:     ;;
                   25097:     -L*)
                   25098:       ac_ii=`echo $ac_i|cut -c 3-`
                   25099: 
                   25100:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   25101: 
                   25102:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   25103:     ai_p=$ac_ii
                   25104:   else
                   25105: 
                   25106:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   25107: 
                   25108:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   25109:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   25110:   fi
                   25111: 
                   25112: 
                   25113:       if test "$ext_shared" = "yes"; then
                   25114:         LDFLAGS="-L$ai_p $LDFLAGS"
                   25115:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   25116:       else
                   25117: 
                   25118: 
                   25119: 
                   25120:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   25121: 
                   25122:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   25123:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   25124:     eval "LIBPATH$unique=set"
                   25125: 
                   25126:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   25127:     LDFLAGS="$LDFLAGS -L$ai_p"
                   25128:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   25129: 
                   25130:   fi
                   25131: 
                   25132: 
                   25133:       fi
                   25134: 
                   25135:   fi
                   25136: 
                   25137:     ;;
                   25138:     esac
                   25139:   done
                   25140: 
                   25141:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5
                   25142: $as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; }
                   25143: if ${ac_cv_lib_sqlite3_sqlite3_key+:} false; then :
                   25144:   $as_echo_n "(cached) " >&6
                   25145: else
                   25146:   ac_check_lib_save_LIBS=$LIBS
                   25147: LIBS="-lsqlite3  $LIBS"
                   25148: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   25149: /* end confdefs.h.  */
                   25150: 
                   25151: /* Override any GCC internal prototype to avoid an error.
                   25152:    Use char because int might match the return type of a GCC
                   25153:    builtin and then its argument prototype would still apply.  */
                   25154: #ifdef __cplusplus
                   25155: extern "C"
                   25156: #endif
                   25157: char sqlite3_key ();
                   25158: int
                   25159: main ()
                   25160: {
                   25161: return sqlite3_key ();
                   25162:   ;
                   25163:   return 0;
                   25164: }
                   25165: _ACEOF
                   25166: if ac_fn_c_try_link "$LINENO"; then :
                   25167:   ac_cv_lib_sqlite3_sqlite3_key=yes
                   25168: else
                   25169:   ac_cv_lib_sqlite3_sqlite3_key=no
                   25170: fi
                   25171: rm -f core conftest.err conftest.$ac_objext \
                   25172:     conftest$ac_exeext conftest.$ac_ext
                   25173: LIBS=$ac_check_lib_save_LIBS
                   25174: fi
                   25175: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5
                   25176: $as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; }
                   25177: if test "x$ac_cv_lib_sqlite3_sqlite3_key" = xyes; then :
                   25178: 
                   25179:     LDFLAGS=$save_old_LDFLAGS
                   25180:     ext_shared=$save_ext_shared
                   25181: 
                   25182: 
                   25183: $as_echo "#define HAVE_SQLITE3_KEY 1" >>confdefs.h
                   25184: 
                   25185: 
                   25186: 
                   25187: else
                   25188: 
                   25189:     LDFLAGS=$save_old_LDFLAGS
                   25190:     ext_shared=$save_ext_shared
                   25191:     unset ac_cv_lib_sqlite3_sqlite3_key
                   25192: 
                   25193: 
                   25194: fi
                   25195: 
                   25196: 
                   25197: 
                   25198:   save_old_LDFLAGS=$LDFLAGS
                   25199:   ac_stuff=""
                   25200: 
                   25201:   save_ext_shared=$ext_shared
                   25202:   ext_shared=yes
                   25203: 
                   25204:   for ac_i in $ac_stuff; do
                   25205:     case $ac_i in
                   25206:     -pthread)
                   25207:       if test "$ext_shared" = "yes"; then
                   25208:         LDFLAGS="$LDFLAGS -pthread"
                   25209:       else
                   25210: 
                   25211: 
                   25212:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   25213: 
                   25214:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   25215:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   25216:     eval "EXTRA_LDFLAGS$unique=set"
                   25217:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   25218:   fi
                   25219: 
                   25220:       fi
                   25221:     ;;
                   25222:     -l*)
                   25223:       ac_ii=`echo $ac_i|cut -c 3-`
                   25224: 
                   25225: 
                   25226:   case $ac_ii in
                   25227:   c|c_r|pthread*) ;;
                   25228:   *)
                   25229:     if test "$ext_shared" = "yes"; then
                   25230:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   25231:     else
                   25232: 
                   25233: 
                   25234:   case $ac_ii in
                   25235:   c|c_r|pthread*) ;;
                   25236:   *)
                   25237:       LIBS="$LIBS -l$ac_ii"
                   25238:    ;;
                   25239:   esac
                   25240: 
                   25241: 
                   25242:     fi
                   25243:    ;;
                   25244:   esac
                   25245: 
                   25246: 
                   25247:     ;;
                   25248:     -L*)
                   25249:       ac_ii=`echo $ac_i|cut -c 3-`
                   25250: 
                   25251:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   25252: 
                   25253:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   25254:     ai_p=$ac_ii
                   25255:   else
                   25256: 
                   25257:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   25258: 
                   25259:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   25260:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   25261:   fi
                   25262: 
                   25263: 
                   25264:       if test "$ext_shared" = "yes"; then
                   25265:         LDFLAGS="-L$ai_p $LDFLAGS"
                   25266:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   25267:       else
                   25268: 
                   25269: 
                   25270: 
                   25271:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   25272: 
                   25273:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   25274:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   25275:     eval "LIBPATH$unique=set"
                   25276: 
                   25277:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   25278:     LDFLAGS="$LDFLAGS -L$ai_p"
                   25279:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   25280: 
                   25281:   fi
                   25282: 
                   25283: 
                   25284:       fi
                   25285: 
                   25286:   fi
                   25287: 
                   25288:     ;;
                   25289:     esac
                   25290:   done
                   25291: 
                   25292:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5
                   25293: $as_echo_n "checking for sqlite3_load_extension in -lsqlite3... " >&6; }
                   25294: if ${ac_cv_lib_sqlite3_sqlite3_load_extension+:} false; then :
                   25295:   $as_echo_n "(cached) " >&6
                   25296: else
                   25297:   ac_check_lib_save_LIBS=$LIBS
                   25298: LIBS="-lsqlite3  $LIBS"
                   25299: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   25300: /* end confdefs.h.  */
                   25301: 
                   25302: /* Override any GCC internal prototype to avoid an error.
                   25303:    Use char because int might match the return type of a GCC
                   25304:    builtin and then its argument prototype would still apply.  */
                   25305: #ifdef __cplusplus
                   25306: extern "C"
                   25307: #endif
                   25308: char sqlite3_load_extension ();
                   25309: int
                   25310: main ()
                   25311: {
                   25312: return sqlite3_load_extension ();
                   25313:   ;
                   25314:   return 0;
                   25315: }
                   25316: _ACEOF
                   25317: if ac_fn_c_try_link "$LINENO"; then :
                   25318:   ac_cv_lib_sqlite3_sqlite3_load_extension=yes
                   25319: else
                   25320:   ac_cv_lib_sqlite3_sqlite3_load_extension=no
                   25321: fi
                   25322: rm -f core conftest.err conftest.$ac_objext \
                   25323:     conftest$ac_exeext conftest.$ac_ext
                   25324: LIBS=$ac_check_lib_save_LIBS
                   25325: fi
                   25326: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5
                   25327: $as_echo "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; }
                   25328: if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes; then :
                   25329: 
                   25330:     LDFLAGS=$save_old_LDFLAGS
                   25331:     ext_shared=$save_ext_shared
                   25332: 
                   25333: 
                   25334: else
                   25335: 
                   25336:     LDFLAGS=$save_old_LDFLAGS
                   25337:     ext_shared=$save_ext_shared
                   25338:     unset ac_cv_lib_sqlite3_sqlite3_load_extension
                   25339: 
                   25340: $as_echo "#define SQLITE_OMIT_LOAD_EXTENSION 1" >>confdefs.h
                   25341: 
                   25342: 
                   25343: 
                   25344: fi
                   25345: 
                   25346: 
                   25347:   else
                   25348:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking bundled sqlite3 library" >&5
                   25349: $as_echo_n "checking bundled sqlite3 library... " >&6; }
                   25350:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   25351: $as_echo "yes" >&6; }
                   25352: 
                   25353:     sqlite3_extra_sources="libsqlite/sqlite3.c"
                   25354: 
                   25355:     if test "$enable_maintainer_zts" = "yes"; then
                   25356:       threadsafe_flags="-DSQLITE_THREADSAFE=1"
                   25357:     else
                   25358:       threadsafe_flags="-DSQLITE_THREADSAFE=0"
                   25359:     fi
                   25360: 
                   25361:     if test "$ZEND_DEBUG" = "yes"; then
                   25362:       debug_flags="-DSQLITE_DEBUG=1"
                   25363:     fi
                   25364: 
                   25365:     other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"
                   25366: 
                   25367:            if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then
                   25368:       other_flags="$other_flags -DSQLITE_ENABLE_ICU=1"
                   25369:     fi
                   25370: 
                   25371:     PHP_SQLITE3_CFLAGS="-I@ext_srcdir@/libsqlite $other_flags $threadsafe_flags $debug_flags"
                   25372: 
                   25373: 
                   25374:     for header_file in ext/sqlite3/libsqlite/sqlite3.h; do
                   25375: 
                   25376: 
                   25377:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
                   25378: 
                   25379:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   25380:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   25381:     eval "INSTALLHEADERS$unique=set"
                   25382: 
                   25383:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
                   25384: 
                   25385:   fi
                   25386: 
                   25387:     done
                   25388: 
                   25389: 
                   25390:   fi
                   25391: 
                   25392: 
                   25393: $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
                   25394: 
                   25395: 
                   25396:   sqlite3_sources="sqlite3.c $sqlite3_extra_sources"
                   25397: 
                   25398: 
                   25399:   ext_builddir=ext/sqlite3
                   25400:   ext_srcdir=$abs_srcdir/ext/sqlite3
                   25401: 
                   25402:   ac_extra=`echo "$PHP_SQLITE3_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
                   25403: 
                   25404:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   25405:     PHP_SQLITE3_SHARED=no
                   25406: 
                   25407: 
                   25408:   case ext/sqlite3 in
                   25409:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   25410:   /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   25411:   *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   25412:   esac
                   25413: 
                   25414: 
                   25415: 
                   25416:   b_c_pre=$php_c_pre
                   25417:   b_cxx_pre=$php_cxx_pre
                   25418:   b_c_meta=$php_c_meta
                   25419:   b_cxx_meta=$php_cxx_meta
                   25420:   b_c_post=$php_c_post
                   25421:   b_cxx_post=$php_cxx_post
                   25422:   b_lo=$php_lo
                   25423: 
                   25424: 
                   25425:   old_IFS=$IFS
                   25426:   for ac_src in $sqlite3_sources; do
                   25427: 
                   25428:       IFS=.
                   25429:       set $ac_src
                   25430:       ac_obj=$1
                   25431:       IFS=$old_IFS
                   25432: 
                   25433:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   25434: 
                   25435:       case $ac_src in
                   25436:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25437:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25438:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25439:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   25440:       esac
                   25441: 
                   25442:     cat >>Makefile.objects<<EOF
                   25443: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   25444:        $ac_comp
                   25445: EOF
                   25446:   done
                   25447: 
                   25448: 
                   25449:     EXT_STATIC="$EXT_STATIC sqlite3"
                   25450:     if test "$ext_shared" != "nocli"; then
                   25451:       EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite3"
                   25452:     fi
                   25453:   else
                   25454:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   25455:       PHP_SQLITE3_SHARED=yes
                   25456: 
                   25457:   case ext/sqlite3 in
                   25458:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   25459:   /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   25460:   *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   25461:   esac
                   25462: 
                   25463: 
                   25464: 
                   25465:   b_c_pre=$shared_c_pre
                   25466:   b_cxx_pre=$shared_cxx_pre
                   25467:   b_c_meta=$shared_c_meta
                   25468:   b_cxx_meta=$shared_cxx_meta
                   25469:   b_c_post=$shared_c_post
                   25470:   b_cxx_post=$shared_cxx_post
                   25471:   b_lo=$shared_lo
                   25472: 
                   25473: 
                   25474:   old_IFS=$IFS
                   25475:   for ac_src in $sqlite3_sources; do
                   25476: 
                   25477:       IFS=.
                   25478:       set $ac_src
                   25479:       ac_obj=$1
                   25480:       IFS=$old_IFS
                   25481: 
                   25482:       shared_objects_sqlite3="$shared_objects_sqlite3 $ac_bdir$ac_obj.lo"
                   25483: 
                   25484:       case $ac_src in
                   25485:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25486:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25487:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25488:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   25489:       esac
                   25490: 
                   25491:     cat >>Makefile.objects<<EOF
                   25492: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   25493:        $ac_comp
                   25494: EOF
                   25495:   done
                   25496: 
                   25497:       case $host_alias in
                   25498:         *netware*)
                   25499: 
                   25500:   install_modules="install-modules"
                   25501: 
                   25502:   case $host_alias in
                   25503:     *aix*)
                   25504:       suffix=so
                   25505:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsqlite3.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) $(PHPSQLITE3_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsqlite3.so '$ext_builddir'/phpsqlite3.so'
                   25506:       ;;
                   25507:     *netware*)
                   25508:       suffix=nlm
                   25509:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) -L$(top_builddir)/netware -lphp5lib $(SQLITE3_SHARED_LIBADD)'
                   25510:       ;;
                   25511:     *)
                   25512:       suffix=la
                   25513:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) $(PHPSQLITE3_SHARED_LIBADD)'
                   25514:       ;;
                   25515:   esac
                   25516: 
                   25517:   if test "x" = "xyes"; then
                   25518:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsqlite3.$suffix"
                   25519:   else
                   25520:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsqlite3.$suffix"
                   25521:   fi
                   25522: 
                   25523:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sqlite3"
                   25524: 
                   25525:   cat >>Makefile.objects<<EOF
                   25526: \$(phplibdir)/phpsqlite3.$suffix: $ext_builddir/phpsqlite3.$suffix
                   25527:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsqlite3.$suffix \$(phplibdir)
                   25528: 
                   25529: $ext_builddir/phpsqlite3.$suffix: \$(shared_objects_sqlite3) \$(PHPSQLITE3_SHARED_DEPENDENCIES)
                   25530:        $link_cmd
                   25531: 
                   25532: EOF
                   25533: 
                   25534:           ;;
                   25535:         *)
                   25536: 
                   25537:   install_modules="install-modules"
                   25538: 
                   25539:   case $host_alias in
                   25540:     *aix*)
                   25541:       suffix=so
                   25542:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sqlite3.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) $(SQLITE3_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sqlite3.so '$ext_builddir'/sqlite3.so'
                   25543:       ;;
                   25544:     *netware*)
                   25545:       suffix=nlm
                   25546:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) -L$(top_builddir)/netware -lphp5lib $(ITE3_SHARED_LIBADD)'
                   25547:       ;;
                   25548:     *)
                   25549:       suffix=la
                   25550:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) $(SQLITE3_SHARED_LIBADD)'
                   25551:       ;;
                   25552:   esac
                   25553: 
                   25554:   if test "x" = "xyes"; then
                   25555:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sqlite3.$suffix"
                   25556:   else
                   25557:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/sqlite3.$suffix"
                   25558:   fi
                   25559: 
                   25560:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sqlite3"
                   25561: 
                   25562:   cat >>Makefile.objects<<EOF
                   25563: \$(phplibdir)/sqlite3.$suffix: $ext_builddir/sqlite3.$suffix
                   25564:        \$(LIBTOOL) --mode=install cp $ext_builddir/sqlite3.$suffix \$(phplibdir)
                   25565: 
                   25566: $ext_builddir/sqlite3.$suffix: \$(shared_objects_sqlite3) \$(SQLITE3_SHARED_DEPENDENCIES)
                   25567:        $link_cmd
                   25568: 
                   25569: EOF
                   25570: 
                   25571:           ;;
                   25572:       esac
                   25573: 
                   25574: cat >>confdefs.h <<_ACEOF
                   25575: #define COMPILE_DL_SQLITE3 1
                   25576: _ACEOF
                   25577: 
                   25578:     fi
                   25579:   fi
                   25580: 
                   25581:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   25582:     PHP_SQLITE3_SHARED=no
                   25583: 
                   25584: 
                   25585:   case ext/sqlite3 in
                   25586:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   25587:   /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   25588:   *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   25589:   esac
                   25590: 
                   25591: 
                   25592: 
                   25593:   b_c_pre=$php_c_pre
                   25594:   b_cxx_pre=$php_cxx_pre
                   25595:   b_c_meta=$php_c_meta
                   25596:   b_cxx_meta=$php_cxx_meta
                   25597:   b_c_post=$php_c_post
                   25598:   b_cxx_post=$php_cxx_post
                   25599:   b_lo=$php_lo
                   25600: 
                   25601: 
                   25602:   old_IFS=$IFS
                   25603:   for ac_src in $sqlite3_sources; do
                   25604: 
                   25605:       IFS=.
                   25606:       set $ac_src
                   25607:       ac_obj=$1
                   25608:       IFS=$old_IFS
                   25609: 
1.1.1.2 ! misho    25610:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    25611: 
                   25612:       case $ac_src in
                   25613:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25614:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25615:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25616:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   25617:       esac
                   25618: 
                   25619:     cat >>Makefile.objects<<EOF
                   25620: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   25621:        $ac_comp
                   25622: EOF
                   25623:   done
                   25624: 
                   25625: 
                   25626: 
                   25627: 
                   25628:   case ext/sqlite3 in
                   25629:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   25630:   /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   25631:   *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   25632:   esac
                   25633: 
                   25634: 
                   25635: 
                   25636:   b_c_pre=$php_c_pre
                   25637:   b_cxx_pre=$php_cxx_pre
                   25638:   b_c_meta=$php_c_meta
                   25639:   b_cxx_meta=$php_cxx_meta
                   25640:   b_c_post=$php_c_post
                   25641:   b_cxx_post=$php_cxx_post
                   25642:   b_lo=$php_lo
                   25643: 
                   25644: 
                   25645:   old_IFS=$IFS
                   25646:   for ac_src in $sqlite3_sources; do
                   25647: 
                   25648:       IFS=.
                   25649:       set $ac_src
                   25650:       ac_obj=$1
                   25651:       IFS=$old_IFS
                   25652: 
1.1.1.2 ! misho    25653:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    25654: 
                   25655:       case $ac_src in
                   25656:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25657:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25658:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25659:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   25660:       esac
                   25661: 
                   25662:     cat >>Makefile.objects<<EOF
                   25663: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   25664:        $ac_comp
                   25665: EOF
                   25666:   done
                   25667: 
                   25668: 
                   25669: 
                   25670: 
                   25671:   case ext/sqlite3 in
                   25672:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   25673:   /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   25674:   *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   25675:   esac
                   25676: 
                   25677: 
                   25678: 
                   25679:   b_c_pre=$php_c_pre
                   25680:   b_cxx_pre=$php_cxx_pre
                   25681:   b_c_meta=$php_c_meta
                   25682:   b_cxx_meta=$php_cxx_meta
                   25683:   b_c_post=$php_c_post
                   25684:   b_cxx_post=$php_cxx_post
                   25685:   b_lo=$php_lo
                   25686: 
                   25687: 
                   25688:   old_IFS=$IFS
                   25689:   for ac_src in $sqlite3_sources; do
                   25690: 
                   25691:       IFS=.
                   25692:       set $ac_src
                   25693:       ac_obj=$1
                   25694:       IFS=$old_IFS
                   25695: 
1.1.1.2 ! misho    25696:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    25697: 
                   25698:       case $ac_src in
                   25699:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25700:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25701:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25702:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   25703:       esac
                   25704: 
                   25705:     cat >>Makefile.objects<<EOF
                   25706: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   25707:        $ac_comp
                   25708: EOF
                   25709:   done
                   25710: 
                   25711: 
                   25712:     EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite3"
                   25713:   fi
                   25714: 
                   25715: 
                   25716:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   25717: 
                   25718: 
                   25719: 
                   25720:   if test "$ext_builddir" = "."; then
                   25721:     PHP_PECL_EXTENSION=sqlite3
                   25722: 
                   25723:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   25724: 
                   25725:   fi
                   25726: 
                   25727: 
                   25728: 
                   25729:     BUILD_DIR="$BUILD_DIR $ext_builddir/libsqlite"
                   25730: 
                   25731: 
                   25732: 
                   25733:   PHP_VAR_SUBST="$PHP_VAR_SUBST SQLITE3_SHARED_LIBADD"
                   25734: 
                   25735: fi
                   25736: 
                   25737: 
                   25738: 
                   25739: php_with_zlib=no
                   25740: 
                   25741: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB support" >&5
                   25742: $as_echo_n "checking for ZLIB support... " >&6; }
                   25743: 
                   25744: # Check whether --with-zlib was given.
                   25745: if test "${with_zlib+set}" = set; then :
                   25746:   withval=$with_zlib; PHP_ZLIB=$withval
                   25747: else
                   25748: 
                   25749:   PHP_ZLIB=no
                   25750:   test "$PHP_ENABLE_ALL" && PHP_ZLIB=$PHP_ENABLE_ALL
                   25751: 
                   25752: fi
                   25753: 
                   25754: 
                   25755: 
                   25756: ext_output="yes, shared"
                   25757: ext_shared=yes
                   25758: case $PHP_ZLIB in
                   25759: shared,*)
                   25760:   PHP_ZLIB=`echo "$PHP_ZLIB"|$SED 's/^shared,//'`
                   25761:   ;;
                   25762: shared)
                   25763:   PHP_ZLIB=yes
                   25764:   ;;
                   25765: no)
                   25766:   ext_output=no
                   25767:   ext_shared=no
                   25768:   ;;
                   25769: *)
                   25770:   ext_output=yes
                   25771:   ext_shared=no
                   25772:   ;;
                   25773: esac
                   25774: 
                   25775: 
                   25776: 
                   25777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   25778: $as_echo "$ext_output" >&6; }
                   25779: 
                   25780: 
                   25781: 
                   25782: 
                   25783: 
                   25784: php_with_zlib_dir=no
                   25785: 
                   25786: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the location of ZLIB install directory is defined" >&5
                   25787: $as_echo_n "checking if the location of ZLIB install directory is defined... " >&6; }
                   25788: 
                   25789: # Check whether --with-zlib-dir was given.
                   25790: if test "${with_zlib_dir+set}" = set; then :
                   25791:   withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
                   25792: else
                   25793: 
                   25794:   PHP_ZLIB_DIR=no
                   25795: 
                   25796: 
                   25797: fi
                   25798: 
                   25799: 
                   25800: ext_output=$PHP_ZLIB_DIR
                   25801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   25802: $as_echo "$ext_output" >&6; }
                   25803: 
                   25804: 
                   25805: 
                   25806: 
                   25807: if test "$PHP_ZLIB" != "no"; then
                   25808: 
                   25809:   ext_builddir=ext/zlib
                   25810:   ext_srcdir=$abs_srcdir/ext/zlib
                   25811: 
                   25812:   ac_extra=
                   25813: 
                   25814:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   25815:     PHP_ZLIB_SHARED=no
                   25816: 
                   25817: 
                   25818:   case ext/zlib in
                   25819:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   25820:   /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   25821:   *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   25822:   esac
                   25823: 
                   25824: 
                   25825: 
                   25826:   b_c_pre=$php_c_pre
                   25827:   b_cxx_pre=$php_cxx_pre
                   25828:   b_c_meta=$php_c_meta
                   25829:   b_cxx_meta=$php_cxx_meta
                   25830:   b_c_post=$php_c_post
                   25831:   b_cxx_post=$php_cxx_post
                   25832:   b_lo=$php_lo
                   25833: 
                   25834: 
                   25835:   old_IFS=$IFS
                   25836:   for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
                   25837: 
                   25838:       IFS=.
                   25839:       set $ac_src
                   25840:       ac_obj=$1
                   25841:       IFS=$old_IFS
                   25842: 
                   25843:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   25844: 
                   25845:       case $ac_src in
                   25846:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25847:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25848:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25849:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   25850:       esac
                   25851: 
                   25852:     cat >>Makefile.objects<<EOF
                   25853: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   25854:        $ac_comp
                   25855: EOF
                   25856:   done
                   25857: 
                   25858: 
                   25859:     EXT_STATIC="$EXT_STATIC zlib"
                   25860:     if test "$ext_shared" != "nocli"; then
                   25861:       EXT_CLI_STATIC="$EXT_CLI_STATIC zlib"
                   25862:     fi
                   25863:   else
                   25864:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   25865:       PHP_ZLIB_SHARED=yes
                   25866: 
                   25867:   case ext/zlib in
                   25868:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   25869:   /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   25870:   *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   25871:   esac
                   25872: 
                   25873: 
                   25874: 
                   25875:   b_c_pre=$shared_c_pre
                   25876:   b_cxx_pre=$shared_cxx_pre
                   25877:   b_c_meta=$shared_c_meta
                   25878:   b_cxx_meta=$shared_cxx_meta
                   25879:   b_c_post=$shared_c_post
                   25880:   b_cxx_post=$shared_cxx_post
                   25881:   b_lo=$shared_lo
                   25882: 
                   25883: 
                   25884:   old_IFS=$IFS
                   25885:   for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
                   25886: 
                   25887:       IFS=.
                   25888:       set $ac_src
                   25889:       ac_obj=$1
                   25890:       IFS=$old_IFS
                   25891: 
                   25892:       shared_objects_zlib="$shared_objects_zlib $ac_bdir$ac_obj.lo"
                   25893: 
                   25894:       case $ac_src in
                   25895:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25896:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25897:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   25898:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   25899:       esac
                   25900: 
                   25901:     cat >>Makefile.objects<<EOF
                   25902: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   25903:        $ac_comp
                   25904: EOF
                   25905:   done
                   25906: 
                   25907:       case $host_alias in
                   25908:         *netware*)
                   25909: 
                   25910:   install_modules="install-modules"
                   25911: 
                   25912:   case $host_alias in
                   25913:     *aix*)
                   25914:       suffix=so
                   25915:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpzlib.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) $(PHPZLIB_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpzlib.so '$ext_builddir'/phpzlib.so'
                   25916:       ;;
                   25917:     *netware*)
                   25918:       suffix=nlm
                   25919:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) -L$(top_builddir)/netware -lphp5lib $(ZLIB_SHARED_LIBADD)'
                   25920:       ;;
                   25921:     *)
                   25922:       suffix=la
                   25923:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) $(PHPZLIB_SHARED_LIBADD)'
                   25924:       ;;
                   25925:   esac
                   25926: 
                   25927:   if test "x" = "xyes"; then
                   25928:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpzlib.$suffix"
                   25929:   else
                   25930:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpzlib.$suffix"
                   25931:   fi
                   25932: 
                   25933:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zlib"
                   25934: 
                   25935:   cat >>Makefile.objects<<EOF
                   25936: \$(phplibdir)/phpzlib.$suffix: $ext_builddir/phpzlib.$suffix
                   25937:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpzlib.$suffix \$(phplibdir)
                   25938: 
                   25939: $ext_builddir/phpzlib.$suffix: \$(shared_objects_zlib) \$(PHPZLIB_SHARED_DEPENDENCIES)
                   25940:        $link_cmd
                   25941: 
                   25942: EOF
                   25943: 
                   25944:           ;;
                   25945:         *)
                   25946: 
                   25947:   install_modules="install-modules"
                   25948: 
                   25949:   case $host_alias in
                   25950:     *aix*)
                   25951:       suffix=so
                   25952:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/zlib.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) $(ZLIB_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/zlib.so '$ext_builddir'/zlib.so'
                   25953:       ;;
                   25954:     *netware*)
                   25955:       suffix=nlm
                   25956:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) -L$(top_builddir)/netware -lphp5lib $(B_SHARED_LIBADD)'
                   25957:       ;;
                   25958:     *)
                   25959:       suffix=la
                   25960:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) $(ZLIB_SHARED_LIBADD)'
                   25961:       ;;
                   25962:   esac
                   25963: 
                   25964:   if test "x" = "xyes"; then
                   25965:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/zlib.$suffix"
                   25966:   else
                   25967:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/zlib.$suffix"
                   25968:   fi
                   25969: 
                   25970:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zlib"
                   25971: 
                   25972:   cat >>Makefile.objects<<EOF
                   25973: \$(phplibdir)/zlib.$suffix: $ext_builddir/zlib.$suffix
                   25974:        \$(LIBTOOL) --mode=install cp $ext_builddir/zlib.$suffix \$(phplibdir)
                   25975: 
                   25976: $ext_builddir/zlib.$suffix: \$(shared_objects_zlib) \$(ZLIB_SHARED_DEPENDENCIES)
                   25977:        $link_cmd
                   25978: 
                   25979: EOF
                   25980: 
                   25981:           ;;
                   25982:       esac
                   25983: 
                   25984: cat >>confdefs.h <<_ACEOF
                   25985: #define COMPILE_DL_ZLIB 1
                   25986: _ACEOF
                   25987: 
                   25988:     fi
                   25989:   fi
                   25990: 
                   25991:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   25992:     PHP_ZLIB_SHARED=no
                   25993: 
                   25994: 
                   25995:   case ext/zlib in
                   25996:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   25997:   /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   25998:   *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   25999:   esac
                   26000: 
                   26001: 
                   26002: 
                   26003:   b_c_pre=$php_c_pre
                   26004:   b_cxx_pre=$php_cxx_pre
                   26005:   b_c_meta=$php_c_meta
                   26006:   b_cxx_meta=$php_cxx_meta
                   26007:   b_c_post=$php_c_post
                   26008:   b_cxx_post=$php_cxx_post
                   26009:   b_lo=$php_lo
                   26010: 
                   26011: 
                   26012:   old_IFS=$IFS
                   26013:   for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
                   26014: 
                   26015:       IFS=.
                   26016:       set $ac_src
                   26017:       ac_obj=$1
                   26018:       IFS=$old_IFS
                   26019: 
1.1.1.2 ! misho    26020:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    26021: 
                   26022:       case $ac_src in
                   26023:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26024:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26025:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26026:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   26027:       esac
                   26028: 
                   26029:     cat >>Makefile.objects<<EOF
                   26030: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   26031:        $ac_comp
                   26032: EOF
                   26033:   done
                   26034: 
                   26035: 
                   26036: 
                   26037: 
                   26038:   case ext/zlib in
                   26039:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   26040:   /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   26041:   *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   26042:   esac
                   26043: 
                   26044: 
                   26045: 
                   26046:   b_c_pre=$php_c_pre
                   26047:   b_cxx_pre=$php_cxx_pre
                   26048:   b_c_meta=$php_c_meta
                   26049:   b_cxx_meta=$php_cxx_meta
                   26050:   b_c_post=$php_c_post
                   26051:   b_cxx_post=$php_cxx_post
                   26052:   b_lo=$php_lo
                   26053: 
                   26054: 
                   26055:   old_IFS=$IFS
                   26056:   for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
                   26057: 
                   26058:       IFS=.
                   26059:       set $ac_src
                   26060:       ac_obj=$1
                   26061:       IFS=$old_IFS
                   26062: 
1.1.1.2 ! misho    26063:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    26064: 
                   26065:       case $ac_src in
                   26066:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26067:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26068:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26069:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   26070:       esac
                   26071: 
                   26072:     cat >>Makefile.objects<<EOF
                   26073: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   26074:        $ac_comp
                   26075: EOF
                   26076:   done
                   26077: 
                   26078: 
                   26079: 
                   26080: 
                   26081:   case ext/zlib in
                   26082:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   26083:   /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   26084:   *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   26085:   esac
                   26086: 
                   26087: 
                   26088: 
                   26089:   b_c_pre=$php_c_pre
                   26090:   b_cxx_pre=$php_cxx_pre
                   26091:   b_c_meta=$php_c_meta
                   26092:   b_cxx_meta=$php_cxx_meta
                   26093:   b_c_post=$php_c_post
                   26094:   b_cxx_post=$php_cxx_post
                   26095:   b_lo=$php_lo
                   26096: 
                   26097: 
                   26098:   old_IFS=$IFS
                   26099:   for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
                   26100: 
                   26101:       IFS=.
                   26102:       set $ac_src
                   26103:       ac_obj=$1
                   26104:       IFS=$old_IFS
                   26105: 
1.1.1.2 ! misho    26106:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    26107: 
                   26108:       case $ac_src in
                   26109:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26110:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26111:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26112:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   26113:       esac
                   26114: 
                   26115:     cat >>Makefile.objects<<EOF
                   26116: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   26117:        $ac_comp
                   26118: EOF
                   26119:   done
                   26120: 
                   26121: 
                   26122:     EXT_CLI_STATIC="$EXT_CLI_STATIC zlib"
                   26123:   fi
                   26124: 
                   26125: 
                   26126:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   26127: 
                   26128: 
                   26129: 
                   26130:   if test "$ext_builddir" = "."; then
                   26131:     PHP_PECL_EXTENSION=zlib
                   26132: 
                   26133:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   26134: 
                   26135:   fi
                   26136: 
                   26137: 
                   26138:   PHP_VAR_SUBST="$PHP_VAR_SUBST ZLIB_SHARED_LIBADD"
                   26139: 
                   26140: 
                   26141:   if test "$PHP_ZLIB" != "yes" -a "$PHP_ZLIB" != "no"; then
                   26142:     if test -f $PHP_ZLIB/include/zlib/zlib.h; then
                   26143:       ZLIB_DIR=$PHP_ZLIB
                   26144:       ZLIB_INCDIR=$ZLIB_DIR/include/zlib
                   26145:     elif test -f $PHP_ZLIB/include/zlib.h; then
                   26146:       ZLIB_DIR=$PHP_ZLIB
                   26147:       ZLIB_INCDIR=$ZLIB_DIR/include
                   26148:     fi
                   26149:   else
                   26150:     for i in /usr/local /usr $PHP_ZLIB_DIR; do
                   26151:       if test -f $i/include/zlib/zlib.h; then
                   26152:         ZLIB_DIR=$i
                   26153:         ZLIB_INCDIR=$i/include/zlib
                   26154:       elif test -f $i/include/zlib.h; then
                   26155:         ZLIB_DIR=$i
                   26156:         ZLIB_INCDIR=$i/include
                   26157:       fi
                   26158:     done
                   26159:   fi
                   26160: 
                   26161:   if test -z "$ZLIB_DIR"; then
                   26162:     as_fn_error $? "Cannot find libz" "$LINENO" 5
                   26163:   fi
                   26164: 
                   26165:   case $ZLIB_DIR in
                   26166:   /usr) ac_extra= ;;
                   26167:   *) ac_extra=-L$ZLIB_DIR/$PHP_LIBDIR ;;
                   26168:   esac
                   26169: 
1.1.1.2 ! misho    26170:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib version >= 1.2.0.4" >&5
        !          26171: $as_echo_n "checking for zlib version >= 1.2.0.4... " >&6; }
        !          26172:   ZLIB_VERSION=`$EGREP "define ZLIB_VERSION" $ZLIB_DIR/include/zlib.h | $SED -e 's/[^0-9\.]//g'`
        !          26173:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZLIB_VERSION" >&5
        !          26174: $as_echo "$ZLIB_VERSION" >&6; }
        !          26175:   if test `echo $ZLIB_VERSION | $SED -e 's/[^0-9]/ /g' | $AWK '{print $1*1000000 + $2*10000 + $3*100 + $4}'` -lt 1020004; then
        !          26176:     as_fn_error $? "libz version greater or equal to 1.2.0.4 required" "$LINENO" 5
        !          26177:   fi
        !          26178: 
1.1       misho    26179: 
                   26180:   save_old_LDFLAGS=$LDFLAGS
                   26181:   ac_stuff="
                   26182:     $ac_extra
                   26183:   "
                   26184: 
                   26185:   save_ext_shared=$ext_shared
                   26186:   ext_shared=yes
                   26187: 
                   26188:   for ac_i in $ac_stuff; do
                   26189:     case $ac_i in
                   26190:     -pthread)
                   26191:       if test "$ext_shared" = "yes"; then
                   26192:         LDFLAGS="$LDFLAGS -pthread"
                   26193:       else
                   26194: 
                   26195: 
                   26196:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   26197: 
                   26198:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   26199:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   26200:     eval "EXTRA_LDFLAGS$unique=set"
                   26201:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   26202:   fi
                   26203: 
                   26204:       fi
                   26205:     ;;
                   26206:     -l*)
                   26207:       ac_ii=`echo $ac_i|cut -c 3-`
                   26208: 
                   26209: 
                   26210:   case $ac_ii in
                   26211:   c|c_r|pthread*) ;;
                   26212:   *)
                   26213:     if test "$ext_shared" = "yes"; then
                   26214:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   26215:     else
                   26216: 
                   26217: 
                   26218:   case $ac_ii in
                   26219:   c|c_r|pthread*) ;;
                   26220:   *)
                   26221:       LIBS="$LIBS -l$ac_ii"
                   26222:    ;;
                   26223:   esac
                   26224: 
                   26225: 
                   26226:     fi
                   26227:    ;;
                   26228:   esac
                   26229: 
                   26230: 
                   26231:     ;;
                   26232:     -L*)
                   26233:       ac_ii=`echo $ac_i|cut -c 3-`
                   26234: 
                   26235:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   26236: 
                   26237:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   26238:     ai_p=$ac_ii
                   26239:   else
                   26240: 
                   26241:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   26242: 
                   26243:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   26244:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   26245:   fi
                   26246: 
                   26247: 
                   26248:       if test "$ext_shared" = "yes"; then
                   26249:         LDFLAGS="-L$ai_p $LDFLAGS"
                   26250:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   26251:       else
                   26252: 
                   26253: 
                   26254: 
                   26255:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   26256: 
                   26257:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   26258:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   26259:     eval "LIBPATH$unique=set"
                   26260: 
                   26261:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   26262:     LDFLAGS="$LDFLAGS -L$ai_p"
                   26263:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   26264: 
                   26265:   fi
                   26266: 
                   26267: 
                   26268:       fi
                   26269: 
                   26270:   fi
                   26271: 
                   26272:     ;;
                   26273:     esac
                   26274:   done
                   26275: 
                   26276:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
                   26277: $as_echo_n "checking for gzgets in -lz... " >&6; }
                   26278: if ${ac_cv_lib_z_gzgets+:} false; then :
                   26279:   $as_echo_n "(cached) " >&6
                   26280: else
                   26281:   ac_check_lib_save_LIBS=$LIBS
                   26282: LIBS="-lz  $LIBS"
                   26283: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   26284: /* end confdefs.h.  */
                   26285: 
                   26286: /* Override any GCC internal prototype to avoid an error.
                   26287:    Use char because int might match the return type of a GCC
                   26288:    builtin and then its argument prototype would still apply.  */
                   26289: #ifdef __cplusplus
                   26290: extern "C"
                   26291: #endif
                   26292: char gzgets ();
                   26293: int
                   26294: main ()
                   26295: {
                   26296: return gzgets ();
                   26297:   ;
                   26298:   return 0;
                   26299: }
                   26300: _ACEOF
                   26301: if ac_fn_c_try_link "$LINENO"; then :
                   26302:   ac_cv_lib_z_gzgets=yes
                   26303: else
                   26304:   ac_cv_lib_z_gzgets=no
                   26305: fi
                   26306: rm -f core conftest.err conftest.$ac_objext \
                   26307:     conftest$ac_exeext conftest.$ac_ext
                   26308: LIBS=$ac_check_lib_save_LIBS
                   26309: fi
                   26310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
                   26311: $as_echo "$ac_cv_lib_z_gzgets" >&6; }
                   26312: if test "x$ac_cv_lib_z_gzgets" = xyes; then :
                   26313: 
                   26314:     LDFLAGS=$save_old_LDFLAGS
                   26315:     ext_shared=$save_ext_shared
                   26316: 
                   26317: 
                   26318: $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
                   26319: 
                   26320: 
                   26321: 
                   26322: else
                   26323: 
                   26324:     LDFLAGS=$save_old_LDFLAGS
                   26325:     ext_shared=$save_ext_shared
                   26326:     unset ac_cv_lib_z_gzgets
                   26327: 
1.1.1.2 ! misho    26328:     as_fn_error $? "ZLIB extension requires gzgets in zlib" "$LINENO" 5
1.1       misho    26329: 
                   26330: 
                   26331: fi
                   26332: 
                   26333: 
                   26334: 
                   26335:   if test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   26336: 
                   26337:   if test -z "$ZLIB_DIR/$PHP_LIBDIR" || echo "$ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   26338:     ai_p=$ZLIB_DIR/$PHP_LIBDIR
                   26339:   else
                   26340: 
                   26341:     ep_dir="`echo $ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   26342: 
                   26343:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   26344:     ai_p="$ep_realdir/`basename \"$ZLIB_DIR/$PHP_LIBDIR\"`"
                   26345:   fi
                   26346: 
                   26347: 
                   26348:       if test "$ext_shared" = "yes"; then
                   26349:         ZLIB_SHARED_LIBADD="-L$ai_p $ZLIB_SHARED_LIBADD"
                   26350:         test -n "$ld_runpath_switch" && ZLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZLIB_SHARED_LIBADD"
                   26351:       else
                   26352: 
                   26353: 
                   26354: 
                   26355:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   26356: 
                   26357:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   26358:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   26359:     eval "LIBPATH$unique=set"
                   26360: 
                   26361:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   26362:     LDFLAGS="$LDFLAGS -L$ai_p"
                   26363:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   26364: 
                   26365:   fi
                   26366: 
                   26367: 
                   26368:       fi
                   26369: 
                   26370:   fi
                   26371: 
                   26372: 
                   26373:   PHP_ZLIB_DIR=$ZLIB_DIR
                   26374: 
                   26375: 
                   26376:   case z in
                   26377:   c|c_r|pthread*) ;;
                   26378:   *)
                   26379:     if test "$ext_shared" = "yes"; then
                   26380:         ZLIB_SHARED_LIBADD="-lz $ZLIB_SHARED_LIBADD"
                   26381:     else
                   26382: 
                   26383: 
                   26384:   case z in
                   26385:   c|c_r|pthread*) ;;
                   26386:   *)
                   26387:       LIBS="-lz $LIBS"
                   26388:    ;;
                   26389:   esac
                   26390: 
                   26391: 
                   26392:     fi
                   26393:    ;;
                   26394:   esac
                   26395: 
                   26396: 
                   26397: 
                   26398:   if test "$ZLIB_INCDIR" != "/usr/include"; then
                   26399: 
                   26400:   if test -z "$ZLIB_INCDIR" || echo "$ZLIB_INCDIR" | grep '^/' >/dev/null ; then
                   26401:     ai_p=$ZLIB_INCDIR
                   26402:   else
                   26403: 
                   26404:     ep_dir="`echo $ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   26405: 
                   26406:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   26407:     ai_p="$ep_realdir/`basename \"$ZLIB_INCDIR\"`"
                   26408:   fi
                   26409: 
                   26410: 
                   26411: 
                   26412:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   26413: 
                   26414:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   26415:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   26416:     eval "INCLUDEPATH$unique=set"
                   26417: 
                   26418:       if test ""; then
                   26419:         INCLUDES="-I$ai_p $INCLUDES"
                   26420:       else
                   26421:         INCLUDES="$INCLUDES -I$ai_p"
                   26422:       fi
                   26423: 
                   26424:   fi
                   26425: 
                   26426:   fi
                   26427: 
                   26428: 
                   26429: fi
                   26430: 
                   26431: 
                   26432: 
                   26433: php_enable_bcmath=no
                   26434: 
                   26435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable bc style precision math functions" >&5
                   26436: $as_echo_n "checking whether to enable bc style precision math functions... " >&6; }
                   26437: # Check whether --enable-bcmath was given.
                   26438: if test "${enable_bcmath+set}" = set; then :
                   26439:   enableval=$enable_bcmath; PHP_BCMATH=$enableval
                   26440: else
                   26441: 
                   26442:   PHP_BCMATH=no
                   26443:   test "$PHP_ENABLE_ALL" && PHP_BCMATH=$PHP_ENABLE_ALL
                   26444: 
                   26445: fi
                   26446: 
                   26447: 
                   26448: 
                   26449: ext_output="yes, shared"
                   26450: ext_shared=yes
                   26451: case $PHP_BCMATH in
                   26452: shared,*)
                   26453:   PHP_BCMATH=`echo "$PHP_BCMATH"|$SED 's/^shared,//'`
                   26454:   ;;
                   26455: shared)
                   26456:   PHP_BCMATH=yes
                   26457:   ;;
                   26458: no)
                   26459:   ext_output=no
                   26460:   ext_shared=no
                   26461:   ;;
                   26462: *)
                   26463:   ext_output=yes
                   26464:   ext_shared=no
                   26465:   ;;
                   26466: esac
                   26467: 
                   26468: 
                   26469: 
                   26470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   26471: $as_echo "$ext_output" >&6; }
                   26472: 
                   26473: 
                   26474: 
                   26475: 
                   26476: if test "$PHP_BCMATH" != "no"; then
                   26477: 
                   26478:   ext_builddir=ext/bcmath
                   26479:   ext_srcdir=$abs_srcdir/ext/bcmath
                   26480: 
                   26481:   ac_extra=`echo "-I@ext_srcdir@/libbcmath/src"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
                   26482: 
                   26483:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   26484:     PHP_BCMATH_SHARED=no
                   26485: 
                   26486: 
                   26487:   case ext/bcmath in
                   26488:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   26489:   /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   26490:   *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   26491:   esac
                   26492: 
                   26493: 
                   26494: 
                   26495:   b_c_pre=$php_c_pre
                   26496:   b_cxx_pre=$php_cxx_pre
                   26497:   b_c_meta=$php_c_meta
                   26498:   b_cxx_meta=$php_cxx_meta
                   26499:   b_c_post=$php_c_post
                   26500:   b_cxx_post=$php_cxx_post
                   26501:   b_lo=$php_lo
                   26502: 
                   26503: 
                   26504:   old_IFS=$IFS
                   26505:   for ac_src in bcmath.c \
                   26506: libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \
                   26507: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
                   26508: libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
                   26509: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
                   26510: 
                   26511:       IFS=.
                   26512:       set $ac_src
                   26513:       ac_obj=$1
                   26514:       IFS=$old_IFS
                   26515: 
                   26516:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   26517: 
                   26518:       case $ac_src in
                   26519:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26520:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26521:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26522:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   26523:       esac
                   26524: 
                   26525:     cat >>Makefile.objects<<EOF
                   26526: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   26527:        $ac_comp
                   26528: EOF
                   26529:   done
                   26530: 
                   26531: 
                   26532:     EXT_STATIC="$EXT_STATIC bcmath"
                   26533:     if test "$ext_shared" != "nocli"; then
                   26534:       EXT_CLI_STATIC="$EXT_CLI_STATIC bcmath"
                   26535:     fi
                   26536:   else
                   26537:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   26538:       PHP_BCMATH_SHARED=yes
                   26539: 
                   26540:   case ext/bcmath in
                   26541:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   26542:   /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   26543:   *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   26544:   esac
                   26545: 
                   26546: 
                   26547: 
                   26548:   b_c_pre=$shared_c_pre
                   26549:   b_cxx_pre=$shared_cxx_pre
                   26550:   b_c_meta=$shared_c_meta
                   26551:   b_cxx_meta=$shared_cxx_meta
                   26552:   b_c_post=$shared_c_post
                   26553:   b_cxx_post=$shared_cxx_post
                   26554:   b_lo=$shared_lo
                   26555: 
                   26556: 
                   26557:   old_IFS=$IFS
                   26558:   for ac_src in bcmath.c \
                   26559: libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \
                   26560: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
                   26561: libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
                   26562: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
                   26563: 
                   26564:       IFS=.
                   26565:       set $ac_src
                   26566:       ac_obj=$1
                   26567:       IFS=$old_IFS
                   26568: 
                   26569:       shared_objects_bcmath="$shared_objects_bcmath $ac_bdir$ac_obj.lo"
                   26570: 
                   26571:       case $ac_src in
                   26572:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26573:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26574:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26575:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   26576:       esac
                   26577: 
                   26578:     cat >>Makefile.objects<<EOF
                   26579: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   26580:        $ac_comp
                   26581: EOF
                   26582:   done
                   26583: 
                   26584:       case $host_alias in
                   26585:         *netware*)
                   26586: 
                   26587:   install_modules="install-modules"
                   26588: 
                   26589:   case $host_alias in
                   26590:     *aix*)
                   26591:       suffix=so
                   26592:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpbcmath.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) $(PHPBCMATH_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpbcmath.so '$ext_builddir'/phpbcmath.so'
                   26593:       ;;
                   26594:     *netware*)
                   26595:       suffix=nlm
                   26596:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) -L$(top_builddir)/netware -lphp5lib $(BCMATH_SHARED_LIBADD)'
                   26597:       ;;
                   26598:     *)
                   26599:       suffix=la
                   26600:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) $(PHPBCMATH_SHARED_LIBADD)'
                   26601:       ;;
                   26602:   esac
                   26603: 
                   26604:   if test "x" = "xyes"; then
                   26605:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpbcmath.$suffix"
                   26606:   else
                   26607:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpbcmath.$suffix"
                   26608:   fi
                   26609: 
                   26610:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bcmath"
                   26611: 
                   26612:   cat >>Makefile.objects<<EOF
                   26613: \$(phplibdir)/phpbcmath.$suffix: $ext_builddir/phpbcmath.$suffix
                   26614:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpbcmath.$suffix \$(phplibdir)
                   26615: 
                   26616: $ext_builddir/phpbcmath.$suffix: \$(shared_objects_bcmath) \$(PHPBCMATH_SHARED_DEPENDENCIES)
                   26617:        $link_cmd
                   26618: 
                   26619: EOF
                   26620: 
                   26621:           ;;
                   26622:         *)
                   26623: 
                   26624:   install_modules="install-modules"
                   26625: 
                   26626:   case $host_alias in
                   26627:     *aix*)
                   26628:       suffix=so
                   26629:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/bcmath.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) $(BCMATH_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/bcmath.so '$ext_builddir'/bcmath.so'
                   26630:       ;;
                   26631:     *netware*)
                   26632:       suffix=nlm
                   26633:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) -L$(top_builddir)/netware -lphp5lib $(ATH_SHARED_LIBADD)'
                   26634:       ;;
                   26635:     *)
                   26636:       suffix=la
                   26637:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) $(BCMATH_SHARED_LIBADD)'
                   26638:       ;;
                   26639:   esac
                   26640: 
                   26641:   if test "x" = "xyes"; then
                   26642:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/bcmath.$suffix"
                   26643:   else
                   26644:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/bcmath.$suffix"
                   26645:   fi
                   26646: 
                   26647:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bcmath"
                   26648: 
                   26649:   cat >>Makefile.objects<<EOF
                   26650: \$(phplibdir)/bcmath.$suffix: $ext_builddir/bcmath.$suffix
                   26651:        \$(LIBTOOL) --mode=install cp $ext_builddir/bcmath.$suffix \$(phplibdir)
                   26652: 
                   26653: $ext_builddir/bcmath.$suffix: \$(shared_objects_bcmath) \$(BCMATH_SHARED_DEPENDENCIES)
                   26654:        $link_cmd
                   26655: 
                   26656: EOF
                   26657: 
                   26658:           ;;
                   26659:       esac
                   26660: 
                   26661: cat >>confdefs.h <<_ACEOF
                   26662: #define COMPILE_DL_BCMATH 1
                   26663: _ACEOF
                   26664: 
                   26665:     fi
                   26666:   fi
                   26667: 
                   26668:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   26669:     PHP_BCMATH_SHARED=no
                   26670: 
                   26671: 
                   26672:   case ext/bcmath in
                   26673:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   26674:   /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   26675:   *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   26676:   esac
                   26677: 
                   26678: 
                   26679: 
                   26680:   b_c_pre=$php_c_pre
                   26681:   b_cxx_pre=$php_cxx_pre
                   26682:   b_c_meta=$php_c_meta
                   26683:   b_cxx_meta=$php_cxx_meta
                   26684:   b_c_post=$php_c_post
                   26685:   b_cxx_post=$php_cxx_post
                   26686:   b_lo=$php_lo
                   26687: 
                   26688: 
                   26689:   old_IFS=$IFS
                   26690:   for ac_src in bcmath.c \
                   26691: libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \
                   26692: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
                   26693: libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
                   26694: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
                   26695: 
                   26696:       IFS=.
                   26697:       set $ac_src
                   26698:       ac_obj=$1
                   26699:       IFS=$old_IFS
                   26700: 
1.1.1.2 ! misho    26701:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    26702: 
                   26703:       case $ac_src in
                   26704:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26705:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26706:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26707:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   26708:       esac
                   26709: 
                   26710:     cat >>Makefile.objects<<EOF
                   26711: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   26712:        $ac_comp
                   26713: EOF
                   26714:   done
                   26715: 
                   26716: 
                   26717: 
                   26718: 
                   26719:   case ext/bcmath in
                   26720:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   26721:   /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   26722:   *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   26723:   esac
                   26724: 
                   26725: 
                   26726: 
                   26727:   b_c_pre=$php_c_pre
                   26728:   b_cxx_pre=$php_cxx_pre
                   26729:   b_c_meta=$php_c_meta
                   26730:   b_cxx_meta=$php_cxx_meta
                   26731:   b_c_post=$php_c_post
                   26732:   b_cxx_post=$php_cxx_post
                   26733:   b_lo=$php_lo
                   26734: 
                   26735: 
                   26736:   old_IFS=$IFS
                   26737:   for ac_src in bcmath.c \
                   26738: libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \
                   26739: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
                   26740: libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
                   26741: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
                   26742: 
                   26743:       IFS=.
                   26744:       set $ac_src
                   26745:       ac_obj=$1
                   26746:       IFS=$old_IFS
                   26747: 
1.1.1.2 ! misho    26748:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    26749: 
                   26750:       case $ac_src in
                   26751:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26752:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26753:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26754:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   26755:       esac
                   26756: 
                   26757:     cat >>Makefile.objects<<EOF
                   26758: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   26759:        $ac_comp
                   26760: EOF
                   26761:   done
                   26762: 
                   26763: 
                   26764: 
                   26765: 
                   26766:   case ext/bcmath in
                   26767:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   26768:   /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   26769:   *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   26770:   esac
                   26771: 
                   26772: 
                   26773: 
                   26774:   b_c_pre=$php_c_pre
                   26775:   b_cxx_pre=$php_cxx_pre
                   26776:   b_c_meta=$php_c_meta
                   26777:   b_cxx_meta=$php_cxx_meta
                   26778:   b_c_post=$php_c_post
                   26779:   b_cxx_post=$php_cxx_post
                   26780:   b_lo=$php_lo
                   26781: 
                   26782: 
                   26783:   old_IFS=$IFS
                   26784:   for ac_src in bcmath.c \
                   26785: libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \
                   26786: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
                   26787: libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
                   26788: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
                   26789: 
                   26790:       IFS=.
                   26791:       set $ac_src
                   26792:       ac_obj=$1
                   26793:       IFS=$old_IFS
                   26794: 
1.1.1.2 ! misho    26795:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    26796: 
                   26797:       case $ac_src in
                   26798:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26799:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26800:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   26801:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   26802:       esac
                   26803: 
                   26804:     cat >>Makefile.objects<<EOF
                   26805: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   26806:        $ac_comp
                   26807: EOF
                   26808:   done
                   26809: 
                   26810: 
                   26811:     EXT_CLI_STATIC="$EXT_CLI_STATIC bcmath"
                   26812:   fi
                   26813: 
                   26814: 
                   26815:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   26816: 
                   26817: 
                   26818: 
                   26819:   if test "$ext_builddir" = "."; then
                   26820:     PHP_PECL_EXTENSION=bcmath
                   26821: 
                   26822:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   26823: 
                   26824:   fi
                   26825: 
                   26826: 
                   26827: 
                   26828:     BUILD_DIR="$BUILD_DIR $ext_builddir/libbcmath/src"
                   26829: 
                   26830: 
                   26831: 
                   26832: $as_echo "#define HAVE_BCMATH 1" >>confdefs.h
                   26833: 
                   26834: fi
                   26835: 
                   26836: 
                   26837: 
                   26838: php_with_bz2=no
                   26839: 
                   26840: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 support" >&5
                   26841: $as_echo_n "checking for BZip2 support... " >&6; }
                   26842: 
                   26843: # Check whether --with-bz2 was given.
                   26844: if test "${with_bz2+set}" = set; then :
                   26845:   withval=$with_bz2; PHP_BZ2=$withval
                   26846: else
                   26847: 
                   26848:   PHP_BZ2=no
                   26849:   test "$PHP_ENABLE_ALL" && PHP_BZ2=$PHP_ENABLE_ALL
                   26850: 
                   26851: fi
                   26852: 
                   26853: 
                   26854: 
                   26855: ext_output="yes, shared"
                   26856: ext_shared=yes
                   26857: case $PHP_BZ2 in
                   26858: shared,*)
                   26859:   PHP_BZ2=`echo "$PHP_BZ2"|$SED 's/^shared,//'`
                   26860:   ;;
                   26861: shared)
                   26862:   PHP_BZ2=yes
                   26863:   ;;
                   26864: no)
                   26865:   ext_output=no
                   26866:   ext_shared=no
                   26867:   ;;
                   26868: *)
                   26869:   ext_output=yes
                   26870:   ext_shared=no
                   26871:   ;;
                   26872: esac
                   26873: 
                   26874: 
                   26875: 
                   26876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   26877: $as_echo "$ext_output" >&6; }
                   26878: 
                   26879: 
                   26880: 
                   26881: 
                   26882: if test "$PHP_BZ2" != "no"; then
                   26883:   if test -r $PHP_BZ2/include/bzlib.h; then
                   26884:     BZIP_DIR=$PHP_BZ2
                   26885:   else
                   26886:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 in default path" >&5
                   26887: $as_echo_n "checking for BZip2 in default path... " >&6; }
                   26888:     for i in /usr/local /usr; do
                   26889:       if test -r $i/include/bzlib.h; then
                   26890:         BZIP_DIR=$i
                   26891:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
                   26892: $as_echo "found in $i" >&6; }
                   26893:         break
                   26894:       fi
                   26895:     done
                   26896:   fi
                   26897: 
                   26898:   if test -z "$BZIP_DIR"; then
                   26899:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   26900: $as_echo "not found" >&6; }
                   26901:     as_fn_error $? "Please reinstall the BZip2 distribution" "$LINENO" 5
                   26902:   fi
                   26903: 
                   26904: 
                   26905:   save_old_LDFLAGS=$LDFLAGS
                   26906:   ac_stuff="
                   26907:     -L$BZIP_DIR/$PHP_LIBDIR
                   26908:   "
                   26909: 
                   26910:   save_ext_shared=$ext_shared
                   26911:   ext_shared=yes
                   26912: 
                   26913:   for ac_i in $ac_stuff; do
                   26914:     case $ac_i in
                   26915:     -pthread)
                   26916:       if test "$ext_shared" = "yes"; then
                   26917:         LDFLAGS="$LDFLAGS -pthread"
                   26918:       else
                   26919: 
                   26920: 
                   26921:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   26922: 
                   26923:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   26924:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   26925:     eval "EXTRA_LDFLAGS$unique=set"
                   26926:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   26927:   fi
                   26928: 
                   26929:       fi
                   26930:     ;;
                   26931:     -l*)
                   26932:       ac_ii=`echo $ac_i|cut -c 3-`
                   26933: 
                   26934: 
                   26935:   case $ac_ii in
                   26936:   c|c_r|pthread*) ;;
                   26937:   *)
                   26938:     if test "$ext_shared" = "yes"; then
                   26939:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   26940:     else
                   26941: 
                   26942: 
                   26943:   case $ac_ii in
                   26944:   c|c_r|pthread*) ;;
                   26945:   *)
                   26946:       LIBS="$LIBS -l$ac_ii"
                   26947:    ;;
                   26948:   esac
                   26949: 
                   26950: 
                   26951:     fi
                   26952:    ;;
                   26953:   esac
                   26954: 
                   26955: 
                   26956:     ;;
                   26957:     -L*)
                   26958:       ac_ii=`echo $ac_i|cut -c 3-`
                   26959: 
                   26960:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   26961: 
                   26962:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   26963:     ai_p=$ac_ii
                   26964:   else
                   26965: 
                   26966:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   26967: 
                   26968:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   26969:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   26970:   fi
                   26971: 
                   26972: 
                   26973:       if test "$ext_shared" = "yes"; then
                   26974:         LDFLAGS="-L$ai_p $LDFLAGS"
                   26975:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   26976:       else
                   26977: 
                   26978: 
                   26979: 
                   26980:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   26981: 
                   26982:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   26983:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   26984:     eval "LIBPATH$unique=set"
                   26985: 
                   26986:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   26987:     LDFLAGS="$LDFLAGS -L$ai_p"
                   26988:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   26989: 
                   26990:   fi
                   26991: 
                   26992: 
                   26993:       fi
                   26994: 
                   26995:   fi
                   26996: 
                   26997:     ;;
                   26998:     esac
                   26999:   done
                   27000: 
                   27001:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzerror in -lbz2" >&5
                   27002: $as_echo_n "checking for BZ2_bzerror in -lbz2... " >&6; }
                   27003: if ${ac_cv_lib_bz2_BZ2_bzerror+:} false; then :
                   27004:   $as_echo_n "(cached) " >&6
                   27005: else
                   27006:   ac_check_lib_save_LIBS=$LIBS
                   27007: LIBS="-lbz2  $LIBS"
                   27008: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   27009: /* end confdefs.h.  */
                   27010: 
                   27011: /* Override any GCC internal prototype to avoid an error.
                   27012:    Use char because int might match the return type of a GCC
                   27013:    builtin and then its argument prototype would still apply.  */
                   27014: #ifdef __cplusplus
                   27015: extern "C"
                   27016: #endif
                   27017: char BZ2_bzerror ();
                   27018: int
                   27019: main ()
                   27020: {
                   27021: return BZ2_bzerror ();
                   27022:   ;
                   27023:   return 0;
                   27024: }
                   27025: _ACEOF
                   27026: if ac_fn_c_try_link "$LINENO"; then :
                   27027:   ac_cv_lib_bz2_BZ2_bzerror=yes
                   27028: else
                   27029:   ac_cv_lib_bz2_BZ2_bzerror=no
                   27030: fi
                   27031: rm -f core conftest.err conftest.$ac_objext \
                   27032:     conftest$ac_exeext conftest.$ac_ext
                   27033: LIBS=$ac_check_lib_save_LIBS
                   27034: fi
                   27035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzerror" >&5
                   27036: $as_echo "$ac_cv_lib_bz2_BZ2_bzerror" >&6; }
                   27037: if test "x$ac_cv_lib_bz2_BZ2_bzerror" = xyes; then :
                   27038: 
                   27039:     LDFLAGS=$save_old_LDFLAGS
                   27040:     ext_shared=$save_ext_shared
                   27041: 
                   27042: 
                   27043:   if test "$BZIP_DIR/include" != "/usr/include"; then
                   27044: 
                   27045:   if test -z "$BZIP_DIR/include" || echo "$BZIP_DIR/include" | grep '^/' >/dev/null ; then
                   27046:     ai_p=$BZIP_DIR/include
                   27047:   else
                   27048: 
                   27049:     ep_dir="`echo $BZIP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   27050: 
                   27051:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   27052:     ai_p="$ep_realdir/`basename \"$BZIP_DIR/include\"`"
                   27053:   fi
                   27054: 
                   27055: 
                   27056: 
                   27057:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   27058: 
                   27059:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   27060:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   27061:     eval "INCLUDEPATH$unique=set"
                   27062: 
                   27063:       if test ""; then
                   27064:         INCLUDES="-I$ai_p $INCLUDES"
                   27065:       else
                   27066:         INCLUDES="$INCLUDES -I$ai_p"
                   27067:       fi
                   27068: 
                   27069:   fi
                   27070: 
                   27071:   fi
                   27072: 
                   27073: 
                   27074: 
                   27075:   if test "$ext_shared" = "yes"; then
                   27076:     BZ2_SHARED_LIBADD="-lbz2 $BZ2_SHARED_LIBADD"
                   27077:     if test -n "$BZIP_DIR/$PHP_LIBDIR"; then
                   27078: 
                   27079:   if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   27080: 
                   27081:   if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   27082:     ai_p=$BZIP_DIR/$PHP_LIBDIR
                   27083:   else
                   27084: 
                   27085:     ep_dir="`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   27086: 
                   27087:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   27088:     ai_p="$ep_realdir/`basename \"$BZIP_DIR/$PHP_LIBDIR\"`"
                   27089:   fi
                   27090: 
                   27091: 
                   27092:       if test "$ext_shared" = "yes"; then
                   27093:         BZ2_SHARED_LIBADD="-L$ai_p $BZ2_SHARED_LIBADD"
                   27094:         test -n "$ld_runpath_switch" && BZ2_SHARED_LIBADD="$ld_runpath_switch$ai_p $BZ2_SHARED_LIBADD"
                   27095:       else
                   27096: 
                   27097: 
                   27098: 
                   27099:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   27100: 
                   27101:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   27102:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   27103:     eval "LIBPATH$unique=set"
                   27104: 
                   27105:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   27106:     LDFLAGS="$LDFLAGS -L$ai_p"
                   27107:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   27108: 
                   27109:   fi
                   27110: 
                   27111: 
                   27112:       fi
                   27113: 
                   27114:   fi
                   27115: 
                   27116:     fi
                   27117:   else
                   27118: 
                   27119: 
                   27120:   if test -n "$BZIP_DIR/$PHP_LIBDIR"; then
                   27121: 
                   27122:   if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   27123: 
                   27124:   if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   27125:     ai_p=$BZIP_DIR/$PHP_LIBDIR
                   27126:   else
                   27127: 
                   27128:     ep_dir="`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   27129: 
                   27130:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   27131:     ai_p="$ep_realdir/`basename \"$BZIP_DIR/$PHP_LIBDIR\"`"
                   27132:   fi
                   27133: 
                   27134: 
                   27135: 
                   27136: 
                   27137: 
                   27138:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   27139: 
                   27140:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   27141:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   27142:     eval "LIBPATH$unique=set"
                   27143: 
                   27144:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   27145:     LDFLAGS="$LDFLAGS -L$ai_p"
                   27146:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   27147: 
                   27148:   fi
                   27149: 
                   27150: 
                   27151: 
                   27152:   fi
                   27153: 
                   27154:   fi
                   27155: 
                   27156: 
                   27157:   case bz2 in
                   27158:   c|c_r|pthread*) ;;
                   27159:   *)
                   27160:       LIBS="-lbz2 $LIBS"
                   27161:    ;;
                   27162:   esac
                   27163: 
                   27164: 
                   27165: 
                   27166: 
                   27167:   fi
                   27168: 
                   27169: 
                   27170: 
                   27171: $as_echo "#define HAVE_BZ2 1" >>confdefs.h
                   27172: 
                   27173: 
                   27174: 
                   27175: else
                   27176: 
                   27177:     LDFLAGS=$save_old_LDFLAGS
                   27178:     ext_shared=$save_ext_shared
                   27179:     unset ac_cv_lib_bz2_BZ2_bzerror
                   27180: 
                   27181:     as_fn_error $? "bz2 module requires libbz2 >= 1.0.0" "$LINENO" 5
                   27182: 
                   27183: 
                   27184: fi
                   27185: 
                   27186: 
                   27187: 
                   27188:   ext_builddir=ext/bz2
                   27189:   ext_srcdir=$abs_srcdir/ext/bz2
                   27190: 
                   27191:   ac_extra=
                   27192: 
                   27193:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   27194:     PHP_BZ2_SHARED=no
                   27195: 
                   27196: 
                   27197:   case ext/bz2 in
                   27198:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   27199:   /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   27200:   *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   27201:   esac
                   27202: 
                   27203: 
                   27204: 
                   27205:   b_c_pre=$php_c_pre
                   27206:   b_cxx_pre=$php_cxx_pre
                   27207:   b_c_meta=$php_c_meta
                   27208:   b_cxx_meta=$php_cxx_meta
                   27209:   b_c_post=$php_c_post
                   27210:   b_cxx_post=$php_cxx_post
                   27211:   b_lo=$php_lo
                   27212: 
                   27213: 
                   27214:   old_IFS=$IFS
                   27215:   for ac_src in bz2.c bz2_filter.c; do
                   27216: 
                   27217:       IFS=.
                   27218:       set $ac_src
                   27219:       ac_obj=$1
                   27220:       IFS=$old_IFS
                   27221: 
                   27222:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   27223: 
                   27224:       case $ac_src in
                   27225:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27226:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27227:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27228:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   27229:       esac
                   27230: 
                   27231:     cat >>Makefile.objects<<EOF
                   27232: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   27233:        $ac_comp
                   27234: EOF
                   27235:   done
                   27236: 
                   27237: 
                   27238:     EXT_STATIC="$EXT_STATIC bz2"
                   27239:     if test "$ext_shared" != "nocli"; then
                   27240:       EXT_CLI_STATIC="$EXT_CLI_STATIC bz2"
                   27241:     fi
                   27242:   else
                   27243:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   27244:       PHP_BZ2_SHARED=yes
                   27245: 
                   27246:   case ext/bz2 in
                   27247:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   27248:   /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   27249:   *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   27250:   esac
                   27251: 
                   27252: 
                   27253: 
                   27254:   b_c_pre=$shared_c_pre
                   27255:   b_cxx_pre=$shared_cxx_pre
                   27256:   b_c_meta=$shared_c_meta
                   27257:   b_cxx_meta=$shared_cxx_meta
                   27258:   b_c_post=$shared_c_post
                   27259:   b_cxx_post=$shared_cxx_post
                   27260:   b_lo=$shared_lo
                   27261: 
                   27262: 
                   27263:   old_IFS=$IFS
                   27264:   for ac_src in bz2.c bz2_filter.c; do
                   27265: 
                   27266:       IFS=.
                   27267:       set $ac_src
                   27268:       ac_obj=$1
                   27269:       IFS=$old_IFS
                   27270: 
                   27271:       shared_objects_bz2="$shared_objects_bz2 $ac_bdir$ac_obj.lo"
                   27272: 
                   27273:       case $ac_src in
                   27274:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27275:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27276:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27277:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   27278:       esac
                   27279: 
                   27280:     cat >>Makefile.objects<<EOF
                   27281: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   27282:        $ac_comp
                   27283: EOF
                   27284:   done
                   27285: 
                   27286:       case $host_alias in
                   27287:         *netware*)
                   27288: 
                   27289:   install_modules="install-modules"
                   27290: 
                   27291:   case $host_alias in
                   27292:     *aix*)
                   27293:       suffix=so
                   27294:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpbz2.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) $(PHPBZ2_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpbz2.so '$ext_builddir'/phpbz2.so'
                   27295:       ;;
                   27296:     *netware*)
                   27297:       suffix=nlm
                   27298:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) -L$(top_builddir)/netware -lphp5lib $(BZ2_SHARED_LIBADD)'
                   27299:       ;;
                   27300:     *)
                   27301:       suffix=la
                   27302:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) $(PHPBZ2_SHARED_LIBADD)'
                   27303:       ;;
                   27304:   esac
                   27305: 
                   27306:   if test "x" = "xyes"; then
                   27307:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpbz2.$suffix"
                   27308:   else
                   27309:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpbz2.$suffix"
                   27310:   fi
                   27311: 
                   27312:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bz2"
                   27313: 
                   27314:   cat >>Makefile.objects<<EOF
                   27315: \$(phplibdir)/phpbz2.$suffix: $ext_builddir/phpbz2.$suffix
                   27316:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpbz2.$suffix \$(phplibdir)
                   27317: 
                   27318: $ext_builddir/phpbz2.$suffix: \$(shared_objects_bz2) \$(PHPBZ2_SHARED_DEPENDENCIES)
                   27319:        $link_cmd
                   27320: 
                   27321: EOF
                   27322: 
                   27323:           ;;
                   27324:         *)
                   27325: 
                   27326:   install_modules="install-modules"
                   27327: 
                   27328:   case $host_alias in
                   27329:     *aix*)
                   27330:       suffix=so
                   27331:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/bz2.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) $(BZ2_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/bz2.so '$ext_builddir'/bz2.so'
                   27332:       ;;
                   27333:     *netware*)
                   27334:       suffix=nlm
                   27335:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
                   27336:       ;;
                   27337:     *)
                   27338:       suffix=la
                   27339:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) $(BZ2_SHARED_LIBADD)'
                   27340:       ;;
                   27341:   esac
                   27342: 
                   27343:   if test "x" = "xyes"; then
                   27344:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/bz2.$suffix"
                   27345:   else
                   27346:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/bz2.$suffix"
                   27347:   fi
                   27348: 
                   27349:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bz2"
                   27350: 
                   27351:   cat >>Makefile.objects<<EOF
                   27352: \$(phplibdir)/bz2.$suffix: $ext_builddir/bz2.$suffix
                   27353:        \$(LIBTOOL) --mode=install cp $ext_builddir/bz2.$suffix \$(phplibdir)
                   27354: 
                   27355: $ext_builddir/bz2.$suffix: \$(shared_objects_bz2) \$(BZ2_SHARED_DEPENDENCIES)
                   27356:        $link_cmd
                   27357: 
                   27358: EOF
                   27359: 
                   27360:           ;;
                   27361:       esac
                   27362: 
                   27363: cat >>confdefs.h <<_ACEOF
                   27364: #define COMPILE_DL_BZ2 1
                   27365: _ACEOF
                   27366: 
                   27367:     fi
                   27368:   fi
                   27369: 
                   27370:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   27371:     PHP_BZ2_SHARED=no
                   27372: 
                   27373: 
                   27374:   case ext/bz2 in
                   27375:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   27376:   /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   27377:   *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   27378:   esac
                   27379: 
                   27380: 
                   27381: 
                   27382:   b_c_pre=$php_c_pre
                   27383:   b_cxx_pre=$php_cxx_pre
                   27384:   b_c_meta=$php_c_meta
                   27385:   b_cxx_meta=$php_cxx_meta
                   27386:   b_c_post=$php_c_post
                   27387:   b_cxx_post=$php_cxx_post
                   27388:   b_lo=$php_lo
                   27389: 
                   27390: 
                   27391:   old_IFS=$IFS
                   27392:   for ac_src in bz2.c bz2_filter.c; do
                   27393: 
                   27394:       IFS=.
                   27395:       set $ac_src
                   27396:       ac_obj=$1
                   27397:       IFS=$old_IFS
                   27398: 
1.1.1.2 ! misho    27399:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    27400: 
                   27401:       case $ac_src in
                   27402:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27403:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27404:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27405:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   27406:       esac
                   27407: 
                   27408:     cat >>Makefile.objects<<EOF
                   27409: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   27410:        $ac_comp
                   27411: EOF
                   27412:   done
                   27413: 
                   27414: 
                   27415: 
                   27416: 
                   27417:   case ext/bz2 in
                   27418:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   27419:   /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   27420:   *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   27421:   esac
                   27422: 
                   27423: 
                   27424: 
                   27425:   b_c_pre=$php_c_pre
                   27426:   b_cxx_pre=$php_cxx_pre
                   27427:   b_c_meta=$php_c_meta
                   27428:   b_cxx_meta=$php_cxx_meta
                   27429:   b_c_post=$php_c_post
                   27430:   b_cxx_post=$php_cxx_post
                   27431:   b_lo=$php_lo
                   27432: 
                   27433: 
                   27434:   old_IFS=$IFS
                   27435:   for ac_src in bz2.c bz2_filter.c; do
                   27436: 
                   27437:       IFS=.
                   27438:       set $ac_src
                   27439:       ac_obj=$1
                   27440:       IFS=$old_IFS
                   27441: 
1.1.1.2 ! misho    27442:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    27443: 
                   27444:       case $ac_src in
                   27445:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27446:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27447:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27448:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   27449:       esac
                   27450: 
                   27451:     cat >>Makefile.objects<<EOF
                   27452: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   27453:        $ac_comp
                   27454: EOF
                   27455:   done
                   27456: 
                   27457: 
                   27458: 
                   27459: 
                   27460:   case ext/bz2 in
                   27461:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   27462:   /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   27463:   *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   27464:   esac
                   27465: 
                   27466: 
                   27467: 
                   27468:   b_c_pre=$php_c_pre
                   27469:   b_cxx_pre=$php_cxx_pre
                   27470:   b_c_meta=$php_c_meta
                   27471:   b_cxx_meta=$php_cxx_meta
                   27472:   b_c_post=$php_c_post
                   27473:   b_cxx_post=$php_cxx_post
                   27474:   b_lo=$php_lo
                   27475: 
                   27476: 
                   27477:   old_IFS=$IFS
                   27478:   for ac_src in bz2.c bz2_filter.c; do
                   27479: 
                   27480:       IFS=.
                   27481:       set $ac_src
                   27482:       ac_obj=$1
                   27483:       IFS=$old_IFS
                   27484: 
1.1.1.2 ! misho    27485:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    27486: 
                   27487:       case $ac_src in
                   27488:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27489:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27490:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27491:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   27492:       esac
                   27493: 
                   27494:     cat >>Makefile.objects<<EOF
                   27495: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   27496:        $ac_comp
                   27497: EOF
                   27498:   done
                   27499: 
                   27500: 
                   27501:     EXT_CLI_STATIC="$EXT_CLI_STATIC bz2"
                   27502:   fi
                   27503: 
                   27504: 
                   27505:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   27506: 
                   27507: 
                   27508: 
                   27509:   if test "$ext_builddir" = "."; then
                   27510:     PHP_PECL_EXTENSION=bz2
                   27511: 
                   27512:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   27513: 
                   27514:   fi
                   27515: 
                   27516: 
                   27517:   PHP_VAR_SUBST="$PHP_VAR_SUBST BZ2_SHARED_LIBADD"
                   27518: 
                   27519: fi
                   27520: 
                   27521: 
                   27522: 
                   27523: php_enable_calendar=no
                   27524: 
                   27525: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable calendar conversion support" >&5
                   27526: $as_echo_n "checking whether to enable calendar conversion support... " >&6; }
                   27527: # Check whether --enable-calendar was given.
                   27528: if test "${enable_calendar+set}" = set; then :
                   27529:   enableval=$enable_calendar; PHP_CALENDAR=$enableval
                   27530: else
                   27531: 
                   27532:   PHP_CALENDAR=no
                   27533:   test "$PHP_ENABLE_ALL" && PHP_CALENDAR=$PHP_ENABLE_ALL
                   27534: 
                   27535: fi
                   27536: 
                   27537: 
                   27538: 
                   27539: ext_output="yes, shared"
                   27540: ext_shared=yes
                   27541: case $PHP_CALENDAR in
                   27542: shared,*)
                   27543:   PHP_CALENDAR=`echo "$PHP_CALENDAR"|$SED 's/^shared,//'`
                   27544:   ;;
                   27545: shared)
                   27546:   PHP_CALENDAR=yes
                   27547:   ;;
                   27548: no)
                   27549:   ext_output=no
                   27550:   ext_shared=no
                   27551:   ;;
                   27552: *)
                   27553:   ext_output=yes
                   27554:   ext_shared=no
                   27555:   ;;
                   27556: esac
                   27557: 
                   27558: 
                   27559: 
                   27560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   27561: $as_echo "$ext_output" >&6; }
                   27562: 
                   27563: 
                   27564: 
                   27565: 
                   27566: if test "$PHP_CALENDAR" = "yes"; then
                   27567: 
                   27568: $as_echo "#define HAVE_CALENDAR 1" >>confdefs.h
                   27569: 
                   27570: 
                   27571:   ext_builddir=ext/calendar
                   27572:   ext_srcdir=$abs_srcdir/ext/calendar
                   27573: 
                   27574:   ac_extra=
                   27575: 
                   27576:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   27577:     PHP_CALENDAR_SHARED=no
                   27578: 
                   27579: 
                   27580:   case ext/calendar in
                   27581:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   27582:   /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   27583:   *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   27584:   esac
                   27585: 
                   27586: 
                   27587: 
                   27588:   b_c_pre=$php_c_pre
                   27589:   b_cxx_pre=$php_cxx_pre
                   27590:   b_c_meta=$php_c_meta
                   27591:   b_cxx_meta=$php_cxx_meta
                   27592:   b_c_post=$php_c_post
                   27593:   b_cxx_post=$php_cxx_post
                   27594:   b_lo=$php_lo
                   27595: 
                   27596: 
                   27597:   old_IFS=$IFS
                   27598:   for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
                   27599: 
                   27600:       IFS=.
                   27601:       set $ac_src
                   27602:       ac_obj=$1
                   27603:       IFS=$old_IFS
                   27604: 
                   27605:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   27606: 
                   27607:       case $ac_src in
                   27608:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27609:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27610:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27611:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   27612:       esac
                   27613: 
                   27614:     cat >>Makefile.objects<<EOF
                   27615: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   27616:        $ac_comp
                   27617: EOF
                   27618:   done
                   27619: 
                   27620: 
                   27621:     EXT_STATIC="$EXT_STATIC calendar"
                   27622:     if test "$ext_shared" != "nocli"; then
                   27623:       EXT_CLI_STATIC="$EXT_CLI_STATIC calendar"
                   27624:     fi
                   27625:   else
                   27626:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   27627:       PHP_CALENDAR_SHARED=yes
                   27628: 
                   27629:   case ext/calendar in
                   27630:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   27631:   /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   27632:   *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   27633:   esac
                   27634: 
                   27635: 
                   27636: 
                   27637:   b_c_pre=$shared_c_pre
                   27638:   b_cxx_pre=$shared_cxx_pre
                   27639:   b_c_meta=$shared_c_meta
                   27640:   b_cxx_meta=$shared_cxx_meta
                   27641:   b_c_post=$shared_c_post
                   27642:   b_cxx_post=$shared_cxx_post
                   27643:   b_lo=$shared_lo
                   27644: 
                   27645: 
                   27646:   old_IFS=$IFS
                   27647:   for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
                   27648: 
                   27649:       IFS=.
                   27650:       set $ac_src
                   27651:       ac_obj=$1
                   27652:       IFS=$old_IFS
                   27653: 
                   27654:       shared_objects_calendar="$shared_objects_calendar $ac_bdir$ac_obj.lo"
                   27655: 
                   27656:       case $ac_src in
                   27657:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27658:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27659:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27660:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   27661:       esac
                   27662: 
                   27663:     cat >>Makefile.objects<<EOF
                   27664: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   27665:        $ac_comp
                   27666: EOF
                   27667:   done
                   27668: 
                   27669:       case $host_alias in
                   27670:         *netware*)
                   27671: 
                   27672:   install_modules="install-modules"
                   27673: 
                   27674:   case $host_alias in
                   27675:     *aix*)
                   27676:       suffix=so
                   27677:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpcalendar.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) $(PHPCALENDAR_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpcalendar.so '$ext_builddir'/phpcalendar.so'
                   27678:       ;;
                   27679:     *netware*)
                   27680:       suffix=nlm
                   27681:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) -L$(top_builddir)/netware -lphp5lib $(CALENDAR_SHARED_LIBADD)'
                   27682:       ;;
                   27683:     *)
                   27684:       suffix=la
                   27685:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) $(PHPCALENDAR_SHARED_LIBADD)'
                   27686:       ;;
                   27687:   esac
                   27688: 
                   27689:   if test "x" = "xyes"; then
                   27690:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpcalendar.$suffix"
                   27691:   else
                   27692:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpcalendar.$suffix"
                   27693:   fi
                   27694: 
                   27695:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_calendar"
                   27696: 
                   27697:   cat >>Makefile.objects<<EOF
                   27698: \$(phplibdir)/phpcalendar.$suffix: $ext_builddir/phpcalendar.$suffix
                   27699:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpcalendar.$suffix \$(phplibdir)
                   27700: 
                   27701: $ext_builddir/phpcalendar.$suffix: \$(shared_objects_calendar) \$(PHPCALENDAR_SHARED_DEPENDENCIES)
                   27702:        $link_cmd
                   27703: 
                   27704: EOF
                   27705: 
                   27706:           ;;
                   27707:         *)
                   27708: 
                   27709:   install_modules="install-modules"
                   27710: 
                   27711:   case $host_alias in
                   27712:     *aix*)
                   27713:       suffix=so
                   27714:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/calendar.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) $(CALENDAR_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/calendar.so '$ext_builddir'/calendar.so'
                   27715:       ;;
                   27716:     *netware*)
                   27717:       suffix=nlm
                   27718:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) -L$(top_builddir)/netware -lphp5lib $(ENDAR_SHARED_LIBADD)'
                   27719:       ;;
                   27720:     *)
                   27721:       suffix=la
                   27722:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) $(CALENDAR_SHARED_LIBADD)'
                   27723:       ;;
                   27724:   esac
                   27725: 
                   27726:   if test "x" = "xyes"; then
                   27727:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/calendar.$suffix"
                   27728:   else
                   27729:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/calendar.$suffix"
                   27730:   fi
                   27731: 
                   27732:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_calendar"
                   27733: 
                   27734:   cat >>Makefile.objects<<EOF
                   27735: \$(phplibdir)/calendar.$suffix: $ext_builddir/calendar.$suffix
                   27736:        \$(LIBTOOL) --mode=install cp $ext_builddir/calendar.$suffix \$(phplibdir)
                   27737: 
                   27738: $ext_builddir/calendar.$suffix: \$(shared_objects_calendar) \$(CALENDAR_SHARED_DEPENDENCIES)
                   27739:        $link_cmd
                   27740: 
                   27741: EOF
                   27742: 
                   27743:           ;;
                   27744:       esac
                   27745: 
                   27746: cat >>confdefs.h <<_ACEOF
                   27747: #define COMPILE_DL_CALENDAR 1
                   27748: _ACEOF
                   27749: 
                   27750:     fi
                   27751:   fi
                   27752: 
                   27753:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   27754:     PHP_CALENDAR_SHARED=no
                   27755: 
                   27756: 
                   27757:   case ext/calendar in
                   27758:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   27759:   /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   27760:   *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   27761:   esac
                   27762: 
                   27763: 
                   27764: 
                   27765:   b_c_pre=$php_c_pre
                   27766:   b_cxx_pre=$php_cxx_pre
                   27767:   b_c_meta=$php_c_meta
                   27768:   b_cxx_meta=$php_cxx_meta
                   27769:   b_c_post=$php_c_post
                   27770:   b_cxx_post=$php_cxx_post
                   27771:   b_lo=$php_lo
                   27772: 
                   27773: 
                   27774:   old_IFS=$IFS
                   27775:   for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
                   27776: 
                   27777:       IFS=.
                   27778:       set $ac_src
                   27779:       ac_obj=$1
                   27780:       IFS=$old_IFS
                   27781: 
1.1.1.2 ! misho    27782:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    27783: 
                   27784:       case $ac_src in
                   27785:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27786:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27787:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27788:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   27789:       esac
                   27790: 
                   27791:     cat >>Makefile.objects<<EOF
                   27792: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   27793:        $ac_comp
                   27794: EOF
                   27795:   done
                   27796: 
                   27797: 
                   27798: 
                   27799: 
                   27800:   case ext/calendar in
                   27801:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   27802:   /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   27803:   *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   27804:   esac
                   27805: 
                   27806: 
                   27807: 
                   27808:   b_c_pre=$php_c_pre
                   27809:   b_cxx_pre=$php_cxx_pre
                   27810:   b_c_meta=$php_c_meta
                   27811:   b_cxx_meta=$php_cxx_meta
                   27812:   b_c_post=$php_c_post
                   27813:   b_cxx_post=$php_cxx_post
                   27814:   b_lo=$php_lo
                   27815: 
                   27816: 
                   27817:   old_IFS=$IFS
                   27818:   for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
                   27819: 
                   27820:       IFS=.
                   27821:       set $ac_src
                   27822:       ac_obj=$1
                   27823:       IFS=$old_IFS
                   27824: 
1.1.1.2 ! misho    27825:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    27826: 
                   27827:       case $ac_src in
                   27828:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27829:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27830:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27831:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   27832:       esac
                   27833: 
                   27834:     cat >>Makefile.objects<<EOF
                   27835: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   27836:        $ac_comp
                   27837: EOF
                   27838:   done
                   27839: 
                   27840: 
                   27841: 
                   27842: 
                   27843:   case ext/calendar in
                   27844:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   27845:   /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   27846:   *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   27847:   esac
                   27848: 
                   27849: 
                   27850: 
                   27851:   b_c_pre=$php_c_pre
                   27852:   b_cxx_pre=$php_cxx_pre
                   27853:   b_c_meta=$php_c_meta
                   27854:   b_cxx_meta=$php_cxx_meta
                   27855:   b_c_post=$php_c_post
                   27856:   b_cxx_post=$php_cxx_post
                   27857:   b_lo=$php_lo
                   27858: 
                   27859: 
                   27860:   old_IFS=$IFS
                   27861:   for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
                   27862: 
                   27863:       IFS=.
                   27864:       set $ac_src
                   27865:       ac_obj=$1
                   27866:       IFS=$old_IFS
                   27867: 
1.1.1.2 ! misho    27868:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    27869: 
                   27870:       case $ac_src in
                   27871:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27872:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27873:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27874:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   27875:       esac
                   27876: 
                   27877:     cat >>Makefile.objects<<EOF
                   27878: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   27879:        $ac_comp
                   27880: EOF
                   27881:   done
                   27882: 
                   27883: 
                   27884:     EXT_CLI_STATIC="$EXT_CLI_STATIC calendar"
                   27885:   fi
                   27886: 
                   27887: 
                   27888:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   27889: 
                   27890: 
                   27891: 
                   27892:   if test "$ext_builddir" = "."; then
                   27893:     PHP_PECL_EXTENSION=calendar
                   27894: 
                   27895:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   27896: 
                   27897:   fi
                   27898: 
                   27899: fi
                   27900: 
                   27901: 
                   27902: 
                   27903: php_enable_ctype=yes
                   27904: 
                   27905: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ctype functions" >&5
                   27906: $as_echo_n "checking whether to enable ctype functions... " >&6; }
                   27907: # Check whether --enable-ctype was given.
                   27908: if test "${enable_ctype+set}" = set; then :
                   27909:   enableval=$enable_ctype; PHP_CTYPE=$enableval
                   27910: else
                   27911: 
                   27912:   PHP_CTYPE=yes
                   27913:   test "$PHP_ENABLE_ALL" && PHP_CTYPE=$PHP_ENABLE_ALL
                   27914: 
                   27915: fi
                   27916: 
                   27917: 
                   27918: 
                   27919: ext_output="yes, shared"
                   27920: ext_shared=yes
                   27921: case $PHP_CTYPE in
                   27922: shared,*)
                   27923:   PHP_CTYPE=`echo "$PHP_CTYPE"|$SED 's/^shared,//'`
                   27924:   ;;
                   27925: shared)
                   27926:   PHP_CTYPE=yes
                   27927:   ;;
                   27928: no)
                   27929:   ext_output=no
                   27930:   ext_shared=no
                   27931:   ;;
                   27932: *)
                   27933:   ext_output=yes
                   27934:   ext_shared=no
                   27935:   ;;
                   27936: esac
                   27937: 
                   27938: 
                   27939: 
                   27940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   27941: $as_echo "$ext_output" >&6; }
                   27942: 
                   27943: 
                   27944: 
                   27945: 
                   27946: if test "$PHP_CTYPE" != "no"; then
                   27947: 
                   27948: $as_echo "#define HAVE_CTYPE 1" >>confdefs.h
                   27949: 
                   27950: 
                   27951:   ext_builddir=ext/ctype
                   27952:   ext_srcdir=$abs_srcdir/ext/ctype
                   27953: 
                   27954:   ac_extra=
                   27955: 
                   27956:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   27957:     PHP_CTYPE_SHARED=no
                   27958: 
                   27959: 
                   27960:   case ext/ctype in
                   27961:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   27962:   /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   27963:   *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   27964:   esac
                   27965: 
                   27966: 
                   27967: 
                   27968:   b_c_pre=$php_c_pre
                   27969:   b_cxx_pre=$php_cxx_pre
                   27970:   b_c_meta=$php_c_meta
                   27971:   b_cxx_meta=$php_cxx_meta
                   27972:   b_c_post=$php_c_post
                   27973:   b_cxx_post=$php_cxx_post
                   27974:   b_lo=$php_lo
                   27975: 
                   27976: 
                   27977:   old_IFS=$IFS
                   27978:   for ac_src in ctype.c; do
                   27979: 
                   27980:       IFS=.
                   27981:       set $ac_src
                   27982:       ac_obj=$1
                   27983:       IFS=$old_IFS
                   27984: 
                   27985:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   27986: 
                   27987:       case $ac_src in
                   27988:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27989:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27990:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   27991:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   27992:       esac
                   27993: 
                   27994:     cat >>Makefile.objects<<EOF
                   27995: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   27996:        $ac_comp
                   27997: EOF
                   27998:   done
                   27999: 
                   28000: 
                   28001:     EXT_STATIC="$EXT_STATIC ctype"
                   28002:     if test "$ext_shared" != "nocli"; then
                   28003:       EXT_CLI_STATIC="$EXT_CLI_STATIC ctype"
                   28004:     fi
                   28005:   else
                   28006:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   28007:       PHP_CTYPE_SHARED=yes
                   28008: 
                   28009:   case ext/ctype in
                   28010:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   28011:   /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   28012:   *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   28013:   esac
                   28014: 
                   28015: 
                   28016: 
                   28017:   b_c_pre=$shared_c_pre
                   28018:   b_cxx_pre=$shared_cxx_pre
                   28019:   b_c_meta=$shared_c_meta
                   28020:   b_cxx_meta=$shared_cxx_meta
                   28021:   b_c_post=$shared_c_post
                   28022:   b_cxx_post=$shared_cxx_post
                   28023:   b_lo=$shared_lo
                   28024: 
                   28025: 
                   28026:   old_IFS=$IFS
                   28027:   for ac_src in ctype.c; do
                   28028: 
                   28029:       IFS=.
                   28030:       set $ac_src
                   28031:       ac_obj=$1
                   28032:       IFS=$old_IFS
                   28033: 
                   28034:       shared_objects_ctype="$shared_objects_ctype $ac_bdir$ac_obj.lo"
                   28035: 
                   28036:       case $ac_src in
                   28037:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   28038:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   28039:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   28040:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   28041:       esac
                   28042: 
                   28043:     cat >>Makefile.objects<<EOF
                   28044: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   28045:        $ac_comp
                   28046: EOF
                   28047:   done
                   28048: 
                   28049:       case $host_alias in
                   28050:         *netware*)
                   28051: 
                   28052:   install_modules="install-modules"
                   28053: 
                   28054:   case $host_alias in
                   28055:     *aix*)
                   28056:       suffix=so
                   28057:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpctype.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) $(PHPCTYPE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpctype.so '$ext_builddir'/phpctype.so'
                   28058:       ;;
                   28059:     *netware*)
                   28060:       suffix=nlm
                   28061:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) -L$(top_builddir)/netware -lphp5lib $(CTYPE_SHARED_LIBADD)'
                   28062:       ;;
                   28063:     *)
                   28064:       suffix=la
                   28065:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) $(PHPCTYPE_SHARED_LIBADD)'
                   28066:       ;;
                   28067:   esac
                   28068: 
                   28069:   if test "x" = "xyes"; then
                   28070:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpctype.$suffix"
                   28071:   else
                   28072:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpctype.$suffix"
                   28073:   fi
                   28074: 
                   28075:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ctype"
                   28076: 
                   28077:   cat >>Makefile.objects<<EOF
                   28078: \$(phplibdir)/phpctype.$suffix: $ext_builddir/phpctype.$suffix
                   28079:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpctype.$suffix \$(phplibdir)
                   28080: 
                   28081: $ext_builddir/phpctype.$suffix: \$(shared_objects_ctype) \$(PHPCTYPE_SHARED_DEPENDENCIES)
                   28082:        $link_cmd
                   28083: 
                   28084: EOF
                   28085: 
                   28086:           ;;
                   28087:         *)
                   28088: 
                   28089:   install_modules="install-modules"
                   28090: 
                   28091:   case $host_alias in
                   28092:     *aix*)
                   28093:       suffix=so
                   28094:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/ctype.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) $(CTYPE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/ctype.so '$ext_builddir'/ctype.so'
                   28095:       ;;
                   28096:     *netware*)
                   28097:       suffix=nlm
                   28098:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) -L$(top_builddir)/netware -lphp5lib $(PE_SHARED_LIBADD)'
                   28099:       ;;
                   28100:     *)
                   28101:       suffix=la
                   28102:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) $(CTYPE_SHARED_LIBADD)'
                   28103:       ;;
                   28104:   esac
                   28105: 
                   28106:   if test "x" = "xyes"; then
                   28107:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ctype.$suffix"
                   28108:   else
                   28109:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/ctype.$suffix"
                   28110:   fi
                   28111: 
                   28112:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ctype"
                   28113: 
                   28114:   cat >>Makefile.objects<<EOF
                   28115: \$(phplibdir)/ctype.$suffix: $ext_builddir/ctype.$suffix
                   28116:        \$(LIBTOOL) --mode=install cp $ext_builddir/ctype.$suffix \$(phplibdir)
                   28117: 
                   28118: $ext_builddir/ctype.$suffix: \$(shared_objects_ctype) \$(CTYPE_SHARED_DEPENDENCIES)
                   28119:        $link_cmd
                   28120: 
                   28121: EOF
                   28122: 
                   28123:           ;;
                   28124:       esac
                   28125: 
                   28126: cat >>confdefs.h <<_ACEOF
                   28127: #define COMPILE_DL_CTYPE 1
                   28128: _ACEOF
                   28129: 
                   28130:     fi
                   28131:   fi
                   28132: 
                   28133:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   28134:     PHP_CTYPE_SHARED=no
                   28135: 
                   28136: 
                   28137:   case ext/ctype in
                   28138:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   28139:   /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   28140:   *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   28141:   esac
                   28142: 
                   28143: 
                   28144: 
                   28145:   b_c_pre=$php_c_pre
                   28146:   b_cxx_pre=$php_cxx_pre
                   28147:   b_c_meta=$php_c_meta
                   28148:   b_cxx_meta=$php_cxx_meta
                   28149:   b_c_post=$php_c_post
                   28150:   b_cxx_post=$php_cxx_post
                   28151:   b_lo=$php_lo
                   28152: 
                   28153: 
                   28154:   old_IFS=$IFS
                   28155:   for ac_src in ctype.c; do
                   28156: 
                   28157:       IFS=.
                   28158:       set $ac_src
                   28159:       ac_obj=$1
                   28160:       IFS=$old_IFS
                   28161: 
1.1.1.2 ! misho    28162:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    28163: 
                   28164:       case $ac_src in
                   28165:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   28166:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   28167:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   28168:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   28169:       esac
                   28170: 
                   28171:     cat >>Makefile.objects<<EOF
                   28172: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   28173:        $ac_comp
                   28174: EOF
                   28175:   done
                   28176: 
                   28177: 
                   28178: 
                   28179: 
                   28180:   case ext/ctype in
                   28181:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   28182:   /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   28183:   *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   28184:   esac
                   28185: 
                   28186: 
                   28187: 
                   28188:   b_c_pre=$php_c_pre
                   28189:   b_cxx_pre=$php_cxx_pre
                   28190:   b_c_meta=$php_c_meta
                   28191:   b_cxx_meta=$php_cxx_meta
                   28192:   b_c_post=$php_c_post
                   28193:   b_cxx_post=$php_cxx_post
                   28194:   b_lo=$php_lo
                   28195: 
                   28196: 
                   28197:   old_IFS=$IFS
                   28198:   for ac_src in ctype.c; do
                   28199: 
                   28200:       IFS=.
                   28201:       set $ac_src
                   28202:       ac_obj=$1
                   28203:       IFS=$old_IFS
                   28204: 
1.1.1.2 ! misho    28205:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    28206: 
                   28207:       case $ac_src in
                   28208:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   28209:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   28210:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   28211:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   28212:       esac
                   28213: 
                   28214:     cat >>Makefile.objects<<EOF
                   28215: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   28216:        $ac_comp
                   28217: EOF
                   28218:   done
                   28219: 
                   28220: 
                   28221: 
                   28222: 
                   28223:   case ext/ctype in
                   28224:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   28225:   /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   28226:   *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   28227:   esac
                   28228: 
                   28229: 
                   28230: 
                   28231:   b_c_pre=$php_c_pre
                   28232:   b_cxx_pre=$php_cxx_pre
                   28233:   b_c_meta=$php_c_meta
                   28234:   b_cxx_meta=$php_cxx_meta
                   28235:   b_c_post=$php_c_post
                   28236:   b_cxx_post=$php_cxx_post
                   28237:   b_lo=$php_lo
                   28238: 
                   28239: 
                   28240:   old_IFS=$IFS
                   28241:   for ac_src in ctype.c; do
                   28242: 
                   28243:       IFS=.
                   28244:       set $ac_src
                   28245:       ac_obj=$1
                   28246:       IFS=$old_IFS
                   28247: 
1.1.1.2 ! misho    28248:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    28249: 
                   28250:       case $ac_src in
                   28251:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   28252:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   28253:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   28254:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   28255:       esac
                   28256: 
                   28257:     cat >>Makefile.objects<<EOF
                   28258: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   28259:        $ac_comp
                   28260: EOF
                   28261:   done
                   28262: 
                   28263: 
                   28264:     EXT_CLI_STATIC="$EXT_CLI_STATIC ctype"
                   28265:   fi
                   28266: 
                   28267: 
                   28268:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   28269: 
                   28270: 
                   28271: 
                   28272:   if test "$ext_builddir" = "."; then
                   28273:     PHP_PECL_EXTENSION=ctype
                   28274: 
                   28275:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   28276: 
                   28277:   fi
                   28278: 
                   28279: fi
                   28280: 
                   28281: 
                   28282: 
                   28283: php_with_curl=no
                   28284: 
                   28285: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL support" >&5
                   28286: $as_echo_n "checking for cURL support... " >&6; }
                   28287: 
                   28288: # Check whether --with-curl was given.
                   28289: if test "${with_curl+set}" = set; then :
                   28290:   withval=$with_curl; PHP_CURL=$withval
                   28291: else
                   28292: 
                   28293:   PHP_CURL=no
                   28294:   test "$PHP_ENABLE_ALL" && PHP_CURL=$PHP_ENABLE_ALL
                   28295: 
                   28296: fi
                   28297: 
                   28298: 
                   28299: 
                   28300: ext_output="yes, shared"
                   28301: ext_shared=yes
                   28302: case $PHP_CURL in
                   28303: shared,*)
                   28304:   PHP_CURL=`echo "$PHP_CURL"|$SED 's/^shared,//'`
                   28305:   ;;
                   28306: shared)
                   28307:   PHP_CURL=yes
                   28308:   ;;
                   28309: no)
                   28310:   ext_output=no
                   28311:   ext_shared=no
                   28312:   ;;
                   28313: *)
                   28314:   ext_output=yes
                   28315:   ext_shared=no
                   28316:   ;;
                   28317: esac
                   28318: 
                   28319: 
                   28320: 
                   28321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   28322: $as_echo "$ext_output" >&6; }
                   28323: 
                   28324: 
                   28325: 
                   28326: 
                   28327: 
                   28328: php_with_curlwrappers=no
                   28329: 
                   28330: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use cURL for url streams" >&5
                   28331: $as_echo_n "checking if we should use cURL for url streams... " >&6; }
                   28332: 
                   28333: # Check whether --with-curlwrappers was given.
                   28334: if test "${with_curlwrappers+set}" = set; then :
                   28335:   withval=$with_curlwrappers; PHP_CURLWRAPPERS=$withval
                   28336: else
                   28337: 
                   28338:   PHP_CURLWRAPPERS=no
                   28339: 
                   28340: 
                   28341: fi
                   28342: 
                   28343: 
                   28344: ext_output=$PHP_CURLWRAPPERS
                   28345: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   28346: $as_echo "$ext_output" >&6; }
                   28347: 
                   28348: 
                   28349: 
                   28350: 
                   28351: if test "$PHP_CURL" != "no"; then
                   28352:   if test -r $PHP_CURL/include/curl/easy.h; then
                   28353:     CURL_DIR=$PHP_CURL
                   28354:   else
                   28355:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL in default path" >&5
                   28356: $as_echo_n "checking for cURL in default path... " >&6; }
                   28357:     for i in /usr/local /usr; do
                   28358:       if test -r $i/include/curl/easy.h; then
                   28359:         CURL_DIR=$i
                   28360:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
                   28361: $as_echo "found in $i" >&6; }
                   28362:         break
                   28363:       fi
                   28364:     done
                   28365:   fi
                   28366: 
                   28367:   if test -z "$CURL_DIR"; then
                   28368:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   28369: $as_echo "not found" >&6; }
                   28370:     as_fn_error $? "Please reinstall the libcurl distribution -
                   28371:     easy.h should be in <curl-dir>/include/curl/" "$LINENO" 5
                   28372:   fi
                   28373: 
                   28374:   CURL_CONFIG="curl-config"
                   28375:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL 7.10.5 or greater" >&5
                   28376: $as_echo_n "checking for cURL 7.10.5 or greater... " >&6; }
                   28377: 
                   28378:   if ${CURL_DIR}/bin/curl-config --libs > /dev/null 2>&1; then
                   28379:     CURL_CONFIG=${CURL_DIR}/bin/curl-config
                   28380:   else
                   28381:     if ${CURL_DIR}/curl-config --libs > /dev/null 2>&1; then
                   28382:       CURL_CONFIG=${CURL_DIR}/curl-config
                   28383:     fi
                   28384:   fi
                   28385: 
                   28386:   curl_version_full=`$CURL_CONFIG --version`
                   28387:   curl_version=`echo ${curl_version_full} | sed -e 's/libcurl //' | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
                   28388:   if test "$curl_version" -ge 7010005; then
                   28389:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_version_full" >&5
                   28390: $as_echo "$curl_version_full" >&6; }
                   28391:     CURL_LIBS=`$CURL_CONFIG --libs`
                   28392:   else
                   28393:     as_fn_error $? "cURL version 7.10.5 or later is required to compile php with cURL support" "$LINENO" 5
                   28394:   fi
                   28395: 
                   28396: 
                   28397:   if test "$CURL_DIR/include" != "/usr/include"; then
                   28398: 
                   28399:   if test -z "$CURL_DIR/include" || echo "$CURL_DIR/include" | grep '^/' >/dev/null ; then
                   28400:     ai_p=$CURL_DIR/include
                   28401:   else
                   28402: 
                   28403:     ep_dir="`echo $CURL_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   28404: 
                   28405:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   28406:     ai_p="$ep_realdir/`basename \"$CURL_DIR/include\"`"
                   28407:   fi
                   28408: 
                   28409: 
                   28410: 
                   28411:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   28412: 
                   28413:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   28414:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   28415:     eval "INCLUDEPATH$unique=set"
                   28416: 
                   28417:       if test ""; then
                   28418:         INCLUDES="-I$ai_p $INCLUDES"
                   28419:       else
                   28420:         INCLUDES="$INCLUDES -I$ai_p"
                   28421:       fi
                   28422: 
                   28423:   fi
                   28424: 
                   28425:   fi
                   28426: 
                   28427: 
                   28428:   for ac_i in $CURL_LIBS; do
                   28429:     case $ac_i in
                   28430:     -pthread)
                   28431:       if test "$ext_shared" = "yes"; then
                   28432:         CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -pthread"
                   28433:       else
                   28434: 
                   28435: 
                   28436:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   28437: 
                   28438:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   28439:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   28440:     eval "EXTRA_LDFLAGS$unique=set"
                   28441:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   28442:   fi
                   28443: 
                   28444:       fi
                   28445:     ;;
                   28446:     -l*)
                   28447:       ac_ii=`echo $ac_i|cut -c 3-`
                   28448: 
                   28449: 
                   28450:   case $ac_ii in
                   28451:   c|c_r|pthread*) ;;
                   28452:   *)
                   28453:     if test "$ext_shared" = "yes"; then
                   28454:         CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -l$ac_ii"
                   28455:     else
                   28456: 
                   28457: 
                   28458:   case $ac_ii in
                   28459:   c|c_r|pthread*) ;;
                   28460:   *)
                   28461:       LIBS="$LIBS -l$ac_ii"
                   28462:    ;;
                   28463:   esac
                   28464: 
                   28465: 
                   28466:     fi
                   28467:    ;;
                   28468:   esac
                   28469: 
                   28470: 
                   28471:     ;;
                   28472:     -L*)
                   28473:       ac_ii=`echo $ac_i|cut -c 3-`
                   28474: 
                   28475:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   28476: 
                   28477:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   28478:     ai_p=$ac_ii
                   28479:   else
                   28480: 
                   28481:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   28482: 
                   28483:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   28484:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   28485:   fi
                   28486: 
                   28487: 
                   28488:       if test "$ext_shared" = "yes"; then
                   28489:         CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD"
                   28490:         test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD"
                   28491:       else
                   28492: 
                   28493: 
                   28494: 
                   28495:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   28496: 
                   28497:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   28498:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   28499:     eval "LIBPATH$unique=set"
                   28500: 
                   28501:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   28502:     LDFLAGS="$LDFLAGS -L$ai_p"
                   28503:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   28504: 
                   28505:   fi
                   28506: 
                   28507: 
                   28508:       fi
                   28509: 
                   28510:   fi
                   28511: 
                   28512:     ;;
                   28513:     esac
                   28514:   done
                   28515: 
                   28516: 
                   28517: 
                   28518:   if test "$ext_shared" = "yes"; then
                   28519:     CURL_SHARED_LIBADD="-lcurl $CURL_SHARED_LIBADD"
                   28520:     if test -n "$CURL_DIR/$PHP_LIBDIR"; then
                   28521: 
                   28522:   if test "$CURL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$CURL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   28523: 
                   28524:   if test -z "$CURL_DIR/$PHP_LIBDIR" || echo "$CURL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   28525:     ai_p=$CURL_DIR/$PHP_LIBDIR
                   28526:   else
                   28527: 
                   28528:     ep_dir="`echo $CURL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   28529: 
                   28530:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   28531:     ai_p="$ep_realdir/`basename \"$CURL_DIR/$PHP_LIBDIR\"`"
                   28532:   fi
                   28533: 
                   28534: 
                   28535:       if test "$ext_shared" = "yes"; then
                   28536:         CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD"
                   28537:         test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD"
                   28538:       else
                   28539: 
                   28540: 
                   28541: 
                   28542:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   28543: 
                   28544:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   28545:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   28546:     eval "LIBPATH$unique=set"
                   28547: 
                   28548:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   28549:     LDFLAGS="$LDFLAGS -L$ai_p"
                   28550:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   28551: 
                   28552:   fi
                   28553: 
                   28554: 
                   28555:       fi
                   28556: 
                   28557:   fi
                   28558: 
                   28559:     fi
                   28560:   else
                   28561: 
                   28562: 
                   28563:   if test -n "$CURL_DIR/$PHP_LIBDIR"; then
                   28564: 
                   28565:   if test "$CURL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$CURL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   28566: 
                   28567:   if test -z "$CURL_DIR/$PHP_LIBDIR" || echo "$CURL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   28568:     ai_p=$CURL_DIR/$PHP_LIBDIR
                   28569:   else
                   28570: 
                   28571:     ep_dir="`echo $CURL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   28572: 
                   28573:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   28574:     ai_p="$ep_realdir/`basename \"$CURL_DIR/$PHP_LIBDIR\"`"
                   28575:   fi
                   28576: 
                   28577: 
                   28578: 
                   28579: 
                   28580: 
                   28581:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   28582: 
                   28583:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   28584:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   28585:     eval "LIBPATH$unique=set"
                   28586: 
                   28587:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   28588:     LDFLAGS="$LDFLAGS -L$ai_p"
                   28589:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   28590: 
                   28591:   fi
                   28592: 
                   28593: 
                   28594: 
                   28595:   fi
                   28596: 
                   28597:   fi
                   28598: 
                   28599: 
                   28600:   case curl in
                   28601:   c|c_r|pthread*) ;;
                   28602:   *)
                   28603:       LIBS="-lcurl $LIBS"
                   28604:    ;;
                   28605:   esac
                   28606: 
                   28607: 
                   28608: 
                   28609: 
                   28610:   fi
                   28611: 
                   28612: 
                   28613: 
                   28614:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL support in libcurl" >&5
                   28615: $as_echo_n "checking for SSL support in libcurl... " >&6; }
                   28616:   CURL_SSL=`$CURL_CONFIG --feature | $EGREP SSL`
                   28617:   if test "$CURL_SSL" = "SSL"; then
                   28618:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   28619: $as_echo "yes" >&6; }
                   28620: 
                   28621: $as_echo "#define HAVE_CURL_SSL 1" >>confdefs.h
                   28622: 
                   28623: 
                   28624:     save_CFLAGS="$CFLAGS"
                   28625:     CFLAGS="`$CURL_CONFIG --cflags`"
                   28626: 
                   28627:     ac_ext=c
                   28628: ac_cpp='$CPP $CPPFLAGS'
                   28629: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   28630: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   28631: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   28632: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   28633: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   28634: # On Suns, sometimes $CPP names a directory.
                   28635: if test -n "$CPP" && test -d "$CPP"; then
                   28636:   CPP=
                   28637: fi
                   28638: if test -z "$CPP"; then
                   28639:   if ${ac_cv_prog_CPP+:} false; then :
                   28640:   $as_echo_n "(cached) " >&6
                   28641: else
                   28642:       # Double quotes because CPP needs to be expanded
                   28643:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   28644:     do
                   28645:       ac_preproc_ok=false
                   28646: for ac_c_preproc_warn_flag in '' yes
                   28647: do
                   28648:   # Use a header file that comes with gcc, so configuring glibc
                   28649:   # with a fresh cross-compiler works.
                   28650:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   28651:   # <limits.h> exists even on freestanding compilers.
                   28652:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   28653:   # not just through cpp. "Syntax error" is here to catch this case.
                   28654:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   28655: /* end confdefs.h.  */
                   28656: #ifdef __STDC__
                   28657: # include <limits.h>
                   28658: #else
                   28659: # include <assert.h>
                   28660: #endif
                   28661:                     Syntax error
                   28662: _ACEOF
                   28663: if ac_fn_c_try_cpp "$LINENO"; then :
                   28664: 
                   28665: else
                   28666:   # Broken: fails on valid input.
                   28667: continue
                   28668: fi
                   28669: rm -f conftest.err conftest.i conftest.$ac_ext
                   28670: 
                   28671:   # OK, works on sane cases.  Now check whether nonexistent headers
                   28672:   # can be detected and how.
                   28673:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   28674: /* end confdefs.h.  */
                   28675: #include <ac_nonexistent.h>
                   28676: _ACEOF
                   28677: if ac_fn_c_try_cpp "$LINENO"; then :
                   28678:   # Broken: success on invalid input.
                   28679: continue
                   28680: else
                   28681:   # Passes both tests.
                   28682: ac_preproc_ok=:
                   28683: break
                   28684: fi
                   28685: rm -f conftest.err conftest.i conftest.$ac_ext
                   28686: 
                   28687: done
                   28688: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   28689: rm -f conftest.i conftest.err conftest.$ac_ext
                   28690: if $ac_preproc_ok; then :
                   28691:   break
                   28692: fi
                   28693: 
                   28694:     done
                   28695:     ac_cv_prog_CPP=$CPP
                   28696: 
                   28697: fi
                   28698:   CPP=$ac_cv_prog_CPP
                   28699: else
                   28700:   ac_cv_prog_CPP=$CPP
                   28701: fi
                   28702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   28703: $as_echo "$CPP" >&6; }
                   28704: ac_preproc_ok=false
                   28705: for ac_c_preproc_warn_flag in '' yes
                   28706: do
                   28707:   # Use a header file that comes with gcc, so configuring glibc
                   28708:   # with a fresh cross-compiler works.
                   28709:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   28710:   # <limits.h> exists even on freestanding compilers.
                   28711:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   28712:   # not just through cpp. "Syntax error" is here to catch this case.
                   28713:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   28714: /* end confdefs.h.  */
                   28715: #ifdef __STDC__
                   28716: # include <limits.h>
                   28717: #else
                   28718: # include <assert.h>
                   28719: #endif
                   28720:                     Syntax error
                   28721: _ACEOF
                   28722: if ac_fn_c_try_cpp "$LINENO"; then :
                   28723: 
                   28724: else
                   28725:   # Broken: fails on valid input.
                   28726: continue
                   28727: fi
                   28728: rm -f conftest.err conftest.i conftest.$ac_ext
                   28729: 
                   28730:   # OK, works on sane cases.  Now check whether nonexistent headers
                   28731:   # can be detected and how.
                   28732:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   28733: /* end confdefs.h.  */
                   28734: #include <ac_nonexistent.h>
                   28735: _ACEOF
                   28736: if ac_fn_c_try_cpp "$LINENO"; then :
                   28737:   # Broken: success on invalid input.
                   28738: continue
                   28739: else
                   28740:   # Passes both tests.
                   28741: ac_preproc_ok=:
                   28742: break
                   28743: fi
                   28744: rm -f conftest.err conftest.i conftest.$ac_ext
                   28745: 
                   28746: done
                   28747: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   28748: rm -f conftest.i conftest.err conftest.$ac_ext
                   28749: if $ac_preproc_ok; then :
                   28750: 
                   28751: else
                   28752:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   28753: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   28754: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
                   28755: See \`config.log' for more details" "$LINENO" 5; }
                   28756: fi
                   28757: 
                   28758: ac_ext=c
                   28759: ac_cpp='$CPP $CPPFLAGS'
                   28760: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   28761: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   28762: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   28763: 
                   28764:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl support in libcurl" >&5
                   28765: $as_echo_n "checking for openssl support in libcurl... " >&6; }
                   28766:     if test "$cross_compiling" = yes; then :
                   28767: 
                   28768:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   28769: $as_echo "no" >&6; }
                   28770: 
                   28771: else
                   28772:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   28773: /* end confdefs.h.  */
                   28774: 
                   28775: #include <curl/curl.h>
                   28776: 
                   28777: int main(int argc, char *argv[])
                   28778: {
                   28779:   curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
                   28780: 
                   28781:   if (data && data->ssl_version && *data->ssl_version) {
                   28782:     const char *ptr = data->ssl_version;
                   28783: 
                   28784:     while(*ptr == ' ') ++ptr;
                   28785:     return strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1);
                   28786:   }
                   28787:   return 1;
                   28788: }
                   28789: 
                   28790: _ACEOF
                   28791: if ac_fn_c_try_run "$LINENO"; then :
                   28792: 
                   28793:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   28794: $as_echo "yes" >&6; }
                   28795:       for ac_header in openssl/crypto.h
                   28796: do :
                   28797:   ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
                   28798: if test "x$ac_cv_header_openssl_crypto_h" = xyes; then :
                   28799:   cat >>confdefs.h <<_ACEOF
                   28800: #define HAVE_OPENSSL_CRYPTO_H 1
                   28801: _ACEOF
                   28802: 
                   28803: 
                   28804: $as_echo "#define HAVE_CURL_OPENSSL 1" >>confdefs.h
                   28805: 
                   28806: 
                   28807: fi
                   28808: 
                   28809: done
                   28810: 
                   28811: 
                   28812: else
                   28813: 
                   28814:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   28815: $as_echo "no" >&6; }
                   28816: 
                   28817: fi
                   28818: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   28819:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   28820: fi
                   28821: 
                   28822: 
                   28823:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls support in libcurl" >&5
                   28824: $as_echo_n "checking for gnutls support in libcurl... " >&6; }
                   28825:     if test "$cross_compiling" = yes; then :
                   28826: 
                   28827:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   28828: $as_echo "no" >&6; }
                   28829: 
                   28830: else
                   28831:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   28832: /* end confdefs.h.  */
                   28833: 
                   28834: #include <curl/curl.h>
                   28835: 
                   28836: int main(int argc, char *argv[])
                   28837: {
                   28838:   curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
                   28839: 
                   28840:   if (data && data->ssl_version && *data->ssl_version) {
                   28841:     const char *ptr = data->ssl_version;
                   28842: 
                   28843:     while(*ptr == ' ') ++ptr;
                   28844:     return strncasecmp(ptr, "GnuTLS", sizeof("GnuTLS")-1);
                   28845:   }
                   28846:   return 1;
                   28847: }
                   28848: 
                   28849: _ACEOF
                   28850: if ac_fn_c_try_run "$LINENO"; then :
                   28851: 
                   28852:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   28853: $as_echo "yes" >&6; }
                   28854:       ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default"
                   28855: if test "x$ac_cv_header_gcrypt_h" = xyes; then :
                   28856: 
                   28857: 
                   28858: $as_echo "#define HAVE_CURL_GNUTLS 1" >>confdefs.h
                   28859: 
                   28860: 
                   28861: fi
                   28862: 
                   28863: 
                   28864: 
                   28865: else
                   28866: 
                   28867:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   28868: $as_echo "no" >&6; }
                   28869: 
                   28870: fi
                   28871: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   28872:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   28873: fi
                   28874: 
                   28875: 
                   28876:     CFLAGS="$save_CFLAGS"
                   28877:   else
                   28878:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   28879: $as_echo "no" >&6; }
                   28880:   fi
                   28881: 
                   28882: 
                   28883:   save_old_LDFLAGS=$LDFLAGS
                   28884:   ac_stuff="
                   28885:     $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
                   28886:   "
                   28887: 
                   28888:   save_ext_shared=$ext_shared
                   28889:   ext_shared=yes
                   28890: 
                   28891:   for ac_i in $ac_stuff; do
                   28892:     case $ac_i in
                   28893:     -pthread)
                   28894:       if test "$ext_shared" = "yes"; then
                   28895:         LDFLAGS="$LDFLAGS -pthread"
                   28896:       else
                   28897: 
                   28898: 
                   28899:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   28900: 
                   28901:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   28902:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   28903:     eval "EXTRA_LDFLAGS$unique=set"
                   28904:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   28905:   fi
                   28906: 
                   28907:       fi
                   28908:     ;;
                   28909:     -l*)
                   28910:       ac_ii=`echo $ac_i|cut -c 3-`
                   28911: 
                   28912: 
                   28913:   case $ac_ii in
                   28914:   c|c_r|pthread*) ;;
                   28915:   *)
                   28916:     if test "$ext_shared" = "yes"; then
                   28917:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   28918:     else
                   28919: 
                   28920: 
                   28921:   case $ac_ii in
                   28922:   c|c_r|pthread*) ;;
                   28923:   *)
                   28924:       LIBS="$LIBS -l$ac_ii"
                   28925:    ;;
                   28926:   esac
                   28927: 
                   28928: 
                   28929:     fi
                   28930:    ;;
                   28931:   esac
                   28932: 
                   28933: 
                   28934:     ;;
                   28935:     -L*)
                   28936:       ac_ii=`echo $ac_i|cut -c 3-`
                   28937: 
                   28938:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   28939: 
                   28940:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   28941:     ai_p=$ac_ii
                   28942:   else
                   28943: 
                   28944:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   28945: 
                   28946:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   28947:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   28948:   fi
                   28949: 
                   28950: 
                   28951:       if test "$ext_shared" = "yes"; then
                   28952:         LDFLAGS="-L$ai_p $LDFLAGS"
                   28953:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   28954:       else
                   28955: 
                   28956: 
                   28957: 
                   28958:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   28959: 
                   28960:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   28961:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   28962:     eval "LIBPATH$unique=set"
                   28963: 
                   28964:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   28965:     LDFLAGS="$LDFLAGS -L$ai_p"
                   28966:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   28967: 
                   28968:   fi
                   28969: 
                   28970: 
                   28971:       fi
                   28972: 
                   28973:   fi
                   28974: 
                   28975:     ;;
                   28976:     esac
                   28977:   done
                   28978: 
                   28979:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_perform in -lcurl" >&5
                   28980: $as_echo_n "checking for curl_easy_perform in -lcurl... " >&6; }
                   28981: if ${ac_cv_lib_curl_curl_easy_perform+:} false; then :
                   28982:   $as_echo_n "(cached) " >&6
                   28983: else
                   28984:   ac_check_lib_save_LIBS=$LIBS
                   28985: LIBS="-lcurl  $LIBS"
                   28986: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   28987: /* end confdefs.h.  */
                   28988: 
                   28989: /* Override any GCC internal prototype to avoid an error.
                   28990:    Use char because int might match the return type of a GCC
                   28991:    builtin and then its argument prototype would still apply.  */
                   28992: #ifdef __cplusplus
                   28993: extern "C"
                   28994: #endif
                   28995: char curl_easy_perform ();
                   28996: int
                   28997: main ()
                   28998: {
                   28999: return curl_easy_perform ();
                   29000:   ;
                   29001:   return 0;
                   29002: }
                   29003: _ACEOF
                   29004: if ac_fn_c_try_link "$LINENO"; then :
                   29005:   ac_cv_lib_curl_curl_easy_perform=yes
                   29006: else
                   29007:   ac_cv_lib_curl_curl_easy_perform=no
                   29008: fi
                   29009: rm -f core conftest.err conftest.$ac_objext \
                   29010:     conftest$ac_exeext conftest.$ac_ext
                   29011: LIBS=$ac_check_lib_save_LIBS
                   29012: fi
                   29013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_perform" >&5
                   29014: $as_echo "$ac_cv_lib_curl_curl_easy_perform" >&6; }
                   29015: if test "x$ac_cv_lib_curl_curl_easy_perform" = xyes; then :
                   29016: 
                   29017:     LDFLAGS=$save_old_LDFLAGS
                   29018:     ext_shared=$save_ext_shared
                   29019: 
                   29020: 
                   29021: $as_echo "#define HAVE_CURL 1" >>confdefs.h
                   29022: 
                   29023: 
                   29024: 
                   29025: else
                   29026: 
                   29027:     LDFLAGS=$save_old_LDFLAGS
                   29028:     ext_shared=$save_ext_shared
                   29029:     unset ac_cv_lib_curl_curl_easy_perform
                   29030: 
                   29031:     as_fn_error $? "There is something wrong. Please check config.log for more information." "$LINENO" 5
                   29032: 
                   29033: 
                   29034: fi
                   29035: 
                   29036: 
                   29037: 
                   29038:   save_old_LDFLAGS=$LDFLAGS
                   29039:   ac_stuff="
                   29040:     $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
                   29041:   "
                   29042: 
                   29043:   save_ext_shared=$ext_shared
                   29044:   ext_shared=yes
                   29045: 
                   29046:   for ac_i in $ac_stuff; do
                   29047:     case $ac_i in
                   29048:     -pthread)
                   29049:       if test "$ext_shared" = "yes"; then
                   29050:         LDFLAGS="$LDFLAGS -pthread"
                   29051:       else
                   29052: 
                   29053: 
                   29054:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   29055: 
                   29056:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   29057:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   29058:     eval "EXTRA_LDFLAGS$unique=set"
                   29059:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   29060:   fi
                   29061: 
                   29062:       fi
                   29063:     ;;
                   29064:     -l*)
                   29065:       ac_ii=`echo $ac_i|cut -c 3-`
                   29066: 
                   29067: 
                   29068:   case $ac_ii in
                   29069:   c|c_r|pthread*) ;;
                   29070:   *)
                   29071:     if test "$ext_shared" = "yes"; then
                   29072:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   29073:     else
                   29074: 
                   29075: 
                   29076:   case $ac_ii in
                   29077:   c|c_r|pthread*) ;;
                   29078:   *)
                   29079:       LIBS="$LIBS -l$ac_ii"
                   29080:    ;;
                   29081:   esac
                   29082: 
                   29083: 
                   29084:     fi
                   29085:    ;;
                   29086:   esac
                   29087: 
                   29088: 
                   29089:     ;;
                   29090:     -L*)
                   29091:       ac_ii=`echo $ac_i|cut -c 3-`
                   29092: 
                   29093:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   29094: 
                   29095:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   29096:     ai_p=$ac_ii
                   29097:   else
                   29098: 
                   29099:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   29100: 
                   29101:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   29102:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   29103:   fi
                   29104: 
                   29105: 
                   29106:       if test "$ext_shared" = "yes"; then
                   29107:         LDFLAGS="-L$ai_p $LDFLAGS"
                   29108:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   29109:       else
                   29110: 
                   29111: 
                   29112: 
                   29113:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   29114: 
                   29115:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   29116:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   29117:     eval "LIBPATH$unique=set"
                   29118: 
                   29119:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   29120:     LDFLAGS="$LDFLAGS -L$ai_p"
                   29121:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   29122: 
                   29123:   fi
                   29124: 
                   29125: 
                   29126:       fi
                   29127: 
                   29128:   fi
                   29129: 
                   29130:     ;;
                   29131:     esac
                   29132:   done
                   29133: 
                   29134:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_version_info in -lcurl" >&5
                   29135: $as_echo_n "checking for curl_version_info in -lcurl... " >&6; }
                   29136: if ${ac_cv_lib_curl_curl_version_info+:} false; then :
                   29137:   $as_echo_n "(cached) " >&6
                   29138: else
                   29139:   ac_check_lib_save_LIBS=$LIBS
                   29140: LIBS="-lcurl  $LIBS"
                   29141: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   29142: /* end confdefs.h.  */
                   29143: 
                   29144: /* Override any GCC internal prototype to avoid an error.
                   29145:    Use char because int might match the return type of a GCC
                   29146:    builtin and then its argument prototype would still apply.  */
                   29147: #ifdef __cplusplus
                   29148: extern "C"
                   29149: #endif
                   29150: char curl_version_info ();
                   29151: int
                   29152: main ()
                   29153: {
                   29154: return curl_version_info ();
                   29155:   ;
                   29156:   return 0;
                   29157: }
                   29158: _ACEOF
                   29159: if ac_fn_c_try_link "$LINENO"; then :
                   29160:   ac_cv_lib_curl_curl_version_info=yes
                   29161: else
                   29162:   ac_cv_lib_curl_curl_version_info=no
                   29163: fi
                   29164: rm -f core conftest.err conftest.$ac_objext \
                   29165:     conftest$ac_exeext conftest.$ac_ext
                   29166: LIBS=$ac_check_lib_save_LIBS
                   29167: fi
                   29168: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_version_info" >&5
                   29169: $as_echo "$ac_cv_lib_curl_curl_version_info" >&6; }
                   29170: if test "x$ac_cv_lib_curl_curl_version_info" = xyes; then :
                   29171: 
                   29172:     LDFLAGS=$save_old_LDFLAGS
                   29173:     ext_shared=$save_ext_shared
                   29174: 
                   29175: 
                   29176: $as_echo "#define HAVE_CURL_VERSION_INFO 1" >>confdefs.h
                   29177: 
                   29178: 
                   29179: 
                   29180: else
                   29181: 
                   29182:     LDFLAGS=$save_old_LDFLAGS
                   29183:     ext_shared=$save_ext_shared
                   29184:     unset ac_cv_lib_curl_curl_version_info
                   29185: 
                   29186: 
                   29187: fi
                   29188: 
                   29189: 
                   29190: 
                   29191:   save_old_LDFLAGS=$LDFLAGS
                   29192:   ac_stuff="
                   29193:     $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
                   29194:   "
                   29195: 
                   29196:   save_ext_shared=$ext_shared
                   29197:   ext_shared=yes
                   29198: 
                   29199:   for ac_i in $ac_stuff; do
                   29200:     case $ac_i in
                   29201:     -pthread)
                   29202:       if test "$ext_shared" = "yes"; then
                   29203:         LDFLAGS="$LDFLAGS -pthread"
                   29204:       else
                   29205: 
                   29206: 
                   29207:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   29208: 
                   29209:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   29210:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   29211:     eval "EXTRA_LDFLAGS$unique=set"
                   29212:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   29213:   fi
                   29214: 
                   29215:       fi
                   29216:     ;;
                   29217:     -l*)
                   29218:       ac_ii=`echo $ac_i|cut -c 3-`
                   29219: 
                   29220: 
                   29221:   case $ac_ii in
                   29222:   c|c_r|pthread*) ;;
                   29223:   *)
                   29224:     if test "$ext_shared" = "yes"; then
                   29225:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   29226:     else
                   29227: 
                   29228: 
                   29229:   case $ac_ii in
                   29230:   c|c_r|pthread*) ;;
                   29231:   *)
                   29232:       LIBS="$LIBS -l$ac_ii"
                   29233:    ;;
                   29234:   esac
                   29235: 
                   29236: 
                   29237:     fi
                   29238:    ;;
                   29239:   esac
                   29240: 
                   29241: 
                   29242:     ;;
                   29243:     -L*)
                   29244:       ac_ii=`echo $ac_i|cut -c 3-`
                   29245: 
                   29246:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   29247: 
                   29248:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   29249:     ai_p=$ac_ii
                   29250:   else
                   29251: 
                   29252:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   29253: 
                   29254:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   29255:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   29256:   fi
                   29257: 
                   29258: 
                   29259:       if test "$ext_shared" = "yes"; then
                   29260:         LDFLAGS="-L$ai_p $LDFLAGS"
                   29261:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   29262:       else
                   29263: 
                   29264: 
                   29265: 
                   29266:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   29267: 
                   29268:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   29269:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   29270:     eval "LIBPATH$unique=set"
                   29271: 
                   29272:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   29273:     LDFLAGS="$LDFLAGS -L$ai_p"
                   29274:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   29275: 
                   29276:   fi
                   29277: 
                   29278: 
                   29279:       fi
                   29280: 
                   29281:   fi
                   29282: 
                   29283:     ;;
                   29284:     esac
                   29285:   done
                   29286: 
                   29287:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_strerror in -lcurl" >&5
                   29288: $as_echo_n "checking for curl_easy_strerror in -lcurl... " >&6; }
                   29289: if ${ac_cv_lib_curl_curl_easy_strerror+:} false; then :
                   29290:   $as_echo_n "(cached) " >&6
                   29291: else
                   29292:   ac_check_lib_save_LIBS=$LIBS
                   29293: LIBS="-lcurl  $LIBS"
                   29294: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   29295: /* end confdefs.h.  */
                   29296: 
                   29297: /* Override any GCC internal prototype to avoid an error.
                   29298:    Use char because int might match the return type of a GCC
                   29299:    builtin and then its argument prototype would still apply.  */
                   29300: #ifdef __cplusplus
                   29301: extern "C"
                   29302: #endif
                   29303: char curl_easy_strerror ();
                   29304: int
                   29305: main ()
                   29306: {
                   29307: return curl_easy_strerror ();
                   29308:   ;
                   29309:   return 0;
                   29310: }
                   29311: _ACEOF
                   29312: if ac_fn_c_try_link "$LINENO"; then :
                   29313:   ac_cv_lib_curl_curl_easy_strerror=yes
                   29314: else
                   29315:   ac_cv_lib_curl_curl_easy_strerror=no
                   29316: fi
                   29317: rm -f core conftest.err conftest.$ac_objext \
                   29318:     conftest$ac_exeext conftest.$ac_ext
                   29319: LIBS=$ac_check_lib_save_LIBS
                   29320: fi
                   29321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_strerror" >&5
                   29322: $as_echo "$ac_cv_lib_curl_curl_easy_strerror" >&6; }
                   29323: if test "x$ac_cv_lib_curl_curl_easy_strerror" = xyes; then :
                   29324: 
                   29325:     LDFLAGS=$save_old_LDFLAGS
                   29326:     ext_shared=$save_ext_shared
                   29327: 
                   29328: 
                   29329: $as_echo "#define HAVE_CURL_EASY_STRERROR 1" >>confdefs.h
                   29330: 
                   29331: 
                   29332: 
                   29333: else
                   29334: 
                   29335:     LDFLAGS=$save_old_LDFLAGS
                   29336:     ext_shared=$save_ext_shared
                   29337:     unset ac_cv_lib_curl_curl_easy_strerror
                   29338: 
                   29339: 
                   29340: fi
                   29341: 
                   29342: 
                   29343: 
                   29344:   save_old_LDFLAGS=$LDFLAGS
                   29345:   ac_stuff="
                   29346:     $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
                   29347:   "
                   29348: 
                   29349:   save_ext_shared=$ext_shared
                   29350:   ext_shared=yes
                   29351: 
                   29352:   for ac_i in $ac_stuff; do
                   29353:     case $ac_i in
                   29354:     -pthread)
                   29355:       if test "$ext_shared" = "yes"; then
                   29356:         LDFLAGS="$LDFLAGS -pthread"
                   29357:       else
                   29358: 
                   29359: 
                   29360:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   29361: 
                   29362:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   29363:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   29364:     eval "EXTRA_LDFLAGS$unique=set"
                   29365:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   29366:   fi
                   29367: 
                   29368:       fi
                   29369:     ;;
                   29370:     -l*)
                   29371:       ac_ii=`echo $ac_i|cut -c 3-`
                   29372: 
                   29373: 
                   29374:   case $ac_ii in
                   29375:   c|c_r|pthread*) ;;
                   29376:   *)
                   29377:     if test "$ext_shared" = "yes"; then
                   29378:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   29379:     else
                   29380: 
                   29381: 
                   29382:   case $ac_ii in
                   29383:   c|c_r|pthread*) ;;
                   29384:   *)
                   29385:       LIBS="$LIBS -l$ac_ii"
                   29386:    ;;
                   29387:   esac
                   29388: 
                   29389: 
                   29390:     fi
                   29391:    ;;
                   29392:   esac
                   29393: 
                   29394: 
                   29395:     ;;
                   29396:     -L*)
                   29397:       ac_ii=`echo $ac_i|cut -c 3-`
                   29398: 
                   29399:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   29400: 
                   29401:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   29402:     ai_p=$ac_ii
                   29403:   else
                   29404: 
                   29405:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   29406: 
                   29407:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   29408:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   29409:   fi
                   29410: 
                   29411: 
                   29412:       if test "$ext_shared" = "yes"; then
                   29413:         LDFLAGS="-L$ai_p $LDFLAGS"
                   29414:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   29415:       else
                   29416: 
                   29417: 
                   29418: 
                   29419:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   29420: 
                   29421:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   29422:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   29423:     eval "LIBPATH$unique=set"
                   29424: 
                   29425:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   29426:     LDFLAGS="$LDFLAGS -L$ai_p"
                   29427:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   29428: 
                   29429:   fi
                   29430: 
                   29431: 
                   29432:       fi
                   29433: 
                   29434:   fi
                   29435: 
                   29436:     ;;
                   29437:     esac
                   29438:   done
                   29439: 
                   29440:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_multi_strerror in -lcurl" >&5
                   29441: $as_echo_n "checking for curl_multi_strerror in -lcurl... " >&6; }
                   29442: if ${ac_cv_lib_curl_curl_multi_strerror+:} false; then :
                   29443:   $as_echo_n "(cached) " >&6
                   29444: else
                   29445:   ac_check_lib_save_LIBS=$LIBS
                   29446: LIBS="-lcurl  $LIBS"
                   29447: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   29448: /* end confdefs.h.  */
                   29449: 
                   29450: /* Override any GCC internal prototype to avoid an error.
                   29451:    Use char because int might match the return type of a GCC
                   29452:    builtin and then its argument prototype would still apply.  */
                   29453: #ifdef __cplusplus
                   29454: extern "C"
                   29455: #endif
                   29456: char curl_multi_strerror ();
                   29457: int
                   29458: main ()
                   29459: {
                   29460: return curl_multi_strerror ();
                   29461:   ;
                   29462:   return 0;
                   29463: }
                   29464: _ACEOF
                   29465: if ac_fn_c_try_link "$LINENO"; then :
                   29466:   ac_cv_lib_curl_curl_multi_strerror=yes
                   29467: else
                   29468:   ac_cv_lib_curl_curl_multi_strerror=no
                   29469: fi
                   29470: rm -f core conftest.err conftest.$ac_objext \
                   29471:     conftest$ac_exeext conftest.$ac_ext
                   29472: LIBS=$ac_check_lib_save_LIBS
                   29473: fi
                   29474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_multi_strerror" >&5
                   29475: $as_echo "$ac_cv_lib_curl_curl_multi_strerror" >&6; }
                   29476: if test "x$ac_cv_lib_curl_curl_multi_strerror" = xyes; then :
                   29477: 
                   29478:     LDFLAGS=$save_old_LDFLAGS
                   29479:     ext_shared=$save_ext_shared
                   29480: 
                   29481: 
                   29482: $as_echo "#define HAVE_CURL_MULTI_STRERROR 1" >>confdefs.h
                   29483: 
                   29484: 
                   29485: 
                   29486: else
                   29487: 
                   29488:     LDFLAGS=$save_old_LDFLAGS
                   29489:     ext_shared=$save_ext_shared
                   29490:     unset ac_cv_lib_curl_curl_multi_strerror
                   29491: 
                   29492: 
                   29493: fi
                   29494: 
                   29495: 
                   29496:   if test "$PHP_CURLWRAPPERS" != "no" ; then
                   29497: 
                   29498: $as_echo "#define PHP_CURL_URL_WRAPPERS 1" >>confdefs.h
                   29499: 
                   29500:   fi
                   29501: 
                   29502: 
                   29503:   ext_builddir=ext/curl
                   29504:   ext_srcdir=$abs_srcdir/ext/curl
                   29505: 
                   29506:   ac_extra=
                   29507: 
                   29508:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   29509:     PHP_CURL_SHARED=no
                   29510: 
                   29511: 
                   29512:   case ext/curl in
                   29513:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   29514:   /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   29515:   *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   29516:   esac
                   29517: 
                   29518: 
                   29519: 
                   29520:   b_c_pre=$php_c_pre
                   29521:   b_cxx_pre=$php_cxx_pre
                   29522:   b_c_meta=$php_c_meta
                   29523:   b_cxx_meta=$php_cxx_meta
                   29524:   b_c_post=$php_c_post
                   29525:   b_cxx_post=$php_cxx_post
                   29526:   b_lo=$php_lo
                   29527: 
                   29528: 
                   29529:   old_IFS=$IFS
                   29530:   for ac_src in interface.c multi.c streams.c; do
                   29531: 
                   29532:       IFS=.
                   29533:       set $ac_src
                   29534:       ac_obj=$1
                   29535:       IFS=$old_IFS
                   29536: 
                   29537:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   29538: 
                   29539:       case $ac_src in
                   29540:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   29541:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   29542:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   29543:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   29544:       esac
                   29545: 
                   29546:     cat >>Makefile.objects<<EOF
                   29547: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   29548:        $ac_comp
                   29549: EOF
                   29550:   done
                   29551: 
                   29552: 
                   29553:     EXT_STATIC="$EXT_STATIC curl"
                   29554:     if test "$ext_shared" != "nocli"; then
                   29555:       EXT_CLI_STATIC="$EXT_CLI_STATIC curl"
                   29556:     fi
                   29557:   else
                   29558:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   29559:       PHP_CURL_SHARED=yes
                   29560: 
                   29561:   case ext/curl in
                   29562:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   29563:   /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   29564:   *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   29565:   esac
                   29566: 
                   29567: 
                   29568: 
                   29569:   b_c_pre=$shared_c_pre
                   29570:   b_cxx_pre=$shared_cxx_pre
                   29571:   b_c_meta=$shared_c_meta
                   29572:   b_cxx_meta=$shared_cxx_meta
                   29573:   b_c_post=$shared_c_post
                   29574:   b_cxx_post=$shared_cxx_post
                   29575:   b_lo=$shared_lo
                   29576: 
                   29577: 
                   29578:   old_IFS=$IFS
                   29579:   for ac_src in interface.c multi.c streams.c; do
                   29580: 
                   29581:       IFS=.
                   29582:       set $ac_src
                   29583:       ac_obj=$1
                   29584:       IFS=$old_IFS
                   29585: 
                   29586:       shared_objects_curl="$shared_objects_curl $ac_bdir$ac_obj.lo"
                   29587: 
                   29588:       case $ac_src in
                   29589:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   29590:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   29591:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   29592:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   29593:       esac
                   29594: 
                   29595:     cat >>Makefile.objects<<EOF
                   29596: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   29597:        $ac_comp
                   29598: EOF
                   29599:   done
                   29600: 
                   29601:       case $host_alias in
                   29602:         *netware*)
                   29603: 
                   29604:   install_modules="install-modules"
                   29605: 
                   29606:   case $host_alias in
                   29607:     *aix*)
                   29608:       suffix=so
                   29609:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpcurl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) $(PHPCURL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpcurl.so '$ext_builddir'/phpcurl.so'
                   29610:       ;;
                   29611:     *netware*)
                   29612:       suffix=nlm
                   29613:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) -L$(top_builddir)/netware -lphp5lib $(CURL_SHARED_LIBADD)'
                   29614:       ;;
                   29615:     *)
                   29616:       suffix=la
                   29617:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) $(PHPCURL_SHARED_LIBADD)'
                   29618:       ;;
                   29619:   esac
                   29620: 
                   29621:   if test "x" = "xyes"; then
                   29622:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpcurl.$suffix"
                   29623:   else
                   29624:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpcurl.$suffix"
                   29625:   fi
                   29626: 
                   29627:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_curl"
                   29628: 
                   29629:   cat >>Makefile.objects<<EOF
                   29630: \$(phplibdir)/phpcurl.$suffix: $ext_builddir/phpcurl.$suffix
                   29631:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpcurl.$suffix \$(phplibdir)
                   29632: 
                   29633: $ext_builddir/phpcurl.$suffix: \$(shared_objects_curl) \$(PHPCURL_SHARED_DEPENDENCIES)
                   29634:        $link_cmd
                   29635: 
                   29636: EOF
                   29637: 
                   29638:           ;;
                   29639:         *)
                   29640: 
                   29641:   install_modules="install-modules"
                   29642: 
                   29643:   case $host_alias in
                   29644:     *aix*)
                   29645:       suffix=so
                   29646:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/curl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) $(CURL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/curl.so '$ext_builddir'/curl.so'
                   29647:       ;;
                   29648:     *netware*)
                   29649:       suffix=nlm
                   29650:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) -L$(top_builddir)/netware -lphp5lib $(L_SHARED_LIBADD)'
                   29651:       ;;
                   29652:     *)
                   29653:       suffix=la
                   29654:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) $(CURL_SHARED_LIBADD)'
                   29655:       ;;
                   29656:   esac
                   29657: 
                   29658:   if test "x" = "xyes"; then
                   29659:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/curl.$suffix"
                   29660:   else
                   29661:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/curl.$suffix"
                   29662:   fi
                   29663: 
                   29664:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_curl"
                   29665: 
                   29666:   cat >>Makefile.objects<<EOF
                   29667: \$(phplibdir)/curl.$suffix: $ext_builddir/curl.$suffix
                   29668:        \$(LIBTOOL) --mode=install cp $ext_builddir/curl.$suffix \$(phplibdir)
                   29669: 
                   29670: $ext_builddir/curl.$suffix: \$(shared_objects_curl) \$(CURL_SHARED_DEPENDENCIES)
                   29671:        $link_cmd
                   29672: 
                   29673: EOF
                   29674: 
                   29675:           ;;
                   29676:       esac
                   29677: 
                   29678: cat >>confdefs.h <<_ACEOF
                   29679: #define COMPILE_DL_CURL 1
                   29680: _ACEOF
                   29681: 
                   29682:     fi
                   29683:   fi
                   29684: 
                   29685:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   29686:     PHP_CURL_SHARED=no
                   29687: 
                   29688: 
                   29689:   case ext/curl in
                   29690:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   29691:   /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   29692:   *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   29693:   esac
                   29694: 
                   29695: 
                   29696: 
                   29697:   b_c_pre=$php_c_pre
                   29698:   b_cxx_pre=$php_cxx_pre
                   29699:   b_c_meta=$php_c_meta
                   29700:   b_cxx_meta=$php_cxx_meta
                   29701:   b_c_post=$php_c_post
                   29702:   b_cxx_post=$php_cxx_post
                   29703:   b_lo=$php_lo
                   29704: 
                   29705: 
                   29706:   old_IFS=$IFS
                   29707:   for ac_src in interface.c multi.c streams.c; do
                   29708: 
                   29709:       IFS=.
                   29710:       set $ac_src
                   29711:       ac_obj=$1
                   29712:       IFS=$old_IFS
                   29713: 
1.1.1.2 ! misho    29714:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    29715: 
                   29716:       case $ac_src in
                   29717:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   29718:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   29719:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   29720:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   29721:       esac
                   29722: 
                   29723:     cat >>Makefile.objects<<EOF
                   29724: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   29725:        $ac_comp
                   29726: EOF
                   29727:   done
                   29728: 
                   29729: 
                   29730: 
                   29731: 
                   29732:   case ext/curl in
                   29733:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   29734:   /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   29735:   *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   29736:   esac
                   29737: 
                   29738: 
                   29739: 
                   29740:   b_c_pre=$php_c_pre
                   29741:   b_cxx_pre=$php_cxx_pre
                   29742:   b_c_meta=$php_c_meta
                   29743:   b_cxx_meta=$php_cxx_meta
                   29744:   b_c_post=$php_c_post
                   29745:   b_cxx_post=$php_cxx_post
                   29746:   b_lo=$php_lo
                   29747: 
                   29748: 
                   29749:   old_IFS=$IFS
                   29750:   for ac_src in interface.c multi.c streams.c; do
                   29751: 
                   29752:       IFS=.
                   29753:       set $ac_src
                   29754:       ac_obj=$1
                   29755:       IFS=$old_IFS
                   29756: 
1.1.1.2 ! misho    29757:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    29758: 
                   29759:       case $ac_src in
                   29760:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   29761:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   29762:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   29763:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   29764:       esac
                   29765: 
                   29766:     cat >>Makefile.objects<<EOF
                   29767: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   29768:        $ac_comp
                   29769: EOF
                   29770:   done
                   29771: 
                   29772: 
                   29773: 
                   29774: 
                   29775:   case ext/curl in
                   29776:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   29777:   /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   29778:   *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   29779:   esac
                   29780: 
                   29781: 
                   29782: 
                   29783:   b_c_pre=$php_c_pre
                   29784:   b_cxx_pre=$php_cxx_pre
                   29785:   b_c_meta=$php_c_meta
                   29786:   b_cxx_meta=$php_cxx_meta
                   29787:   b_c_post=$php_c_post
                   29788:   b_cxx_post=$php_cxx_post
                   29789:   b_lo=$php_lo
                   29790: 
                   29791: 
                   29792:   old_IFS=$IFS
                   29793:   for ac_src in interface.c multi.c streams.c; do
                   29794: 
                   29795:       IFS=.
                   29796:       set $ac_src
                   29797:       ac_obj=$1
                   29798:       IFS=$old_IFS
                   29799: 
1.1.1.2 ! misho    29800:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    29801: 
                   29802:       case $ac_src in
                   29803:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   29804:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   29805:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   29806:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   29807:       esac
                   29808: 
                   29809:     cat >>Makefile.objects<<EOF
                   29810: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   29811:        $ac_comp
                   29812: EOF
                   29813:   done
                   29814: 
                   29815: 
                   29816:     EXT_CLI_STATIC="$EXT_CLI_STATIC curl"
                   29817:   fi
                   29818: 
                   29819: 
                   29820:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   29821: 
                   29822: 
                   29823: 
                   29824:   if test "$ext_builddir" = "."; then
                   29825:     PHP_PECL_EXTENSION=curl
                   29826: 
                   29827:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   29828: 
                   29829:   fi
                   29830: 
                   29831: 
                   29832:   PHP_VAR_SUBST="$PHP_VAR_SUBST CURL_SHARED_LIBADD"
                   29833: 
                   29834: fi
                   29835: 
                   29836: 
                   29837: 
                   29838: 
                   29839: 
                   29840: 
                   29841: 
                   29842: 
                   29843: 
                   29844: 
                   29845: 
                   29846: 
                   29847: 
                   29848: 
                   29849: 
                   29850: 
                   29851: 
                   29852: php_enable_dba=no
                   29853: 
                   29854: 
                   29855: # Check whether --enable-dba was given.
                   29856: if test "${enable_dba+set}" = set; then :
                   29857:   enableval=$enable_dba; PHP_DBA=$enableval
                   29858: else
                   29859: 
                   29860:   PHP_DBA=no
                   29861:   test "$PHP_ENABLE_ALL" && PHP_DBA=$PHP_ENABLE_ALL
                   29862: 
                   29863: fi
                   29864: 
                   29865: 
                   29866: 
                   29867: ext_output="yes, shared"
                   29868: ext_shared=yes
                   29869: case $PHP_DBA in
                   29870: shared,*)
                   29871:   PHP_DBA=`echo "$PHP_DBA"|$SED 's/^shared,//'`
                   29872:   ;;
                   29873: shared)
                   29874:   PHP_DBA=yes
                   29875:   ;;
                   29876: no)
                   29877:   ext_output=no
                   29878:   ext_shared=no
                   29879:   ;;
                   29880: *)
                   29881:   ext_output=yes
                   29882:   ext_shared=no
                   29883:   ;;
                   29884: esac
                   29885: 
                   29886: 
                   29887: 
                   29888: 
                   29889: 
                   29890: 
                   29891: 
                   29892: 
                   29893: 
                   29894: php_with_qdbm=no
                   29895: 
                   29896: 
                   29897: 
                   29898: # Check whether --with-qdbm was given.
                   29899: if test "${with_qdbm+set}" = set; then :
                   29900:   withval=$with_qdbm; PHP_QDBM=$withval
                   29901: else
                   29902: 
                   29903:   PHP_QDBM=no
                   29904: 
                   29905: 
                   29906: fi
                   29907: 
                   29908: 
                   29909: ext_output=$PHP_QDBM
                   29910: 
                   29911: 
                   29912: 
                   29913: 
                   29914: 
                   29915: 
                   29916: php_with_gdbm=no
                   29917: 
                   29918: 
                   29919: 
                   29920: # Check whether --with-gdbm was given.
                   29921: if test "${with_gdbm+set}" = set; then :
                   29922:   withval=$with_gdbm; PHP_GDBM=$withval
                   29923: else
                   29924: 
                   29925:   PHP_GDBM=no
                   29926: 
                   29927: 
                   29928: fi
                   29929: 
                   29930: 
                   29931: ext_output=$PHP_GDBM
                   29932: 
                   29933: 
                   29934: 
                   29935: 
                   29936: 
                   29937: 
                   29938: php_with_ndbm=no
                   29939: 
                   29940: 
                   29941: 
                   29942: # Check whether --with-ndbm was given.
                   29943: if test "${with_ndbm+set}" = set; then :
                   29944:   withval=$with_ndbm; PHP_NDBM=$withval
                   29945: else
                   29946: 
                   29947:   PHP_NDBM=no
                   29948: 
                   29949: 
                   29950: fi
                   29951: 
                   29952: 
                   29953: ext_output=$PHP_NDBM
                   29954: 
                   29955: 
                   29956: 
                   29957: 
                   29958: 
                   29959: 
                   29960: php_with_db4=no
                   29961: 
                   29962: 
                   29963: 
                   29964: # Check whether --with-db4 was given.
                   29965: if test "${with_db4+set}" = set; then :
                   29966:   withval=$with_db4; PHP_DB4=$withval
                   29967: else
                   29968: 
                   29969:   PHP_DB4=no
                   29970: 
                   29971: 
                   29972: fi
                   29973: 
                   29974: 
                   29975: ext_output=$PHP_DB4
                   29976: 
                   29977: 
                   29978: 
                   29979: 
                   29980: 
                   29981: 
                   29982: php_with_db3=no
                   29983: 
                   29984: 
                   29985: 
                   29986: # Check whether --with-db3 was given.
                   29987: if test "${with_db3+set}" = set; then :
                   29988:   withval=$with_db3; PHP_DB3=$withval
                   29989: else
                   29990: 
                   29991:   PHP_DB3=no
                   29992: 
                   29993: 
                   29994: fi
                   29995: 
                   29996: 
                   29997: ext_output=$PHP_DB3
                   29998: 
                   29999: 
                   30000: 
                   30001: 
                   30002: 
                   30003: 
                   30004: php_with_db2=no
                   30005: 
                   30006: 
                   30007: 
                   30008: # Check whether --with-db2 was given.
                   30009: if test "${with_db2+set}" = set; then :
                   30010:   withval=$with_db2; PHP_DB2=$withval
                   30011: else
                   30012: 
                   30013:   PHP_DB2=no
                   30014: 
                   30015: 
                   30016: fi
                   30017: 
                   30018: 
                   30019: ext_output=$PHP_DB2
                   30020: 
                   30021: 
                   30022: 
                   30023: 
                   30024: 
                   30025: 
                   30026: php_with_db1=no
                   30027: 
                   30028: 
                   30029: 
                   30030: # Check whether --with-db1 was given.
                   30031: if test "${with_db1+set}" = set; then :
                   30032:   withval=$with_db1; PHP_DB1=$withval
                   30033: else
                   30034: 
                   30035:   PHP_DB1=no
                   30036: 
                   30037: 
                   30038: fi
                   30039: 
                   30040: 
                   30041: ext_output=$PHP_DB1
                   30042: 
                   30043: 
                   30044: 
                   30045: 
                   30046: 
                   30047: 
                   30048: php_with_dbm=no
                   30049: 
                   30050: 
                   30051: 
                   30052: # Check whether --with-dbm was given.
                   30053: if test "${with_dbm+set}" = set; then :
                   30054:   withval=$with_dbm; PHP_DBM=$withval
                   30055: else
                   30056: 
                   30057:   PHP_DBM=no
                   30058: 
                   30059: 
                   30060: fi
                   30061: 
                   30062: 
                   30063: ext_output=$PHP_DBM
                   30064: 
                   30065: 
                   30066: 
                   30067: 
                   30068: 
                   30069: 
1.1.1.2 ! misho    30070: php_with_tcadb=no
        !          30071: 
        !          30072: 
        !          30073: 
        !          30074: # Check whether --with-tcadb was given.
        !          30075: if test "${with_tcadb+set}" = set; then :
        !          30076:   withval=$with_tcadb; PHP_TCADB=$withval
        !          30077: else
        !          30078: 
        !          30079:   PHP_TCADB=no
        !          30080: 
        !          30081: 
        !          30082: fi
        !          30083: 
        !          30084: 
        !          30085: ext_output=$PHP_TCADB
        !          30086: 
        !          30087: 
        !          30088: 
        !          30089: 
        !          30090: 
        !          30091: 
        !          30092: 
1.1       misho    30093: # QDBM
                   30094: if test "$PHP_QDBM" != "no"; then
                   30095: 
                   30096:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
                   30097: 
                   30098:   for i in $PHP_QDBM /usr/local /usr; do
                   30099:     if test -f "$i/include/depot.h"; then
                   30100:       THIS_PREFIX=$i
                   30101:       THIS_INCLUDE=$i/include/depot.h
                   30102:       break
                   30103:     fi
                   30104:   done
                   30105: 
                   30106:   if test -n "$THIS_INCLUDE"; then
                   30107:     for LIB in qdbm; do
                   30108: 
                   30109:   save_old_LDFLAGS=$LDFLAGS
                   30110:   ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
                   30111: 
                   30112:   save_ext_shared=$ext_shared
                   30113:   ext_shared=yes
                   30114: 
                   30115:   for ac_i in $ac_stuff; do
                   30116:     case $ac_i in
                   30117:     -pthread)
                   30118:       if test "$ext_shared" = "yes"; then
                   30119:         LDFLAGS="$LDFLAGS -pthread"
                   30120:       else
                   30121: 
                   30122: 
                   30123:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   30124: 
                   30125:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   30126:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   30127:     eval "EXTRA_LDFLAGS$unique=set"
                   30128:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   30129:   fi
                   30130: 
                   30131:       fi
                   30132:     ;;
                   30133:     -l*)
                   30134:       ac_ii=`echo $ac_i|cut -c 3-`
                   30135: 
                   30136: 
                   30137:   case $ac_ii in
                   30138:   c|c_r|pthread*) ;;
                   30139:   *)
                   30140:     if test "$ext_shared" = "yes"; then
                   30141:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   30142:     else
                   30143: 
                   30144: 
                   30145:   case $ac_ii in
                   30146:   c|c_r|pthread*) ;;
                   30147:   *)
                   30148:       LIBS="$LIBS -l$ac_ii"
                   30149:    ;;
                   30150:   esac
                   30151: 
                   30152: 
                   30153:     fi
                   30154:    ;;
                   30155:   esac
                   30156: 
                   30157: 
                   30158:     ;;
                   30159:     -L*)
                   30160:       ac_ii=`echo $ac_i|cut -c 3-`
                   30161: 
                   30162:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   30163: 
                   30164:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   30165:     ai_p=$ac_ii
                   30166:   else
                   30167: 
                   30168:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   30169: 
                   30170:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   30171:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   30172:   fi
                   30173: 
                   30174: 
                   30175:       if test "$ext_shared" = "yes"; then
                   30176:         LDFLAGS="-L$ai_p $LDFLAGS"
                   30177:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   30178:       else
                   30179: 
                   30180: 
                   30181: 
                   30182:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   30183: 
                   30184:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   30185:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   30186:     eval "LIBPATH$unique=set"
                   30187: 
                   30188:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   30189:     LDFLAGS="$LDFLAGS -L$ai_p"
                   30190:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   30191: 
                   30192:   fi
                   30193: 
                   30194: 
                   30195:       fi
                   30196: 
                   30197:   fi
                   30198: 
                   30199:     ;;
                   30200:     esac
                   30201:   done
                   30202: 
                   30203:   as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dpopen" | $as_tr_sh`
                   30204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpopen in -l$LIB" >&5
                   30205: $as_echo_n "checking for dpopen in -l$LIB... " >&6; }
                   30206: if eval \${$as_ac_Lib+:} false; then :
                   30207:   $as_echo_n "(cached) " >&6
                   30208: else
                   30209:   ac_check_lib_save_LIBS=$LIBS
                   30210: LIBS="-l$LIB  $LIBS"
                   30211: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   30212: /* end confdefs.h.  */
                   30213: 
                   30214: /* Override any GCC internal prototype to avoid an error.
                   30215:    Use char because int might match the return type of a GCC
                   30216:    builtin and then its argument prototype would still apply.  */
                   30217: #ifdef __cplusplus
                   30218: extern "C"
                   30219: #endif
                   30220: char dpopen ();
                   30221: int
                   30222: main ()
                   30223: {
                   30224: return dpopen ();
                   30225:   ;
                   30226:   return 0;
                   30227: }
                   30228: _ACEOF
                   30229: if ac_fn_c_try_link "$LINENO"; then :
                   30230:   eval "$as_ac_Lib=yes"
                   30231: else
                   30232:   eval "$as_ac_Lib=no"
                   30233: fi
                   30234: rm -f core conftest.err conftest.$ac_objext \
                   30235:     conftest$ac_exeext conftest.$ac_ext
                   30236: LIBS=$ac_check_lib_save_LIBS
                   30237: fi
                   30238: eval ac_res=\$$as_ac_Lib
                   30239:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   30240: $as_echo "$ac_res" >&6; }
                   30241: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   30242: 
                   30243:     LDFLAGS=$save_old_LDFLAGS
                   30244:     ext_shared=$save_ext_shared
                   30245: 
                   30246: 
                   30247: cat >>confdefs.h <<_ACEOF
                   30248: #define QDBM_INCLUDE_FILE "$THIS_INCLUDE"
                   30249: _ACEOF
                   30250: 
                   30251: 
                   30252: $as_echo "#define DBA_QDBM 1" >>confdefs.h
                   30253: 
                   30254:         THIS_LIBS=$LIB
                   30255: 
                   30256: 
                   30257: else
                   30258: 
                   30259:     LDFLAGS=$save_old_LDFLAGS
                   30260:     ext_shared=$save_ext_shared
                   30261:     unset ac_cv_lib_$LIB_dpopen
                   30262: 
                   30263: 
                   30264: fi
                   30265: 
                   30266:       if test -n "$THIS_LIBS"; then
                   30267:         break
                   30268:       fi
                   30269:     done
                   30270:   fi
                   30271: 
                   30272: 
                   30273:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
                   30274:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
                   30275:   fi
                   30276: 
                   30277: 
                   30278:   THIS_RESULT=yes
                   30279:   if test -z "$THIS_INCLUDE"; then
                   30280:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
                   30281:   fi
                   30282:   if test -z "$THIS_LIBS"; then
                   30283:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
                   30284:   fi
                   30285: 
                   30286: 
                   30287: 
                   30288: 
                   30289:   if test "$ext_shared" = "yes"; then
                   30290:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
                   30291:     if test -n "$THIS_LFLAGS"; then
                   30292: 
                   30293:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   30294: 
                   30295:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   30296:     ai_p=$THIS_LFLAGS
                   30297:   else
                   30298: 
                   30299:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   30300: 
                   30301:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   30302:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   30303:   fi
                   30304: 
                   30305: 
                   30306:       if test "$ext_shared" = "yes"; then
                   30307:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
                   30308:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
                   30309:       else
                   30310: 
                   30311: 
                   30312: 
                   30313:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   30314: 
                   30315:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   30316:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   30317:     eval "LIBPATH$unique=set"
                   30318: 
                   30319:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   30320:     LDFLAGS="$LDFLAGS -L$ai_p"
                   30321:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   30322: 
                   30323:   fi
                   30324: 
                   30325: 
                   30326:       fi
                   30327: 
                   30328:   fi
                   30329: 
                   30330:     fi
                   30331:   else
                   30332: 
                   30333: 
                   30334:   if test -n "$THIS_LFLAGS"; then
                   30335: 
                   30336:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   30337: 
                   30338:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   30339:     ai_p=$THIS_LFLAGS
                   30340:   else
                   30341: 
                   30342:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   30343: 
                   30344:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   30345:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   30346:   fi
                   30347: 
                   30348: 
                   30349: 
                   30350: 
                   30351: 
                   30352:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   30353: 
                   30354:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   30355:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   30356:     eval "LIBPATH$unique=set"
                   30357: 
                   30358:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   30359:     LDFLAGS="$LDFLAGS -L$ai_p"
                   30360:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   30361: 
                   30362:   fi
                   30363: 
                   30364: 
                   30365: 
                   30366:   fi
                   30367: 
                   30368:   fi
                   30369: 
                   30370: 
                   30371:   case $THIS_LIBS in
                   30372:   c|c_r|pthread*) ;;
                   30373:   *)
                   30374:       LIBS="-l$THIS_LIBS $LIBS"
                   30375:    ;;
                   30376:   esac
                   30377: 
                   30378: 
                   30379: 
                   30380: 
                   30381:   fi
                   30382: 
                   30383: 
                   30384:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
                   30385: 
                   30386: fi
                   30387: 
                   30388:   THIS_NAME=QDBM
                   30389:   if test -n ""; then
                   30390:     THIS_FULL_NAME=""
                   30391:   else
                   30392:     THIS_FULL_NAME="$THIS_NAME"
                   30393:   fi
                   30394:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
                   30395: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
                   30396:   if test -n ""; then
                   30397:     as_fn_error $? "" "$LINENO" 5
                   30398:   fi
                   30399:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
                   30400:     HAVE_DBA=1
                   30401:     eval HAVE_$THIS_NAME=1
                   30402:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
                   30403: $as_echo "$THIS_RESULT" >&6; }
                   30404:   else
                   30405:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   30406: $as_echo "no" >&6; }
                   30407:   fi
                   30408:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
                   30409: 
                   30410: 
                   30411: # GDBM
                   30412: if test "$PHP_GDBM" != "no"; then
                   30413: 
                   30414:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
                   30415: 
                   30416:   if test "$HAVE_QDBM" = "1"; then
                   30417: 
                   30418:   THIS_NAME=GDBM
                   30419:   if test -n "gdbm"; then
                   30420:     THIS_FULL_NAME="gdbm"
                   30421:   else
                   30422:     THIS_FULL_NAME="$THIS_NAME"
                   30423:   fi
                   30424:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
                   30425: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
                   30426:   if test -n "You cannot combine --with-gdbm with --with-qdbm"; then
                   30427:     as_fn_error $? "You cannot combine --with-gdbm with --with-qdbm" "$LINENO" 5
                   30428:   fi
                   30429:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
                   30430:     HAVE_DBA=1
                   30431:     eval HAVE_$THIS_NAME=1
                   30432:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
                   30433: $as_echo "$THIS_RESULT" >&6; }
                   30434:   else
                   30435:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   30436: $as_echo "no" >&6; }
                   30437:   fi
                   30438:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
                   30439: 
                   30440:   fi
                   30441:   for i in $PHP_GDBM /usr/local /usr; do
                   30442:     if test -f "$i/include/gdbm.h"; then
                   30443:       THIS_PREFIX=$i
                   30444:       THIS_INCLUDE=$i/include/gdbm.h
                   30445:       break
                   30446:     fi
                   30447:   done
                   30448: 
                   30449:   if test -n "$THIS_INCLUDE"; then
                   30450: 
                   30451:   save_old_LDFLAGS=$LDFLAGS
                   30452:   ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
                   30453: 
                   30454:   save_ext_shared=$ext_shared
                   30455:   ext_shared=yes
                   30456: 
                   30457:   for ac_i in $ac_stuff; do
                   30458:     case $ac_i in
                   30459:     -pthread)
                   30460:       if test "$ext_shared" = "yes"; then
                   30461:         LDFLAGS="$LDFLAGS -pthread"
                   30462:       else
                   30463: 
                   30464: 
                   30465:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   30466: 
                   30467:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   30468:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   30469:     eval "EXTRA_LDFLAGS$unique=set"
                   30470:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   30471:   fi
                   30472: 
                   30473:       fi
                   30474:     ;;
                   30475:     -l*)
                   30476:       ac_ii=`echo $ac_i|cut -c 3-`
                   30477: 
                   30478: 
                   30479:   case $ac_ii in
                   30480:   c|c_r|pthread*) ;;
                   30481:   *)
                   30482:     if test "$ext_shared" = "yes"; then
                   30483:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   30484:     else
                   30485: 
                   30486: 
                   30487:   case $ac_ii in
                   30488:   c|c_r|pthread*) ;;
                   30489:   *)
                   30490:       LIBS="$LIBS -l$ac_ii"
                   30491:    ;;
                   30492:   esac
                   30493: 
                   30494: 
                   30495:     fi
                   30496:    ;;
                   30497:   esac
                   30498: 
                   30499: 
                   30500:     ;;
                   30501:     -L*)
                   30502:       ac_ii=`echo $ac_i|cut -c 3-`
                   30503: 
                   30504:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   30505: 
                   30506:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   30507:     ai_p=$ac_ii
                   30508:   else
                   30509: 
                   30510:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   30511: 
                   30512:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   30513:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   30514:   fi
                   30515: 
                   30516: 
                   30517:       if test "$ext_shared" = "yes"; then
                   30518:         LDFLAGS="-L$ai_p $LDFLAGS"
                   30519:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   30520:       else
                   30521: 
                   30522: 
                   30523: 
                   30524:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   30525: 
                   30526:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   30527:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   30528:     eval "LIBPATH$unique=set"
                   30529: 
                   30530:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   30531:     LDFLAGS="$LDFLAGS -L$ai_p"
                   30532:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   30533: 
                   30534:   fi
                   30535: 
                   30536: 
                   30537:       fi
                   30538: 
                   30539:   fi
                   30540: 
                   30541:     ;;
                   30542:     esac
                   30543:   done
                   30544: 
                   30545:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
                   30546: $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
                   30547: if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
                   30548:   $as_echo_n "(cached) " >&6
                   30549: else
                   30550:   ac_check_lib_save_LIBS=$LIBS
                   30551: LIBS="-lgdbm  $LIBS"
                   30552: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   30553: /* end confdefs.h.  */
                   30554: 
                   30555: /* Override any GCC internal prototype to avoid an error.
                   30556:    Use char because int might match the return type of a GCC
                   30557:    builtin and then its argument prototype would still apply.  */
                   30558: #ifdef __cplusplus
                   30559: extern "C"
                   30560: #endif
                   30561: char gdbm_open ();
                   30562: int
                   30563: main ()
                   30564: {
                   30565: return gdbm_open ();
                   30566:   ;
                   30567:   return 0;
                   30568: }
                   30569: _ACEOF
                   30570: if ac_fn_c_try_link "$LINENO"; then :
                   30571:   ac_cv_lib_gdbm_gdbm_open=yes
                   30572: else
                   30573:   ac_cv_lib_gdbm_gdbm_open=no
                   30574: fi
                   30575: rm -f core conftest.err conftest.$ac_objext \
                   30576:     conftest$ac_exeext conftest.$ac_ext
                   30577: LIBS=$ac_check_lib_save_LIBS
                   30578: fi
                   30579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
                   30580: $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
                   30581: if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
                   30582: 
                   30583:     LDFLAGS=$save_old_LDFLAGS
                   30584:     ext_shared=$save_ext_shared
                   30585: 
                   30586: 
                   30587: cat >>confdefs.h <<_ACEOF
                   30588: #define GDBM_INCLUDE_FILE "$THIS_INCLUDE"
                   30589: _ACEOF
                   30590: 
                   30591: 
                   30592: $as_echo "#define DBA_GDBM 1" >>confdefs.h
                   30593: 
                   30594:       THIS_LIBS=gdbm
                   30595: 
                   30596: 
                   30597: else
                   30598: 
                   30599:     LDFLAGS=$save_old_LDFLAGS
                   30600:     ext_shared=$save_ext_shared
                   30601:     unset ac_cv_lib_gdbm_gdbm_open
                   30602: 
                   30603: 
                   30604: fi
                   30605: 
                   30606:   fi
                   30607: 
                   30608: 
                   30609:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
                   30610:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
                   30611:   fi
                   30612: 
                   30613: 
                   30614:   THIS_RESULT=yes
                   30615:   if test -z "$THIS_INCLUDE"; then
                   30616:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
                   30617:   fi
                   30618:   if test -z "$THIS_LIBS"; then
                   30619:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
                   30620:   fi
                   30621: 
                   30622: 
                   30623: 
                   30624: 
                   30625:   if test "$ext_shared" = "yes"; then
                   30626:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
                   30627:     if test -n "$THIS_LFLAGS"; then
                   30628: 
                   30629:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   30630: 
                   30631:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   30632:     ai_p=$THIS_LFLAGS
                   30633:   else
                   30634: 
                   30635:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   30636: 
                   30637:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   30638:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   30639:   fi
                   30640: 
                   30641: 
                   30642:       if test "$ext_shared" = "yes"; then
                   30643:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
                   30644:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
                   30645:       else
                   30646: 
                   30647: 
                   30648: 
                   30649:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   30650: 
                   30651:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   30652:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   30653:     eval "LIBPATH$unique=set"
                   30654: 
                   30655:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   30656:     LDFLAGS="$LDFLAGS -L$ai_p"
                   30657:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   30658: 
                   30659:   fi
                   30660: 
                   30661: 
                   30662:       fi
                   30663: 
                   30664:   fi
                   30665: 
                   30666:     fi
                   30667:   else
                   30668: 
                   30669: 
                   30670:   if test -n "$THIS_LFLAGS"; then
                   30671: 
                   30672:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   30673: 
                   30674:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   30675:     ai_p=$THIS_LFLAGS
                   30676:   else
                   30677: 
                   30678:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   30679: 
                   30680:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   30681:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   30682:   fi
                   30683: 
                   30684: 
                   30685: 
                   30686: 
                   30687: 
                   30688:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   30689: 
                   30690:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   30691:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   30692:     eval "LIBPATH$unique=set"
                   30693: 
                   30694:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   30695:     LDFLAGS="$LDFLAGS -L$ai_p"
                   30696:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   30697: 
                   30698:   fi
                   30699: 
                   30700: 
                   30701: 
                   30702:   fi
                   30703: 
                   30704:   fi
                   30705: 
                   30706: 
                   30707:   case $THIS_LIBS in
                   30708:   c|c_r|pthread*) ;;
                   30709:   *)
                   30710:       LIBS="-l$THIS_LIBS $LIBS"
                   30711:    ;;
                   30712:   esac
                   30713: 
                   30714: 
                   30715: 
                   30716: 
                   30717:   fi
                   30718: 
                   30719: 
                   30720:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
                   30721: 
                   30722: fi
                   30723: 
                   30724:   THIS_NAME=GDBM
                   30725:   if test -n ""; then
                   30726:     THIS_FULL_NAME=""
                   30727:   else
                   30728:     THIS_FULL_NAME="$THIS_NAME"
                   30729:   fi
                   30730:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
                   30731: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
                   30732:   if test -n ""; then
                   30733:     as_fn_error $? "" "$LINENO" 5
                   30734:   fi
                   30735:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
                   30736:     HAVE_DBA=1
                   30737:     eval HAVE_$THIS_NAME=1
                   30738:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
                   30739: $as_echo "$THIS_RESULT" >&6; }
                   30740:   else
                   30741:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   30742: $as_echo "no" >&6; }
                   30743:   fi
                   30744:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
                   30745: 
                   30746: 
                   30747: # NDBM
                   30748: if test "$PHP_NDBM" != "no"; then
                   30749: 
                   30750:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
                   30751: 
                   30752:   for i in $PHP_NDBM /usr/local /usr; do
                   30753:     if test -f "$i/include/ndbm.h"; then
                   30754:       THIS_PREFIX=$i
                   30755:       THIS_INCLUDE=$i/include/ndbm.h
                   30756:       break
                   30757:     elif test -f "$i/include/db1/ndbm.h"; then
                   30758:       THIS_PREFIX=$i
                   30759:       THIS_INCLUDE=$i/include/db1/ndbm.h
                   30760:       break
                   30761:     fi
                   30762:   done
                   30763: 
                   30764:   if test -n "$THIS_INCLUDE"; then
                   30765:     for LIB in ndbm db1 c; do
                   30766: 
                   30767:   save_old_LDFLAGS=$LDFLAGS
                   30768:   ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
                   30769: 
                   30770:   save_ext_shared=$ext_shared
                   30771:   ext_shared=yes
                   30772: 
                   30773:   for ac_i in $ac_stuff; do
                   30774:     case $ac_i in
                   30775:     -pthread)
                   30776:       if test "$ext_shared" = "yes"; then
                   30777:         LDFLAGS="$LDFLAGS -pthread"
                   30778:       else
                   30779: 
                   30780: 
                   30781:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   30782: 
                   30783:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   30784:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   30785:     eval "EXTRA_LDFLAGS$unique=set"
                   30786:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   30787:   fi
                   30788: 
                   30789:       fi
                   30790:     ;;
                   30791:     -l*)
                   30792:       ac_ii=`echo $ac_i|cut -c 3-`
                   30793: 
                   30794: 
                   30795:   case $ac_ii in
                   30796:   c|c_r|pthread*) ;;
                   30797:   *)
                   30798:     if test "$ext_shared" = "yes"; then
                   30799:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   30800:     else
                   30801: 
                   30802: 
                   30803:   case $ac_ii in
                   30804:   c|c_r|pthread*) ;;
                   30805:   *)
                   30806:       LIBS="$LIBS -l$ac_ii"
                   30807:    ;;
                   30808:   esac
                   30809: 
                   30810: 
                   30811:     fi
                   30812:    ;;
                   30813:   esac
                   30814: 
                   30815: 
                   30816:     ;;
                   30817:     -L*)
                   30818:       ac_ii=`echo $ac_i|cut -c 3-`
                   30819: 
                   30820:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   30821: 
                   30822:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   30823:     ai_p=$ac_ii
                   30824:   else
                   30825: 
                   30826:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   30827: 
                   30828:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   30829:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   30830:   fi
                   30831: 
                   30832: 
                   30833:       if test "$ext_shared" = "yes"; then
                   30834:         LDFLAGS="-L$ai_p $LDFLAGS"
                   30835:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   30836:       else
                   30837: 
                   30838: 
                   30839: 
                   30840:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   30841: 
                   30842:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   30843:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   30844:     eval "LIBPATH$unique=set"
                   30845: 
                   30846:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   30847:     LDFLAGS="$LDFLAGS -L$ai_p"
                   30848:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   30849: 
                   30850:   fi
                   30851: 
                   30852: 
                   30853:       fi
                   30854: 
                   30855:   fi
                   30856: 
                   30857:     ;;
                   30858:     esac
                   30859:   done
                   30860: 
                   30861:   as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbm_open" | $as_tr_sh`
                   30862: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -l$LIB" >&5
                   30863: $as_echo_n "checking for dbm_open in -l$LIB... " >&6; }
                   30864: if eval \${$as_ac_Lib+:} false; then :
                   30865:   $as_echo_n "(cached) " >&6
                   30866: else
                   30867:   ac_check_lib_save_LIBS=$LIBS
                   30868: LIBS="-l$LIB  $LIBS"
                   30869: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   30870: /* end confdefs.h.  */
                   30871: 
                   30872: /* Override any GCC internal prototype to avoid an error.
                   30873:    Use char because int might match the return type of a GCC
                   30874:    builtin and then its argument prototype would still apply.  */
                   30875: #ifdef __cplusplus
                   30876: extern "C"
                   30877: #endif
                   30878: char dbm_open ();
                   30879: int
                   30880: main ()
                   30881: {
                   30882: return dbm_open ();
                   30883:   ;
                   30884:   return 0;
                   30885: }
                   30886: _ACEOF
                   30887: if ac_fn_c_try_link "$LINENO"; then :
                   30888:   eval "$as_ac_Lib=yes"
                   30889: else
                   30890:   eval "$as_ac_Lib=no"
                   30891: fi
                   30892: rm -f core conftest.err conftest.$ac_objext \
                   30893:     conftest$ac_exeext conftest.$ac_ext
                   30894: LIBS=$ac_check_lib_save_LIBS
                   30895: fi
                   30896: eval ac_res=\$$as_ac_Lib
                   30897:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   30898: $as_echo "$ac_res" >&6; }
                   30899: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   30900: 
                   30901:     LDFLAGS=$save_old_LDFLAGS
                   30902:     ext_shared=$save_ext_shared
                   30903: 
                   30904: 
                   30905: cat >>confdefs.h <<_ACEOF
                   30906: #define NDBM_INCLUDE_FILE "$THIS_INCLUDE"
                   30907: _ACEOF
                   30908: 
                   30909: 
                   30910: $as_echo "#define DBA_NDBM 1" >>confdefs.h
                   30911: 
                   30912:         THIS_LIBS=$LIB
                   30913: 
                   30914: 
                   30915: else
                   30916: 
                   30917:     LDFLAGS=$save_old_LDFLAGS
                   30918:     ext_shared=$save_ext_shared
                   30919:     unset ac_cv_lib_$LIB_dbm_open
                   30920: 
                   30921: 
                   30922: fi
                   30923: 
                   30924:       if test -n "$THIS_LIBS"; then
                   30925:         break
                   30926:       fi
                   30927:     done
                   30928:   fi
                   30929: 
                   30930: 
                   30931:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
                   30932:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
                   30933:   fi
                   30934: 
                   30935: 
                   30936:   THIS_RESULT=yes
                   30937:   if test -z "$THIS_INCLUDE"; then
                   30938:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
                   30939:   fi
                   30940:   if test -z "$THIS_LIBS"; then
                   30941:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
                   30942:   fi
                   30943: 
                   30944: 
                   30945: 
                   30946: 
                   30947:   if test "$ext_shared" = "yes"; then
                   30948:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
                   30949:     if test -n "$THIS_LFLAGS"; then
                   30950: 
                   30951:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   30952: 
                   30953:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   30954:     ai_p=$THIS_LFLAGS
                   30955:   else
                   30956: 
                   30957:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   30958: 
                   30959:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   30960:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   30961:   fi
                   30962: 
                   30963: 
                   30964:       if test "$ext_shared" = "yes"; then
                   30965:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
                   30966:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
                   30967:       else
                   30968: 
                   30969: 
                   30970: 
                   30971:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   30972: 
                   30973:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   30974:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   30975:     eval "LIBPATH$unique=set"
                   30976: 
                   30977:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   30978:     LDFLAGS="$LDFLAGS -L$ai_p"
                   30979:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   30980: 
                   30981:   fi
                   30982: 
                   30983: 
                   30984:       fi
                   30985: 
                   30986:   fi
                   30987: 
                   30988:     fi
                   30989:   else
                   30990: 
                   30991: 
                   30992:   if test -n "$THIS_LFLAGS"; then
                   30993: 
                   30994:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   30995: 
                   30996:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   30997:     ai_p=$THIS_LFLAGS
                   30998:   else
                   30999: 
                   31000:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   31001: 
                   31002:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   31003:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   31004:   fi
                   31005: 
                   31006: 
                   31007: 
                   31008: 
                   31009: 
                   31010:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   31011: 
                   31012:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   31013:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   31014:     eval "LIBPATH$unique=set"
                   31015: 
                   31016:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   31017:     LDFLAGS="$LDFLAGS -L$ai_p"
                   31018:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   31019: 
                   31020:   fi
                   31021: 
                   31022: 
                   31023: 
                   31024:   fi
                   31025: 
                   31026:   fi
                   31027: 
                   31028: 
                   31029:   case $THIS_LIBS in
                   31030:   c|c_r|pthread*) ;;
                   31031:   *)
                   31032:       LIBS="-l$THIS_LIBS $LIBS"
                   31033:    ;;
                   31034:   esac
                   31035: 
                   31036: 
                   31037: 
                   31038: 
                   31039:   fi
                   31040: 
                   31041: 
                   31042:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
                   31043: 
                   31044: fi
                   31045: 
                   31046:   THIS_NAME=NDBM
                   31047:   if test -n ""; then
                   31048:     THIS_FULL_NAME=""
                   31049:   else
                   31050:     THIS_FULL_NAME="$THIS_NAME"
                   31051:   fi
                   31052:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
                   31053: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
                   31054:   if test -n ""; then
                   31055:     as_fn_error $? "" "$LINENO" 5
                   31056:   fi
                   31057:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
                   31058:     HAVE_DBA=1
                   31059:     eval HAVE_$THIS_NAME=1
                   31060:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
                   31061: $as_echo "$THIS_RESULT" >&6; }
                   31062:   else
                   31063:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   31064: $as_echo "no" >&6; }
                   31065:   fi
                   31066:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
                   31067: 
                   31068: 
1.1.1.2 ! misho    31069: if test "$PHP_TCADB" != "no"; then
        !          31070: 
        !          31071:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
        !          31072: 
        !          31073:   for i in $PHP_TCADB /usr/local /usr; do
        !          31074:        if test -f "$i/include/tcadb.h"; then
        !          31075:          THIS_PREFIX=$i
        !          31076: 
        !          31077:   if test "$THIS_PREFIX/include" != "/usr/include"; then
        !          31078: 
        !          31079:   if test -z "$THIS_PREFIX/include" || echo "$THIS_PREFIX/include" | grep '^/' >/dev/null ; then
        !          31080:     ai_p=$THIS_PREFIX/include
        !          31081:   else
        !          31082: 
        !          31083:     ep_dir="`echo $THIS_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'`"
        !          31084: 
        !          31085:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          31086:     ai_p="$ep_realdir/`basename \"$THIS_PREFIX/include\"`"
        !          31087:   fi
        !          31088: 
        !          31089: 
        !          31090: 
        !          31091:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          31092: 
        !          31093:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
        !          31094:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          31095:     eval "INCLUDEPATH$unique=set"
        !          31096: 
        !          31097:       if test ""; then
        !          31098:         INCLUDES="-I$ai_p $INCLUDES"
        !          31099:       else
        !          31100:         INCLUDES="$INCLUDES -I$ai_p"
        !          31101:       fi
        !          31102: 
        !          31103:   fi
        !          31104: 
        !          31105:   fi
        !          31106: 
        !          31107:          THIS_INCLUDE=$i/include/tcadb.h
        !          31108:          break
        !          31109:        fi
        !          31110:   done
        !          31111: 
        !          31112:   if test -n "$THIS_INCLUDE"; then
        !          31113:        for LIB in tokyocabinet; do
        !          31114: 
        !          31115:   save_old_LDFLAGS=$LDFLAGS
        !          31116:   ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
        !          31117: 
        !          31118:   save_ext_shared=$ext_shared
        !          31119:   ext_shared=yes
        !          31120: 
        !          31121:   for ac_i in $ac_stuff; do
        !          31122:     case $ac_i in
        !          31123:     -pthread)
        !          31124:       if test "$ext_shared" = "yes"; then
        !          31125:         LDFLAGS="$LDFLAGS -pthread"
        !          31126:       else
        !          31127: 
        !          31128: 
        !          31129:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          31130: 
        !          31131:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
        !          31132:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          31133:     eval "EXTRA_LDFLAGS$unique=set"
        !          31134:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
        !          31135:   fi
        !          31136: 
        !          31137:       fi
        !          31138:     ;;
        !          31139:     -l*)
        !          31140:       ac_ii=`echo $ac_i|cut -c 3-`
        !          31141: 
        !          31142: 
        !          31143:   case $ac_ii in
        !          31144:   c|c_r|pthread*) ;;
        !          31145:   *)
        !          31146:     if test "$ext_shared" = "yes"; then
        !          31147:         LDFLAGS="$LDFLAGS -l$ac_ii"
        !          31148:     else
        !          31149: 
        !          31150: 
        !          31151:   case $ac_ii in
        !          31152:   c|c_r|pthread*) ;;
        !          31153:   *)
        !          31154:       LIBS="$LIBS -l$ac_ii"
        !          31155:    ;;
        !          31156:   esac
        !          31157: 
        !          31158: 
        !          31159:     fi
        !          31160:    ;;
        !          31161:   esac
        !          31162: 
        !          31163: 
        !          31164:     ;;
        !          31165:     -L*)
        !          31166:       ac_ii=`echo $ac_i|cut -c 3-`
        !          31167: 
        !          31168:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
        !          31169: 
        !          31170:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
        !          31171:     ai_p=$ac_ii
        !          31172:   else
        !          31173: 
        !          31174:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
        !          31175: 
        !          31176:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          31177:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
        !          31178:   fi
        !          31179: 
        !          31180: 
        !          31181:       if test "$ext_shared" = "yes"; then
        !          31182:         LDFLAGS="-L$ai_p $LDFLAGS"
        !          31183:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
        !          31184:       else
        !          31185: 
        !          31186: 
        !          31187: 
        !          31188:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          31189: 
        !          31190:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
        !          31191:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          31192:     eval "LIBPATH$unique=set"
        !          31193: 
        !          31194:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
        !          31195:     LDFLAGS="$LDFLAGS -L$ai_p"
        !          31196:     PHP_RPATHS="$PHP_RPATHS $ai_p"
        !          31197: 
        !          31198:   fi
        !          31199: 
        !          31200: 
        !          31201:       fi
        !          31202: 
        !          31203:   fi
        !          31204: 
        !          31205:     ;;
        !          31206:     esac
        !          31207:   done
        !          31208: 
        !          31209:   as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_tcadbopen" | $as_tr_sh`
        !          31210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcadbopen in -l$LIB" >&5
        !          31211: $as_echo_n "checking for tcadbopen in -l$LIB... " >&6; }
        !          31212: if eval \${$as_ac_Lib+:} false; then :
        !          31213:   $as_echo_n "(cached) " >&6
        !          31214: else
        !          31215:   ac_check_lib_save_LIBS=$LIBS
        !          31216: LIBS="-l$LIB  $LIBS"
        !          31217: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          31218: /* end confdefs.h.  */
        !          31219: 
        !          31220: /* Override any GCC internal prototype to avoid an error.
        !          31221:    Use char because int might match the return type of a GCC
        !          31222:    builtin and then its argument prototype would still apply.  */
        !          31223: #ifdef __cplusplus
        !          31224: extern "C"
        !          31225: #endif
        !          31226: char tcadbopen ();
        !          31227: int
        !          31228: main ()
        !          31229: {
        !          31230: return tcadbopen ();
        !          31231:   ;
        !          31232:   return 0;
        !          31233: }
        !          31234: _ACEOF
        !          31235: if ac_fn_c_try_link "$LINENO"; then :
        !          31236:   eval "$as_ac_Lib=yes"
        !          31237: else
        !          31238:   eval "$as_ac_Lib=no"
        !          31239: fi
        !          31240: rm -f core conftest.err conftest.$ac_objext \
        !          31241:     conftest$ac_exeext conftest.$ac_ext
        !          31242: LIBS=$ac_check_lib_save_LIBS
        !          31243: fi
        !          31244: eval ac_res=\$$as_ac_Lib
        !          31245:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
        !          31246: $as_echo "$ac_res" >&6; }
        !          31247: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
        !          31248: 
        !          31249:     LDFLAGS=$save_old_LDFLAGS
        !          31250:     ext_shared=$save_ext_shared
        !          31251: 
        !          31252: 
        !          31253: cat >>confdefs.h <<_ACEOF
        !          31254: #define TCADB_INCLUDE_FILE "$THIS_INCLUDE"
        !          31255: _ACEOF
        !          31256: 
        !          31257: 
        !          31258: $as_echo "#define DBA_TCADB 1" >>confdefs.h
        !          31259: 
        !          31260:                THIS_LIBS=$LIB
        !          31261: 
        !          31262: 
        !          31263: else
        !          31264: 
        !          31265:     LDFLAGS=$save_old_LDFLAGS
        !          31266:     ext_shared=$save_ext_shared
        !          31267:     unset ac_cv_lib_$LIB_tcadbopen
        !          31268: 
        !          31269: 
        !          31270: fi
        !          31271: 
        !          31272:          if test -n "$THIS_LIBS"; then
        !          31273:                break
        !          31274:          fi
        !          31275:        done
        !          31276:   fi
        !          31277: 
        !          31278: 
        !          31279:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
        !          31280:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
        !          31281:   fi
        !          31282: 
        !          31283: 
        !          31284:   THIS_RESULT=yes
        !          31285:   if test -z "$THIS_INCLUDE"; then
        !          31286:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
        !          31287:   fi
        !          31288:   if test -z "$THIS_LIBS"; then
        !          31289:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
        !          31290:   fi
        !          31291: 
        !          31292: 
        !          31293: 
        !          31294: 
        !          31295:   if test "$ext_shared" = "yes"; then
        !          31296:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
        !          31297:     if test -n "$THIS_LFLAGS"; then
        !          31298: 
        !          31299:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
        !          31300: 
        !          31301:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
        !          31302:     ai_p=$THIS_LFLAGS
        !          31303:   else
        !          31304: 
        !          31305:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
        !          31306: 
        !          31307:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          31308:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
        !          31309:   fi
        !          31310: 
        !          31311: 
        !          31312:       if test "$ext_shared" = "yes"; then
        !          31313:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
        !          31314:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
        !          31315:       else
        !          31316: 
        !          31317: 
        !          31318: 
        !          31319:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          31320: 
        !          31321:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
        !          31322:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          31323:     eval "LIBPATH$unique=set"
        !          31324: 
        !          31325:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
        !          31326:     LDFLAGS="$LDFLAGS -L$ai_p"
        !          31327:     PHP_RPATHS="$PHP_RPATHS $ai_p"
        !          31328: 
        !          31329:   fi
        !          31330: 
        !          31331: 
        !          31332:       fi
        !          31333: 
        !          31334:   fi
        !          31335: 
        !          31336:     fi
        !          31337:   else
        !          31338: 
        !          31339: 
        !          31340:   if test -n "$THIS_LFLAGS"; then
        !          31341: 
        !          31342:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
        !          31343: 
        !          31344:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
        !          31345:     ai_p=$THIS_LFLAGS
        !          31346:   else
        !          31347: 
        !          31348:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
        !          31349: 
        !          31350:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          31351:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
        !          31352:   fi
        !          31353: 
        !          31354: 
        !          31355: 
        !          31356: 
        !          31357: 
        !          31358:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          31359: 
        !          31360:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
        !          31361:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          31362:     eval "LIBPATH$unique=set"
        !          31363: 
        !          31364:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
        !          31365:     LDFLAGS="$LDFLAGS -L$ai_p"
        !          31366:     PHP_RPATHS="$PHP_RPATHS $ai_p"
        !          31367: 
        !          31368:   fi
        !          31369: 
        !          31370: 
        !          31371: 
        !          31372:   fi
        !          31373: 
        !          31374:   fi
        !          31375: 
        !          31376: 
        !          31377:   case $THIS_LIBS in
        !          31378:   c|c_r|pthread*) ;;
        !          31379:   *)
        !          31380:       LIBS="-l$THIS_LIBS $LIBS"
        !          31381:    ;;
        !          31382:   esac
        !          31383: 
        !          31384: 
        !          31385: 
        !          31386: 
        !          31387:   fi
        !          31388: 
        !          31389: 
        !          31390:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
        !          31391: 
        !          31392: fi
        !          31393: 
        !          31394:   THIS_NAME=TCADB
        !          31395:   if test -n ""; then
        !          31396:     THIS_FULL_NAME=""
        !          31397:   else
        !          31398:     THIS_FULL_NAME="$THIS_NAME"
        !          31399:   fi
        !          31400:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
        !          31401: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
        !          31402:   if test -n ""; then
        !          31403:     as_fn_error $? "" "$LINENO" 5
        !          31404:   fi
        !          31405:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
        !          31406:     HAVE_DBA=1
        !          31407:     eval HAVE_$THIS_NAME=1
        !          31408:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
        !          31409: $as_echo "$THIS_RESULT" >&6; }
        !          31410:   else
        !          31411:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
        !          31412: $as_echo "no" >&6; }
        !          31413:   fi
        !          31414:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
        !          31415: 
        !          31416: 
1.1       misho    31417: 
                   31418: 
                   31419: # DB4
                   31420: if test "$PHP_DB4" != "no"; then
                   31421: 
                   31422:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
                   31423: 
                   31424:   dbdp4="/usr/local/BerkeleyDB.4."
                   31425:   dbdp5="/usr/local/BerkeleyDB.5."
                   31426:   for i in $PHP_DB4 ${dbdp5}1 ${dbdp5}0 ${dbdp4}8 ${dbdp4}7 ${dbdp4}6 ${dbdp4}5 ${dbdp4}4 ${dbdp4}3 ${dbdp4}2 ${dbdp4}1 ${dbdp}0 /usr/local /usr; do
                   31427:     if test -f "$i/db5/db.h"; then
                   31428:       THIS_PREFIX=$i
                   31429:       THIS_INCLUDE=$i/db5/db.h
                   31430:       break
                   31431:     elif test -f "$i/db4/db.h"; then
                   31432:       THIS_PREFIX=$i
                   31433:       THIS_INCLUDE=$i/db4/db.h
                   31434:       break
                   31435:     elif test -f "$i/include/db5.1/db.h"; then
                   31436:       THIS_PREFIX=$i
                   31437:       THIS_INCLUDE=$i/include/db5.1/db.h
                   31438:       break
                   31439:     elif test -f "$i/include/db5.0/db.h"; then
                   31440:       THIS_PREFIX=$i
                   31441:       THIS_INCLUDE=$i/include/db5.0/db.h
                   31442:       break
                   31443:     elif test -f "$i/include/db4.8/db.h"; then
                   31444:       THIS_PREFIX=$i
                   31445:       THIS_INCLUDE=$i/include/db4.8/db.h
                   31446:       break
                   31447:     elif test -f "$i/include/db4.7/db.h"; then
                   31448:       THIS_PREFIX=$i
                   31449:       THIS_INCLUDE=$i/include/db4.7/db.h
                   31450:       break
                   31451:     elif test -f "$i/include/db4.6/db.h"; then
                   31452:       THIS_PREFIX=$i
                   31453:       THIS_INCLUDE=$i/include/db4.6/db.h
                   31454:       break
                   31455:     elif test -f "$i/include/db4.5/db.h"; then
                   31456:       THIS_PREFIX=$i
                   31457:       THIS_INCLUDE=$i/include/db4.5/db.h
                   31458:       break
                   31459:     elif test -f "$i/include/db4/db.h"; then
                   31460:       THIS_PREFIX=$i
                   31461:       THIS_INCLUDE=$i/include/db4/db.h
                   31462:       break
                   31463:     elif test -f "$i/include/db/db4.h"; then
                   31464:       THIS_PREFIX=$i
                   31465:       THIS_INCLUDE=$i/include/db/db4.h
                   31466:       break
                   31467:     elif test -f "$i/include/db4.h"; then
                   31468:       THIS_PREFIX=$i
                   31469:       THIS_INCLUDE=$i/include/db4.h
                   31470:       break
                   31471:     elif test -f "$i/include/db.h"; then
                   31472:       THIS_PREFIX=$i
                   31473:       THIS_INCLUDE=$i/include/db.h
                   31474:       break
                   31475:     fi
                   31476:   done
                   31477: 
                   31478:   if test -z "$THIS_INCLUDE"; then
                   31479:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
                   31480:   fi
                   31481:   for LIB in db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db; do
                   31482:     if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
                   31483:       lib_found="";
                   31484: 
                   31485:   old_LDFLAGS=$LDFLAGS
                   31486:   LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
                   31487:   old_LIBS=$LIBS
                   31488:   LIBS="-l$LIB $LIBS"
                   31489: 
                   31490:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   31491: /* end confdefs.h.  */
                   31492: 
                   31493: #include "$THIS_INCLUDE"
                   31494: 
                   31495: int
                   31496: main ()
                   31497: {
                   31498: 
                   31499:           (void)db_create((DB**)0, (DB_ENV*)0, 0);
                   31500: 
                   31501:   ;
                   31502:   return 0;
                   31503: }
                   31504: _ACEOF
                   31505: if ac_fn_c_try_link "$LINENO"; then :
                   31506: 
                   31507:           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   31508: /* end confdefs.h.  */
                   31509: 
                   31510: #include "$THIS_INCLUDE"
                   31511: #if DB_VERSION_MAJOR == 4 || (4 == 4 && DB_VERSION_MAJOR == 5)
                   31512:             yes
                   31513: #endif
                   31514: 
                   31515: _ACEOF
                   31516: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   31517:   $EGREP "yes" >/dev/null 2>&1; then :
                   31518: 
                   31519:             THIS_LIBS=$LIB
                   31520:             lib_found=1
                   31521: 
                   31522: fi
                   31523: rm -f conftest*
                   31524: 
                   31525: 
                   31526: fi
                   31527: rm -f core conftest.err conftest.$ac_objext \
                   31528:     conftest$ac_exeext conftest.$ac_ext
                   31529: 
                   31530:   LDFLAGS=$old_LDFLAGS
                   31531:   LIBS=$old_LIBS
                   31532: 
                   31533:       if test -n "$lib_found"; then
                   31534:         lib_found="";
                   31535:         break;
                   31536:       fi
                   31537:     fi
                   31538:   done
                   31539:   if test -z "$THIS_LIBS"; then
                   31540:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 major version" >&5
                   31541: $as_echo_n "checking for DB4 major version... " >&6; }
                   31542:     as_fn_error $? "Header contains different version" "$LINENO" 5
                   31543:   fi
                   31544:   if test "4" = "4"; then
                   31545:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5
                   31546: $as_echo_n "checking for DB4 minor version and patch level... " >&6; }
                   31547:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   31548: /* end confdefs.h.  */
                   31549: 
                   31550: #include "$THIS_INCLUDE"
                   31551: #if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)
                   31552:       yes
                   31553: #endif
                   31554: 
                   31555: _ACEOF
                   31556: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   31557:   $EGREP "yes" >/dev/null 2>&1; then :
                   31558: 
                   31559:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
                   31560: $as_echo "ok" >&6; }
                   31561: 
                   31562: else
                   31563: 
                   31564:       as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5
                   31565: 
                   31566: fi
                   31567: rm -f conftest*
                   31568: 
                   31569:   fi
                   31570:   if test "$ext_shared" = "yes"; then
                   31571:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5
                   31572: $as_echo_n "checking if dba can be used as shared extension... " >&6; }
                   31573:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   31574: /* end confdefs.h.  */
                   31575: 
                   31576: #include "$THIS_INCLUDE"
                   31577: #if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
                   31578:       yes
                   31579: #endif
                   31580: 
                   31581: _ACEOF
                   31582: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   31583:   $EGREP "yes" >/dev/null 2>&1; then :
                   31584: 
                   31585:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   31586: $as_echo "yes" >&6; }
                   31587: 
                   31588: else
                   31589: 
                   31590:       as_fn_error $? "At least version 3.3 is required" "$LINENO" 5
                   31591: 
                   31592: fi
                   31593: rm -f conftest*
                   31594: 
                   31595:   fi
                   31596:   if test -n "$THIS_LIBS"; then
                   31597: 
                   31598: $as_echo "#define DBA_DB4 1" >>confdefs.h
                   31599: 
                   31600:     if test -n "$THIS_INCLUDE"; then
                   31601: 
                   31602: cat >>confdefs.h <<_ACEOF
                   31603: #define DB4_INCLUDE_FILE "$THIS_INCLUDE"
                   31604: _ACEOF
                   31605: 
                   31606:     fi
                   31607:   else
                   31608:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
                   31609:   fi
                   31610:   THIS_RESULT=yes
                   31611:   DB4_LIBS=$THIS_LIBS
                   31612:   DB4_PREFIX=$THIS_PREFIX
                   31613:   DB4_INCLUDE=$THIS_INCLUDE
                   31614: 
                   31615:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
                   31616:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
                   31617:   fi
                   31618: 
                   31619: 
                   31620: 
                   31621: 
                   31622:   if test "$ext_shared" = "yes"; then
                   31623:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
                   31624:     if test -n "$THIS_LFLAGS"; then
                   31625: 
                   31626:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   31627: 
                   31628:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   31629:     ai_p=$THIS_LFLAGS
                   31630:   else
                   31631: 
                   31632:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   31633: 
                   31634:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   31635:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   31636:   fi
                   31637: 
                   31638: 
                   31639:       if test "$ext_shared" = "yes"; then
                   31640:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
                   31641:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
                   31642:       else
                   31643: 
                   31644: 
                   31645: 
                   31646:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   31647: 
                   31648:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   31649:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   31650:     eval "LIBPATH$unique=set"
                   31651: 
                   31652:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   31653:     LDFLAGS="$LDFLAGS -L$ai_p"
                   31654:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   31655: 
                   31656:   fi
                   31657: 
                   31658: 
                   31659:       fi
                   31660: 
                   31661:   fi
                   31662: 
                   31663:     fi
                   31664:   else
                   31665: 
                   31666: 
                   31667:   if test -n "$THIS_LFLAGS"; then
                   31668: 
                   31669:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   31670: 
                   31671:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   31672:     ai_p=$THIS_LFLAGS
                   31673:   else
                   31674: 
                   31675:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   31676: 
                   31677:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   31678:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   31679:   fi
                   31680: 
                   31681: 
                   31682: 
                   31683: 
                   31684: 
                   31685:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   31686: 
                   31687:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   31688:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   31689:     eval "LIBPATH$unique=set"
                   31690: 
                   31691:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   31692:     LDFLAGS="$LDFLAGS -L$ai_p"
                   31693:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   31694: 
                   31695:   fi
                   31696: 
                   31697: 
                   31698: 
                   31699:   fi
                   31700: 
                   31701:   fi
                   31702: 
                   31703: 
                   31704:   case $THIS_LIBS in
                   31705:   c|c_r|pthread*) ;;
                   31706:   *)
                   31707:       LIBS="-l$THIS_LIBS $LIBS"
                   31708:    ;;
                   31709:   esac
                   31710: 
                   31711: 
                   31712: 
                   31713: 
                   31714:   fi
                   31715: 
                   31716: 
                   31717:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
                   31718: 
                   31719: 
                   31720: fi
                   31721: 
                   31722:   THIS_NAME=DB4
                   31723:   if test -n "Berkeley DB4"; then
                   31724:     THIS_FULL_NAME="Berkeley DB4"
                   31725:   else
                   31726:     THIS_FULL_NAME="$THIS_NAME"
                   31727:   fi
                   31728:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
                   31729: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
                   31730:   if test -n ""; then
                   31731:     as_fn_error $? "" "$LINENO" 5
                   31732:   fi
                   31733:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
                   31734:     HAVE_DBA=1
                   31735:     eval HAVE_$THIS_NAME=1
                   31736:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
                   31737: $as_echo "$THIS_RESULT" >&6; }
                   31738:   else
                   31739:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   31740: $as_echo "no" >&6; }
                   31741:   fi
                   31742:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
                   31743: 
                   31744: 
                   31745: # DB3
                   31746: if test "$PHP_DB3" != "no"; then
                   31747: 
                   31748:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
                   31749: 
                   31750:   if test "$HAVE_DB4" = "1"; then
                   31751: 
                   31752:   THIS_NAME=DB3
                   31753:   if test -n "Berkeley DB3"; then
                   31754:     THIS_FULL_NAME="Berkeley DB3"
                   31755:   else
                   31756:     THIS_FULL_NAME="$THIS_NAME"
                   31757:   fi
                   31758:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
                   31759: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
                   31760:   if test -n "You cannot combine --with-db3 with --with-db4"; then
                   31761:     as_fn_error $? "You cannot combine --with-db3 with --with-db4" "$LINENO" 5
                   31762:   fi
                   31763:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
                   31764:     HAVE_DBA=1
                   31765:     eval HAVE_$THIS_NAME=1
                   31766:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
                   31767: $as_echo "$THIS_RESULT" >&6; }
                   31768:   else
                   31769:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   31770: $as_echo "no" >&6; }
                   31771:   fi
                   31772:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
                   31773: 
                   31774:   fi
                   31775:   for i in $PHP_DB3 /usr/local/BerkeleyDB.3.3 /usr/local/BerkeleyDB.3.2 /usr/local/BerkeleyDB.3.1 /usr/local/BerkeleyDB.3.0 /usr/local /usr; do
                   31776:     if test -f "$i/db3/db.h"; then
                   31777:       THIS_PREFIX=$i
                   31778:       THIS_INCLUDE=$i/include/db3/db.h
                   31779:       break
                   31780:     elif test -f "$i/include/db3/db.h"; then
                   31781:       THIS_PREFIX=$i
                   31782:       THIS_INCLUDE=$i/include/db3/db.h
                   31783:       break
                   31784:     elif test -f "$i/include/db/db3.h"; then
                   31785:       THIS_PREFIX=$i
                   31786:       THIS_INCLUDE=$i/include/db/db3.h
                   31787:       break
                   31788:     elif test -f "$i/include/db3.h"; then
                   31789:       THIS_PREFIX=$i
                   31790:       THIS_INCLUDE=$i/include/db3.h
                   31791:       break
                   31792:     elif test -f "$i/include/db.h"; then
                   31793:       THIS_PREFIX=$i
                   31794:       THIS_INCLUDE=$i/include/db.h
                   31795:       break
                   31796:     fi
                   31797:   done
                   31798: 
                   31799:   if test -z "$THIS_INCLUDE"; then
                   31800:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
                   31801:   fi
                   31802:   for LIB in db-3.3 db-3.2 db-3.1 db-3.0 db-3 db3 db; do
                   31803:     if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
                   31804:       lib_found="";
                   31805: 
                   31806:   old_LDFLAGS=$LDFLAGS
                   31807:   LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
                   31808:   old_LIBS=$LIBS
                   31809:   LIBS="-l$LIB $LIBS"
                   31810: 
                   31811:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   31812: /* end confdefs.h.  */
                   31813: 
                   31814: #include "$THIS_INCLUDE"
                   31815: 
                   31816: int
                   31817: main ()
                   31818: {
                   31819: 
                   31820:           (void)db_create((DB**)0, (DB_ENV*)0, 0);
                   31821: 
                   31822:   ;
                   31823:   return 0;
                   31824: }
                   31825: _ACEOF
                   31826: if ac_fn_c_try_link "$LINENO"; then :
                   31827: 
                   31828:           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   31829: /* end confdefs.h.  */
                   31830: 
                   31831: #include "$THIS_INCLUDE"
                   31832: #if DB_VERSION_MAJOR == 3 || (3 == 4 && DB_VERSION_MAJOR == 5)
                   31833:             yes
                   31834: #endif
                   31835: 
                   31836: _ACEOF
                   31837: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   31838:   $EGREP "yes" >/dev/null 2>&1; then :
                   31839: 
                   31840:             THIS_LIBS=$LIB
                   31841:             lib_found=1
                   31842: 
                   31843: fi
                   31844: rm -f conftest*
                   31845: 
                   31846: 
                   31847: fi
                   31848: rm -f core conftest.err conftest.$ac_objext \
                   31849:     conftest$ac_exeext conftest.$ac_ext
                   31850: 
                   31851:   LDFLAGS=$old_LDFLAGS
                   31852:   LIBS=$old_LIBS
                   31853: 
                   31854:       if test -n "$lib_found"; then
                   31855:         lib_found="";
                   31856:         break;
                   31857:       fi
                   31858:     fi
                   31859:   done
                   31860:   if test -z "$THIS_LIBS"; then
                   31861:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB3 major version" >&5
                   31862: $as_echo_n "checking for DB3 major version... " >&6; }
                   31863:     as_fn_error $? "Header contains different version" "$LINENO" 5
                   31864:   fi
                   31865:   if test "3" = "4"; then
                   31866:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5
                   31867: $as_echo_n "checking for DB4 minor version and patch level... " >&6; }
                   31868:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   31869: /* end confdefs.h.  */
                   31870: 
                   31871: #include "$THIS_INCLUDE"
                   31872: #if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)
                   31873:       yes
                   31874: #endif
                   31875: 
                   31876: _ACEOF
                   31877: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   31878:   $EGREP "yes" >/dev/null 2>&1; then :
                   31879: 
                   31880:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
                   31881: $as_echo "ok" >&6; }
                   31882: 
                   31883: else
                   31884: 
                   31885:       as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5
                   31886: 
                   31887: fi
                   31888: rm -f conftest*
                   31889: 
                   31890:   fi
                   31891:   if test "$ext_shared" = "yes"; then
                   31892:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5
                   31893: $as_echo_n "checking if dba can be used as shared extension... " >&6; }
                   31894:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   31895: /* end confdefs.h.  */
                   31896: 
                   31897: #include "$THIS_INCLUDE"
                   31898: #if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
                   31899:       yes
                   31900: #endif
                   31901: 
                   31902: _ACEOF
                   31903: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   31904:   $EGREP "yes" >/dev/null 2>&1; then :
                   31905: 
                   31906:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   31907: $as_echo "yes" >&6; }
                   31908: 
                   31909: else
                   31910: 
                   31911:       as_fn_error $? "At least version 3.3 is required" "$LINENO" 5
                   31912: 
                   31913: fi
                   31914: rm -f conftest*
                   31915: 
                   31916:   fi
                   31917:   if test -n "$THIS_LIBS"; then
                   31918: 
                   31919: $as_echo "#define DBA_DB3 1" >>confdefs.h
                   31920: 
                   31921:     if test -n "$THIS_INCLUDE"; then
                   31922: 
                   31923: cat >>confdefs.h <<_ACEOF
                   31924: #define DB3_INCLUDE_FILE "$THIS_INCLUDE"
                   31925: _ACEOF
                   31926: 
                   31927:     fi
                   31928:   else
                   31929:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
                   31930:   fi
                   31931:   THIS_RESULT=yes
                   31932:   DB3_LIBS=$THIS_LIBS
                   31933:   DB3_PREFIX=$THIS_PREFIX
                   31934:   DB3_INCLUDE=$THIS_INCLUDE
                   31935: 
                   31936:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
                   31937:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
                   31938:   fi
                   31939: 
                   31940: 
                   31941: 
                   31942: 
                   31943:   if test "$ext_shared" = "yes"; then
                   31944:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
                   31945:     if test -n "$THIS_LFLAGS"; then
                   31946: 
                   31947:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   31948: 
                   31949:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   31950:     ai_p=$THIS_LFLAGS
                   31951:   else
                   31952: 
                   31953:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   31954: 
                   31955:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   31956:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   31957:   fi
                   31958: 
                   31959: 
                   31960:       if test "$ext_shared" = "yes"; then
                   31961:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
                   31962:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
                   31963:       else
                   31964: 
                   31965: 
                   31966: 
                   31967:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   31968: 
                   31969:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   31970:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   31971:     eval "LIBPATH$unique=set"
                   31972: 
                   31973:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   31974:     LDFLAGS="$LDFLAGS -L$ai_p"
                   31975:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   31976: 
                   31977:   fi
                   31978: 
                   31979: 
                   31980:       fi
                   31981: 
                   31982:   fi
                   31983: 
                   31984:     fi
                   31985:   else
                   31986: 
                   31987: 
                   31988:   if test -n "$THIS_LFLAGS"; then
                   31989: 
                   31990:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   31991: 
                   31992:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   31993:     ai_p=$THIS_LFLAGS
                   31994:   else
                   31995: 
                   31996:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   31997: 
                   31998:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   31999:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   32000:   fi
                   32001: 
                   32002: 
                   32003: 
                   32004: 
                   32005: 
                   32006:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   32007: 
                   32008:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   32009:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   32010:     eval "LIBPATH$unique=set"
                   32011: 
                   32012:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   32013:     LDFLAGS="$LDFLAGS -L$ai_p"
                   32014:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   32015: 
                   32016:   fi
                   32017: 
                   32018: 
                   32019: 
                   32020:   fi
                   32021: 
                   32022:   fi
                   32023: 
                   32024: 
                   32025:   case $THIS_LIBS in
                   32026:   c|c_r|pthread*) ;;
                   32027:   *)
                   32028:       LIBS="-l$THIS_LIBS $LIBS"
                   32029:    ;;
                   32030:   esac
                   32031: 
                   32032: 
                   32033: 
                   32034: 
                   32035:   fi
                   32036: 
                   32037: 
                   32038:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
                   32039: 
                   32040: 
                   32041: fi
                   32042: 
                   32043:   THIS_NAME=DB3
                   32044:   if test -n "Berkeley DB3"; then
                   32045:     THIS_FULL_NAME="Berkeley DB3"
                   32046:   else
                   32047:     THIS_FULL_NAME="$THIS_NAME"
                   32048:   fi
                   32049:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
                   32050: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
                   32051:   if test -n ""; then
                   32052:     as_fn_error $? "" "$LINENO" 5
                   32053:   fi
                   32054:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
                   32055:     HAVE_DBA=1
                   32056:     eval HAVE_$THIS_NAME=1
                   32057:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
                   32058: $as_echo "$THIS_RESULT" >&6; }
                   32059:   else
                   32060:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   32061: $as_echo "no" >&6; }
                   32062:   fi
                   32063:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
                   32064: 
                   32065: 
                   32066: # DB2
                   32067: if test "$PHP_DB2" != "no"; then
                   32068: 
                   32069:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
                   32070: 
                   32071:   if test "$HAVE_DB3" = "1" || test "$HAVE_DB4" = "1"; then
                   32072: 
                   32073:   THIS_NAME=DB2
                   32074:   if test -n "Berkeley DB2"; then
                   32075:     THIS_FULL_NAME="Berkeley DB2"
                   32076:   else
                   32077:     THIS_FULL_NAME="$THIS_NAME"
                   32078:   fi
                   32079:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
                   32080: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
                   32081:   if test -n "You cannot combine --with-db2 with --with-db3 or --with-db4"; then
                   32082:     as_fn_error $? "You cannot combine --with-db2 with --with-db3 or --with-db4" "$LINENO" 5
                   32083:   fi
                   32084:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
                   32085:     HAVE_DBA=1
                   32086:     eval HAVE_$THIS_NAME=1
                   32087:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
                   32088: $as_echo "$THIS_RESULT" >&6; }
                   32089:   else
                   32090:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   32091: $as_echo "no" >&6; }
                   32092:   fi
                   32093:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
                   32094: 
                   32095:   fi
                   32096:   for i in $PHP_DB2 $PHP_DB2/BerkeleyDB /usr/BerkeleyDB /usr/local /usr; do
                   32097:     if test -f "$i/db2/db.h"; then
                   32098:       THIS_PREFIX=$i
                   32099:       THIS_INCLUDE=$i/db2/db.h
                   32100:       break
                   32101:     elif test -f "$i/include/db2/db.h"; then
                   32102:       THIS_PREFIX=$i
                   32103:       THIS_INCLUDE=$i/include/db2/db.h
                   32104:       break
                   32105:     elif test -f "$i/include/db/db2.h"; then
                   32106:       THIS_PREFIX=$i
                   32107:       THIS_INCLUDE=$i/include/db/db2.h
                   32108:       break
                   32109:     elif test -f "$i/include/db2.h"; then
                   32110:       THIS_PREFIX=$i
                   32111:       THIS_INCLUDE=$i/include/db2.h
                   32112:       break
                   32113:     elif test -f "$i/include/db.h"; then
                   32114:       THIS_PREFIX=$i
                   32115:       THIS_INCLUDE=$i/include/db.h
                   32116:       break
                   32117:     fi
                   32118:   done
                   32119: 
                   32120:   if test -z "$THIS_INCLUDE"; then
                   32121:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
                   32122:   fi
                   32123:   for LIB in db-2 db2 db; do
                   32124:     if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
                   32125:       lib_found="";
                   32126: 
                   32127:   old_LDFLAGS=$LDFLAGS
                   32128:   LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
                   32129:   old_LIBS=$LIBS
                   32130:   LIBS="-l$LIB $LIBS"
                   32131: 
                   32132:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   32133: /* end confdefs.h.  */
                   32134: 
                   32135: #include "$THIS_INCLUDE"
                   32136: 
                   32137: int
                   32138: main ()
                   32139: {
                   32140: 
                   32141:           (void)db_appinit("", NULL, (DB_ENV*)0, 0);
                   32142: 
                   32143:   ;
                   32144:   return 0;
                   32145: }
                   32146: _ACEOF
                   32147: if ac_fn_c_try_link "$LINENO"; then :
                   32148: 
                   32149:           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   32150: /* end confdefs.h.  */
                   32151: 
                   32152: #include "$THIS_INCLUDE"
                   32153: #if DB_VERSION_MAJOR == 2 || (2 == 4 && DB_VERSION_MAJOR == 5)
                   32154:             yes
                   32155: #endif
                   32156: 
                   32157: _ACEOF
                   32158: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   32159:   $EGREP "yes" >/dev/null 2>&1; then :
                   32160: 
                   32161:             THIS_LIBS=$LIB
                   32162:             lib_found=1
                   32163: 
                   32164: fi
                   32165: rm -f conftest*
                   32166: 
                   32167: 
                   32168: fi
                   32169: rm -f core conftest.err conftest.$ac_objext \
                   32170:     conftest$ac_exeext conftest.$ac_ext
                   32171: 
                   32172:   LDFLAGS=$old_LDFLAGS
                   32173:   LIBS=$old_LIBS
                   32174: 
                   32175:       if test -n "$lib_found"; then
                   32176:         lib_found="";
                   32177:         break;
                   32178:       fi
                   32179:     fi
                   32180:   done
                   32181:   if test -z "$THIS_LIBS"; then
                   32182:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB2 major version" >&5
                   32183: $as_echo_n "checking for DB2 major version... " >&6; }
                   32184:     as_fn_error $? "Header contains different version" "$LINENO" 5
                   32185:   fi
                   32186:   if test "2" = "4"; then
                   32187:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5
                   32188: $as_echo_n "checking for DB4 minor version and patch level... " >&6; }
                   32189:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   32190: /* end confdefs.h.  */
                   32191: 
                   32192: #include "$THIS_INCLUDE"
                   32193: #if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)
                   32194:       yes
                   32195: #endif
                   32196: 
                   32197: _ACEOF
                   32198: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   32199:   $EGREP "yes" >/dev/null 2>&1; then :
                   32200: 
                   32201:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
                   32202: $as_echo "ok" >&6; }
                   32203: 
                   32204: else
                   32205: 
                   32206:       as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5
                   32207: 
                   32208: fi
                   32209: rm -f conftest*
                   32210: 
                   32211:   fi
                   32212:   if test "$ext_shared" = "yes"; then
                   32213:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5
                   32214: $as_echo_n "checking if dba can be used as shared extension... " >&6; }
                   32215:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   32216: /* end confdefs.h.  */
                   32217: 
                   32218: #include "$THIS_INCLUDE"
                   32219: #if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
                   32220:       yes
                   32221: #endif
                   32222: 
                   32223: _ACEOF
                   32224: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   32225:   $EGREP "yes" >/dev/null 2>&1; then :
                   32226: 
                   32227:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   32228: $as_echo "yes" >&6; }
                   32229: 
                   32230: else
                   32231: 
                   32232:       as_fn_error $? "At least version 3.3 is required" "$LINENO" 5
                   32233: 
                   32234: fi
                   32235: rm -f conftest*
                   32236: 
                   32237:   fi
                   32238:   if test -n "$THIS_LIBS"; then
                   32239: 
                   32240: $as_echo "#define DBA_DB2 1" >>confdefs.h
                   32241: 
                   32242:     if test -n "$THIS_INCLUDE"; then
                   32243: 
                   32244: cat >>confdefs.h <<_ACEOF
                   32245: #define DB2_INCLUDE_FILE "$THIS_INCLUDE"
                   32246: _ACEOF
                   32247: 
                   32248:     fi
                   32249:   else
                   32250:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
                   32251:   fi
                   32252:   THIS_RESULT=yes
                   32253:   DB2_LIBS=$THIS_LIBS
                   32254:   DB2_PREFIX=$THIS_PREFIX
                   32255:   DB2_INCLUDE=$THIS_INCLUDE
                   32256: 
                   32257:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
                   32258:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
                   32259:   fi
                   32260: 
                   32261: 
                   32262: 
                   32263: 
                   32264:   if test "$ext_shared" = "yes"; then
                   32265:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
                   32266:     if test -n "$THIS_LFLAGS"; then
                   32267: 
                   32268:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   32269: 
                   32270:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   32271:     ai_p=$THIS_LFLAGS
                   32272:   else
                   32273: 
                   32274:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   32275: 
                   32276:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   32277:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   32278:   fi
                   32279: 
                   32280: 
                   32281:       if test "$ext_shared" = "yes"; then
                   32282:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
                   32283:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
                   32284:       else
                   32285: 
                   32286: 
                   32287: 
                   32288:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   32289: 
                   32290:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   32291:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   32292:     eval "LIBPATH$unique=set"
                   32293: 
                   32294:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   32295:     LDFLAGS="$LDFLAGS -L$ai_p"
                   32296:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   32297: 
                   32298:   fi
                   32299: 
                   32300: 
                   32301:       fi
                   32302: 
                   32303:   fi
                   32304: 
                   32305:     fi
                   32306:   else
                   32307: 
                   32308: 
                   32309:   if test -n "$THIS_LFLAGS"; then
                   32310: 
                   32311:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   32312: 
                   32313:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   32314:     ai_p=$THIS_LFLAGS
                   32315:   else
                   32316: 
                   32317:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   32318: 
                   32319:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   32320:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   32321:   fi
                   32322: 
                   32323: 
                   32324: 
                   32325: 
                   32326: 
                   32327:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   32328: 
                   32329:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   32330:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   32331:     eval "LIBPATH$unique=set"
                   32332: 
                   32333:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   32334:     LDFLAGS="$LDFLAGS -L$ai_p"
                   32335:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   32336: 
                   32337:   fi
                   32338: 
                   32339: 
                   32340: 
                   32341:   fi
                   32342: 
                   32343:   fi
                   32344: 
                   32345: 
                   32346:   case $THIS_LIBS in
                   32347:   c|c_r|pthread*) ;;
                   32348:   *)
                   32349:       LIBS="-l$THIS_LIBS $LIBS"
                   32350:    ;;
                   32351:   esac
                   32352: 
                   32353: 
                   32354: 
                   32355: 
                   32356:   fi
                   32357: 
                   32358: 
                   32359:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
                   32360: 
                   32361: 
                   32362: fi
                   32363: 
                   32364:   THIS_NAME=DB2
                   32365:   if test -n "Berkeley DB2"; then
                   32366:     THIS_FULL_NAME="Berkeley DB2"
                   32367:   else
                   32368:     THIS_FULL_NAME="$THIS_NAME"
                   32369:   fi
                   32370:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
                   32371: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
                   32372:   if test -n ""; then
                   32373:     as_fn_error $? "" "$LINENO" 5
                   32374:   fi
                   32375:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
                   32376:     HAVE_DBA=1
                   32377:     eval HAVE_$THIS_NAME=1
                   32378:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
                   32379: $as_echo "$THIS_RESULT" >&6; }
                   32380:   else
                   32381:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   32382: $as_echo "no" >&6; }
                   32383:   fi
                   32384:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
                   32385: 
                   32386: 
                   32387: # DB1
                   32388: if test "$PHP_DB1" != "no"; then
                   32389: 
                   32390:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
                   32391: 
                   32392:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in library" >&5
                   32393: $as_echo_n "checking for DB1 in library... " >&6; }
                   32394:   if test "$HAVE_DB4" = "1"; then
                   32395:     THIS_VERSION=4
                   32396:     THIS_LIBS=$DB4_LIBS
                   32397:     THIS_PREFIX=$DB4_PREFIX
                   32398:   elif test "$HAVE_DB3" = "1"; then
                   32399:     THIS_LIBS=$DB3_LIBS
                   32400:     THIS_PREFIX=$DB3_PREFIX
                   32401:   elif test "$HAVE_DB2" = "1"; then
                   32402:     THIS_VERSION=2
                   32403:     THIS_LIBS=$DB2_LIBS
                   32404:     THIS_PREFIX=$DB2_PREFIX
                   32405:   fi
                   32406:   if test "$HAVE_DB4" = "1" || test "$HAVE_DB3" = "1" || test "$HAVE_DB2" = "1"; then
                   32407: 
                   32408: cat >>confdefs.h <<_ACEOF
                   32409: #define DB1_VERSION "Berkeley DB 1.85 emulation in DB$THIS_VERSION"
                   32410: _ACEOF
                   32411: 
                   32412:     for i in db$THIS_VERSION/db_185.h include/db$THIS_VERSION/db_185.h include/db/db_185.h; do
                   32413:       if test -f "$THIS_PREFIX/$i"; then
                   32414:         THIS_INCLUDE=$THIS_PREFIX/$i
                   32415:         break
                   32416:       fi
                   32417:     done
                   32418:   else
                   32419: 
                   32420: cat >>confdefs.h <<_ACEOF
                   32421: #define DB1_VERSION "Unknown DB1"
                   32422: _ACEOF
                   32423: 
                   32424:     for i in $PHP_DB1 /usr/local /usr; do
                   32425:       if test -f "$i/db1/db.h"; then
                   32426:         THIS_PREFIX=$i
                   32427:         THIS_INCLUDE=$i/db1/db.h
                   32428:         break
                   32429:       elif test -f "$i/include/db1/db.h"; then
                   32430:         THIS_PREFIX=$i
                   32431:         THIS_INCLUDE=$i/include/db1/db.h
                   32432:         break
                   32433:       elif test -f "$i/include/db.h"; then
                   32434:         THIS_PREFIX=$i
                   32435:         THIS_INCLUDE=$i/include/db.h
                   32436:         break
                   32437:       fi
                   32438:     done
                   32439:     THIS_LIBS=db
                   32440:   fi
                   32441:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_LIBS" >&5
                   32442: $as_echo "$THIS_LIBS" >&6; }
                   32443:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in header" >&5
                   32444: $as_echo_n "checking for DB1 in header... " >&6; }
                   32445:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_INCLUDE" >&5
                   32446: $as_echo "$THIS_INCLUDE" >&6; }
                   32447:   if test -n "$THIS_INCLUDE"; then
                   32448: 
                   32449:   old_LDFLAGS=$LDFLAGS
                   32450:   LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
                   32451:   old_LIBS=$LIBS
                   32452:   LIBS="-l$THIS_LIBS $LIBS"
                   32453: 
                   32454:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   32455: /* end confdefs.h.  */
                   32456: 
                   32457: #include "$THIS_INCLUDE"
                   32458: 
                   32459: int
                   32460: main ()
                   32461: {
                   32462: 
                   32463:         DB * dbp = dbopen("", 0, 0, DB_HASH, 0);
                   32464: 
                   32465:   ;
                   32466:   return 0;
                   32467: }
                   32468: _ACEOF
                   32469: if ac_fn_c_try_link "$LINENO"; then :
                   32470: 
                   32471: 
                   32472: cat >>confdefs.h <<_ACEOF
                   32473: #define DB1_INCLUDE_FILE "$THIS_INCLUDE"
                   32474: _ACEOF
                   32475: 
                   32476: 
                   32477: $as_echo "#define DBA_DB1 1" >>confdefs.h
                   32478: 
                   32479:         THIS_RESULT=yes
                   32480: 
                   32481: else
                   32482: 
                   32483:         THIS_RESULT=no
                   32484: 
                   32485: fi
                   32486: rm -f core conftest.err conftest.$ac_objext \
                   32487:     conftest$ac_exeext conftest.$ac_ext
                   32488: 
                   32489:   LDFLAGS=$old_LDFLAGS
                   32490:   LIBS=$old_LIBS
                   32491: 
                   32492:   fi
                   32493: 
                   32494:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
                   32495:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
                   32496:   fi
                   32497: 
                   32498: 
                   32499:   THIS_RESULT=yes
                   32500:   if test -z "$THIS_INCLUDE"; then
                   32501:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
                   32502:   fi
                   32503:   if test -z "$THIS_LIBS"; then
                   32504:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
                   32505:   fi
                   32506: 
                   32507: 
                   32508: 
                   32509: 
                   32510:   if test "$ext_shared" = "yes"; then
                   32511:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
                   32512:     if test -n "$THIS_LFLAGS"; then
                   32513: 
                   32514:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   32515: 
                   32516:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   32517:     ai_p=$THIS_LFLAGS
                   32518:   else
                   32519: 
                   32520:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   32521: 
                   32522:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   32523:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   32524:   fi
                   32525: 
                   32526: 
                   32527:       if test "$ext_shared" = "yes"; then
                   32528:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
                   32529:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
                   32530:       else
                   32531: 
                   32532: 
                   32533: 
                   32534:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   32535: 
                   32536:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   32537:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   32538:     eval "LIBPATH$unique=set"
                   32539: 
                   32540:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   32541:     LDFLAGS="$LDFLAGS -L$ai_p"
                   32542:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   32543: 
                   32544:   fi
                   32545: 
                   32546: 
                   32547:       fi
                   32548: 
                   32549:   fi
                   32550: 
                   32551:     fi
                   32552:   else
                   32553: 
                   32554: 
                   32555:   if test -n "$THIS_LFLAGS"; then
                   32556: 
                   32557:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   32558: 
                   32559:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   32560:     ai_p=$THIS_LFLAGS
                   32561:   else
                   32562: 
                   32563:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   32564: 
                   32565:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   32566:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   32567:   fi
                   32568: 
                   32569: 
                   32570: 
                   32571: 
                   32572: 
                   32573:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   32574: 
                   32575:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   32576:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   32577:     eval "LIBPATH$unique=set"
                   32578: 
                   32579:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   32580:     LDFLAGS="$LDFLAGS -L$ai_p"
                   32581:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   32582: 
                   32583:   fi
                   32584: 
                   32585: 
                   32586: 
                   32587:   fi
                   32588: 
                   32589:   fi
                   32590: 
                   32591: 
                   32592:   case $THIS_LIBS in
                   32593:   c|c_r|pthread*) ;;
                   32594:   *)
                   32595:       LIBS="-l$THIS_LIBS $LIBS"
                   32596:    ;;
                   32597:   esac
                   32598: 
                   32599: 
                   32600: 
                   32601: 
                   32602:   fi
                   32603: 
                   32604: 
                   32605:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
                   32606: 
                   32607: fi
                   32608: 
                   32609:   THIS_NAME=DB1
                   32610:   if test -n "DB1"; then
                   32611:     THIS_FULL_NAME="DB1"
                   32612:   else
                   32613:     THIS_FULL_NAME="$THIS_NAME"
                   32614:   fi
                   32615:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
                   32616: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
                   32617:   if test -n ""; then
                   32618:     as_fn_error $? "" "$LINENO" 5
                   32619:   fi
                   32620:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
                   32621:     HAVE_DBA=1
                   32622:     eval HAVE_$THIS_NAME=1
                   32623:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
                   32624: $as_echo "$THIS_RESULT" >&6; }
                   32625:   else
                   32626:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   32627: $as_echo "no" >&6; }
                   32628:   fi
                   32629:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
                   32630: 
                   32631: 
                   32632: # DBM
                   32633: if test "$PHP_DBM" != "no"; then
                   32634: 
                   32635:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
                   32636: 
                   32637:   if test "$HAVE_QDBM" = "1"; then
                   32638: 
                   32639:   THIS_NAME=DBM
                   32640:   if test -n "dbm"; then
                   32641:     THIS_FULL_NAME="dbm"
                   32642:   else
                   32643:     THIS_FULL_NAME="$THIS_NAME"
                   32644:   fi
                   32645:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
                   32646: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
                   32647:   if test -n "You cannot combine --with-dbm with --with-qdbm"; then
                   32648:     as_fn_error $? "You cannot combine --with-dbm with --with-qdbm" "$LINENO" 5
                   32649:   fi
                   32650:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
                   32651:     HAVE_DBA=1
                   32652:     eval HAVE_$THIS_NAME=1
                   32653:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
                   32654: $as_echo "$THIS_RESULT" >&6; }
                   32655:   else
                   32656:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   32657: $as_echo "no" >&6; }
                   32658:   fi
                   32659:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
                   32660: 
                   32661:   fi
                   32662:   for i in $PHP_DBM /usr/local /usr; do
                   32663:     if test -f "$i/include/dbm.h"; then
                   32664:       THIS_PREFIX=$i
                   32665:       THIS_INCLUDE=$i/include/dbm.h
                   32666:       break
                   32667:     elif test -f "$i/include/gdbm/dbm.h"; then
                   32668:       THIS_PREFIX=$i
                   32669:       THIS_INCLUDE=$i/include/gdbm/dbm.h
                   32670:       break
                   32671:     fi
                   32672:   done
                   32673: 
                   32674:   if test -n "$THIS_INCLUDE"; then
                   32675:     for LIB in dbm c gdbm; do
                   32676: 
                   32677:   save_old_LDFLAGS=$LDFLAGS
                   32678:   ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
                   32679: 
                   32680:   save_ext_shared=$ext_shared
                   32681:   ext_shared=yes
                   32682: 
                   32683:   for ac_i in $ac_stuff; do
                   32684:     case $ac_i in
                   32685:     -pthread)
                   32686:       if test "$ext_shared" = "yes"; then
                   32687:         LDFLAGS="$LDFLAGS -pthread"
                   32688:       else
                   32689: 
                   32690: 
                   32691:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   32692: 
                   32693:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   32694:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   32695:     eval "EXTRA_LDFLAGS$unique=set"
                   32696:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   32697:   fi
                   32698: 
                   32699:       fi
                   32700:     ;;
                   32701:     -l*)
                   32702:       ac_ii=`echo $ac_i|cut -c 3-`
                   32703: 
                   32704: 
                   32705:   case $ac_ii in
                   32706:   c|c_r|pthread*) ;;
                   32707:   *)
                   32708:     if test "$ext_shared" = "yes"; then
                   32709:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   32710:     else
                   32711: 
                   32712: 
                   32713:   case $ac_ii in
                   32714:   c|c_r|pthread*) ;;
                   32715:   *)
                   32716:       LIBS="$LIBS -l$ac_ii"
                   32717:    ;;
                   32718:   esac
                   32719: 
                   32720: 
                   32721:     fi
                   32722:    ;;
                   32723:   esac
                   32724: 
                   32725: 
                   32726:     ;;
                   32727:     -L*)
                   32728:       ac_ii=`echo $ac_i|cut -c 3-`
                   32729: 
                   32730:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   32731: 
                   32732:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   32733:     ai_p=$ac_ii
                   32734:   else
                   32735: 
                   32736:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   32737: 
                   32738:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   32739:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   32740:   fi
                   32741: 
                   32742: 
                   32743:       if test "$ext_shared" = "yes"; then
                   32744:         LDFLAGS="-L$ai_p $LDFLAGS"
                   32745:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   32746:       else
                   32747: 
                   32748: 
                   32749: 
                   32750:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   32751: 
                   32752:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   32753:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   32754:     eval "LIBPATH$unique=set"
                   32755: 
                   32756:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   32757:     LDFLAGS="$LDFLAGS -L$ai_p"
                   32758:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   32759: 
                   32760:   fi
                   32761: 
                   32762: 
                   32763:       fi
                   32764: 
                   32765:   fi
                   32766: 
                   32767:     ;;
                   32768:     esac
                   32769:   done
                   32770: 
                   32771:   as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbminit" | $as_tr_sh`
                   32772: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbminit in -l$LIB" >&5
                   32773: $as_echo_n "checking for dbminit in -l$LIB... " >&6; }
                   32774: if eval \${$as_ac_Lib+:} false; then :
                   32775:   $as_echo_n "(cached) " >&6
                   32776: else
                   32777:   ac_check_lib_save_LIBS=$LIBS
                   32778: LIBS="-l$LIB  $LIBS"
                   32779: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   32780: /* end confdefs.h.  */
                   32781: 
                   32782: /* Override any GCC internal prototype to avoid an error.
                   32783:    Use char because int might match the return type of a GCC
                   32784:    builtin and then its argument prototype would still apply.  */
                   32785: #ifdef __cplusplus
                   32786: extern "C"
                   32787: #endif
                   32788: char dbminit ();
                   32789: int
                   32790: main ()
                   32791: {
                   32792: return dbminit ();
                   32793:   ;
                   32794:   return 0;
                   32795: }
                   32796: _ACEOF
                   32797: if ac_fn_c_try_link "$LINENO"; then :
                   32798:   eval "$as_ac_Lib=yes"
                   32799: else
                   32800:   eval "$as_ac_Lib=no"
                   32801: fi
                   32802: rm -f core conftest.err conftest.$ac_objext \
                   32803:     conftest$ac_exeext conftest.$ac_ext
                   32804: LIBS=$ac_check_lib_save_LIBS
                   32805: fi
                   32806: eval ac_res=\$$as_ac_Lib
                   32807:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   32808: $as_echo "$ac_res" >&6; }
                   32809: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   32810: 
                   32811:     LDFLAGS=$save_old_LDFLAGS
                   32812:     ext_shared=$save_ext_shared
                   32813: 
                   32814:         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBM using GDBM" >&5
                   32815: $as_echo_n "checking for DBM using GDBM... " >&6; }
                   32816: 
                   32817: cat >>confdefs.h <<_ACEOF
                   32818: #define DBM_INCLUDE_FILE "$THIS_INCLUDE"
                   32819: _ACEOF
                   32820: 
                   32821:         if test "$LIB" = "gdbm"; then
                   32822: 
                   32823: cat >>confdefs.h <<_ACEOF
                   32824: #define DBM_VERSION "GDBM"
                   32825: _ACEOF
                   32826: 
                   32827:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   32828: $as_echo "yes" >&6; }
                   32829:         else
                   32830: 
                   32831: cat >>confdefs.h <<_ACEOF
                   32832: #define DBM_VERSION "DBM"
                   32833: _ACEOF
                   32834: 
                   32835:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   32836: $as_echo "no" >&6; }
                   32837:         fi
                   32838: 
                   32839: $as_echo "#define DBA_DBM 1" >>confdefs.h
                   32840: 
                   32841:         THIS_LIBS=$LIB
                   32842: 
                   32843: 
                   32844: else
                   32845: 
                   32846:     LDFLAGS=$save_old_LDFLAGS
                   32847:     ext_shared=$save_ext_shared
                   32848:     unset ac_cv_lib_$LIB_dbminit
                   32849: 
                   32850: 
                   32851: fi
                   32852: 
                   32853:       if test -n "$THIS_LIBS"; then
                   32854:         break
                   32855:       fi
                   32856:     done
                   32857:   fi
                   32858: 
                   32859: 
                   32860:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
                   32861:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
                   32862:   fi
                   32863: 
                   32864: 
                   32865:   THIS_RESULT=yes
                   32866:   if test -z "$THIS_INCLUDE"; then
                   32867:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
                   32868:   fi
                   32869:   if test -z "$THIS_LIBS"; then
                   32870:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
                   32871:   fi
                   32872: 
                   32873: 
                   32874: 
                   32875: 
                   32876:   if test "$ext_shared" = "yes"; then
                   32877:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
                   32878:     if test -n "$THIS_LFLAGS"; then
                   32879: 
                   32880:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   32881: 
                   32882:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   32883:     ai_p=$THIS_LFLAGS
                   32884:   else
                   32885: 
                   32886:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   32887: 
                   32888:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   32889:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   32890:   fi
                   32891: 
                   32892: 
                   32893:       if test "$ext_shared" = "yes"; then
                   32894:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
                   32895:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
                   32896:       else
                   32897: 
                   32898: 
                   32899: 
                   32900:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   32901: 
                   32902:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   32903:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   32904:     eval "LIBPATH$unique=set"
                   32905: 
                   32906:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   32907:     LDFLAGS="$LDFLAGS -L$ai_p"
                   32908:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   32909: 
                   32910:   fi
                   32911: 
                   32912: 
                   32913:       fi
                   32914: 
                   32915:   fi
                   32916: 
                   32917:     fi
                   32918:   else
                   32919: 
                   32920: 
                   32921:   if test -n "$THIS_LFLAGS"; then
                   32922: 
                   32923:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   32924: 
                   32925:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   32926:     ai_p=$THIS_LFLAGS
                   32927:   else
                   32928: 
                   32929:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   32930: 
                   32931:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   32932:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   32933:   fi
                   32934: 
                   32935: 
                   32936: 
                   32937: 
                   32938: 
                   32939:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   32940: 
                   32941:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   32942:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   32943:     eval "LIBPATH$unique=set"
                   32944: 
                   32945:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   32946:     LDFLAGS="$LDFLAGS -L$ai_p"
                   32947:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   32948: 
                   32949:   fi
                   32950: 
                   32951: 
                   32952: 
                   32953:   fi
                   32954: 
                   32955:   fi
                   32956: 
                   32957: 
                   32958:   case $THIS_LIBS in
                   32959:   c|c_r|pthread*) ;;
                   32960:   *)
                   32961:       LIBS="-l$THIS_LIBS $LIBS"
                   32962:    ;;
                   32963:   esac
                   32964: 
                   32965: 
                   32966: 
                   32967: 
                   32968:   fi
                   32969: 
                   32970: 
                   32971:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
                   32972: 
                   32973: fi
                   32974: 
                   32975:   THIS_NAME=DBM
                   32976:   if test -n ""; then
                   32977:     THIS_FULL_NAME=""
                   32978:   else
                   32979:     THIS_FULL_NAME="$THIS_NAME"
                   32980:   fi
                   32981:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
                   32982: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
                   32983:   if test -n ""; then
                   32984:     as_fn_error $? "" "$LINENO" 5
                   32985:   fi
                   32986:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
                   32987:     HAVE_DBA=1
                   32988:     eval HAVE_$THIS_NAME=1
                   32989:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
                   32990: $as_echo "$THIS_RESULT" >&6; }
                   32991:   else
                   32992:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   32993: $as_echo "no" >&6; }
                   32994:   fi
                   32995:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
                   32996: 
                   32997: 
                   32998: if test "$PHP_DBA" != "no" || test "$HAVE_DBA" = "1" || test "$with_cdb" = "yes" || test "$enable_inifile" = "yes" || test "$enable_flatfile" = "yes"; then
                   32999:   php_dba_enable=yes
                   33000: else
                   33001:   php_dba_enable=no
                   33002: fi
                   33003: 
                   33004: 
                   33005: php_with_cdb=$php_dba_enable
                   33006: 
                   33007: 
                   33008: 
                   33009: # Check whether --with-cdb was given.
                   33010: if test "${with_cdb+set}" = set; then :
                   33011:   withval=$with_cdb; PHP_CDB=$withval
                   33012: else
                   33013: 
                   33014:   PHP_CDB=$php_dba_enable
                   33015: 
                   33016: 
                   33017: fi
                   33018: 
                   33019: 
                   33020: ext_output=$PHP_CDB
                   33021: 
                   33022: 
                   33023: 
                   33024: 
                   33025: 
                   33026: 
                   33027: php_enable_inifile=$php_dba_enable
                   33028: 
                   33029: 
                   33030: # Check whether --enable-inifile was given.
                   33031: if test "${enable_inifile+set}" = set; then :
                   33032:   enableval=$enable_inifile; PHP_INIFILE=$enableval
                   33033: else
                   33034: 
                   33035:   PHP_INIFILE=$php_dba_enable
                   33036: 
                   33037: 
                   33038: fi
                   33039: 
                   33040: 
                   33041: ext_output=$PHP_INIFILE
                   33042: 
                   33043: 
                   33044: 
                   33045: 
                   33046: 
                   33047: 
                   33048: php_enable_flatfile=$php_dba_enable
                   33049: 
                   33050: 
                   33051: # Check whether --enable-flatfile was given.
                   33052: if test "${enable_flatfile+set}" = set; then :
                   33053:   enableval=$enable_flatfile; PHP_FLATFILE=$enableval
                   33054: else
                   33055: 
                   33056:   PHP_FLATFILE=$php_dba_enable
                   33057: 
                   33058: 
                   33059: fi
                   33060: 
                   33061: 
                   33062: ext_output=$PHP_FLATFILE
                   33063: 
                   33064: 
                   33065: 
                   33066: 
                   33067: 
                   33068: # CDB
                   33069: if test "$PHP_CDB" = "yes"; then
                   33070: 
                   33071: $as_echo "#define DBA_CDB_BUILTIN 1" >>confdefs.h
                   33072: 
                   33073: 
                   33074: $as_echo "#define DBA_CDB_MAKE 1" >>confdefs.h
                   33075: 
                   33076: 
                   33077: $as_echo "#define DBA_CDB 1" >>confdefs.h
                   33078: 
                   33079:   cdb_sources="libcdb/cdb.c libcdb/cdb_make.c libcdb/uint32.c"
                   33080:   THIS_RESULT="builtin"
                   33081: elif test "$PHP_CDB" != "no"; then
                   33082: 
                   33083:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
                   33084: 
                   33085:   for i in $PHP_CDB /usr/local /usr; do
                   33086:     if test -f "$i/include/cdb.h"; then
                   33087:       THIS_PREFIX=$i
                   33088:       THIS_INCLUDE=$i/include/cdb.h
                   33089:       break
                   33090:     fi
                   33091:   done
                   33092: 
                   33093:   if test -n "$THIS_INCLUDE"; then
                   33094:     for LIB in cdb c; do
                   33095: 
                   33096:   save_old_LDFLAGS=$LDFLAGS
                   33097:   ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
                   33098: 
                   33099:   save_ext_shared=$ext_shared
                   33100:   ext_shared=yes
                   33101: 
                   33102:   for ac_i in $ac_stuff; do
                   33103:     case $ac_i in
                   33104:     -pthread)
                   33105:       if test "$ext_shared" = "yes"; then
                   33106:         LDFLAGS="$LDFLAGS -pthread"
                   33107:       else
                   33108: 
                   33109: 
                   33110:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   33111: 
                   33112:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   33113:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   33114:     eval "EXTRA_LDFLAGS$unique=set"
                   33115:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   33116:   fi
                   33117: 
                   33118:       fi
                   33119:     ;;
                   33120:     -l*)
                   33121:       ac_ii=`echo $ac_i|cut -c 3-`
                   33122: 
                   33123: 
                   33124:   case $ac_ii in
                   33125:   c|c_r|pthread*) ;;
                   33126:   *)
                   33127:     if test "$ext_shared" = "yes"; then
                   33128:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   33129:     else
                   33130: 
                   33131: 
                   33132:   case $ac_ii in
                   33133:   c|c_r|pthread*) ;;
                   33134:   *)
                   33135:       LIBS="$LIBS -l$ac_ii"
                   33136:    ;;
                   33137:   esac
                   33138: 
                   33139: 
                   33140:     fi
                   33141:    ;;
                   33142:   esac
                   33143: 
                   33144: 
                   33145:     ;;
                   33146:     -L*)
                   33147:       ac_ii=`echo $ac_i|cut -c 3-`
                   33148: 
                   33149:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   33150: 
                   33151:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   33152:     ai_p=$ac_ii
                   33153:   else
                   33154: 
                   33155:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   33156: 
                   33157:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   33158:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   33159:   fi
                   33160: 
                   33161: 
                   33162:       if test "$ext_shared" = "yes"; then
                   33163:         LDFLAGS="-L$ai_p $LDFLAGS"
                   33164:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   33165:       else
                   33166: 
                   33167: 
                   33168: 
                   33169:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   33170: 
                   33171:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   33172:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   33173:     eval "LIBPATH$unique=set"
                   33174: 
                   33175:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   33176:     LDFLAGS="$LDFLAGS -L$ai_p"
                   33177:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   33178: 
                   33179:   fi
                   33180: 
                   33181: 
                   33182:       fi
                   33183: 
                   33184:   fi
                   33185: 
                   33186:     ;;
                   33187:     esac
                   33188:   done
                   33189: 
                   33190:   as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_cdb_read" | $as_tr_sh`
                   33191: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_read in -l$LIB" >&5
                   33192: $as_echo_n "checking for cdb_read in -l$LIB... " >&6; }
                   33193: if eval \${$as_ac_Lib+:} false; then :
                   33194:   $as_echo_n "(cached) " >&6
                   33195: else
                   33196:   ac_check_lib_save_LIBS=$LIBS
                   33197: LIBS="-l$LIB  $LIBS"
                   33198: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   33199: /* end confdefs.h.  */
                   33200: 
                   33201: /* Override any GCC internal prototype to avoid an error.
                   33202:    Use char because int might match the return type of a GCC
                   33203:    builtin and then its argument prototype would still apply.  */
                   33204: #ifdef __cplusplus
                   33205: extern "C"
                   33206: #endif
                   33207: char cdb_read ();
                   33208: int
                   33209: main ()
                   33210: {
                   33211: return cdb_read ();
                   33212:   ;
                   33213:   return 0;
                   33214: }
                   33215: _ACEOF
                   33216: if ac_fn_c_try_link "$LINENO"; then :
                   33217:   eval "$as_ac_Lib=yes"
                   33218: else
                   33219:   eval "$as_ac_Lib=no"
                   33220: fi
                   33221: rm -f core conftest.err conftest.$ac_objext \
                   33222:     conftest$ac_exeext conftest.$ac_ext
                   33223: LIBS=$ac_check_lib_save_LIBS
                   33224: fi
                   33225: eval ac_res=\$$as_ac_Lib
                   33226:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   33227: $as_echo "$ac_res" >&6; }
                   33228: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   33229: 
                   33230:     LDFLAGS=$save_old_LDFLAGS
                   33231:     ext_shared=$save_ext_shared
                   33232: 
                   33233: 
                   33234: cat >>confdefs.h <<_ACEOF
                   33235: #define CDB_INCLUDE_FILE "$THIS_INCLUDE"
                   33236: _ACEOF
                   33237: 
                   33238: 
                   33239: $as_echo "#define DBA_CDB 1" >>confdefs.h
                   33240: 
                   33241:         THIS_LIBS=$LIB
                   33242: 
                   33243: 
                   33244: else
                   33245: 
                   33246:     LDFLAGS=$save_old_LDFLAGS
                   33247:     ext_shared=$save_ext_shared
                   33248:     unset ac_cv_lib_$LIB_cdb_read
                   33249: 
                   33250: 
                   33251: fi
                   33252: 
                   33253:       if test -n "$THIS_LIBS"; then
                   33254:         break
                   33255:       fi
                   33256:     done
                   33257:   fi
                   33258: 
                   33259: 
                   33260:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
                   33261:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
                   33262:   fi
                   33263: 
                   33264: 
                   33265:   THIS_RESULT=yes
                   33266:   if test -z "$THIS_INCLUDE"; then
                   33267:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
                   33268:   fi
                   33269:   if test -z "$THIS_LIBS"; then
                   33270:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
                   33271:   fi
                   33272: 
                   33273: 
                   33274: 
                   33275: 
                   33276:   if test "$ext_shared" = "yes"; then
                   33277:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
                   33278:     if test -n "$THIS_LFLAGS"; then
                   33279: 
                   33280:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   33281: 
                   33282:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   33283:     ai_p=$THIS_LFLAGS
                   33284:   else
                   33285: 
                   33286:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   33287: 
                   33288:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   33289:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   33290:   fi
                   33291: 
                   33292: 
                   33293:       if test "$ext_shared" = "yes"; then
                   33294:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
                   33295:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
                   33296:       else
                   33297: 
                   33298: 
                   33299: 
                   33300:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   33301: 
                   33302:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   33303:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   33304:     eval "LIBPATH$unique=set"
                   33305: 
                   33306:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   33307:     LDFLAGS="$LDFLAGS -L$ai_p"
                   33308:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   33309: 
                   33310:   fi
                   33311: 
                   33312: 
                   33313:       fi
                   33314: 
                   33315:   fi
                   33316: 
                   33317:     fi
                   33318:   else
                   33319: 
                   33320: 
                   33321:   if test -n "$THIS_LFLAGS"; then
                   33322: 
                   33323:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
                   33324: 
                   33325:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
                   33326:     ai_p=$THIS_LFLAGS
                   33327:   else
                   33328: 
                   33329:     ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
                   33330: 
                   33331:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   33332:     ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
                   33333:   fi
                   33334: 
                   33335: 
                   33336: 
                   33337: 
                   33338: 
                   33339:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   33340: 
                   33341:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   33342:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   33343:     eval "LIBPATH$unique=set"
                   33344: 
                   33345:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   33346:     LDFLAGS="$LDFLAGS -L$ai_p"
                   33347:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   33348: 
                   33349:   fi
                   33350: 
                   33351: 
                   33352: 
                   33353:   fi
                   33354: 
                   33355:   fi
                   33356: 
                   33357: 
                   33358:   case $THIS_LIBS in
                   33359:   c|c_r|pthread*) ;;
                   33360:   *)
                   33361:       LIBS="-l$THIS_LIBS $LIBS"
                   33362:    ;;
                   33363:   esac
                   33364: 
                   33365: 
                   33366: 
                   33367: 
                   33368:   fi
                   33369: 
                   33370: 
                   33371:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
                   33372: 
                   33373: fi
                   33374: 
                   33375:   THIS_NAME=CDB
                   33376:   if test -n ""; then
                   33377:     THIS_FULL_NAME=""
                   33378:   else
                   33379:     THIS_FULL_NAME="$THIS_NAME"
                   33380:   fi
                   33381:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
                   33382: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
                   33383:   if test -n ""; then
                   33384:     as_fn_error $? "" "$LINENO" 5
                   33385:   fi
                   33386:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
                   33387:     HAVE_DBA=1
                   33388:     eval HAVE_$THIS_NAME=1
                   33389:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
                   33390: $as_echo "$THIS_RESULT" >&6; }
                   33391:   else
                   33392:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   33393: $as_echo "no" >&6; }
                   33394:   fi
                   33395:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
                   33396: 
                   33397: 
                   33398: # INIFILE
                   33399: if test "$PHP_INIFILE" != "no"; then
                   33400: 
                   33401: $as_echo "#define DBA_INIFILE 1" >>confdefs.h
                   33402: 
                   33403:   ini_sources="libinifile/inifile.c"
                   33404:   THIS_RESULT="builtin"
                   33405: fi
                   33406: 
                   33407:   THIS_NAME=INIFILE
                   33408:   if test -n "INI File"; then
                   33409:     THIS_FULL_NAME="INI File"
                   33410:   else
                   33411:     THIS_FULL_NAME="$THIS_NAME"
                   33412:   fi
                   33413:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
                   33414: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
                   33415:   if test -n ""; then
                   33416:     as_fn_error $? "" "$LINENO" 5
                   33417:   fi
                   33418:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
                   33419:     HAVE_DBA=1
                   33420:     eval HAVE_$THIS_NAME=1
                   33421:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
                   33422: $as_echo "$THIS_RESULT" >&6; }
                   33423:   else
                   33424:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   33425: $as_echo "no" >&6; }
                   33426:   fi
                   33427:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
                   33428: 
                   33429: 
                   33430: # FLATFILE
                   33431: if test "$PHP_FLATFILE" != "no"; then
                   33432: 
                   33433: $as_echo "#define DBA_FLATFILE 1" >>confdefs.h
                   33434: 
                   33435:   flat_sources="libflatfile/flatfile.c"
                   33436:   THIS_RESULT="builtin"
                   33437: fi
                   33438: 
                   33439:   THIS_NAME=FLATFILE
                   33440:   if test -n "FlatFile"; then
                   33441:     THIS_FULL_NAME="FlatFile"
                   33442:   else
                   33443:     THIS_FULL_NAME="$THIS_NAME"
                   33444:   fi
                   33445:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
                   33446: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
                   33447:   if test -n ""; then
                   33448:     as_fn_error $? "" "$LINENO" 5
                   33449:   fi
                   33450:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
                   33451:     HAVE_DBA=1
                   33452:     eval HAVE_$THIS_NAME=1
                   33453:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
                   33454: $as_echo "$THIS_RESULT" >&6; }
                   33455:   else
                   33456:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   33457: $as_echo "no" >&6; }
                   33458:   fi
                   33459:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
                   33460: 
                   33461: 
                   33462: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DBA interface" >&5
                   33463: $as_echo_n "checking whether to enable DBA interface... " >&6; }
                   33464: if test "$HAVE_DBA" = "1"; then
                   33465:   if test "$ext_shared" = "yes"; then
                   33466:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, shared" >&5
                   33467: $as_echo "yes, shared" >&6; }
                   33468:   else
                   33469:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   33470: $as_echo "yes" >&6; }
                   33471:   fi
                   33472: 
                   33473: $as_echo "#define HAVE_DBA 1" >>confdefs.h
                   33474: 
                   33475: 
                   33476:   ext_builddir=ext/dba
                   33477:   ext_srcdir=$abs_srcdir/ext/dba
                   33478: 
                   33479:   ac_extra=
                   33480: 
                   33481:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   33482:     PHP_DBA_SHARED=no
                   33483: 
                   33484: 
                   33485:   case ext/dba in
                   33486:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   33487:   /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   33488:   *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   33489:   esac
                   33490: 
                   33491: 
                   33492: 
                   33493:   b_c_pre=$php_c_pre
                   33494:   b_cxx_pre=$php_cxx_pre
                   33495:   b_c_meta=$php_c_meta
                   33496:   b_cxx_meta=$php_cxx_meta
                   33497:   b_c_post=$php_c_post
                   33498:   b_cxx_post=$php_cxx_post
                   33499:   b_lo=$php_lo
                   33500: 
                   33501: 
                   33502:   old_IFS=$IFS
1.1.1.2 ! misho    33503:   for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c $cdb_sources $flat_sources $ini_sources; do
1.1       misho    33504: 
                   33505:       IFS=.
                   33506:       set $ac_src
                   33507:       ac_obj=$1
                   33508:       IFS=$old_IFS
                   33509: 
                   33510:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   33511: 
                   33512:       case $ac_src in
                   33513:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   33514:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   33515:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   33516:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   33517:       esac
                   33518: 
                   33519:     cat >>Makefile.objects<<EOF
                   33520: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   33521:        $ac_comp
                   33522: EOF
                   33523:   done
                   33524: 
                   33525: 
                   33526:     EXT_STATIC="$EXT_STATIC dba"
                   33527:     if test "$ext_shared" != "nocli"; then
                   33528:       EXT_CLI_STATIC="$EXT_CLI_STATIC dba"
                   33529:     fi
                   33530:   else
                   33531:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   33532:       PHP_DBA_SHARED=yes
                   33533: 
                   33534:   case ext/dba in
                   33535:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   33536:   /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   33537:   *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   33538:   esac
                   33539: 
                   33540: 
                   33541: 
                   33542:   b_c_pre=$shared_c_pre
                   33543:   b_cxx_pre=$shared_cxx_pre
                   33544:   b_c_meta=$shared_c_meta
                   33545:   b_cxx_meta=$shared_cxx_meta
                   33546:   b_c_post=$shared_c_post
                   33547:   b_cxx_post=$shared_cxx_post
                   33548:   b_lo=$shared_lo
                   33549: 
                   33550: 
                   33551:   old_IFS=$IFS
1.1.1.2 ! misho    33552:   for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c $cdb_sources $flat_sources $ini_sources; do
1.1       misho    33553: 
                   33554:       IFS=.
                   33555:       set $ac_src
                   33556:       ac_obj=$1
                   33557:       IFS=$old_IFS
                   33558: 
                   33559:       shared_objects_dba="$shared_objects_dba $ac_bdir$ac_obj.lo"
                   33560: 
                   33561:       case $ac_src in
                   33562:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   33563:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   33564:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   33565:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   33566:       esac
                   33567: 
                   33568:     cat >>Makefile.objects<<EOF
                   33569: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   33570:        $ac_comp
                   33571: EOF
                   33572:   done
                   33573: 
                   33574:       case $host_alias in
                   33575:         *netware*)
                   33576: 
                   33577:   install_modules="install-modules"
                   33578: 
                   33579:   case $host_alias in
                   33580:     *aix*)
                   33581:       suffix=so
                   33582:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpdba.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) $(PHPDBA_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpdba.so '$ext_builddir'/phpdba.so'
                   33583:       ;;
                   33584:     *netware*)
                   33585:       suffix=nlm
                   33586:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) -L$(top_builddir)/netware -lphp5lib $(DBA_SHARED_LIBADD)'
                   33587:       ;;
                   33588:     *)
                   33589:       suffix=la
                   33590:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) $(PHPDBA_SHARED_LIBADD)'
                   33591:       ;;
                   33592:   esac
                   33593: 
                   33594:   if test "x" = "xyes"; then
                   33595:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdba.$suffix"
                   33596:   else
                   33597:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdba.$suffix"
                   33598:   fi
                   33599: 
                   33600:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dba"
                   33601: 
                   33602:   cat >>Makefile.objects<<EOF
                   33603: \$(phplibdir)/phpdba.$suffix: $ext_builddir/phpdba.$suffix
                   33604:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpdba.$suffix \$(phplibdir)
                   33605: 
                   33606: $ext_builddir/phpdba.$suffix: \$(shared_objects_dba) \$(PHPDBA_SHARED_DEPENDENCIES)
                   33607:        $link_cmd
                   33608: 
                   33609: EOF
                   33610: 
                   33611:           ;;
                   33612:         *)
                   33613: 
                   33614:   install_modules="install-modules"
                   33615: 
                   33616:   case $host_alias in
                   33617:     *aix*)
                   33618:       suffix=so
                   33619:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/dba.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) $(DBA_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/dba.so '$ext_builddir'/dba.so'
                   33620:       ;;
                   33621:     *netware*)
                   33622:       suffix=nlm
                   33623:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
                   33624:       ;;
                   33625:     *)
                   33626:       suffix=la
                   33627:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) $(DBA_SHARED_LIBADD)'
                   33628:       ;;
                   33629:   esac
                   33630: 
                   33631:   if test "x" = "xyes"; then
                   33632:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/dba.$suffix"
                   33633:   else
                   33634:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/dba.$suffix"
                   33635:   fi
                   33636: 
                   33637:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dba"
                   33638: 
                   33639:   cat >>Makefile.objects<<EOF
                   33640: \$(phplibdir)/dba.$suffix: $ext_builddir/dba.$suffix
                   33641:        \$(LIBTOOL) --mode=install cp $ext_builddir/dba.$suffix \$(phplibdir)
                   33642: 
                   33643: $ext_builddir/dba.$suffix: \$(shared_objects_dba) \$(DBA_SHARED_DEPENDENCIES)
                   33644:        $link_cmd
                   33645: 
                   33646: EOF
                   33647: 
                   33648:           ;;
                   33649:       esac
                   33650: 
                   33651: cat >>confdefs.h <<_ACEOF
                   33652: #define COMPILE_DL_DBA 1
                   33653: _ACEOF
                   33654: 
                   33655:     fi
                   33656:   fi
                   33657: 
                   33658:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   33659:     PHP_DBA_SHARED=no
                   33660: 
                   33661: 
                   33662:   case ext/dba in
                   33663:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   33664:   /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   33665:   *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   33666:   esac
                   33667: 
                   33668: 
                   33669: 
                   33670:   b_c_pre=$php_c_pre
                   33671:   b_cxx_pre=$php_cxx_pre
                   33672:   b_c_meta=$php_c_meta
                   33673:   b_cxx_meta=$php_cxx_meta
                   33674:   b_c_post=$php_c_post
                   33675:   b_cxx_post=$php_cxx_post
                   33676:   b_lo=$php_lo
                   33677: 
                   33678: 
                   33679:   old_IFS=$IFS
1.1.1.2 ! misho    33680:   for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c $cdb_sources $flat_sources $ini_sources; do
1.1       misho    33681: 
                   33682:       IFS=.
                   33683:       set $ac_src
                   33684:       ac_obj=$1
                   33685:       IFS=$old_IFS
                   33686: 
1.1.1.2 ! misho    33687:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    33688: 
                   33689:       case $ac_src in
                   33690:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   33691:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   33692:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   33693:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   33694:       esac
                   33695: 
                   33696:     cat >>Makefile.objects<<EOF
                   33697: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   33698:        $ac_comp
                   33699: EOF
                   33700:   done
                   33701: 
                   33702: 
                   33703: 
                   33704: 
                   33705:   case ext/dba in
                   33706:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   33707:   /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   33708:   *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   33709:   esac
                   33710: 
                   33711: 
                   33712: 
                   33713:   b_c_pre=$php_c_pre
                   33714:   b_cxx_pre=$php_cxx_pre
                   33715:   b_c_meta=$php_c_meta
                   33716:   b_cxx_meta=$php_cxx_meta
                   33717:   b_c_post=$php_c_post
                   33718:   b_cxx_post=$php_cxx_post
                   33719:   b_lo=$php_lo
                   33720: 
                   33721: 
                   33722:   old_IFS=$IFS
1.1.1.2 ! misho    33723:   for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c $cdb_sources $flat_sources $ini_sources; do
1.1       misho    33724: 
                   33725:       IFS=.
                   33726:       set $ac_src
                   33727:       ac_obj=$1
                   33728:       IFS=$old_IFS
                   33729: 
1.1.1.2 ! misho    33730:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    33731: 
                   33732:       case $ac_src in
                   33733:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   33734:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   33735:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   33736:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   33737:       esac
                   33738: 
                   33739:     cat >>Makefile.objects<<EOF
                   33740: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   33741:        $ac_comp
                   33742: EOF
                   33743:   done
                   33744: 
                   33745: 
                   33746: 
                   33747: 
                   33748:   case ext/dba in
                   33749:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   33750:   /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   33751:   *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   33752:   esac
                   33753: 
                   33754: 
                   33755: 
                   33756:   b_c_pre=$php_c_pre
                   33757:   b_cxx_pre=$php_cxx_pre
                   33758:   b_c_meta=$php_c_meta
                   33759:   b_cxx_meta=$php_cxx_meta
                   33760:   b_c_post=$php_c_post
                   33761:   b_cxx_post=$php_cxx_post
                   33762:   b_lo=$php_lo
                   33763: 
                   33764: 
                   33765:   old_IFS=$IFS
1.1.1.2 ! misho    33766:   for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c $cdb_sources $flat_sources $ini_sources; do
1.1       misho    33767: 
                   33768:       IFS=.
                   33769:       set $ac_src
                   33770:       ac_obj=$1
                   33771:       IFS=$old_IFS
                   33772: 
1.1.1.2 ! misho    33773:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    33774: 
                   33775:       case $ac_src in
                   33776:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   33777:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   33778:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   33779:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   33780:       esac
                   33781: 
                   33782:     cat >>Makefile.objects<<EOF
                   33783: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   33784:        $ac_comp
                   33785: EOF
                   33786:   done
                   33787: 
                   33788: 
                   33789:     EXT_CLI_STATIC="$EXT_CLI_STATIC dba"
                   33790:   fi
                   33791: 
                   33792: 
                   33793:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   33794: 
                   33795: 
                   33796: 
                   33797:   if test "$ext_builddir" = "."; then
                   33798:     PHP_PECL_EXTENSION=dba
                   33799: 
                   33800:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   33801: 
                   33802:   fi
                   33803: 
                   33804: 
                   33805: 
                   33806:     BUILD_DIR="$BUILD_DIR $ext_builddir/libinifile"
                   33807: 
                   33808: 
                   33809: 
                   33810: 
                   33811:     BUILD_DIR="$BUILD_DIR $ext_builddir/libcdb"
                   33812: 
                   33813: 
                   33814: 
                   33815: 
                   33816:     BUILD_DIR="$BUILD_DIR $ext_builddir/libflatfile"
                   33817: 
                   33818: 
                   33819: 
                   33820:   PHP_VAR_SUBST="$PHP_VAR_SUBST DBA_SHARED_LIBADD"
                   33821: 
                   33822: else
                   33823:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   33824: $as_echo "no" >&6; }
                   33825: fi
                   33826: 
                   33827: 
                   33828: 
                   33829: php_enable_dom=yes
                   33830: 
                   33831: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DOM support" >&5
                   33832: $as_echo_n "checking whether to enable DOM support... " >&6; }
                   33833: # Check whether --enable-dom was given.
                   33834: if test "${enable_dom+set}" = set; then :
                   33835:   enableval=$enable_dom; PHP_DOM=$enableval
                   33836: else
                   33837: 
                   33838:   PHP_DOM=yes
                   33839:   test "$PHP_ENABLE_ALL" && PHP_DOM=$PHP_ENABLE_ALL
                   33840: 
                   33841: fi
                   33842: 
                   33843: 
                   33844: 
                   33845: ext_output="yes, shared"
                   33846: ext_shared=yes
                   33847: case $PHP_DOM in
                   33848: shared,*)
                   33849:   PHP_DOM=`echo "$PHP_DOM"|$SED 's/^shared,//'`
                   33850:   ;;
                   33851: shared)
                   33852:   PHP_DOM=yes
                   33853:   ;;
                   33854: no)
                   33855:   ext_output=no
                   33856:   ext_shared=no
                   33857:   ;;
                   33858: *)
                   33859:   ext_output=yes
                   33860:   ext_shared=no
                   33861:   ;;
                   33862: esac
                   33863: 
                   33864: 
                   33865: 
                   33866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   33867: $as_echo "$ext_output" >&6; }
                   33868: 
                   33869: 
                   33870: 
                   33871: 
                   33872: if test -z "$PHP_LIBXML_DIR"; then
                   33873: 
                   33874: php_with_libxml_dir=no
                   33875: 
                   33876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
                   33877: $as_echo_n "checking libxml2 install dir... " >&6; }
                   33878: 
                   33879: # Check whether --with-libxml-dir was given.
                   33880: if test "${with_libxml_dir+set}" = set; then :
                   33881:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
                   33882: else
                   33883: 
                   33884:   PHP_LIBXML_DIR=no
                   33885: 
                   33886: 
                   33887: fi
                   33888: 
                   33889: 
                   33890: ext_output=$PHP_LIBXML_DIR
                   33891: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   33892: $as_echo "$ext_output" >&6; }
                   33893: 
                   33894: 
                   33895: 
                   33896: fi
                   33897: 
                   33898: if test "$PHP_DOM" != "no"; then
                   33899: 
                   33900:   if test "$PHP_LIBXML" = "no"; then
                   33901:     as_fn_error $? "DOM extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
                   33902:   fi
                   33903: 
                   33904: 
                   33905: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
                   33906: $as_echo_n "checking for xml2-config path... " >&6; }
                   33907: if ${ac_cv_php_xml2_config_path+:} false; then :
                   33908:   $as_echo_n "(cached) " >&6
                   33909: else
                   33910: 
                   33911:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
                   33912:     if test -x "$i/bin/xml2-config"; then
                   33913:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
                   33914:       break
                   33915:     fi
                   33916:   done
                   33917: 
                   33918: fi
                   33919: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
                   33920: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
                   33921: 
                   33922:   if test -x "$ac_cv_php_xml2_config_path"; then
                   33923:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
                   33924:     libxml_full_version=`$XML2_CONFIG --version`
                   33925:     ac_IFS=$IFS
                   33926:     IFS="."
                   33927:     set $libxml_full_version
                   33928:     IFS=$ac_IFS
                   33929:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
                   33930:     if test "$LIBXML_VERSION" -ge "2006011"; then
                   33931:       LIBXML_LIBS=`$XML2_CONFIG --libs`
                   33932:       LIBXML_INCS=`$XML2_CONFIG --cflags`
                   33933: 
                   33934:   for ac_i in $LIBXML_LIBS; do
                   33935:     case $ac_i in
                   33936:     -pthread)
                   33937:       if test "$ext_shared" = "yes"; then
                   33938:         DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -pthread"
                   33939:       else
                   33940: 
                   33941: 
                   33942:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   33943: 
                   33944:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   33945:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   33946:     eval "EXTRA_LDFLAGS$unique=set"
                   33947:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   33948:   fi
                   33949: 
                   33950:       fi
                   33951:     ;;
                   33952:     -l*)
                   33953:       ac_ii=`echo $ac_i|cut -c 3-`
                   33954: 
                   33955: 
                   33956:   case $ac_ii in
                   33957:   c|c_r|pthread*) ;;
                   33958:   *)
                   33959:     if test "$ext_shared" = "yes"; then
                   33960:         DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -l$ac_ii"
                   33961:     else
                   33962: 
                   33963: 
                   33964:   case $ac_ii in
                   33965:   c|c_r|pthread*) ;;
                   33966:   *)
                   33967:       LIBS="$LIBS -l$ac_ii"
                   33968:    ;;
                   33969:   esac
                   33970: 
                   33971: 
                   33972:     fi
                   33973:    ;;
                   33974:   esac
                   33975: 
                   33976: 
                   33977:     ;;
                   33978:     -L*)
                   33979:       ac_ii=`echo $ac_i|cut -c 3-`
                   33980: 
                   33981:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   33982: 
                   33983:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   33984:     ai_p=$ac_ii
                   33985:   else
                   33986: 
                   33987:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   33988: 
                   33989:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   33990:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   33991:   fi
                   33992: 
                   33993: 
                   33994:       if test "$ext_shared" = "yes"; then
                   33995:         DOM_SHARED_LIBADD="-L$ai_p $DOM_SHARED_LIBADD"
                   33996:         test -n "$ld_runpath_switch" && DOM_SHARED_LIBADD="$ld_runpath_switch$ai_p $DOM_SHARED_LIBADD"
                   33997:       else
                   33998: 
                   33999: 
                   34000: 
                   34001:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   34002: 
                   34003:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   34004:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   34005:     eval "LIBPATH$unique=set"
                   34006: 
                   34007:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   34008:     LDFLAGS="$LDFLAGS -L$ai_p"
                   34009:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   34010: 
                   34011:   fi
                   34012: 
                   34013: 
                   34014:       fi
                   34015: 
                   34016:   fi
                   34017: 
                   34018:     ;;
                   34019:     esac
                   34020:   done
                   34021: 
                   34022: 
                   34023:   for ac_i in $LIBXML_INCS; do
                   34024:     case $ac_i in
                   34025:     -I*)
                   34026:       ac_ii=`echo $ac_i|cut -c 3-`
                   34027: 
                   34028:   if test "$ac_ii" != "/usr/include"; then
                   34029: 
                   34030:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   34031:     ai_p=$ac_ii
                   34032:   else
                   34033: 
                   34034:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   34035: 
                   34036:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   34037:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   34038:   fi
                   34039: 
                   34040: 
                   34041: 
                   34042:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   34043: 
                   34044:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   34045:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   34046:     eval "INCLUDEPATH$unique=set"
                   34047: 
                   34048:       if test ""; then
                   34049:         INCLUDES="-I$ai_p $INCLUDES"
                   34050:       else
                   34051:         INCLUDES="$INCLUDES -I$ai_p"
                   34052:       fi
                   34053: 
                   34054:   fi
                   34055: 
                   34056:   fi
                   34057: 
                   34058:     ;;
                   34059:     esac
                   34060:   done
                   34061: 
                   34062: 
                   34063:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
                   34064: $as_echo_n "checking whether libxml build works... " >&6; }
                   34065: if ${php_cv_libxml_build_works+:} false; then :
                   34066:   $as_echo_n "(cached) " >&6
                   34067: else
                   34068: 
                   34069: 
                   34070:   old_LIBS=$LIBS
                   34071:   LIBS="
                   34072:           $DOM_SHARED_LIBADD
                   34073:          $LIBS"
                   34074:   if test "$cross_compiling" = yes; then :
                   34075: 
                   34076:     LIBS=$old_LIBS
                   34077: 
                   34078: else
                   34079:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   34080: /* end confdefs.h.  */
                   34081: 
                   34082: 
                   34083:     char xmlInitParser();
                   34084:     int main() {
                   34085:       xmlInitParser();
                   34086:       return 0;
                   34087:     }
                   34088: 
                   34089: _ACEOF
                   34090: if ac_fn_c_try_run "$LINENO"; then :
                   34091: 
                   34092:     LIBS=$old_LIBS
                   34093: 
                   34094:           php_cv_libxml_build_works=yes
                   34095: 
                   34096: 
                   34097: else
                   34098: 
                   34099:     LIBS=$old_LIBS
                   34100: 
                   34101:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   34102: $as_echo "no" >&6; }
                   34103:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
                   34104: 
                   34105: 
                   34106: fi
                   34107: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   34108:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   34109: fi
                   34110: 
                   34111: 
                   34112: 
                   34113: fi
                   34114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
                   34115: $as_echo "$php_cv_libxml_build_works" >&6; }
                   34116:       if test "$php_cv_libxml_build_works" = "yes"; then
                   34117: 
                   34118: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
                   34119: 
                   34120:       fi
                   34121: 
                   34122: 
                   34123: $as_echo "#define HAVE_DOM 1" >>confdefs.h
                   34124: 
                   34125: 
                   34126:   ext_builddir=ext/dom
                   34127:   ext_srcdir=$abs_srcdir/ext/dom
                   34128: 
                   34129:   ac_extra=
                   34130: 
                   34131:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   34132:     PHP_DOM_SHARED=no
                   34133: 
                   34134: 
                   34135:   case ext/dom in
                   34136:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   34137:   /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   34138:   *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   34139:   esac
                   34140: 
                   34141: 
                   34142: 
                   34143:   b_c_pre=$php_c_pre
                   34144:   b_cxx_pre=$php_cxx_pre
                   34145:   b_c_meta=$php_c_meta
                   34146:   b_cxx_meta=$php_cxx_meta
                   34147:   b_c_post=$php_c_post
                   34148:   b_cxx_post=$php_cxx_post
                   34149:   b_lo=$php_lo
                   34150: 
                   34151: 
                   34152:   old_IFS=$IFS
                   34153:   for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
                   34154:                             domstringlist.c domexception.c namelist.c \
                   34155:                             processinginstruction.c cdatasection.c \
                   34156:                             documentfragment.c domimplementation.c \
                   34157:                             element.c node.c string_extend.c characterdata.c \
                   34158:                             documenttype.c domimplementationlist.c entity.c \
                   34159:                             nodelist.c text.c comment.c domconfiguration.c \
                   34160:                             domimplementationsource.c entityreference.c \
                   34161:                             notation.c xpath.c dom_iterators.c \
                   34162:                             typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
                   34163: 
                   34164:       IFS=.
                   34165:       set $ac_src
                   34166:       ac_obj=$1
                   34167:       IFS=$old_IFS
                   34168: 
                   34169:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   34170: 
                   34171:       case $ac_src in
                   34172:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34173:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34174:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34175:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   34176:       esac
                   34177: 
                   34178:     cat >>Makefile.objects<<EOF
                   34179: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   34180:        $ac_comp
                   34181: EOF
                   34182:   done
                   34183: 
                   34184: 
                   34185:     EXT_STATIC="$EXT_STATIC dom"
                   34186:     if test "$ext_shared" != "nocli"; then
                   34187:       EXT_CLI_STATIC="$EXT_CLI_STATIC dom"
                   34188:     fi
                   34189:   else
                   34190:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   34191:       PHP_DOM_SHARED=yes
                   34192: 
                   34193:   case ext/dom in
                   34194:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   34195:   /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   34196:   *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   34197:   esac
                   34198: 
                   34199: 
                   34200: 
                   34201:   b_c_pre=$shared_c_pre
                   34202:   b_cxx_pre=$shared_cxx_pre
                   34203:   b_c_meta=$shared_c_meta
                   34204:   b_cxx_meta=$shared_cxx_meta
                   34205:   b_c_post=$shared_c_post
                   34206:   b_cxx_post=$shared_cxx_post
                   34207:   b_lo=$shared_lo
                   34208: 
                   34209: 
                   34210:   old_IFS=$IFS
                   34211:   for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
                   34212:                             domstringlist.c domexception.c namelist.c \
                   34213:                             processinginstruction.c cdatasection.c \
                   34214:                             documentfragment.c domimplementation.c \
                   34215:                             element.c node.c string_extend.c characterdata.c \
                   34216:                             documenttype.c domimplementationlist.c entity.c \
                   34217:                             nodelist.c text.c comment.c domconfiguration.c \
                   34218:                             domimplementationsource.c entityreference.c \
                   34219:                             notation.c xpath.c dom_iterators.c \
                   34220:                             typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
                   34221: 
                   34222:       IFS=.
                   34223:       set $ac_src
                   34224:       ac_obj=$1
                   34225:       IFS=$old_IFS
                   34226: 
                   34227:       shared_objects_dom="$shared_objects_dom $ac_bdir$ac_obj.lo"
                   34228: 
                   34229:       case $ac_src in
                   34230:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34231:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34232:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34233:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   34234:       esac
                   34235: 
                   34236:     cat >>Makefile.objects<<EOF
                   34237: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   34238:        $ac_comp
                   34239: EOF
                   34240:   done
                   34241: 
                   34242:       case $host_alias in
                   34243:         *netware*)
                   34244: 
                   34245:   install_modules="install-modules"
                   34246: 
                   34247:   case $host_alias in
                   34248:     *aix*)
                   34249:       suffix=so
                   34250:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpdom.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) $(PHPDOM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpdom.so '$ext_builddir'/phpdom.so'
                   34251:       ;;
                   34252:     *netware*)
                   34253:       suffix=nlm
                   34254:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) -L$(top_builddir)/netware -lphp5lib $(DOM_SHARED_LIBADD)'
                   34255:       ;;
                   34256:     *)
                   34257:       suffix=la
                   34258:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) $(PHPDOM_SHARED_LIBADD)'
                   34259:       ;;
                   34260:   esac
                   34261: 
                   34262:   if test "x" = "xyes"; then
                   34263:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdom.$suffix"
                   34264:   else
                   34265:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdom.$suffix"
                   34266:   fi
                   34267: 
                   34268:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dom"
                   34269: 
                   34270:   cat >>Makefile.objects<<EOF
                   34271: \$(phplibdir)/phpdom.$suffix: $ext_builddir/phpdom.$suffix
                   34272:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpdom.$suffix \$(phplibdir)
                   34273: 
                   34274: $ext_builddir/phpdom.$suffix: \$(shared_objects_dom) \$(PHPDOM_SHARED_DEPENDENCIES)
                   34275:        $link_cmd
                   34276: 
                   34277: EOF
                   34278: 
                   34279:           ;;
                   34280:         *)
                   34281: 
                   34282:   install_modules="install-modules"
                   34283: 
                   34284:   case $host_alias in
                   34285:     *aix*)
                   34286:       suffix=so
                   34287:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/dom.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) $(DOM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/dom.so '$ext_builddir'/dom.so'
                   34288:       ;;
                   34289:     *netware*)
                   34290:       suffix=nlm
                   34291:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
                   34292:       ;;
                   34293:     *)
                   34294:       suffix=la
                   34295:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) $(DOM_SHARED_LIBADD)'
                   34296:       ;;
                   34297:   esac
                   34298: 
                   34299:   if test "x" = "xyes"; then
                   34300:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/dom.$suffix"
                   34301:   else
                   34302:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/dom.$suffix"
                   34303:   fi
                   34304: 
                   34305:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dom"
                   34306: 
                   34307:   cat >>Makefile.objects<<EOF
                   34308: \$(phplibdir)/dom.$suffix: $ext_builddir/dom.$suffix
                   34309:        \$(LIBTOOL) --mode=install cp $ext_builddir/dom.$suffix \$(phplibdir)
                   34310: 
                   34311: $ext_builddir/dom.$suffix: \$(shared_objects_dom) \$(DOM_SHARED_DEPENDENCIES)
                   34312:        $link_cmd
                   34313: 
                   34314: EOF
                   34315: 
                   34316:           ;;
                   34317:       esac
                   34318: 
                   34319: cat >>confdefs.h <<_ACEOF
                   34320: #define COMPILE_DL_DOM 1
                   34321: _ACEOF
                   34322: 
                   34323:     fi
                   34324:   fi
                   34325: 
                   34326:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   34327:     PHP_DOM_SHARED=no
                   34328: 
                   34329: 
                   34330:   case ext/dom in
                   34331:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   34332:   /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   34333:   *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   34334:   esac
                   34335: 
                   34336: 
                   34337: 
                   34338:   b_c_pre=$php_c_pre
                   34339:   b_cxx_pre=$php_cxx_pre
                   34340:   b_c_meta=$php_c_meta
                   34341:   b_cxx_meta=$php_cxx_meta
                   34342:   b_c_post=$php_c_post
                   34343:   b_cxx_post=$php_cxx_post
                   34344:   b_lo=$php_lo
                   34345: 
                   34346: 
                   34347:   old_IFS=$IFS
                   34348:   for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
                   34349:                             domstringlist.c domexception.c namelist.c \
                   34350:                             processinginstruction.c cdatasection.c \
                   34351:                             documentfragment.c domimplementation.c \
                   34352:                             element.c node.c string_extend.c characterdata.c \
                   34353:                             documenttype.c domimplementationlist.c entity.c \
                   34354:                             nodelist.c text.c comment.c domconfiguration.c \
                   34355:                             domimplementationsource.c entityreference.c \
                   34356:                             notation.c xpath.c dom_iterators.c \
                   34357:                             typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
                   34358: 
                   34359:       IFS=.
                   34360:       set $ac_src
                   34361:       ac_obj=$1
                   34362:       IFS=$old_IFS
                   34363: 
1.1.1.2 ! misho    34364:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    34365: 
                   34366:       case $ac_src in
                   34367:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34368:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34369:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34370:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   34371:       esac
                   34372: 
                   34373:     cat >>Makefile.objects<<EOF
                   34374: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   34375:        $ac_comp
                   34376: EOF
                   34377:   done
                   34378: 
                   34379: 
                   34380: 
                   34381: 
                   34382:   case ext/dom in
                   34383:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   34384:   /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   34385:   *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   34386:   esac
                   34387: 
                   34388: 
                   34389: 
                   34390:   b_c_pre=$php_c_pre
                   34391:   b_cxx_pre=$php_cxx_pre
                   34392:   b_c_meta=$php_c_meta
                   34393:   b_cxx_meta=$php_cxx_meta
                   34394:   b_c_post=$php_c_post
                   34395:   b_cxx_post=$php_cxx_post
                   34396:   b_lo=$php_lo
                   34397: 
                   34398: 
                   34399:   old_IFS=$IFS
                   34400:   for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
                   34401:                             domstringlist.c domexception.c namelist.c \
                   34402:                             processinginstruction.c cdatasection.c \
                   34403:                             documentfragment.c domimplementation.c \
                   34404:                             element.c node.c string_extend.c characterdata.c \
                   34405:                             documenttype.c domimplementationlist.c entity.c \
                   34406:                             nodelist.c text.c comment.c domconfiguration.c \
                   34407:                             domimplementationsource.c entityreference.c \
                   34408:                             notation.c xpath.c dom_iterators.c \
                   34409:                             typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
                   34410: 
                   34411:       IFS=.
                   34412:       set $ac_src
                   34413:       ac_obj=$1
                   34414:       IFS=$old_IFS
                   34415: 
1.1.1.2 ! misho    34416:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    34417: 
                   34418:       case $ac_src in
                   34419:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34420:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34421:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34422:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   34423:       esac
                   34424: 
                   34425:     cat >>Makefile.objects<<EOF
                   34426: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   34427:        $ac_comp
                   34428: EOF
                   34429:   done
                   34430: 
                   34431: 
                   34432: 
                   34433: 
                   34434:   case ext/dom in
                   34435:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   34436:   /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   34437:   *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   34438:   esac
                   34439: 
                   34440: 
                   34441: 
                   34442:   b_c_pre=$php_c_pre
                   34443:   b_cxx_pre=$php_cxx_pre
                   34444:   b_c_meta=$php_c_meta
                   34445:   b_cxx_meta=$php_cxx_meta
                   34446:   b_c_post=$php_c_post
                   34447:   b_cxx_post=$php_cxx_post
                   34448:   b_lo=$php_lo
                   34449: 
                   34450: 
                   34451:   old_IFS=$IFS
                   34452:   for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
                   34453:                             domstringlist.c domexception.c namelist.c \
                   34454:                             processinginstruction.c cdatasection.c \
                   34455:                             documentfragment.c domimplementation.c \
                   34456:                             element.c node.c string_extend.c characterdata.c \
                   34457:                             documenttype.c domimplementationlist.c entity.c \
                   34458:                             nodelist.c text.c comment.c domconfiguration.c \
                   34459:                             domimplementationsource.c entityreference.c \
                   34460:                             notation.c xpath.c dom_iterators.c \
                   34461:                             typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
                   34462: 
                   34463:       IFS=.
                   34464:       set $ac_src
                   34465:       ac_obj=$1
                   34466:       IFS=$old_IFS
                   34467: 
1.1.1.2 ! misho    34468:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    34469: 
                   34470:       case $ac_src in
                   34471:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34472:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34473:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34474:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   34475:       esac
                   34476: 
                   34477:     cat >>Makefile.objects<<EOF
                   34478: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   34479:        $ac_comp
                   34480: EOF
                   34481:   done
                   34482: 
                   34483: 
                   34484:     EXT_CLI_STATIC="$EXT_CLI_STATIC dom"
                   34485:   fi
                   34486: 
                   34487: 
                   34488:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   34489: 
                   34490: 
                   34491: 
                   34492:   if test "$ext_builddir" = "."; then
                   34493:     PHP_PECL_EXTENSION=dom
                   34494: 
                   34495:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   34496: 
                   34497:   fi
                   34498: 
                   34499: 
                   34500:   PHP_VAR_SUBST="$PHP_VAR_SUBST DOM_SHARED_LIBADD"
                   34501: 
                   34502: 
                   34503: 
                   34504:     for header_file in ext/dom/xml_common.h; do
                   34505: 
                   34506: 
                   34507:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
                   34508: 
                   34509:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   34510:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   34511:     eval "INSTALLHEADERS$unique=set"
                   34512: 
                   34513:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
                   34514: 
                   34515:   fi
                   34516: 
                   34517:     done
                   34518: 
                   34519: 
                   34520: 
                   34521:   am_i_shared=$PHP_DOM_SHARED
                   34522:   is_it_shared=$PHP_LIBXML_SHARED
                   34523:   is_it_enabled=$PHP_LIBXML
                   34524:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   34525:     as_fn_error $? "
                   34526: You've configured extension dom to build statically, but it
                   34527: depends on extension libxml, which you've configured to build shared.
                   34528: You either need to build dom shared or build libxml statically for the
                   34529: build to be successful.
                   34530: " "$LINENO" 5
                   34531:   fi
                   34532: 
                   34533: 
                   34534:     else
                   34535:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
                   34536:     fi
                   34537: else
                   34538:     as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
                   34539: 
                   34540:   fi
                   34541: 
                   34542: fi
                   34543: 
                   34544: 
                   34545: 
                   34546: php_with_enchant=no
                   34547: 
                   34548: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENCHANT support" >&5
                   34549: $as_echo_n "checking for ENCHANT support... " >&6; }
                   34550: 
                   34551: # Check whether --with-enchant was given.
                   34552: if test "${with_enchant+set}" = set; then :
                   34553:   withval=$with_enchant; PHP_ENCHANT=$withval
                   34554: else
                   34555: 
                   34556:   PHP_ENCHANT=no
                   34557:   test "$PHP_ENABLE_ALL" && PHP_ENCHANT=$PHP_ENABLE_ALL
                   34558: 
                   34559: fi
                   34560: 
                   34561: 
                   34562: 
                   34563: ext_output="yes, shared"
                   34564: ext_shared=yes
                   34565: case $PHP_ENCHANT in
                   34566: shared,*)
                   34567:   PHP_ENCHANT=`echo "$PHP_ENCHANT"|$SED 's/^shared,//'`
                   34568:   ;;
                   34569: shared)
                   34570:   PHP_ENCHANT=yes
                   34571:   ;;
                   34572: no)
                   34573:   ext_output=no
                   34574:   ext_shared=no
                   34575:   ;;
                   34576: *)
                   34577:   ext_output=yes
                   34578:   ext_shared=no
                   34579:   ;;
                   34580: esac
                   34581: 
                   34582: 
                   34583: 
                   34584: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   34585: $as_echo "$ext_output" >&6; }
                   34586: 
                   34587: 
                   34588: 
                   34589: 
                   34590: if test "$PHP_ENCHANT" != "no"; then
                   34591: 
                   34592:   ext_builddir=ext/enchant
                   34593:   ext_srcdir=$abs_srcdir/ext/enchant
                   34594: 
                   34595:   ac_extra=
                   34596: 
                   34597:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   34598:     PHP_ENCHANT_SHARED=no
                   34599: 
                   34600: 
                   34601:   case ext/enchant in
                   34602:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   34603:   /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   34604:   *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   34605:   esac
                   34606: 
                   34607: 
                   34608: 
                   34609:   b_c_pre=$php_c_pre
                   34610:   b_cxx_pre=$php_cxx_pre
                   34611:   b_c_meta=$php_c_meta
                   34612:   b_cxx_meta=$php_cxx_meta
                   34613:   b_c_post=$php_c_post
                   34614:   b_cxx_post=$php_cxx_post
                   34615:   b_lo=$php_lo
                   34616: 
                   34617: 
                   34618:   old_IFS=$IFS
                   34619:   for ac_src in enchant.c; do
                   34620: 
                   34621:       IFS=.
                   34622:       set $ac_src
                   34623:       ac_obj=$1
                   34624:       IFS=$old_IFS
                   34625: 
                   34626:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   34627: 
                   34628:       case $ac_src in
                   34629:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34630:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34631:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34632:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   34633:       esac
                   34634: 
                   34635:     cat >>Makefile.objects<<EOF
                   34636: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   34637:        $ac_comp
                   34638: EOF
                   34639:   done
                   34640: 
                   34641: 
                   34642:     EXT_STATIC="$EXT_STATIC enchant"
                   34643:     if test "$ext_shared" != "nocli"; then
                   34644:       EXT_CLI_STATIC="$EXT_CLI_STATIC enchant"
                   34645:     fi
                   34646:   else
                   34647:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   34648:       PHP_ENCHANT_SHARED=yes
                   34649: 
                   34650:   case ext/enchant in
                   34651:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   34652:   /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   34653:   *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   34654:   esac
                   34655: 
                   34656: 
                   34657: 
                   34658:   b_c_pre=$shared_c_pre
                   34659:   b_cxx_pre=$shared_cxx_pre
                   34660:   b_c_meta=$shared_c_meta
                   34661:   b_cxx_meta=$shared_cxx_meta
                   34662:   b_c_post=$shared_c_post
                   34663:   b_cxx_post=$shared_cxx_post
                   34664:   b_lo=$shared_lo
                   34665: 
                   34666: 
                   34667:   old_IFS=$IFS
                   34668:   for ac_src in enchant.c; do
                   34669: 
                   34670:       IFS=.
                   34671:       set $ac_src
                   34672:       ac_obj=$1
                   34673:       IFS=$old_IFS
                   34674: 
                   34675:       shared_objects_enchant="$shared_objects_enchant $ac_bdir$ac_obj.lo"
                   34676: 
                   34677:       case $ac_src in
                   34678:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34679:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34680:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34681:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   34682:       esac
                   34683: 
                   34684:     cat >>Makefile.objects<<EOF
                   34685: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   34686:        $ac_comp
                   34687: EOF
                   34688:   done
                   34689: 
                   34690:       case $host_alias in
                   34691:         *netware*)
                   34692: 
                   34693:   install_modules="install-modules"
                   34694: 
                   34695:   case $host_alias in
                   34696:     *aix*)
                   34697:       suffix=so
                   34698:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpenchant.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) $(PHPENCHANT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpenchant.so '$ext_builddir'/phpenchant.so'
                   34699:       ;;
                   34700:     *netware*)
                   34701:       suffix=nlm
                   34702:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) -L$(top_builddir)/netware -lphp5lib $(ENCHANT_SHARED_LIBADD)'
                   34703:       ;;
                   34704:     *)
                   34705:       suffix=la
                   34706:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) $(PHPENCHANT_SHARED_LIBADD)'
                   34707:       ;;
                   34708:   esac
                   34709: 
                   34710:   if test "x" = "xyes"; then
                   34711:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpenchant.$suffix"
                   34712:   else
                   34713:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpenchant.$suffix"
                   34714:   fi
                   34715: 
                   34716:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_enchant"
                   34717: 
                   34718:   cat >>Makefile.objects<<EOF
                   34719: \$(phplibdir)/phpenchant.$suffix: $ext_builddir/phpenchant.$suffix
                   34720:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpenchant.$suffix \$(phplibdir)
                   34721: 
                   34722: $ext_builddir/phpenchant.$suffix: \$(shared_objects_enchant) \$(PHPENCHANT_SHARED_DEPENDENCIES)
                   34723:        $link_cmd
                   34724: 
                   34725: EOF
                   34726: 
                   34727:           ;;
                   34728:         *)
                   34729: 
                   34730:   install_modules="install-modules"
                   34731: 
                   34732:   case $host_alias in
                   34733:     *aix*)
                   34734:       suffix=so
                   34735:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/enchant.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) $(ENCHANT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/enchant.so '$ext_builddir'/enchant.so'
                   34736:       ;;
                   34737:     *netware*)
                   34738:       suffix=nlm
                   34739:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) -L$(top_builddir)/netware -lphp5lib $(HANT_SHARED_LIBADD)'
                   34740:       ;;
                   34741:     *)
                   34742:       suffix=la
                   34743:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) $(ENCHANT_SHARED_LIBADD)'
                   34744:       ;;
                   34745:   esac
                   34746: 
                   34747:   if test "x" = "xyes"; then
                   34748:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/enchant.$suffix"
                   34749:   else
                   34750:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/enchant.$suffix"
                   34751:   fi
                   34752: 
                   34753:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_enchant"
                   34754: 
                   34755:   cat >>Makefile.objects<<EOF
                   34756: \$(phplibdir)/enchant.$suffix: $ext_builddir/enchant.$suffix
                   34757:        \$(LIBTOOL) --mode=install cp $ext_builddir/enchant.$suffix \$(phplibdir)
                   34758: 
                   34759: $ext_builddir/enchant.$suffix: \$(shared_objects_enchant) \$(ENCHANT_SHARED_DEPENDENCIES)
                   34760:        $link_cmd
                   34761: 
                   34762: EOF
                   34763: 
                   34764:           ;;
                   34765:       esac
                   34766: 
                   34767: cat >>confdefs.h <<_ACEOF
                   34768: #define COMPILE_DL_ENCHANT 1
                   34769: _ACEOF
                   34770: 
                   34771:     fi
                   34772:   fi
                   34773: 
                   34774:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   34775:     PHP_ENCHANT_SHARED=no
                   34776: 
                   34777: 
                   34778:   case ext/enchant in
                   34779:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   34780:   /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   34781:   *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   34782:   esac
                   34783: 
                   34784: 
                   34785: 
                   34786:   b_c_pre=$php_c_pre
                   34787:   b_cxx_pre=$php_cxx_pre
                   34788:   b_c_meta=$php_c_meta
                   34789:   b_cxx_meta=$php_cxx_meta
                   34790:   b_c_post=$php_c_post
                   34791:   b_cxx_post=$php_cxx_post
                   34792:   b_lo=$php_lo
                   34793: 
                   34794: 
                   34795:   old_IFS=$IFS
                   34796:   for ac_src in enchant.c; do
                   34797: 
                   34798:       IFS=.
                   34799:       set $ac_src
                   34800:       ac_obj=$1
                   34801:       IFS=$old_IFS
                   34802: 
1.1.1.2 ! misho    34803:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    34804: 
                   34805:       case $ac_src in
                   34806:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34807:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34808:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34809:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   34810:       esac
                   34811: 
                   34812:     cat >>Makefile.objects<<EOF
                   34813: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   34814:        $ac_comp
                   34815: EOF
                   34816:   done
                   34817: 
                   34818: 
                   34819: 
                   34820: 
                   34821:   case ext/enchant in
                   34822:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   34823:   /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   34824:   *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   34825:   esac
                   34826: 
                   34827: 
                   34828: 
                   34829:   b_c_pre=$php_c_pre
                   34830:   b_cxx_pre=$php_cxx_pre
                   34831:   b_c_meta=$php_c_meta
                   34832:   b_cxx_meta=$php_cxx_meta
                   34833:   b_c_post=$php_c_post
                   34834:   b_cxx_post=$php_cxx_post
                   34835:   b_lo=$php_lo
                   34836: 
                   34837: 
                   34838:   old_IFS=$IFS
                   34839:   for ac_src in enchant.c; do
                   34840: 
                   34841:       IFS=.
                   34842:       set $ac_src
                   34843:       ac_obj=$1
                   34844:       IFS=$old_IFS
                   34845: 
1.1.1.2 ! misho    34846:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    34847: 
                   34848:       case $ac_src in
                   34849:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34850:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34851:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34852:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   34853:       esac
                   34854: 
                   34855:     cat >>Makefile.objects<<EOF
                   34856: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   34857:        $ac_comp
                   34858: EOF
                   34859:   done
                   34860: 
                   34861: 
                   34862: 
                   34863: 
                   34864:   case ext/enchant in
                   34865:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   34866:   /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   34867:   *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   34868:   esac
                   34869: 
                   34870: 
                   34871: 
                   34872:   b_c_pre=$php_c_pre
                   34873:   b_cxx_pre=$php_cxx_pre
                   34874:   b_c_meta=$php_c_meta
                   34875:   b_cxx_meta=$php_cxx_meta
                   34876:   b_c_post=$php_c_post
                   34877:   b_cxx_post=$php_cxx_post
                   34878:   b_lo=$php_lo
                   34879: 
                   34880: 
                   34881:   old_IFS=$IFS
                   34882:   for ac_src in enchant.c; do
                   34883: 
                   34884:       IFS=.
                   34885:       set $ac_src
                   34886:       ac_obj=$1
                   34887:       IFS=$old_IFS
                   34888: 
1.1.1.2 ! misho    34889:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    34890: 
                   34891:       case $ac_src in
                   34892:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34893:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34894:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   34895:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   34896:       esac
                   34897: 
                   34898:     cat >>Makefile.objects<<EOF
                   34899: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   34900:        $ac_comp
                   34901: EOF
                   34902:   done
                   34903: 
                   34904: 
                   34905:     EXT_CLI_STATIC="$EXT_CLI_STATIC enchant"
                   34906:   fi
                   34907: 
                   34908: 
                   34909:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   34910: 
                   34911: 
                   34912: 
                   34913:   if test "$ext_builddir" = "."; then
                   34914:     PHP_PECL_EXTENSION=enchant
                   34915: 
                   34916:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   34917: 
                   34918:   fi
                   34919: 
                   34920:        if test "$PHP_ENCHANT" != "yes"; then
                   34921:            ENCHANT_SEARCH_DIRS=$PHP_ENCHANT
                   34922:        else
                   34923:            ENCHANT_SEARCH_DIRS="/usr/local /usr"
                   34924:        fi
                   34925:        for i in $ENCHANT_SEARCH_DIRS; do
                   34926:                if test -f $i/include/enchant/enchant.h; then
                   34927:                        ENCHANT_DIR=$i
                   34928:                        ENCHANT_INCDIR=$i/include/enchant
                   34929:                elif test -f $i/include/enchant.h; then
                   34930:                        ENCHANT_DIR=$i
                   34931:                        ENCHANT_INCDIR=$i/include
                   34932:                fi
                   34933:        done
                   34934: 
                   34935:        if test -z "$ENCHANT_DIR"; then
                   34936:                as_fn_error $? "Cannot find enchant" "$LINENO" 5
                   34937:        fi
                   34938: 
                   34939:        ENCHANT_LIBDIR=$ENCHANT_DIR/lib
                   34940: 
                   34941: 
                   34942: $as_echo "#define HAVE_ENCHANT 1" >>confdefs.h
                   34943: 
                   34944: 
                   34945:   PHP_VAR_SUBST="$PHP_VAR_SUBST ENCHANT_SHARED_LIBADD"
                   34946: 
                   34947: 
                   34948: 
                   34949:   if test "$ext_shared" = "yes"; then
                   34950:     ENCHANT_SHARED_LIBADD="-lenchant $ENCHANT_SHARED_LIBADD"
                   34951:     if test -n "$ENCHANT_LIBDIR"; then
                   34952: 
                   34953:   if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then
                   34954: 
                   34955:   if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then
                   34956:     ai_p=$ENCHANT_LIBDIR
                   34957:   else
                   34958: 
                   34959:     ep_dir="`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   34960: 
                   34961:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   34962:     ai_p="$ep_realdir/`basename \"$ENCHANT_LIBDIR\"`"
                   34963:   fi
                   34964: 
                   34965: 
                   34966:       if test "$ext_shared" = "yes"; then
                   34967:         ENCHANT_SHARED_LIBADD="-L$ai_p $ENCHANT_SHARED_LIBADD"
                   34968:         test -n "$ld_runpath_switch" && ENCHANT_SHARED_LIBADD="$ld_runpath_switch$ai_p $ENCHANT_SHARED_LIBADD"
                   34969:       else
                   34970: 
                   34971: 
                   34972: 
                   34973:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   34974: 
                   34975:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   34976:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   34977:     eval "LIBPATH$unique=set"
                   34978: 
                   34979:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   34980:     LDFLAGS="$LDFLAGS -L$ai_p"
                   34981:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   34982: 
                   34983:   fi
                   34984: 
                   34985: 
                   34986:       fi
                   34987: 
                   34988:   fi
                   34989: 
                   34990:     fi
                   34991:   else
                   34992: 
                   34993: 
                   34994:   if test -n "$ENCHANT_LIBDIR"; then
                   34995: 
                   34996:   if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then
                   34997: 
                   34998:   if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then
                   34999:     ai_p=$ENCHANT_LIBDIR
                   35000:   else
                   35001: 
                   35002:     ep_dir="`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   35003: 
                   35004:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   35005:     ai_p="$ep_realdir/`basename \"$ENCHANT_LIBDIR\"`"
                   35006:   fi
                   35007: 
                   35008: 
                   35009: 
                   35010: 
                   35011: 
                   35012:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   35013: 
                   35014:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   35015:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   35016:     eval "LIBPATH$unique=set"
                   35017: 
                   35018:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   35019:     LDFLAGS="$LDFLAGS -L$ai_p"
                   35020:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   35021: 
                   35022:   fi
                   35023: 
                   35024: 
                   35025: 
                   35026:   fi
                   35027: 
                   35028:   fi
                   35029: 
                   35030: 
                   35031:   case enchant in
                   35032:   c|c_r|pthread*) ;;
                   35033:   *)
                   35034:       LIBS="-lenchant $LIBS"
                   35035:    ;;
                   35036:   esac
                   35037: 
                   35038: 
                   35039: 
                   35040: 
                   35041:   fi
                   35042: 
                   35043: 
                   35044: 
                   35045:   if test "$ENCHANT_INCDIR" != "/usr/include"; then
                   35046: 
                   35047:   if test -z "$ENCHANT_INCDIR" || echo "$ENCHANT_INCDIR" | grep '^/' >/dev/null ; then
                   35048:     ai_p=$ENCHANT_INCDIR
                   35049:   else
                   35050: 
                   35051:     ep_dir="`echo $ENCHANT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   35052: 
                   35053:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   35054:     ai_p="$ep_realdir/`basename \"$ENCHANT_INCDIR\"`"
                   35055:   fi
                   35056: 
                   35057: 
                   35058: 
                   35059:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   35060: 
                   35061:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   35062:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   35063:     eval "INCLUDEPATH$unique=set"
                   35064: 
                   35065:       if test ""; then
                   35066:         INCLUDES="-I$ai_p $INCLUDES"
                   35067:       else
                   35068:         INCLUDES="$INCLUDES -I$ai_p"
                   35069:       fi
                   35070: 
                   35071:   fi
                   35072: 
                   35073:   fi
                   35074: 
                   35075: 
                   35076:   save_old_LDFLAGS=$LDFLAGS
                   35077:   ac_stuff=" -L$ENCHANT_LIB $ENCHANT_SHARED_LIBADD"
                   35078: 
                   35079:   save_ext_shared=$ext_shared
                   35080:   ext_shared=yes
                   35081: 
                   35082:   for ac_i in $ac_stuff; do
                   35083:     case $ac_i in
                   35084:     -pthread)
                   35085:       if test "$ext_shared" = "yes"; then
                   35086:         LDFLAGS="$LDFLAGS -pthread"
                   35087:       else
                   35088: 
                   35089: 
                   35090:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   35091: 
                   35092:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   35093:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   35094:     eval "EXTRA_LDFLAGS$unique=set"
                   35095:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   35096:   fi
                   35097: 
                   35098:       fi
                   35099:     ;;
                   35100:     -l*)
                   35101:       ac_ii=`echo $ac_i|cut -c 3-`
                   35102: 
                   35103: 
                   35104:   case $ac_ii in
                   35105:   c|c_r|pthread*) ;;
                   35106:   *)
                   35107:     if test "$ext_shared" = "yes"; then
                   35108:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   35109:     else
                   35110: 
                   35111: 
                   35112:   case $ac_ii in
                   35113:   c|c_r|pthread*) ;;
                   35114:   *)
                   35115:       LIBS="$LIBS -l$ac_ii"
                   35116:    ;;
                   35117:   esac
                   35118: 
                   35119: 
                   35120:     fi
                   35121:    ;;
                   35122:   esac
                   35123: 
                   35124: 
                   35125:     ;;
                   35126:     -L*)
                   35127:       ac_ii=`echo $ac_i|cut -c 3-`
                   35128: 
                   35129:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   35130: 
                   35131:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   35132:     ai_p=$ac_ii
                   35133:   else
                   35134: 
                   35135:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   35136: 
                   35137:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   35138:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   35139:   fi
                   35140: 
                   35141: 
                   35142:       if test "$ext_shared" = "yes"; then
                   35143:         LDFLAGS="-L$ai_p $LDFLAGS"
                   35144:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   35145:       else
                   35146: 
                   35147: 
                   35148: 
                   35149:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   35150: 
                   35151:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   35152:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   35153:     eval "LIBPATH$unique=set"
                   35154: 
                   35155:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   35156:     LDFLAGS="$LDFLAGS -L$ai_p"
                   35157:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   35158: 
                   35159:   fi
                   35160: 
                   35161: 
                   35162:       fi
                   35163: 
                   35164:   fi
                   35165: 
                   35166:     ;;
                   35167:     esac
                   35168:   done
                   35169: 
                   35170:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant_broker_set_param in -lenchant" >&5
                   35171: $as_echo_n "checking for enchant_broker_set_param in -lenchant... " >&6; }
                   35172: if ${ac_cv_lib_enchant_enchant_broker_set_param+:} false; then :
                   35173:   $as_echo_n "(cached) " >&6
                   35174: else
                   35175:   ac_check_lib_save_LIBS=$LIBS
                   35176: LIBS="-lenchant  $LIBS"
                   35177: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   35178: /* end confdefs.h.  */
                   35179: 
                   35180: /* Override any GCC internal prototype to avoid an error.
                   35181:    Use char because int might match the return type of a GCC
                   35182:    builtin and then its argument prototype would still apply.  */
                   35183: #ifdef __cplusplus
                   35184: extern "C"
                   35185: #endif
                   35186: char enchant_broker_set_param ();
                   35187: int
                   35188: main ()
                   35189: {
                   35190: return enchant_broker_set_param ();
                   35191:   ;
                   35192:   return 0;
                   35193: }
                   35194: _ACEOF
                   35195: if ac_fn_c_try_link "$LINENO"; then :
                   35196:   ac_cv_lib_enchant_enchant_broker_set_param=yes
                   35197: else
                   35198:   ac_cv_lib_enchant_enchant_broker_set_param=no
                   35199: fi
                   35200: rm -f core conftest.err conftest.$ac_objext \
                   35201:     conftest$ac_exeext conftest.$ac_ext
                   35202: LIBS=$ac_check_lib_save_LIBS
                   35203: fi
                   35204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_enchant_enchant_broker_set_param" >&5
                   35205: $as_echo "$ac_cv_lib_enchant_enchant_broker_set_param" >&6; }
                   35206: if test "x$ac_cv_lib_enchant_enchant_broker_set_param" = xyes; then :
                   35207: 
                   35208:     LDFLAGS=$save_old_LDFLAGS
                   35209:     ext_shared=$save_ext_shared
                   35210: 
                   35211: 
                   35212: $as_echo "#define HAVE_ENCHANT_BROKER_SET_PARAM 1" >>confdefs.h
                   35213: 
                   35214: 
                   35215: $as_echo "#define ENCHANT_VERSION_STRING \"1.5.x\"" >>confdefs.h
                   35216: 
                   35217: 
                   35218: 
                   35219: else
                   35220: 
                   35221:     LDFLAGS=$save_old_LDFLAGS
                   35222:     ext_shared=$save_ext_shared
                   35223:     unset ac_cv_lib_enchant_enchant_broker_set_param
                   35224: 
                   35225: 
                   35226: fi
                   35227: 
                   35228: 
                   35229: fi
                   35230: 
                   35231: 
                   35232: 
                   35233: php_enable_exif=no
                   35234: 
                   35235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXIF (metadata from images) support" >&5
                   35236: $as_echo_n "checking whether to enable EXIF (metadata from images) support... " >&6; }
                   35237: # Check whether --enable-exif was given.
                   35238: if test "${enable_exif+set}" = set; then :
                   35239:   enableval=$enable_exif; PHP_EXIF=$enableval
                   35240: else
                   35241: 
                   35242:   PHP_EXIF=no
                   35243:   test "$PHP_ENABLE_ALL" && PHP_EXIF=$PHP_ENABLE_ALL
                   35244: 
                   35245: fi
                   35246: 
                   35247: 
                   35248: 
                   35249: ext_output="yes, shared"
                   35250: ext_shared=yes
                   35251: case $PHP_EXIF in
                   35252: shared,*)
                   35253:   PHP_EXIF=`echo "$PHP_EXIF"|$SED 's/^shared,//'`
                   35254:   ;;
                   35255: shared)
                   35256:   PHP_EXIF=yes
                   35257:   ;;
                   35258: no)
                   35259:   ext_output=no
                   35260:   ext_shared=no
                   35261:   ;;
                   35262: *)
                   35263:   ext_output=yes
                   35264:   ext_shared=no
                   35265:   ;;
                   35266: esac
                   35267: 
                   35268: 
                   35269: 
                   35270: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   35271: $as_echo "$ext_output" >&6; }
                   35272: 
                   35273: 
                   35274: 
                   35275: 
                   35276: if test "$PHP_EXIF" != "no"; then
                   35277: 
                   35278: $as_echo "#define HAVE_EXIF 1" >>confdefs.h
                   35279: 
                   35280: 
                   35281:   ext_builddir=ext/exif
                   35282:   ext_srcdir=$abs_srcdir/ext/exif
                   35283: 
                   35284:   ac_extra=
                   35285: 
                   35286:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   35287:     PHP_EXIF_SHARED=no
                   35288: 
                   35289: 
                   35290:   case ext/exif in
                   35291:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   35292:   /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   35293:   *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   35294:   esac
                   35295: 
                   35296: 
                   35297: 
                   35298:   b_c_pre=$php_c_pre
                   35299:   b_cxx_pre=$php_cxx_pre
                   35300:   b_c_meta=$php_c_meta
                   35301:   b_cxx_meta=$php_cxx_meta
                   35302:   b_c_post=$php_c_post
                   35303:   b_cxx_post=$php_cxx_post
                   35304:   b_lo=$php_lo
                   35305: 
                   35306: 
                   35307:   old_IFS=$IFS
                   35308:   for ac_src in exif.c; do
                   35309: 
                   35310:       IFS=.
                   35311:       set $ac_src
                   35312:       ac_obj=$1
                   35313:       IFS=$old_IFS
                   35314: 
                   35315:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   35316: 
                   35317:       case $ac_src in
                   35318:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35319:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35320:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35321:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   35322:       esac
                   35323: 
                   35324:     cat >>Makefile.objects<<EOF
                   35325: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   35326:        $ac_comp
                   35327: EOF
                   35328:   done
                   35329: 
                   35330: 
                   35331:     EXT_STATIC="$EXT_STATIC exif"
                   35332:     if test "$ext_shared" != "nocli"; then
                   35333:       EXT_CLI_STATIC="$EXT_CLI_STATIC exif"
                   35334:     fi
                   35335:   else
                   35336:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   35337:       PHP_EXIF_SHARED=yes
                   35338: 
                   35339:   case ext/exif in
                   35340:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   35341:   /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   35342:   *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   35343:   esac
                   35344: 
                   35345: 
                   35346: 
                   35347:   b_c_pre=$shared_c_pre
                   35348:   b_cxx_pre=$shared_cxx_pre
                   35349:   b_c_meta=$shared_c_meta
                   35350:   b_cxx_meta=$shared_cxx_meta
                   35351:   b_c_post=$shared_c_post
                   35352:   b_cxx_post=$shared_cxx_post
                   35353:   b_lo=$shared_lo
                   35354: 
                   35355: 
                   35356:   old_IFS=$IFS
                   35357:   for ac_src in exif.c; do
                   35358: 
                   35359:       IFS=.
                   35360:       set $ac_src
                   35361:       ac_obj=$1
                   35362:       IFS=$old_IFS
                   35363: 
                   35364:       shared_objects_exif="$shared_objects_exif $ac_bdir$ac_obj.lo"
                   35365: 
                   35366:       case $ac_src in
                   35367:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35368:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35369:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35370:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   35371:       esac
                   35372: 
                   35373:     cat >>Makefile.objects<<EOF
                   35374: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   35375:        $ac_comp
                   35376: EOF
                   35377:   done
                   35378: 
                   35379:       case $host_alias in
                   35380:         *netware*)
                   35381: 
                   35382:   install_modules="install-modules"
                   35383: 
                   35384:   case $host_alias in
                   35385:     *aix*)
                   35386:       suffix=so
                   35387:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpexif.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) $(PHPEXIF_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpexif.so '$ext_builddir'/phpexif.so'
                   35388:       ;;
                   35389:     *netware*)
                   35390:       suffix=nlm
                   35391:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) -L$(top_builddir)/netware -lphp5lib $(EXIF_SHARED_LIBADD)'
                   35392:       ;;
                   35393:     *)
                   35394:       suffix=la
                   35395:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) $(PHPEXIF_SHARED_LIBADD)'
                   35396:       ;;
                   35397:   esac
                   35398: 
                   35399:   if test "x" = "xyes"; then
                   35400:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpexif.$suffix"
                   35401:   else
                   35402:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpexif.$suffix"
                   35403:   fi
                   35404: 
                   35405:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_exif"
                   35406: 
                   35407:   cat >>Makefile.objects<<EOF
                   35408: \$(phplibdir)/phpexif.$suffix: $ext_builddir/phpexif.$suffix
                   35409:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpexif.$suffix \$(phplibdir)
                   35410: 
                   35411: $ext_builddir/phpexif.$suffix: \$(shared_objects_exif) \$(PHPEXIF_SHARED_DEPENDENCIES)
                   35412:        $link_cmd
                   35413: 
                   35414: EOF
                   35415: 
                   35416:           ;;
                   35417:         *)
                   35418: 
                   35419:   install_modules="install-modules"
                   35420: 
                   35421:   case $host_alias in
                   35422:     *aix*)
                   35423:       suffix=so
                   35424:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/exif.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) $(EXIF_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/exif.so '$ext_builddir'/exif.so'
                   35425:       ;;
                   35426:     *netware*)
                   35427:       suffix=nlm
                   35428:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) -L$(top_builddir)/netware -lphp5lib $(F_SHARED_LIBADD)'
                   35429:       ;;
                   35430:     *)
                   35431:       suffix=la
                   35432:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) $(EXIF_SHARED_LIBADD)'
                   35433:       ;;
                   35434:   esac
                   35435: 
                   35436:   if test "x" = "xyes"; then
                   35437:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/exif.$suffix"
                   35438:   else
                   35439:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/exif.$suffix"
                   35440:   fi
                   35441: 
                   35442:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_exif"
                   35443: 
                   35444:   cat >>Makefile.objects<<EOF
                   35445: \$(phplibdir)/exif.$suffix: $ext_builddir/exif.$suffix
                   35446:        \$(LIBTOOL) --mode=install cp $ext_builddir/exif.$suffix \$(phplibdir)
                   35447: 
                   35448: $ext_builddir/exif.$suffix: \$(shared_objects_exif) \$(EXIF_SHARED_DEPENDENCIES)
                   35449:        $link_cmd
                   35450: 
                   35451: EOF
                   35452: 
                   35453:           ;;
                   35454:       esac
                   35455: 
                   35456: cat >>confdefs.h <<_ACEOF
                   35457: #define COMPILE_DL_EXIF 1
                   35458: _ACEOF
                   35459: 
                   35460:     fi
                   35461:   fi
                   35462: 
                   35463:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   35464:     PHP_EXIF_SHARED=no
                   35465: 
                   35466: 
                   35467:   case ext/exif in
                   35468:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   35469:   /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   35470:   *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   35471:   esac
                   35472: 
                   35473: 
                   35474: 
                   35475:   b_c_pre=$php_c_pre
                   35476:   b_cxx_pre=$php_cxx_pre
                   35477:   b_c_meta=$php_c_meta
                   35478:   b_cxx_meta=$php_cxx_meta
                   35479:   b_c_post=$php_c_post
                   35480:   b_cxx_post=$php_cxx_post
                   35481:   b_lo=$php_lo
                   35482: 
                   35483: 
                   35484:   old_IFS=$IFS
                   35485:   for ac_src in exif.c; do
                   35486: 
                   35487:       IFS=.
                   35488:       set $ac_src
                   35489:       ac_obj=$1
                   35490:       IFS=$old_IFS
                   35491: 
1.1.1.2 ! misho    35492:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    35493: 
                   35494:       case $ac_src in
                   35495:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35496:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35497:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35498:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   35499:       esac
                   35500: 
                   35501:     cat >>Makefile.objects<<EOF
                   35502: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   35503:        $ac_comp
                   35504: EOF
                   35505:   done
                   35506: 
                   35507: 
                   35508: 
                   35509: 
                   35510:   case ext/exif in
                   35511:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   35512:   /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   35513:   *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   35514:   esac
                   35515: 
                   35516: 
                   35517: 
                   35518:   b_c_pre=$php_c_pre
                   35519:   b_cxx_pre=$php_cxx_pre
                   35520:   b_c_meta=$php_c_meta
                   35521:   b_cxx_meta=$php_cxx_meta
                   35522:   b_c_post=$php_c_post
                   35523:   b_cxx_post=$php_cxx_post
                   35524:   b_lo=$php_lo
                   35525: 
                   35526: 
                   35527:   old_IFS=$IFS
                   35528:   for ac_src in exif.c; do
                   35529: 
                   35530:       IFS=.
                   35531:       set $ac_src
                   35532:       ac_obj=$1
                   35533:       IFS=$old_IFS
                   35534: 
1.1.1.2 ! misho    35535:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    35536: 
                   35537:       case $ac_src in
                   35538:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35539:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35540:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35541:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   35542:       esac
                   35543: 
                   35544:     cat >>Makefile.objects<<EOF
                   35545: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   35546:        $ac_comp
                   35547: EOF
                   35548:   done
                   35549: 
                   35550: 
                   35551: 
                   35552: 
                   35553:   case ext/exif in
                   35554:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   35555:   /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   35556:   *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   35557:   esac
                   35558: 
                   35559: 
                   35560: 
                   35561:   b_c_pre=$php_c_pre
                   35562:   b_cxx_pre=$php_cxx_pre
                   35563:   b_c_meta=$php_c_meta
                   35564:   b_cxx_meta=$php_cxx_meta
                   35565:   b_c_post=$php_c_post
                   35566:   b_cxx_post=$php_cxx_post
                   35567:   b_lo=$php_lo
                   35568: 
                   35569: 
                   35570:   old_IFS=$IFS
                   35571:   for ac_src in exif.c; do
                   35572: 
                   35573:       IFS=.
                   35574:       set $ac_src
                   35575:       ac_obj=$1
                   35576:       IFS=$old_IFS
                   35577: 
1.1.1.2 ! misho    35578:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    35579: 
                   35580:       case $ac_src in
                   35581:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35582:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35583:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35584:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   35585:       esac
                   35586: 
                   35587:     cat >>Makefile.objects<<EOF
                   35588: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   35589:        $ac_comp
                   35590: EOF
                   35591:   done
                   35592: 
                   35593: 
                   35594:     EXT_CLI_STATIC="$EXT_CLI_STATIC exif"
                   35595:   fi
                   35596: 
                   35597: 
                   35598:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   35599: 
                   35600: 
                   35601: 
                   35602:   if test "$ext_builddir" = "."; then
                   35603:     PHP_PECL_EXTENSION=exif
                   35604: 
                   35605:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   35606: 
                   35607:   fi
                   35608: 
                   35609: fi
                   35610: 
                   35611: 
                   35612: 
                   35613: php_enable_fileinfo=yes
                   35614: 
                   35615: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fileinfo support" >&5
                   35616: $as_echo_n "checking for fileinfo support... " >&6; }
                   35617: # Check whether --enable-fileinfo was given.
                   35618: if test "${enable_fileinfo+set}" = set; then :
                   35619:   enableval=$enable_fileinfo; PHP_FILEINFO=$enableval
                   35620: else
                   35621: 
                   35622:   PHP_FILEINFO=yes
                   35623:   test "$PHP_ENABLE_ALL" && PHP_FILEINFO=$PHP_ENABLE_ALL
                   35624: 
                   35625: fi
                   35626: 
                   35627: 
                   35628: 
                   35629: ext_output="yes, shared"
                   35630: ext_shared=yes
                   35631: case $PHP_FILEINFO in
                   35632: shared,*)
                   35633:   PHP_FILEINFO=`echo "$PHP_FILEINFO"|$SED 's/^shared,//'`
                   35634:   ;;
                   35635: shared)
                   35636:   PHP_FILEINFO=yes
                   35637:   ;;
                   35638: no)
                   35639:   ext_output=no
                   35640:   ext_shared=no
                   35641:   ;;
                   35642: *)
                   35643:   ext_output=yes
                   35644:   ext_shared=no
                   35645:   ;;
                   35646: esac
                   35647: 
                   35648: 
                   35649: 
                   35650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   35651: $as_echo "$ext_output" >&6; }
                   35652: 
                   35653: 
                   35654: 
                   35655: 
                   35656: if test "$PHP_FILEINFO" != "no"; then
                   35657: 
                   35658:   libmagic_sources=" \
                   35659:     libmagic/apprentice.c libmagic/apptype.c libmagic/ascmagic.c \
                   35660:     libmagic/cdf.c libmagic/cdf_time.c libmagic/compress.c \
                   35661:     libmagic/encoding.c libmagic/fsmagic.c libmagic/funcs.c \
                   35662:     libmagic/is_tar.c libmagic/magic.c libmagic/print.c \
                   35663:     libmagic/readcdf.c libmagic/readelf.c libmagic/softmagic.c"
                   35664: 
                   35665: 
                   35666:   ext_builddir=ext/fileinfo
                   35667:   ext_srcdir=$abs_srcdir/ext/fileinfo
                   35668: 
                   35669:   ac_extra=`echo "-I@ext_srcdir@/libmagic"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
                   35670: 
                   35671:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   35672:     PHP_FILEINFO_SHARED=no
                   35673: 
                   35674: 
                   35675:   case ext/fileinfo in
                   35676:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   35677:   /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   35678:   *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   35679:   esac
                   35680: 
                   35681: 
                   35682: 
                   35683:   b_c_pre=$php_c_pre
                   35684:   b_cxx_pre=$php_cxx_pre
                   35685:   b_c_meta=$php_c_meta
                   35686:   b_cxx_meta=$php_cxx_meta
                   35687:   b_c_post=$php_c_post
                   35688:   b_cxx_post=$php_cxx_post
                   35689:   b_lo=$php_lo
                   35690: 
                   35691: 
                   35692:   old_IFS=$IFS
                   35693:   for ac_src in fileinfo.c $libmagic_sources; do
                   35694: 
                   35695:       IFS=.
                   35696:       set $ac_src
                   35697:       ac_obj=$1
                   35698:       IFS=$old_IFS
                   35699: 
                   35700:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   35701: 
                   35702:       case $ac_src in
                   35703:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35704:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35705:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35706:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   35707:       esac
                   35708: 
                   35709:     cat >>Makefile.objects<<EOF
                   35710: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   35711:        $ac_comp
                   35712: EOF
                   35713:   done
                   35714: 
                   35715: 
                   35716:     EXT_STATIC="$EXT_STATIC fileinfo"
                   35717:     if test "$ext_shared" != "nocli"; then
                   35718:       EXT_CLI_STATIC="$EXT_CLI_STATIC fileinfo"
                   35719:     fi
                   35720:   else
                   35721:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   35722:       PHP_FILEINFO_SHARED=yes
                   35723: 
                   35724:   case ext/fileinfo in
                   35725:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   35726:   /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   35727:   *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   35728:   esac
                   35729: 
                   35730: 
                   35731: 
                   35732:   b_c_pre=$shared_c_pre
                   35733:   b_cxx_pre=$shared_cxx_pre
                   35734:   b_c_meta=$shared_c_meta
                   35735:   b_cxx_meta=$shared_cxx_meta
                   35736:   b_c_post=$shared_c_post
                   35737:   b_cxx_post=$shared_cxx_post
                   35738:   b_lo=$shared_lo
                   35739: 
                   35740: 
                   35741:   old_IFS=$IFS
                   35742:   for ac_src in fileinfo.c $libmagic_sources; do
                   35743: 
                   35744:       IFS=.
                   35745:       set $ac_src
                   35746:       ac_obj=$1
                   35747:       IFS=$old_IFS
                   35748: 
                   35749:       shared_objects_fileinfo="$shared_objects_fileinfo $ac_bdir$ac_obj.lo"
                   35750: 
                   35751:       case $ac_src in
                   35752:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35753:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35754:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35755:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   35756:       esac
                   35757: 
                   35758:     cat >>Makefile.objects<<EOF
                   35759: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   35760:        $ac_comp
                   35761: EOF
                   35762:   done
                   35763: 
                   35764:       case $host_alias in
                   35765:         *netware*)
                   35766: 
                   35767:   install_modules="install-modules"
                   35768: 
                   35769:   case $host_alias in
                   35770:     *aix*)
                   35771:       suffix=so
                   35772:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpfileinfo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) $(PHPFILEINFO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpfileinfo.so '$ext_builddir'/phpfileinfo.so'
                   35773:       ;;
                   35774:     *netware*)
                   35775:       suffix=nlm
                   35776:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) -L$(top_builddir)/netware -lphp5lib $(FILEINFO_SHARED_LIBADD)'
                   35777:       ;;
                   35778:     *)
                   35779:       suffix=la
                   35780:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) $(PHPFILEINFO_SHARED_LIBADD)'
                   35781:       ;;
                   35782:   esac
                   35783: 
                   35784:   if test "x" = "xyes"; then
                   35785:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpfileinfo.$suffix"
                   35786:   else
                   35787:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpfileinfo.$suffix"
                   35788:   fi
                   35789: 
                   35790:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_fileinfo"
                   35791: 
                   35792:   cat >>Makefile.objects<<EOF
                   35793: \$(phplibdir)/phpfileinfo.$suffix: $ext_builddir/phpfileinfo.$suffix
                   35794:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpfileinfo.$suffix \$(phplibdir)
                   35795: 
                   35796: $ext_builddir/phpfileinfo.$suffix: \$(shared_objects_fileinfo) \$(PHPFILEINFO_SHARED_DEPENDENCIES)
                   35797:        $link_cmd
                   35798: 
                   35799: EOF
                   35800: 
                   35801:           ;;
                   35802:         *)
                   35803: 
                   35804:   install_modules="install-modules"
                   35805: 
                   35806:   case $host_alias in
                   35807:     *aix*)
                   35808:       suffix=so
                   35809:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/fileinfo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) $(FILEINFO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/fileinfo.so '$ext_builddir'/fileinfo.so'
                   35810:       ;;
                   35811:     *netware*)
                   35812:       suffix=nlm
                   35813:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) -L$(top_builddir)/netware -lphp5lib $(EINFO_SHARED_LIBADD)'
                   35814:       ;;
                   35815:     *)
                   35816:       suffix=la
                   35817:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) $(FILEINFO_SHARED_LIBADD)'
                   35818:       ;;
                   35819:   esac
                   35820: 
                   35821:   if test "x" = "xyes"; then
                   35822:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/fileinfo.$suffix"
                   35823:   else
                   35824:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/fileinfo.$suffix"
                   35825:   fi
                   35826: 
                   35827:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_fileinfo"
                   35828: 
                   35829:   cat >>Makefile.objects<<EOF
                   35830: \$(phplibdir)/fileinfo.$suffix: $ext_builddir/fileinfo.$suffix
                   35831:        \$(LIBTOOL) --mode=install cp $ext_builddir/fileinfo.$suffix \$(phplibdir)
                   35832: 
                   35833: $ext_builddir/fileinfo.$suffix: \$(shared_objects_fileinfo) \$(FILEINFO_SHARED_DEPENDENCIES)
                   35834:        $link_cmd
                   35835: 
                   35836: EOF
                   35837: 
                   35838:           ;;
                   35839:       esac
                   35840: 
                   35841: cat >>confdefs.h <<_ACEOF
                   35842: #define COMPILE_DL_FILEINFO 1
                   35843: _ACEOF
                   35844: 
                   35845:     fi
                   35846:   fi
                   35847: 
                   35848:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   35849:     PHP_FILEINFO_SHARED=no
                   35850: 
                   35851: 
                   35852:   case ext/fileinfo in
                   35853:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   35854:   /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   35855:   *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   35856:   esac
                   35857: 
                   35858: 
                   35859: 
                   35860:   b_c_pre=$php_c_pre
                   35861:   b_cxx_pre=$php_cxx_pre
                   35862:   b_c_meta=$php_c_meta
                   35863:   b_cxx_meta=$php_cxx_meta
                   35864:   b_c_post=$php_c_post
                   35865:   b_cxx_post=$php_cxx_post
                   35866:   b_lo=$php_lo
                   35867: 
                   35868: 
                   35869:   old_IFS=$IFS
                   35870:   for ac_src in fileinfo.c $libmagic_sources; do
                   35871: 
                   35872:       IFS=.
                   35873:       set $ac_src
                   35874:       ac_obj=$1
                   35875:       IFS=$old_IFS
                   35876: 
1.1.1.2 ! misho    35877:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    35878: 
                   35879:       case $ac_src in
                   35880:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35881:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35882:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35883:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   35884:       esac
                   35885: 
                   35886:     cat >>Makefile.objects<<EOF
                   35887: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   35888:        $ac_comp
                   35889: EOF
                   35890:   done
                   35891: 
                   35892: 
                   35893: 
                   35894: 
                   35895:   case ext/fileinfo in
                   35896:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   35897:   /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   35898:   *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   35899:   esac
                   35900: 
                   35901: 
                   35902: 
                   35903:   b_c_pre=$php_c_pre
                   35904:   b_cxx_pre=$php_cxx_pre
                   35905:   b_c_meta=$php_c_meta
                   35906:   b_cxx_meta=$php_cxx_meta
                   35907:   b_c_post=$php_c_post
                   35908:   b_cxx_post=$php_cxx_post
                   35909:   b_lo=$php_lo
                   35910: 
                   35911: 
                   35912:   old_IFS=$IFS
                   35913:   for ac_src in fileinfo.c $libmagic_sources; do
                   35914: 
                   35915:       IFS=.
                   35916:       set $ac_src
                   35917:       ac_obj=$1
                   35918:       IFS=$old_IFS
                   35919: 
1.1.1.2 ! misho    35920:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    35921: 
                   35922:       case $ac_src in
                   35923:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35924:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35925:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35926:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   35927:       esac
                   35928: 
                   35929:     cat >>Makefile.objects<<EOF
                   35930: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   35931:        $ac_comp
                   35932: EOF
                   35933:   done
                   35934: 
                   35935: 
                   35936: 
                   35937: 
                   35938:   case ext/fileinfo in
                   35939:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   35940:   /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   35941:   *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   35942:   esac
                   35943: 
                   35944: 
                   35945: 
                   35946:   b_c_pre=$php_c_pre
                   35947:   b_cxx_pre=$php_cxx_pre
                   35948:   b_c_meta=$php_c_meta
                   35949:   b_cxx_meta=$php_cxx_meta
                   35950:   b_c_post=$php_c_post
                   35951:   b_cxx_post=$php_cxx_post
                   35952:   b_lo=$php_lo
                   35953: 
                   35954: 
                   35955:   old_IFS=$IFS
                   35956:   for ac_src in fileinfo.c $libmagic_sources; do
                   35957: 
                   35958:       IFS=.
                   35959:       set $ac_src
                   35960:       ac_obj=$1
                   35961:       IFS=$old_IFS
                   35962: 
1.1.1.2 ! misho    35963:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    35964: 
                   35965:       case $ac_src in
                   35966:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35967:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35968:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   35969:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   35970:       esac
                   35971: 
                   35972:     cat >>Makefile.objects<<EOF
                   35973: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   35974:        $ac_comp
                   35975: EOF
                   35976:   done
                   35977: 
                   35978: 
                   35979:     EXT_CLI_STATIC="$EXT_CLI_STATIC fileinfo"
                   35980:   fi
                   35981: 
                   35982: 
                   35983:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   35984: 
                   35985: 
                   35986: 
                   35987:   if test "$ext_builddir" = "."; then
                   35988:     PHP_PECL_EXTENSION=fileinfo
                   35989: 
                   35990:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   35991: 
                   35992:   fi
                   35993: 
                   35994: 
                   35995: 
                   35996:     BUILD_DIR="$BUILD_DIR $ext_builddir/libmagic"
                   35997: 
                   35998: 
                   35999: 
                   36000:   for ac_func in utimes strndup
                   36001: do :
                   36002:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   36003: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   36004: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   36005:   cat >>confdefs.h <<_ACEOF
                   36006: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   36007: _ACEOF
                   36008: 
                   36009: fi
                   36010: done
                   36011: 
                   36012: 
                   36013: 
                   36014:   src=$ext_srcdir/Makefile.frag
                   36015:   ac_srcdir=$ext_srcdir
                   36016:   ac_builddir=$ext_builddir
                   36017:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
                   36018: 
                   36019: fi
                   36020: 
                   36021: 
                   36022: 
                   36023: php_enable_filter=yes
                   36024: 
                   36025: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable input filter support" >&5
                   36026: $as_echo_n "checking whether to enable input filter support... " >&6; }
                   36027: # Check whether --enable-filter was given.
                   36028: if test "${enable_filter+set}" = set; then :
                   36029:   enableval=$enable_filter; PHP_FILTER=$enableval
                   36030: else
                   36031: 
                   36032:   PHP_FILTER=yes
                   36033:   test "$PHP_ENABLE_ALL" && PHP_FILTER=$PHP_ENABLE_ALL
                   36034: 
                   36035: fi
                   36036: 
                   36037: 
                   36038: 
                   36039: ext_output="yes, shared"
                   36040: ext_shared=yes
                   36041: case $PHP_FILTER in
                   36042: shared,*)
                   36043:   PHP_FILTER=`echo "$PHP_FILTER"|$SED 's/^shared,//'`
                   36044:   ;;
                   36045: shared)
                   36046:   PHP_FILTER=yes
                   36047:   ;;
                   36048: no)
                   36049:   ext_output=no
                   36050:   ext_shared=no
                   36051:   ;;
                   36052: *)
                   36053:   ext_output=yes
                   36054:   ext_shared=no
                   36055:   ;;
                   36056: esac
                   36057: 
                   36058: 
                   36059: 
                   36060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   36061: $as_echo "$ext_output" >&6; }
                   36062: 
                   36063: 
                   36064: 
                   36065: 
                   36066: 
                   36067: php_with_pcre_dir=no
                   36068: 
                   36069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking pcre install prefix" >&5
                   36070: $as_echo_n "checking pcre install prefix... " >&6; }
                   36071: 
                   36072: # Check whether --with-pcre-dir was given.
                   36073: if test "${with_pcre_dir+set}" = set; then :
                   36074:   withval=$with_pcre_dir; PHP_PCRE_DIR=$withval
                   36075: else
                   36076: 
                   36077:   PHP_PCRE_DIR=no
                   36078: 
                   36079: 
                   36080: fi
                   36081: 
                   36082: 
                   36083: ext_output=$PHP_PCRE_DIR
                   36084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   36085: $as_echo "$ext_output" >&6; }
                   36086: 
                   36087: 
                   36088: 
                   36089: 
                   36090: if test "$PHP_FILTER" != "no"; then
                   36091: 
                   36092:     if test -n "$PHP_VERSION"; then
                   36093:         ext_shared=no
                   36094:   else
                   36095:         old_CPPFLAGS=$CPPFLAGS
                   36096:     CPPFLAGS=$INCLUDES
                   36097:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   36098: /* end confdefs.h.  */
                   36099: 
                   36100: #include <main/php_config.h>
                   36101: #if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
                   36102: yes
                   36103: #endif
                   36104: 
                   36105: _ACEOF
                   36106: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   36107:   $EGREP "yes" >/dev/null 2>&1; then :
                   36108: 
                   36109:       PHP_PCRE_REGEX=yes
                   36110: 
                   36111: else
                   36112: 
                   36113:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   36114: /* end confdefs.h.  */
                   36115: 
                   36116: #include <main/php_config.h>
                   36117: #if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
                   36118: yes
                   36119: #endif
                   36120: 
                   36121: _ACEOF
                   36122: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   36123:   $EGREP "yes" >/dev/null 2>&1; then :
                   36124: 
                   36125:         PHP_PCRE_REGEX=pecl
                   36126: 
                   36127: else
                   36128: 
                   36129:         PHP_PCRE_REGEX=no
                   36130: 
                   36131: fi
                   36132: rm -f conftest*
                   36133: 
                   36134: 
                   36135: fi
                   36136: rm -f conftest*
                   36137: 
                   36138:     CPPFLAGS=$old_CPPFLAGS
                   36139:   fi
                   36140: 
                   36141: 
                   36142:   ext_builddir=ext/filter
                   36143:   ext_srcdir=$abs_srcdir/ext/filter
                   36144: 
                   36145:   ac_extra=
                   36146: 
                   36147:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   36148:     PHP_FILTER_SHARED=no
                   36149: 
                   36150: 
                   36151:   case ext/filter in
                   36152:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   36153:   /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   36154:   *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   36155:   esac
                   36156: 
                   36157: 
                   36158: 
                   36159:   b_c_pre=$php_c_pre
                   36160:   b_cxx_pre=$php_cxx_pre
                   36161:   b_c_meta=$php_c_meta
                   36162:   b_cxx_meta=$php_cxx_meta
                   36163:   b_c_post=$php_c_post
                   36164:   b_cxx_post=$php_cxx_post
                   36165:   b_lo=$php_lo
                   36166: 
                   36167: 
                   36168:   old_IFS=$IFS
                   36169:   for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
                   36170: 
                   36171:       IFS=.
                   36172:       set $ac_src
                   36173:       ac_obj=$1
                   36174:       IFS=$old_IFS
                   36175: 
                   36176:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   36177: 
                   36178:       case $ac_src in
                   36179:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36180:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36181:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36182:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   36183:       esac
                   36184: 
                   36185:     cat >>Makefile.objects<<EOF
                   36186: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   36187:        $ac_comp
                   36188: EOF
                   36189:   done
                   36190: 
                   36191: 
                   36192:     EXT_STATIC="$EXT_STATIC filter"
                   36193:     if test "$ext_shared" != "nocli"; then
                   36194:       EXT_CLI_STATIC="$EXT_CLI_STATIC filter"
                   36195:     fi
                   36196:   else
                   36197:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   36198:       PHP_FILTER_SHARED=yes
                   36199: 
                   36200:   case ext/filter in
                   36201:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   36202:   /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   36203:   *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   36204:   esac
                   36205: 
                   36206: 
                   36207: 
                   36208:   b_c_pre=$shared_c_pre
                   36209:   b_cxx_pre=$shared_cxx_pre
                   36210:   b_c_meta=$shared_c_meta
                   36211:   b_cxx_meta=$shared_cxx_meta
                   36212:   b_c_post=$shared_c_post
                   36213:   b_cxx_post=$shared_cxx_post
                   36214:   b_lo=$shared_lo
                   36215: 
                   36216: 
                   36217:   old_IFS=$IFS
                   36218:   for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
                   36219: 
                   36220:       IFS=.
                   36221:       set $ac_src
                   36222:       ac_obj=$1
                   36223:       IFS=$old_IFS
                   36224: 
                   36225:       shared_objects_filter="$shared_objects_filter $ac_bdir$ac_obj.lo"
                   36226: 
                   36227:       case $ac_src in
                   36228:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36229:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36230:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36231:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   36232:       esac
                   36233: 
                   36234:     cat >>Makefile.objects<<EOF
                   36235: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   36236:        $ac_comp
                   36237: EOF
                   36238:   done
                   36239: 
                   36240:       case $host_alias in
                   36241:         *netware*)
                   36242: 
                   36243:   install_modules="install-modules"
                   36244: 
                   36245:   case $host_alias in
                   36246:     *aix*)
                   36247:       suffix=so
                   36248:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpfilter.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) $(PHPFILTER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpfilter.so '$ext_builddir'/phpfilter.so'
                   36249:       ;;
                   36250:     *netware*)
                   36251:       suffix=nlm
                   36252:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) -L$(top_builddir)/netware -lphp5lib $(FILTER_SHARED_LIBADD)'
                   36253:       ;;
                   36254:     *)
                   36255:       suffix=la
                   36256:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) $(PHPFILTER_SHARED_LIBADD)'
                   36257:       ;;
                   36258:   esac
                   36259: 
                   36260:   if test "x" = "xyes"; then
                   36261:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpfilter.$suffix"
                   36262:   else
                   36263:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpfilter.$suffix"
                   36264:   fi
                   36265: 
                   36266:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_filter"
                   36267: 
                   36268:   cat >>Makefile.objects<<EOF
                   36269: \$(phplibdir)/phpfilter.$suffix: $ext_builddir/phpfilter.$suffix
                   36270:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpfilter.$suffix \$(phplibdir)
                   36271: 
                   36272: $ext_builddir/phpfilter.$suffix: \$(shared_objects_filter) \$(PHPFILTER_SHARED_DEPENDENCIES)
                   36273:        $link_cmd
                   36274: 
                   36275: EOF
                   36276: 
                   36277:           ;;
                   36278:         *)
                   36279: 
                   36280:   install_modules="install-modules"
                   36281: 
                   36282:   case $host_alias in
                   36283:     *aix*)
                   36284:       suffix=so
                   36285:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/filter.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) $(FILTER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/filter.so '$ext_builddir'/filter.so'
                   36286:       ;;
                   36287:     *netware*)
                   36288:       suffix=nlm
                   36289:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) -L$(top_builddir)/netware -lphp5lib $(TER_SHARED_LIBADD)'
                   36290:       ;;
                   36291:     *)
                   36292:       suffix=la
                   36293:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) $(FILTER_SHARED_LIBADD)'
                   36294:       ;;
                   36295:   esac
                   36296: 
                   36297:   if test "x" = "xyes"; then
                   36298:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/filter.$suffix"
                   36299:   else
                   36300:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/filter.$suffix"
                   36301:   fi
                   36302: 
                   36303:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_filter"
                   36304: 
                   36305:   cat >>Makefile.objects<<EOF
                   36306: \$(phplibdir)/filter.$suffix: $ext_builddir/filter.$suffix
                   36307:        \$(LIBTOOL) --mode=install cp $ext_builddir/filter.$suffix \$(phplibdir)
                   36308: 
                   36309: $ext_builddir/filter.$suffix: \$(shared_objects_filter) \$(FILTER_SHARED_DEPENDENCIES)
                   36310:        $link_cmd
                   36311: 
                   36312: EOF
                   36313: 
                   36314:           ;;
                   36315:       esac
                   36316: 
                   36317: cat >>confdefs.h <<_ACEOF
                   36318: #define COMPILE_DL_FILTER 1
                   36319: _ACEOF
                   36320: 
                   36321:     fi
                   36322:   fi
                   36323: 
                   36324:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   36325:     PHP_FILTER_SHARED=no
                   36326: 
                   36327: 
                   36328:   case ext/filter in
                   36329:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   36330:   /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   36331:   *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   36332:   esac
                   36333: 
                   36334: 
                   36335: 
                   36336:   b_c_pre=$php_c_pre
                   36337:   b_cxx_pre=$php_cxx_pre
                   36338:   b_c_meta=$php_c_meta
                   36339:   b_cxx_meta=$php_cxx_meta
                   36340:   b_c_post=$php_c_post
                   36341:   b_cxx_post=$php_cxx_post
                   36342:   b_lo=$php_lo
                   36343: 
                   36344: 
                   36345:   old_IFS=$IFS
                   36346:   for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
                   36347: 
                   36348:       IFS=.
                   36349:       set $ac_src
                   36350:       ac_obj=$1
                   36351:       IFS=$old_IFS
                   36352: 
1.1.1.2 ! misho    36353:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    36354: 
                   36355:       case $ac_src in
                   36356:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36357:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36358:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36359:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   36360:       esac
                   36361: 
                   36362:     cat >>Makefile.objects<<EOF
                   36363: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   36364:        $ac_comp
                   36365: EOF
                   36366:   done
                   36367: 
                   36368: 
                   36369: 
                   36370: 
                   36371:   case ext/filter in
                   36372:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   36373:   /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   36374:   *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   36375:   esac
                   36376: 
                   36377: 
                   36378: 
                   36379:   b_c_pre=$php_c_pre
                   36380:   b_cxx_pre=$php_cxx_pre
                   36381:   b_c_meta=$php_c_meta
                   36382:   b_cxx_meta=$php_cxx_meta
                   36383:   b_c_post=$php_c_post
                   36384:   b_cxx_post=$php_cxx_post
                   36385:   b_lo=$php_lo
                   36386: 
                   36387: 
                   36388:   old_IFS=$IFS
                   36389:   for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
                   36390: 
                   36391:       IFS=.
                   36392:       set $ac_src
                   36393:       ac_obj=$1
                   36394:       IFS=$old_IFS
                   36395: 
1.1.1.2 ! misho    36396:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    36397: 
                   36398:       case $ac_src in
                   36399:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36400:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36401:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36402:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   36403:       esac
                   36404: 
                   36405:     cat >>Makefile.objects<<EOF
                   36406: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   36407:        $ac_comp
                   36408: EOF
                   36409:   done
                   36410: 
                   36411: 
                   36412: 
                   36413: 
                   36414:   case ext/filter in
                   36415:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   36416:   /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   36417:   *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   36418:   esac
                   36419: 
                   36420: 
                   36421: 
                   36422:   b_c_pre=$php_c_pre
                   36423:   b_cxx_pre=$php_cxx_pre
                   36424:   b_c_meta=$php_c_meta
                   36425:   b_cxx_meta=$php_cxx_meta
                   36426:   b_c_post=$php_c_post
                   36427:   b_cxx_post=$php_cxx_post
                   36428:   b_lo=$php_lo
                   36429: 
                   36430: 
                   36431:   old_IFS=$IFS
                   36432:   for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
                   36433: 
                   36434:       IFS=.
                   36435:       set $ac_src
                   36436:       ac_obj=$1
                   36437:       IFS=$old_IFS
                   36438: 
1.1.1.2 ! misho    36439:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    36440: 
                   36441:       case $ac_src in
                   36442:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36443:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36444:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36445:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   36446:       esac
                   36447: 
                   36448:     cat >>Makefile.objects<<EOF
                   36449: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   36450:        $ac_comp
                   36451: EOF
                   36452:   done
                   36453: 
                   36454: 
                   36455:     EXT_CLI_STATIC="$EXT_CLI_STATIC filter"
                   36456:   fi
                   36457: 
                   36458: 
                   36459:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   36460: 
                   36461: 
                   36462: 
                   36463:   if test "$ext_builddir" = "."; then
                   36464:     PHP_PECL_EXTENSION=filter
                   36465: 
                   36466:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   36467: 
                   36468:   fi
                   36469: 
                   36470: 
                   36471:   PHP_VAR_SUBST="$PHP_VAR_SUBST FILTER_SHARED_LIBADD"
                   36472: 
                   36473: 
                   36474: 
                   36475: 
                   36476:     for header_file in ext/filter/php_filter.h; do
                   36477: 
                   36478: 
                   36479:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
                   36480: 
                   36481:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   36482:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   36483:     eval "INSTALLHEADERS$unique=set"
                   36484: 
                   36485:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
                   36486: 
                   36487:   fi
                   36488: 
                   36489:     done
                   36490: 
                   36491: 
                   36492: 
                   36493:   am_i_shared=$PHP_FILTER_SHARED
                   36494:   is_it_shared=$PHP_PCRE_SHARED
                   36495:   is_it_enabled=$PHP_PCRE
                   36496:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   36497:     as_fn_error $? "
                   36498: You've configured extension filter to build statically, but it
                   36499: depends on extension pcre, which you've configured to build shared.
                   36500: You either need to build filter shared or build pcre statically for the
                   36501: build to be successful.
                   36502: " "$LINENO" 5
                   36503:   fi
                   36504: 
                   36505: fi
                   36506: 
                   36507: 
                   36508: 
                   36509: php_enable_ftp=no
                   36510: 
                   36511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FTP support" >&5
                   36512: $as_echo_n "checking whether to enable FTP support... " >&6; }
                   36513: # Check whether --enable-ftp was given.
                   36514: if test "${enable_ftp+set}" = set; then :
                   36515:   enableval=$enable_ftp; PHP_FTP=$enableval
                   36516: else
                   36517: 
                   36518:   PHP_FTP=no
                   36519:   test "$PHP_ENABLE_ALL" && PHP_FTP=$PHP_ENABLE_ALL
                   36520: 
                   36521: fi
                   36522: 
                   36523: 
                   36524: 
                   36525: ext_output="yes, shared"
                   36526: ext_shared=yes
                   36527: case $PHP_FTP in
                   36528: shared,*)
                   36529:   PHP_FTP=`echo "$PHP_FTP"|$SED 's/^shared,//'`
                   36530:   ;;
                   36531: shared)
                   36532:   PHP_FTP=yes
                   36533:   ;;
                   36534: no)
                   36535:   ext_output=no
                   36536:   ext_shared=no
                   36537:   ;;
                   36538: *)
                   36539:   ext_output=yes
                   36540:   ext_shared=no
                   36541:   ;;
                   36542: esac
                   36543: 
                   36544: 
                   36545: 
                   36546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   36547: $as_echo "$ext_output" >&6; }
                   36548: 
                   36549: 
                   36550: 
                   36551: 
                   36552: 
                   36553: php_with_openssl_dir=no
                   36554: 
                   36555: { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for FTP" >&5
                   36556: $as_echo_n "checking OpenSSL dir for FTP... " >&6; }
                   36557: 
                   36558: # Check whether --with-openssl-dir was given.
                   36559: if test "${with_openssl_dir+set}" = set; then :
                   36560:   withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval
                   36561: else
                   36562: 
                   36563:   PHP_OPENSSL_DIR=no
                   36564: 
                   36565: 
                   36566: fi
                   36567: 
                   36568: 
                   36569: ext_output=$PHP_OPENSSL_DIR
                   36570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   36571: $as_echo "$ext_output" >&6; }
                   36572: 
                   36573: 
                   36574: 
                   36575: 
                   36576: if test "$PHP_FTP" = "yes"; then
                   36577: 
                   36578: $as_echo "#define HAVE_FTP 1" >>confdefs.h
                   36579: 
                   36580: 
                   36581:   ext_builddir=ext/ftp
                   36582:   ext_srcdir=$abs_srcdir/ext/ftp
                   36583: 
                   36584:   ac_extra=
                   36585: 
                   36586:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   36587:     PHP_FTP_SHARED=no
                   36588: 
                   36589: 
                   36590:   case ext/ftp in
                   36591:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   36592:   /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   36593:   *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   36594:   esac
                   36595: 
                   36596: 
                   36597: 
                   36598:   b_c_pre=$php_c_pre
                   36599:   b_cxx_pre=$php_cxx_pre
                   36600:   b_c_meta=$php_c_meta
                   36601:   b_cxx_meta=$php_cxx_meta
                   36602:   b_c_post=$php_c_post
                   36603:   b_cxx_post=$php_cxx_post
                   36604:   b_lo=$php_lo
                   36605: 
                   36606: 
                   36607:   old_IFS=$IFS
                   36608:   for ac_src in php_ftp.c ftp.c; do
                   36609: 
                   36610:       IFS=.
                   36611:       set $ac_src
                   36612:       ac_obj=$1
                   36613:       IFS=$old_IFS
                   36614: 
                   36615:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   36616: 
                   36617:       case $ac_src in
                   36618:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36619:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36620:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36621:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   36622:       esac
                   36623: 
                   36624:     cat >>Makefile.objects<<EOF
                   36625: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   36626:        $ac_comp
                   36627: EOF
                   36628:   done
                   36629: 
                   36630: 
                   36631:     EXT_STATIC="$EXT_STATIC ftp"
                   36632:     if test "$ext_shared" != "nocli"; then
                   36633:       EXT_CLI_STATIC="$EXT_CLI_STATIC ftp"
                   36634:     fi
                   36635:   else
                   36636:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   36637:       PHP_FTP_SHARED=yes
                   36638: 
                   36639:   case ext/ftp in
                   36640:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   36641:   /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   36642:   *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   36643:   esac
                   36644: 
                   36645: 
                   36646: 
                   36647:   b_c_pre=$shared_c_pre
                   36648:   b_cxx_pre=$shared_cxx_pre
                   36649:   b_c_meta=$shared_c_meta
                   36650:   b_cxx_meta=$shared_cxx_meta
                   36651:   b_c_post=$shared_c_post
                   36652:   b_cxx_post=$shared_cxx_post
                   36653:   b_lo=$shared_lo
                   36654: 
                   36655: 
                   36656:   old_IFS=$IFS
                   36657:   for ac_src in php_ftp.c ftp.c; do
                   36658: 
                   36659:       IFS=.
                   36660:       set $ac_src
                   36661:       ac_obj=$1
                   36662:       IFS=$old_IFS
                   36663: 
                   36664:       shared_objects_ftp="$shared_objects_ftp $ac_bdir$ac_obj.lo"
                   36665: 
                   36666:       case $ac_src in
                   36667:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36668:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36669:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36670:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   36671:       esac
                   36672: 
                   36673:     cat >>Makefile.objects<<EOF
                   36674: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   36675:        $ac_comp
                   36676: EOF
                   36677:   done
                   36678: 
                   36679:       case $host_alias in
                   36680:         *netware*)
                   36681: 
                   36682:   install_modules="install-modules"
                   36683: 
                   36684:   case $host_alias in
                   36685:     *aix*)
                   36686:       suffix=so
                   36687:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpftp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) $(PHPFTP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpftp.so '$ext_builddir'/phpftp.so'
                   36688:       ;;
                   36689:     *netware*)
                   36690:       suffix=nlm
                   36691:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) -L$(top_builddir)/netware -lphp5lib $(FTP_SHARED_LIBADD)'
                   36692:       ;;
                   36693:     *)
                   36694:       suffix=la
                   36695:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) $(PHPFTP_SHARED_LIBADD)'
                   36696:       ;;
                   36697:   esac
                   36698: 
                   36699:   if test "x" = "xyes"; then
                   36700:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpftp.$suffix"
                   36701:   else
                   36702:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpftp.$suffix"
                   36703:   fi
                   36704: 
                   36705:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ftp"
                   36706: 
                   36707:   cat >>Makefile.objects<<EOF
                   36708: \$(phplibdir)/phpftp.$suffix: $ext_builddir/phpftp.$suffix
                   36709:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpftp.$suffix \$(phplibdir)
                   36710: 
                   36711: $ext_builddir/phpftp.$suffix: \$(shared_objects_ftp) \$(PHPFTP_SHARED_DEPENDENCIES)
                   36712:        $link_cmd
                   36713: 
                   36714: EOF
                   36715: 
                   36716:           ;;
                   36717:         *)
                   36718: 
                   36719:   install_modules="install-modules"
                   36720: 
                   36721:   case $host_alias in
                   36722:     *aix*)
                   36723:       suffix=so
                   36724:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/ftp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) $(FTP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/ftp.so '$ext_builddir'/ftp.so'
                   36725:       ;;
                   36726:     *netware*)
                   36727:       suffix=nlm
                   36728:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
                   36729:       ;;
                   36730:     *)
                   36731:       suffix=la
                   36732:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) $(FTP_SHARED_LIBADD)'
                   36733:       ;;
                   36734:   esac
                   36735: 
                   36736:   if test "x" = "xyes"; then
                   36737:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ftp.$suffix"
                   36738:   else
                   36739:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/ftp.$suffix"
                   36740:   fi
                   36741: 
                   36742:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ftp"
                   36743: 
                   36744:   cat >>Makefile.objects<<EOF
                   36745: \$(phplibdir)/ftp.$suffix: $ext_builddir/ftp.$suffix
                   36746:        \$(LIBTOOL) --mode=install cp $ext_builddir/ftp.$suffix \$(phplibdir)
                   36747: 
                   36748: $ext_builddir/ftp.$suffix: \$(shared_objects_ftp) \$(FTP_SHARED_DEPENDENCIES)
                   36749:        $link_cmd
                   36750: 
                   36751: EOF
                   36752: 
                   36753:           ;;
                   36754:       esac
                   36755: 
                   36756: cat >>confdefs.h <<_ACEOF
                   36757: #define COMPILE_DL_FTP 1
                   36758: _ACEOF
                   36759: 
                   36760:     fi
                   36761:   fi
                   36762: 
                   36763:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   36764:     PHP_FTP_SHARED=no
                   36765: 
                   36766: 
                   36767:   case ext/ftp in
                   36768:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   36769:   /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   36770:   *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   36771:   esac
                   36772: 
                   36773: 
                   36774: 
                   36775:   b_c_pre=$php_c_pre
                   36776:   b_cxx_pre=$php_cxx_pre
                   36777:   b_c_meta=$php_c_meta
                   36778:   b_cxx_meta=$php_cxx_meta
                   36779:   b_c_post=$php_c_post
                   36780:   b_cxx_post=$php_cxx_post
                   36781:   b_lo=$php_lo
                   36782: 
                   36783: 
                   36784:   old_IFS=$IFS
                   36785:   for ac_src in php_ftp.c ftp.c; do
                   36786: 
                   36787:       IFS=.
                   36788:       set $ac_src
                   36789:       ac_obj=$1
                   36790:       IFS=$old_IFS
                   36791: 
1.1.1.2 ! misho    36792:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    36793: 
                   36794:       case $ac_src in
                   36795:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36796:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36797:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36798:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   36799:       esac
                   36800: 
                   36801:     cat >>Makefile.objects<<EOF
                   36802: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   36803:        $ac_comp
                   36804: EOF
                   36805:   done
                   36806: 
                   36807: 
                   36808: 
                   36809: 
                   36810:   case ext/ftp in
                   36811:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   36812:   /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   36813:   *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   36814:   esac
                   36815: 
                   36816: 
                   36817: 
                   36818:   b_c_pre=$php_c_pre
                   36819:   b_cxx_pre=$php_cxx_pre
                   36820:   b_c_meta=$php_c_meta
                   36821:   b_cxx_meta=$php_cxx_meta
                   36822:   b_c_post=$php_c_post
                   36823:   b_cxx_post=$php_cxx_post
                   36824:   b_lo=$php_lo
                   36825: 
                   36826: 
                   36827:   old_IFS=$IFS
                   36828:   for ac_src in php_ftp.c ftp.c; do
                   36829: 
                   36830:       IFS=.
                   36831:       set $ac_src
                   36832:       ac_obj=$1
                   36833:       IFS=$old_IFS
                   36834: 
1.1.1.2 ! misho    36835:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    36836: 
                   36837:       case $ac_src in
                   36838:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36839:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36840:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36841:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   36842:       esac
                   36843: 
                   36844:     cat >>Makefile.objects<<EOF
                   36845: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   36846:        $ac_comp
                   36847: EOF
                   36848:   done
                   36849: 
                   36850: 
                   36851: 
                   36852: 
                   36853:   case ext/ftp in
                   36854:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   36855:   /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   36856:   *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   36857:   esac
                   36858: 
                   36859: 
                   36860: 
                   36861:   b_c_pre=$php_c_pre
                   36862:   b_cxx_pre=$php_cxx_pre
                   36863:   b_c_meta=$php_c_meta
                   36864:   b_cxx_meta=$php_cxx_meta
                   36865:   b_c_post=$php_c_post
                   36866:   b_cxx_post=$php_cxx_post
                   36867:   b_lo=$php_lo
                   36868: 
                   36869: 
                   36870:   old_IFS=$IFS
                   36871:   for ac_src in php_ftp.c ftp.c; do
                   36872: 
                   36873:       IFS=.
                   36874:       set $ac_src
                   36875:       ac_obj=$1
                   36876:       IFS=$old_IFS
                   36877: 
1.1.1.2 ! misho    36878:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    36879: 
                   36880:       case $ac_src in
                   36881:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36882:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36883:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   36884:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   36885:       esac
                   36886: 
                   36887:     cat >>Makefile.objects<<EOF
                   36888: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   36889:        $ac_comp
                   36890: EOF
                   36891:   done
                   36892: 
                   36893: 
                   36894:     EXT_CLI_STATIC="$EXT_CLI_STATIC ftp"
                   36895:   fi
                   36896: 
                   36897: 
                   36898:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   36899: 
                   36900: 
                   36901: 
                   36902:   if test "$ext_builddir" = "."; then
                   36903:     PHP_PECL_EXTENSION=ftp
                   36904: 
                   36905:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   36906: 
                   36907:   fi
                   36908: 
                   36909: 
                   36910:     test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
                   36911: 
                   36912:   if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then
                   36913: 
                   36914:   found_openssl=no
                   36915:   unset OPENSSL_INCDIR
                   36916:   unset OPENSSL_LIBDIR
                   36917: 
                   36918:     test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
                   36919:   test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
                   36920: 
                   36921:     if test -n "$PHP_OPENSSL" && test "$PHP_OPENSSL" != "no"; then
                   36922:     PHP_OPENSSL_DIR=$PHP_OPENSSL
                   36923:   elif test -n "$PHP_IMAP_SSL" && test "$PHP_IMAP_SSL" != "no"; then
                   36924:     PHP_OPENSSL_DIR=$PHP_IMAP_SSL
                   36925:   fi
                   36926: 
                   36927:     if test -z "$PKG_CONFIG"; then
                   36928:     # Extract the first word of "pkg-config", so it can be a program name with args.
                   36929: set dummy pkg-config; ac_word=$2
                   36930: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   36931: $as_echo_n "checking for $ac_word... " >&6; }
                   36932: if ${ac_cv_path_PKG_CONFIG+:} false; then :
                   36933:   $as_echo_n "(cached) " >&6
                   36934: else
                   36935:   case $PKG_CONFIG in
                   36936:   [\\/]* | ?:[\\/]*)
                   36937:   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
                   36938:   ;;
                   36939:   *)
                   36940:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   36941: for as_dir in $PATH
                   36942: do
                   36943:   IFS=$as_save_IFS
                   36944:   test -z "$as_dir" && as_dir=.
                   36945:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    36946:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    36947:     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
                   36948:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   36949:     break 2
                   36950:   fi
                   36951: done
                   36952:   done
                   36953: IFS=$as_save_IFS
                   36954: 
                   36955:   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
                   36956:   ;;
                   36957: esac
                   36958: fi
                   36959: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
                   36960: if test -n "$PKG_CONFIG"; then
                   36961:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
                   36962: $as_echo "$PKG_CONFIG" >&6; }
                   36963: else
                   36964:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   36965: $as_echo "no" >&6; }
                   36966: fi
                   36967: 
                   36968: 
                   36969:   fi
                   36970: 
                   36971:     if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
                   36972:     if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
                   36973:       found_openssl=yes
                   36974:       OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
                   36975:       OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
                   36976:       OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
                   36977:     else
                   36978:       as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
                   36979:     fi
                   36980: 
                   36981:     if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then
                   36982: 
                   36983:   for ac_i in $OPENSSL_LIBS; do
                   36984:     case $ac_i in
                   36985:     -pthread)
                   36986:       if test "$ext_shared" = "yes"; then
                   36987:         FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -pthread"
                   36988:       else
                   36989: 
                   36990: 
                   36991:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   36992: 
                   36993:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   36994:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   36995:     eval "EXTRA_LDFLAGS$unique=set"
                   36996:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   36997:   fi
                   36998: 
                   36999:       fi
                   37000:     ;;
                   37001:     -l*)
                   37002:       ac_ii=`echo $ac_i|cut -c 3-`
                   37003: 
                   37004: 
                   37005:   case $ac_ii in
                   37006:   c|c_r|pthread*) ;;
                   37007:   *)
                   37008:     if test "$ext_shared" = "yes"; then
                   37009:         FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -l$ac_ii"
                   37010:     else
                   37011: 
                   37012: 
                   37013:   case $ac_ii in
                   37014:   c|c_r|pthread*) ;;
                   37015:   *)
                   37016:       LIBS="$LIBS -l$ac_ii"
                   37017:    ;;
                   37018:   esac
                   37019: 
                   37020: 
                   37021:     fi
                   37022:    ;;
                   37023:   esac
                   37024: 
                   37025: 
                   37026:     ;;
                   37027:     -L*)
                   37028:       ac_ii=`echo $ac_i|cut -c 3-`
                   37029: 
                   37030:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   37031: 
                   37032:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   37033:     ai_p=$ac_ii
                   37034:   else
                   37035: 
                   37036:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   37037: 
                   37038:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   37039:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   37040:   fi
                   37041: 
                   37042: 
                   37043:       if test "$ext_shared" = "yes"; then
                   37044:         FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD"
                   37045:         test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD"
                   37046:       else
                   37047: 
                   37048: 
                   37049: 
                   37050:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   37051: 
                   37052:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   37053:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   37054:     eval "LIBPATH$unique=set"
                   37055: 
                   37056:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   37057:     LDFLAGS="$LDFLAGS -L$ai_p"
                   37058:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   37059: 
                   37060:   fi
                   37061: 
                   37062: 
                   37063:       fi
                   37064: 
                   37065:   fi
                   37066: 
                   37067:     ;;
                   37068:     esac
                   37069:   done
                   37070: 
                   37071: 
                   37072:   for ac_i in $OPENSSL_INCS; do
                   37073:     case $ac_i in
                   37074:     -I*)
                   37075:       ac_ii=`echo $ac_i|cut -c 3-`
                   37076: 
                   37077:   if test "$ac_ii" != "/usr/include"; then
                   37078: 
                   37079:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   37080:     ai_p=$ac_ii
                   37081:   else
                   37082: 
                   37083:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   37084: 
                   37085:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   37086:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   37087:   fi
                   37088: 
                   37089: 
                   37090: 
                   37091:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   37092: 
                   37093:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   37094:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   37095:     eval "INCLUDEPATH$unique=set"
                   37096: 
                   37097:       if test ""; then
                   37098:         INCLUDES="-I$ai_p $INCLUDES"
                   37099:       else
                   37100:         INCLUDES="$INCLUDES -I$ai_p"
                   37101:       fi
                   37102: 
                   37103:   fi
                   37104: 
                   37105:   fi
                   37106: 
                   37107:     ;;
                   37108:     esac
                   37109:   done
                   37110: 
                   37111:     fi
                   37112:   fi
                   37113: 
                   37114:     if test "$found_openssl" = "no"; then
                   37115: 
                   37116:     if test "$PHP_OPENSSL_DIR" = "yes"; then
                   37117:       PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
                   37118:     fi
                   37119: 
                   37120:     for i in $PHP_OPENSSL_DIR; do
                   37121:       if test -r $i/include/openssl/evp.h; then
                   37122:         OPENSSL_INCDIR=$i/include
                   37123:       fi
                   37124:       if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
                   37125:         OPENSSL_LIBDIR=$i/$PHP_LIBDIR
                   37126:       fi
                   37127:       test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
                   37128:     done
                   37129: 
                   37130:     if test -z "$OPENSSL_INCDIR"; then
                   37131:       as_fn_error $? "Cannot find OpenSSL's <evp.h>" "$LINENO" 5
                   37132:     fi
                   37133: 
                   37134:     if test -z "$OPENSSL_LIBDIR"; then
                   37135:       as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5
                   37136:     fi
                   37137: 
                   37138:     old_CPPFLAGS=$CPPFLAGS
                   37139:     CPPFLAGS=-I$OPENSSL_INCDIR
                   37140:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
                   37141: $as_echo_n "checking for OpenSSL version... " >&6; }
                   37142:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   37143: /* end confdefs.h.  */
                   37144: 
                   37145: #include <openssl/opensslv.h>
                   37146: #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
                   37147:   yes
                   37148: #endif
                   37149: 
                   37150: _ACEOF
                   37151: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   37152:   $EGREP "yes" >/dev/null 2>&1; then :
                   37153: 
                   37154:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5
                   37155: $as_echo ">= 0.9.6" >&6; }
                   37156: 
                   37157: else
                   37158: 
                   37159:       as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
                   37160: 
                   37161: fi
                   37162: rm -f conftest*
                   37163: 
                   37164:     CPPFLAGS=$old_CPPFLAGS
                   37165: 
                   37166: 
                   37167:   if test "$OPENSSL_INCDIR" != "/usr/include"; then
                   37168: 
                   37169:   if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
                   37170:     ai_p=$OPENSSL_INCDIR
                   37171:   else
                   37172: 
                   37173:     ep_dir="`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   37174: 
                   37175:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   37176:     ai_p="$ep_realdir/`basename \"$OPENSSL_INCDIR\"`"
                   37177:   fi
                   37178: 
                   37179: 
                   37180: 
                   37181:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   37182: 
                   37183:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   37184:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   37185:     eval "INCLUDEPATH$unique=set"
                   37186: 
                   37187:       if test ""; then
                   37188:         INCLUDES="-I$ai_p $INCLUDES"
                   37189:       else
                   37190:         INCLUDES="$INCLUDES -I$ai_p"
                   37191:       fi
                   37192: 
                   37193:   fi
                   37194: 
                   37195:   fi
                   37196: 
                   37197: 
                   37198: 
                   37199:   save_old_LDFLAGS=$LDFLAGS
                   37200:   ac_stuff="
                   37201:       -L$OPENSSL_LIBDIR
                   37202:     "
                   37203: 
                   37204:   save_ext_shared=$ext_shared
                   37205:   ext_shared=yes
                   37206: 
                   37207:   for ac_i in $ac_stuff; do
                   37208:     case $ac_i in
                   37209:     -pthread)
                   37210:       if test "$ext_shared" = "yes"; then
                   37211:         LDFLAGS="$LDFLAGS -pthread"
                   37212:       else
                   37213: 
                   37214: 
                   37215:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   37216: 
                   37217:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   37218:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   37219:     eval "EXTRA_LDFLAGS$unique=set"
                   37220:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   37221:   fi
                   37222: 
                   37223:       fi
                   37224:     ;;
                   37225:     -l*)
                   37226:       ac_ii=`echo $ac_i|cut -c 3-`
                   37227: 
                   37228: 
                   37229:   case $ac_ii in
                   37230:   c|c_r|pthread*) ;;
                   37231:   *)
                   37232:     if test "$ext_shared" = "yes"; then
                   37233:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   37234:     else
                   37235: 
                   37236: 
                   37237:   case $ac_ii in
                   37238:   c|c_r|pthread*) ;;
                   37239:   *)
                   37240:       LIBS="$LIBS -l$ac_ii"
                   37241:    ;;
                   37242:   esac
                   37243: 
                   37244: 
                   37245:     fi
                   37246:    ;;
                   37247:   esac
                   37248: 
                   37249: 
                   37250:     ;;
                   37251:     -L*)
                   37252:       ac_ii=`echo $ac_i|cut -c 3-`
                   37253: 
                   37254:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   37255: 
                   37256:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   37257:     ai_p=$ac_ii
                   37258:   else
                   37259: 
                   37260:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   37261: 
                   37262:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   37263:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   37264:   fi
                   37265: 
                   37266: 
                   37267:       if test "$ext_shared" = "yes"; then
                   37268:         LDFLAGS="-L$ai_p $LDFLAGS"
                   37269:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   37270:       else
                   37271: 
                   37272: 
                   37273: 
                   37274:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   37275: 
                   37276:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   37277:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   37278:     eval "LIBPATH$unique=set"
                   37279: 
                   37280:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   37281:     LDFLAGS="$LDFLAGS -L$ai_p"
                   37282:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   37283: 
                   37284:   fi
                   37285: 
                   37286: 
                   37287:       fi
                   37288: 
                   37289:   fi
                   37290: 
                   37291:     ;;
                   37292:     esac
                   37293:   done
                   37294: 
                   37295:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5
                   37296: $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
                   37297: if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then :
                   37298:   $as_echo_n "(cached) " >&6
                   37299: else
                   37300:   ac_check_lib_save_LIBS=$LIBS
                   37301: LIBS="-lcrypto  $LIBS"
                   37302: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   37303: /* end confdefs.h.  */
                   37304: 
                   37305: /* Override any GCC internal prototype to avoid an error.
                   37306:    Use char because int might match the return type of a GCC
                   37307:    builtin and then its argument prototype would still apply.  */
                   37308: #ifdef __cplusplus
                   37309: extern "C"
                   37310: #endif
                   37311: char CRYPTO_free ();
                   37312: int
                   37313: main ()
                   37314: {
                   37315: return CRYPTO_free ();
                   37316:   ;
                   37317:   return 0;
                   37318: }
                   37319: _ACEOF
                   37320: if ac_fn_c_try_link "$LINENO"; then :
                   37321:   ac_cv_lib_crypto_CRYPTO_free=yes
                   37322: else
                   37323:   ac_cv_lib_crypto_CRYPTO_free=no
                   37324: fi
                   37325: rm -f core conftest.err conftest.$ac_objext \
                   37326:     conftest$ac_exeext conftest.$ac_ext
                   37327: LIBS=$ac_check_lib_save_LIBS
                   37328: fi
                   37329: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
                   37330: $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
                   37331: if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then :
                   37332: 
                   37333:     LDFLAGS=$save_old_LDFLAGS
                   37334:     ext_shared=$save_ext_shared
                   37335: 
                   37336: 
                   37337: 
                   37338:   case crypto in
                   37339:   c|c_r|pthread*) ;;
                   37340:   *)
                   37341:     if test "$ext_shared" = "yes"; then
                   37342:         FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD"
                   37343:     else
                   37344: 
                   37345: 
                   37346:   case crypto in
                   37347:   c|c_r|pthread*) ;;
                   37348:   *)
                   37349:       LIBS="-lcrypto $LIBS"
                   37350:    ;;
                   37351:   esac
                   37352: 
                   37353: 
                   37354:     fi
                   37355:    ;;
                   37356:   esac
                   37357: 
                   37358: 
                   37359: 
                   37360: 
                   37361: else
                   37362: 
                   37363:     LDFLAGS=$save_old_LDFLAGS
                   37364:     ext_shared=$save_ext_shared
                   37365:     unset ac_cv_lib_crypto_CRYPTO_free
                   37366: 
                   37367:       as_fn_error $? "libcrypto not found!" "$LINENO" 5
                   37368: 
                   37369: 
                   37370: fi
                   37371: 
                   37372: 
                   37373:     old_LIBS=$LIBS
                   37374:     LIBS="$LIBS -lcrypto"
                   37375: 
                   37376:   save_old_LDFLAGS=$LDFLAGS
                   37377:   ac_stuff="
                   37378:       -L$OPENSSL_LIBDIR
                   37379:     "
                   37380: 
                   37381:   save_ext_shared=$ext_shared
                   37382:   ext_shared=yes
                   37383: 
                   37384:   for ac_i in $ac_stuff; do
                   37385:     case $ac_i in
                   37386:     -pthread)
                   37387:       if test "$ext_shared" = "yes"; then
                   37388:         LDFLAGS="$LDFLAGS -pthread"
                   37389:       else
                   37390: 
                   37391: 
                   37392:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   37393: 
                   37394:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   37395:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   37396:     eval "EXTRA_LDFLAGS$unique=set"
                   37397:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   37398:   fi
                   37399: 
                   37400:       fi
                   37401:     ;;
                   37402:     -l*)
                   37403:       ac_ii=`echo $ac_i|cut -c 3-`
                   37404: 
                   37405: 
                   37406:   case $ac_ii in
                   37407:   c|c_r|pthread*) ;;
                   37408:   *)
                   37409:     if test "$ext_shared" = "yes"; then
                   37410:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   37411:     else
                   37412: 
                   37413: 
                   37414:   case $ac_ii in
                   37415:   c|c_r|pthread*) ;;
                   37416:   *)
                   37417:       LIBS="$LIBS -l$ac_ii"
                   37418:    ;;
                   37419:   esac
                   37420: 
                   37421: 
                   37422:     fi
                   37423:    ;;
                   37424:   esac
                   37425: 
                   37426: 
                   37427:     ;;
                   37428:     -L*)
                   37429:       ac_ii=`echo $ac_i|cut -c 3-`
                   37430: 
                   37431:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   37432: 
                   37433:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   37434:     ai_p=$ac_ii
                   37435:   else
                   37436: 
                   37437:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   37438: 
                   37439:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   37440:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   37441:   fi
                   37442: 
                   37443: 
                   37444:       if test "$ext_shared" = "yes"; then
                   37445:         LDFLAGS="-L$ai_p $LDFLAGS"
                   37446:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   37447:       else
                   37448: 
                   37449: 
                   37450: 
                   37451:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   37452: 
                   37453:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   37454:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   37455:     eval "LIBPATH$unique=set"
                   37456: 
                   37457:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   37458:     LDFLAGS="$LDFLAGS -L$ai_p"
                   37459:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   37460: 
                   37461:   fi
                   37462: 
                   37463: 
                   37464:       fi
                   37465: 
                   37466:   fi
                   37467: 
                   37468:     ;;
                   37469:     esac
                   37470:   done
                   37471: 
                   37472:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5
                   37473: $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
                   37474: if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then :
                   37475:   $as_echo_n "(cached) " >&6
                   37476: else
                   37477:   ac_check_lib_save_LIBS=$LIBS
                   37478: LIBS="-lssl  $LIBS"
                   37479: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   37480: /* end confdefs.h.  */
                   37481: 
                   37482: /* Override any GCC internal prototype to avoid an error.
                   37483:    Use char because int might match the return type of a GCC
                   37484:    builtin and then its argument prototype would still apply.  */
                   37485: #ifdef __cplusplus
                   37486: extern "C"
                   37487: #endif
                   37488: char SSL_CTX_set_ssl_version ();
                   37489: int
                   37490: main ()
                   37491: {
                   37492: return SSL_CTX_set_ssl_version ();
                   37493:   ;
                   37494:   return 0;
                   37495: }
                   37496: _ACEOF
                   37497: if ac_fn_c_try_link "$LINENO"; then :
                   37498:   ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
                   37499: else
                   37500:   ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
                   37501: fi
                   37502: rm -f core conftest.err conftest.$ac_objext \
                   37503:     conftest$ac_exeext conftest.$ac_ext
                   37504: LIBS=$ac_check_lib_save_LIBS
                   37505: fi
                   37506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
                   37507: $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
                   37508: if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then :
                   37509: 
                   37510:     LDFLAGS=$save_old_LDFLAGS
                   37511:     ext_shared=$save_ext_shared
                   37512: 
                   37513:       found_openssl=yes
                   37514: 
                   37515: 
                   37516: else
                   37517: 
                   37518:     LDFLAGS=$save_old_LDFLAGS
                   37519:     ext_shared=$save_ext_shared
                   37520:     unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
                   37521: 
                   37522:       as_fn_error $? "libssl not found!" "$LINENO" 5
                   37523: 
                   37524: 
                   37525: fi
                   37526: 
                   37527:     LIBS=$old_LIBS
                   37528: 
                   37529: 
                   37530:   case ssl in
                   37531:   c|c_r|pthread*) ;;
                   37532:   *)
                   37533:     if test "$ext_shared" = "yes"; then
                   37534:         FTP_SHARED_LIBADD="-lssl $FTP_SHARED_LIBADD"
                   37535:     else
                   37536: 
                   37537: 
                   37538:   case ssl in
                   37539:   c|c_r|pthread*) ;;
                   37540:   *)
                   37541:       LIBS="-lssl $LIBS"
                   37542:    ;;
                   37543:   esac
                   37544: 
                   37545: 
                   37546:     fi
                   37547:    ;;
                   37548:   esac
                   37549: 
                   37550: 
                   37551: 
                   37552: 
                   37553:   case crypto in
                   37554:   c|c_r|pthread*) ;;
                   37555:   *)
                   37556:     if test "$ext_shared" = "yes"; then
                   37557:         FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD"
                   37558:     else
                   37559: 
                   37560: 
                   37561:   case crypto in
                   37562:   c|c_r|pthread*) ;;
                   37563:   *)
                   37564:       LIBS="-lcrypto $LIBS"
                   37565:    ;;
                   37566:   esac
                   37567: 
                   37568: 
                   37569:     fi
                   37570:    ;;
                   37571:   esac
                   37572: 
                   37573: 
                   37574: 
                   37575: 
                   37576:   if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
                   37577: 
                   37578:   if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
                   37579:     ai_p=$OPENSSL_LIBDIR
                   37580:   else
                   37581: 
                   37582:     ep_dir="`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   37583: 
                   37584:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   37585:     ai_p="$ep_realdir/`basename \"$OPENSSL_LIBDIR\"`"
                   37586:   fi
                   37587: 
                   37588: 
                   37589:       if test "$ext_shared" = "yes"; then
                   37590:         FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD"
                   37591:         test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD"
                   37592:       else
                   37593: 
                   37594: 
                   37595: 
                   37596:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   37597: 
                   37598:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   37599:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   37600:     eval "LIBPATH$unique=set"
                   37601: 
                   37602:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   37603:     LDFLAGS="$LDFLAGS -L$ai_p"
                   37604:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   37605: 
                   37606:   fi
                   37607: 
                   37608: 
                   37609:       fi
                   37610: 
                   37611:   fi
                   37612: 
                   37613:   fi
                   37614: 
                   37615:   if test "$found_openssl" = "yes"; then
                   37616:     OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
                   37617: 
                   37618: 
                   37619: :
                   37620: 
                   37621:   fi
                   37622: 
                   37623: 
                   37624:   PHP_VAR_SUBST="$PHP_VAR_SUBST FTP_SHARED_LIBADD"
                   37625: 
                   37626:   fi
                   37627: fi
                   37628: 
                   37629: 
                   37630: 
                   37631: 
                   37632: php_with_gd=no
                   37633: 
                   37634: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GD support" >&5
                   37635: $as_echo_n "checking for GD support... " >&6; }
                   37636: 
                   37637: # Check whether --with-gd was given.
                   37638: if test "${with_gd+set}" = set; then :
                   37639:   withval=$with_gd; PHP_GD=$withval
                   37640: else
                   37641: 
                   37642:   PHP_GD=no
                   37643:   test "$PHP_ENABLE_ALL" && PHP_GD=$PHP_ENABLE_ALL
                   37644: 
                   37645: fi
                   37646: 
                   37647: 
                   37648: 
                   37649: ext_output="yes, shared"
                   37650: ext_shared=yes
                   37651: case $PHP_GD in
                   37652: shared,*)
                   37653:   PHP_GD=`echo "$PHP_GD"|$SED 's/^shared,//'`
                   37654:   ;;
                   37655: shared)
                   37656:   PHP_GD=yes
                   37657:   ;;
                   37658: no)
                   37659:   ext_output=no
                   37660:   ext_shared=no
                   37661:   ;;
                   37662: *)
                   37663:   ext_output=yes
                   37664:   ext_shared=no
                   37665:   ;;
                   37666: esac
                   37667: 
                   37668: 
                   37669: 
                   37670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   37671: $as_echo "$ext_output" >&6; }
                   37672: 
                   37673: 
                   37674: 
                   37675: 
1.1.1.2 ! misho    37676: if test -z "$PHP_VPX_DIR"; then
        !          37677: 
        !          37678: php_with_vpx_dir=no
        !          37679: 
        !          37680: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libvpx" >&5
        !          37681: $as_echo_n "checking for the location of libvpx... " >&6; }
        !          37682: 
        !          37683: # Check whether --with-vpx-dir was given.
        !          37684: if test "${with_vpx_dir+set}" = set; then :
        !          37685:   withval=$with_vpx_dir; PHP_VPX_DIR=$withval
        !          37686: else
        !          37687: 
        !          37688:   PHP_VPX_DIR=no
        !          37689: 
        !          37690: 
        !          37691: fi
        !          37692: 
        !          37693: 
        !          37694: ext_output=$PHP_VPX_DIR
        !          37695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
        !          37696: $as_echo "$ext_output" >&6; }
        !          37697: 
        !          37698: 
        !          37699: 
        !          37700: fi
        !          37701: 
1.1       misho    37702: if test -z "$PHP_JPEG_DIR"; then
                   37703: 
                   37704: php_with_jpeg_dir=no
                   37705: 
                   37706: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libjpeg" >&5
                   37707: $as_echo_n "checking for the location of libjpeg... " >&6; }
                   37708: 
                   37709: # Check whether --with-jpeg-dir was given.
                   37710: if test "${with_jpeg_dir+set}" = set; then :
                   37711:   withval=$with_jpeg_dir; PHP_JPEG_DIR=$withval
                   37712: else
                   37713: 
                   37714:   PHP_JPEG_DIR=no
                   37715: 
                   37716: 
                   37717: fi
                   37718: 
                   37719: 
                   37720: ext_output=$PHP_JPEG_DIR
                   37721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   37722: $as_echo "$ext_output" >&6; }
                   37723: 
                   37724: 
                   37725: 
                   37726: fi
                   37727: 
                   37728: if test -z "$PHP_PNG_DIR"; then
                   37729: 
                   37730: php_with_png_dir=no
                   37731: 
                   37732: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libpng" >&5
                   37733: $as_echo_n "checking for the location of libpng... " >&6; }
                   37734: 
                   37735: # Check whether --with-png-dir was given.
                   37736: if test "${with_png_dir+set}" = set; then :
                   37737:   withval=$with_png_dir; PHP_PNG_DIR=$withval
                   37738: else
                   37739: 
                   37740:   PHP_PNG_DIR=no
                   37741: 
                   37742: 
                   37743: fi
                   37744: 
                   37745: 
                   37746: ext_output=$PHP_PNG_DIR
                   37747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   37748: $as_echo "$ext_output" >&6; }
                   37749: 
                   37750: 
                   37751: 
                   37752: fi
                   37753: 
                   37754: if test -z "$PHP_ZLIB_DIR"; then
                   37755: 
                   37756: php_with_zlib_dir=no
                   37757: 
                   37758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
                   37759: $as_echo_n "checking for the location of libz... " >&6; }
                   37760: 
                   37761: # Check whether --with-zlib-dir was given.
                   37762: if test "${with_zlib_dir+set}" = set; then :
                   37763:   withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
                   37764: else
                   37765: 
                   37766:   PHP_ZLIB_DIR=no
                   37767: 
                   37768: 
                   37769: fi
                   37770: 
                   37771: 
                   37772: ext_output=$PHP_ZLIB_DIR
                   37773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   37774: $as_echo "$ext_output" >&6; }
                   37775: 
                   37776: 
                   37777: 
                   37778: fi
                   37779: 
                   37780: 
                   37781: php_with_xpm_dir=no
                   37782: 
                   37783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libXpm" >&5
                   37784: $as_echo_n "checking for the location of libXpm... " >&6; }
                   37785: 
                   37786: # Check whether --with-xpm-dir was given.
                   37787: if test "${with_xpm_dir+set}" = set; then :
                   37788:   withval=$with_xpm_dir; PHP_XPM_DIR=$withval
                   37789: else
                   37790: 
                   37791:   PHP_XPM_DIR=no
                   37792: 
                   37793: 
                   37794: fi
                   37795: 
                   37796: 
                   37797: ext_output=$PHP_XPM_DIR
                   37798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   37799: $as_echo "$ext_output" >&6; }
                   37800: 
                   37801: 
                   37802: 
                   37803: 
                   37804: 
                   37805: php_with_freetype_dir=no
                   37806: 
                   37807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2" >&5
                   37808: $as_echo_n "checking for FreeType 2... " >&6; }
                   37809: 
                   37810: # Check whether --with-freetype-dir was given.
                   37811: if test "${with_freetype_dir+set}" = set; then :
                   37812:   withval=$with_freetype_dir; PHP_FREETYPE_DIR=$withval
                   37813: else
                   37814: 
                   37815:   PHP_FREETYPE_DIR=no
                   37816: 
                   37817: 
                   37818: fi
                   37819: 
                   37820: 
                   37821: ext_output=$PHP_FREETYPE_DIR
                   37822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   37823: $as_echo "$ext_output" >&6; }
                   37824: 
                   37825: 
                   37826: 
                   37827: 
                   37828: 
                   37829: php_with_t1lib=no
                   37830: 
                   37831: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1lib support" >&5
                   37832: $as_echo_n "checking for T1lib support... " >&6; }
                   37833: 
                   37834: # Check whether --with-t1lib was given.
                   37835: if test "${with_t1lib+set}" = set; then :
                   37836:   withval=$with_t1lib; PHP_T1LIB=$withval
                   37837: else
                   37838: 
                   37839:   PHP_T1LIB=no
                   37840: 
                   37841: 
                   37842: fi
                   37843: 
                   37844: 
                   37845: ext_output=$PHP_T1LIB
                   37846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   37847: $as_echo "$ext_output" >&6; }
                   37848: 
                   37849: 
                   37850: 
                   37851: 
                   37852: 
                   37853: php_enable_gd_native_ttf=no
                   37854: 
                   37855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable truetype string function in GD" >&5
                   37856: $as_echo_n "checking whether to enable truetype string function in GD... " >&6; }
                   37857: # Check whether --enable-gd-native-ttf was given.
                   37858: if test "${enable_gd_native_ttf+set}" = set; then :
                   37859:   enableval=$enable_gd_native_ttf; PHP_GD_NATIVE_TTF=$enableval
                   37860: else
                   37861: 
                   37862:   PHP_GD_NATIVE_TTF=no
                   37863: 
                   37864: 
                   37865: fi
                   37866: 
                   37867: 
                   37868: ext_output=$PHP_GD_NATIVE_TTF
                   37869: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   37870: $as_echo "$ext_output" >&6; }
                   37871: 
                   37872: 
                   37873: 
                   37874: 
                   37875: 
                   37876: php_enable_gd_jis_conv=no
                   37877: 
                   37878: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable JIS-mapped Japanese font support in GD" >&5
                   37879: $as_echo_n "checking whether to enable JIS-mapped Japanese font support in GD... " >&6; }
                   37880: # Check whether --enable-gd-jis-conv was given.
                   37881: if test "${enable_gd_jis_conv+set}" = set; then :
                   37882:   enableval=$enable_gd_jis_conv; PHP_GD_JIS_CONV=$enableval
                   37883: else
                   37884: 
                   37885:   PHP_GD_JIS_CONV=no
                   37886: 
                   37887: 
                   37888: fi
                   37889: 
                   37890: 
                   37891: ext_output=$PHP_GD_JIS_CONV
                   37892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   37893: $as_echo "$ext_output" >&6; }
                   37894: 
                   37895: 
                   37896: 
                   37897: 
                   37898: 
                   37899: 
                   37900: 
                   37901: 
                   37902: 
                   37903: 
                   37904: 
                   37905: 
                   37906: 
                   37907: 
                   37908: 
                   37909: 
                   37910: 
                   37911: 
                   37912: 
                   37913: 
                   37914: 
                   37915: 
                   37916: 
                   37917: 
1.1.1.2 ! misho    37918: 
        !          37919: 
1.1       misho    37920: if test "$PHP_GD" = "yes"; then
                   37921:   GD_MODULE_TYPE=builtin
                   37922:   extra_sources="libgd/gd.c libgd/gd_gd.c libgd/gd_gd2.c libgd/gd_io.c libgd/gd_io_dp.c \
1.1.1.2 ! misho    37923:                  libgd/gd_io_file.c libgd/gd_ss.c libgd/gd_io_ss.c libgd/webpimg.c libgd/gd_webp.c \
        !          37924:                  libgd/gd_png.c libgd/gd_jpeg.c libgd/gdxpm.c libgd/gdfontt.c libgd/gdfonts.c \
        !          37925:                  libgd/gdfontmb.c libgd/gdfontl.c libgd/gdfontg.c libgd/gdtables.c libgd/gdft.c \
        !          37926:                  libgd/gdcache.c libgd/gdkanji.c libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c \
        !          37927:                  libgd/gd_topal.c libgd/gd_gif_in.c libgd/xbm.c libgd/gd_gif_out.c libgd/gd_security.c \
        !          37928:                  libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_arc.c libgd/gd_rotate.c libgd/gd_color.c"
1.1       misho    37929: 
                   37930:   for ac_func in fabsf floorf
                   37931: do :
                   37932:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   37933: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   37934: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   37935:   cat >>confdefs.h <<_ACEOF
                   37936: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   37937: _ACEOF
                   37938: 
                   37939: fi
                   37940: done
                   37941: 
                   37942: 
                   37943:   test "$PHP_PNG_DIR" = "no" && PHP_PNG_DIR=yes
                   37944: 
                   37945: 
                   37946:        if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
                   37947:                if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
                   37948:                        PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
                   37949:                        PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
                   37950:                elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
                   37951:                        PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
                   37952:                        PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
                   37953:                else
                   37954:                        as_fn_error $? "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5
                   37955:                fi
                   37956:        else
                   37957:                for i in /usr/local /usr; do
                   37958:                        if test -f "$i/include/zlib/zlib.h"; then
                   37959:                                PHP_ZLIB_DIR="$i"
                   37960:                                PHP_ZLIB_INCDIR="$i/include/zlib"
                   37961:                        elif test -f "$i/include/zlib.h"; then
                   37962:                                PHP_ZLIB_DIR="$i"
                   37963:                                PHP_ZLIB_INCDIR="$i/include"
                   37964:                        fi
                   37965:                done
                   37966:        fi
                   37967: 
                   37968: 
                   37969:   if test "$PHP_GD_NATIVE_TTF" = "yes"; then
                   37970: 
                   37971: $as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h
                   37972: 
                   37973:   fi
                   37974: 
                   37975: 
                   37976:   if test "$PHP_GD_JIS_CONV" = "yes"; then
                   37977:     USE_GD_JIS_CONV=1
                   37978:   fi
                   37979: 
                   37980: 
                   37981:   if test "$PHP_JPEG_DIR" != "no"; then
                   37982: 
                   37983:     for i in $PHP_JPEG_DIR /usr/local /usr; do
                   37984:       test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break
                   37985:     done
                   37986: 
                   37987:     if test -z "$GD_JPEG_DIR"; then
                   37988:       as_fn_error $? "jpeglib.h not found." "$LINENO" 5
                   37989:     fi
                   37990: 
                   37991: 
                   37992:   save_old_LDFLAGS=$LDFLAGS
                   37993:   ac_stuff="
                   37994:       -L$GD_JPEG_DIR/$PHP_LIBDIR
                   37995:     "
                   37996: 
                   37997:   save_ext_shared=$ext_shared
                   37998:   ext_shared=yes
                   37999: 
                   38000:   for ac_i in $ac_stuff; do
                   38001:     case $ac_i in
                   38002:     -pthread)
                   38003:       if test "$ext_shared" = "yes"; then
                   38004:         LDFLAGS="$LDFLAGS -pthread"
                   38005:       else
                   38006: 
                   38007: 
                   38008:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   38009: 
                   38010:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   38011:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   38012:     eval "EXTRA_LDFLAGS$unique=set"
                   38013:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   38014:   fi
                   38015: 
                   38016:       fi
                   38017:     ;;
                   38018:     -l*)
                   38019:       ac_ii=`echo $ac_i|cut -c 3-`
                   38020: 
                   38021: 
                   38022:   case $ac_ii in
                   38023:   c|c_r|pthread*) ;;
                   38024:   *)
                   38025:     if test "$ext_shared" = "yes"; then
                   38026:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   38027:     else
                   38028: 
                   38029: 
                   38030:   case $ac_ii in
                   38031:   c|c_r|pthread*) ;;
                   38032:   *)
                   38033:       LIBS="$LIBS -l$ac_ii"
                   38034:    ;;
                   38035:   esac
                   38036: 
                   38037: 
                   38038:     fi
                   38039:    ;;
                   38040:   esac
                   38041: 
                   38042: 
                   38043:     ;;
                   38044:     -L*)
                   38045:       ac_ii=`echo $ac_i|cut -c 3-`
                   38046: 
                   38047:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   38048: 
                   38049:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   38050:     ai_p=$ac_ii
                   38051:   else
                   38052: 
                   38053:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   38054: 
                   38055:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   38056:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   38057:   fi
                   38058: 
                   38059: 
                   38060:       if test "$ext_shared" = "yes"; then
                   38061:         LDFLAGS="-L$ai_p $LDFLAGS"
                   38062:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   38063:       else
                   38064: 
                   38065: 
                   38066: 
                   38067:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   38068: 
                   38069:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   38070:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   38071:     eval "LIBPATH$unique=set"
                   38072: 
                   38073:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   38074:     LDFLAGS="$LDFLAGS -L$ai_p"
                   38075:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   38076: 
                   38077:   fi
                   38078: 
                   38079: 
                   38080:       fi
                   38081: 
                   38082:   fi
                   38083: 
                   38084:     ;;
                   38085:     esac
                   38086:   done
                   38087: 
                   38088:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
                   38089: $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
                   38090: if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
                   38091:   $as_echo_n "(cached) " >&6
                   38092: else
                   38093:   ac_check_lib_save_LIBS=$LIBS
                   38094: LIBS="-ljpeg  $LIBS"
                   38095: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   38096: /* end confdefs.h.  */
                   38097: 
                   38098: /* Override any GCC internal prototype to avoid an error.
                   38099:    Use char because int might match the return type of a GCC
                   38100:    builtin and then its argument prototype would still apply.  */
                   38101: #ifdef __cplusplus
                   38102: extern "C"
                   38103: #endif
                   38104: char jpeg_read_header ();
                   38105: int
                   38106: main ()
                   38107: {
                   38108: return jpeg_read_header ();
                   38109:   ;
                   38110:   return 0;
                   38111: }
                   38112: _ACEOF
                   38113: if ac_fn_c_try_link "$LINENO"; then :
                   38114:   ac_cv_lib_jpeg_jpeg_read_header=yes
                   38115: else
                   38116:   ac_cv_lib_jpeg_jpeg_read_header=no
                   38117: fi
                   38118: rm -f core conftest.err conftest.$ac_objext \
                   38119:     conftest$ac_exeext conftest.$ac_ext
                   38120: LIBS=$ac_check_lib_save_LIBS
                   38121: fi
                   38122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
                   38123: $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
                   38124: if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
                   38125: 
                   38126:     LDFLAGS=$save_old_LDFLAGS
                   38127:     ext_shared=$save_ext_shared
                   38128: 
                   38129: 
                   38130:   if test "$GD_JPEG_DIR/include" != "/usr/include"; then
                   38131: 
                   38132:   if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then
                   38133:     ai_p=$GD_JPEG_DIR/include
                   38134:   else
                   38135: 
                   38136:     ep_dir="`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   38137: 
                   38138:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   38139:     ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/include\"`"
                   38140:   fi
                   38141: 
                   38142: 
                   38143: 
                   38144:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   38145: 
                   38146:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   38147:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   38148:     eval "INCLUDEPATH$unique=set"
                   38149: 
                   38150:       if test ""; then
                   38151:         INCLUDES="-I$ai_p $INCLUDES"
                   38152:       else
                   38153:         INCLUDES="$INCLUDES -I$ai_p"
                   38154:       fi
                   38155: 
                   38156:   fi
                   38157: 
                   38158:   fi
                   38159: 
                   38160: 
                   38161: 
                   38162:   if test "$ext_shared" = "yes"; then
                   38163:     GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD"
                   38164:     if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
                   38165: 
                   38166:   if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   38167: 
                   38168:   if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   38169:     ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
                   38170:   else
                   38171: 
                   38172:     ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   38173: 
                   38174:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   38175:     ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
                   38176:   fi
                   38177: 
                   38178: 
                   38179:       if test "$ext_shared" = "yes"; then
                   38180:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
                   38181:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
                   38182:       else
                   38183: 
                   38184: 
                   38185: 
                   38186:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   38187: 
                   38188:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   38189:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   38190:     eval "LIBPATH$unique=set"
                   38191: 
                   38192:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   38193:     LDFLAGS="$LDFLAGS -L$ai_p"
                   38194:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   38195: 
                   38196:   fi
                   38197: 
                   38198: 
                   38199:       fi
                   38200: 
                   38201:   fi
                   38202: 
                   38203:     fi
                   38204:   else
                   38205: 
                   38206: 
                   38207:   if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
                   38208: 
                   38209:   if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   38210: 
                   38211:   if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   38212:     ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
                   38213:   else
                   38214: 
                   38215:     ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   38216: 
                   38217:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   38218:     ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
                   38219:   fi
                   38220: 
                   38221: 
                   38222: 
                   38223: 
                   38224: 
                   38225:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   38226: 
                   38227:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   38228:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   38229:     eval "LIBPATH$unique=set"
                   38230: 
                   38231:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   38232:     LDFLAGS="$LDFLAGS -L$ai_p"
                   38233:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   38234: 
                   38235:   fi
                   38236: 
                   38237: 
                   38238: 
                   38239:   fi
                   38240: 
                   38241:   fi
                   38242: 
                   38243: 
                   38244:   case jpeg in
                   38245:   c|c_r|pthread*) ;;
                   38246:   *)
                   38247:       LIBS="-ljpeg $LIBS"
                   38248:    ;;
                   38249:   esac
                   38250: 
                   38251: 
                   38252: 
                   38253: 
                   38254:   fi
                   38255: 
                   38256: 
                   38257: 
                   38258: 
                   38259: else
                   38260: 
                   38261:     LDFLAGS=$save_old_LDFLAGS
                   38262:     ext_shared=$save_ext_shared
                   38263:     unset ac_cv_lib_jpeg_jpeg_read_header
                   38264: 
                   38265:       as_fn_error $? "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5
                   38266: 
                   38267: 
                   38268: fi
                   38269: 
                   38270:   else
                   38271:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-jpeg-dir=<DIR>" >&5
                   38272: $as_echo "If configure fails try --with-jpeg-dir=<DIR>" >&6; }
                   38273:   fi
                   38274: 
                   38275: 
1.1.1.2 ! misho    38276:   if test "$PHP_VPX_DIR" != "no"; then
1.1       misho    38277: 
1.1.1.2 ! misho    38278:     for i in $PHP_VPX_DIR /usr/local /usr; do
        !          38279:       test -f $i/include/vpx_codec.h || test -f $i/include/vpx/vpx_codec.h && GD_VPX_DIR=$i && break
1.1       misho    38280:     done
                   38281: 
1.1.1.2 ! misho    38282:     if test -z "$GD_VPX_DIR"; then
        !          38283:       as_fn_error $? "vpx_codec.h not found." "$LINENO" 5
1.1       misho    38284:     fi
                   38285: 
                   38286: 
                   38287:   save_old_LDFLAGS=$LDFLAGS
                   38288:   ac_stuff="
1.1.1.2 ! misho    38289:       -L$GD_VPX_DIR/$PHP_LIBDIR
1.1       misho    38290:     "
                   38291: 
                   38292:   save_ext_shared=$ext_shared
                   38293:   ext_shared=yes
                   38294: 
                   38295:   for ac_i in $ac_stuff; do
                   38296:     case $ac_i in
                   38297:     -pthread)
                   38298:       if test "$ext_shared" = "yes"; then
                   38299:         LDFLAGS="$LDFLAGS -pthread"
                   38300:       else
                   38301: 
                   38302: 
                   38303:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   38304: 
                   38305:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   38306:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   38307:     eval "EXTRA_LDFLAGS$unique=set"
                   38308:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   38309:   fi
                   38310: 
                   38311:       fi
                   38312:     ;;
                   38313:     -l*)
                   38314:       ac_ii=`echo $ac_i|cut -c 3-`
                   38315: 
                   38316: 
                   38317:   case $ac_ii in
                   38318:   c|c_r|pthread*) ;;
                   38319:   *)
                   38320:     if test "$ext_shared" = "yes"; then
                   38321:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   38322:     else
                   38323: 
                   38324: 
                   38325:   case $ac_ii in
                   38326:   c|c_r|pthread*) ;;
                   38327:   *)
                   38328:       LIBS="$LIBS -l$ac_ii"
                   38329:    ;;
                   38330:   esac
                   38331: 
                   38332: 
                   38333:     fi
                   38334:    ;;
                   38335:   esac
                   38336: 
                   38337: 
                   38338:     ;;
                   38339:     -L*)
                   38340:       ac_ii=`echo $ac_i|cut -c 3-`
                   38341: 
                   38342:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   38343: 
                   38344:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   38345:     ai_p=$ac_ii
                   38346:   else
                   38347: 
                   38348:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   38349: 
                   38350:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   38351:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   38352:   fi
                   38353: 
                   38354: 
                   38355:       if test "$ext_shared" = "yes"; then
                   38356:         LDFLAGS="-L$ai_p $LDFLAGS"
                   38357:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   38358:       else
                   38359: 
                   38360: 
                   38361: 
                   38362:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   38363: 
                   38364:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   38365:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   38366:     eval "LIBPATH$unique=set"
                   38367: 
                   38368:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   38369:     LDFLAGS="$LDFLAGS -L$ai_p"
                   38370:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   38371: 
                   38372:   fi
                   38373: 
                   38374: 
                   38375:       fi
                   38376: 
                   38377:   fi
                   38378: 
                   38379:     ;;
                   38380:     esac
                   38381:   done
                   38382: 
1.1.1.2 ! misho    38383:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpx_codec_destroy in -lvpx" >&5
        !          38384: $as_echo_n "checking for vpx_codec_destroy in -lvpx... " >&6; }
        !          38385: if ${ac_cv_lib_vpx_vpx_codec_destroy+:} false; then :
1.1       misho    38386:   $as_echo_n "(cached) " >&6
                   38387: else
                   38388:   ac_check_lib_save_LIBS=$LIBS
1.1.1.2 ! misho    38389: LIBS="-lvpx  $LIBS"
1.1       misho    38390: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   38391: /* end confdefs.h.  */
                   38392: 
                   38393: /* Override any GCC internal prototype to avoid an error.
                   38394:    Use char because int might match the return type of a GCC
                   38395:    builtin and then its argument prototype would still apply.  */
                   38396: #ifdef __cplusplus
                   38397: extern "C"
                   38398: #endif
1.1.1.2 ! misho    38399: char vpx_codec_destroy ();
1.1       misho    38400: int
                   38401: main ()
                   38402: {
1.1.1.2 ! misho    38403: return vpx_codec_destroy ();
1.1       misho    38404:   ;
                   38405:   return 0;
                   38406: }
                   38407: _ACEOF
                   38408: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2 ! misho    38409:   ac_cv_lib_vpx_vpx_codec_destroy=yes
1.1       misho    38410: else
1.1.1.2 ! misho    38411:   ac_cv_lib_vpx_vpx_codec_destroy=no
1.1       misho    38412: fi
                   38413: rm -f core conftest.err conftest.$ac_objext \
                   38414:     conftest$ac_exeext conftest.$ac_ext
                   38415: LIBS=$ac_check_lib_save_LIBS
                   38416: fi
1.1.1.2 ! misho    38417: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vpx_vpx_codec_destroy" >&5
        !          38418: $as_echo "$ac_cv_lib_vpx_vpx_codec_destroy" >&6; }
        !          38419: if test "x$ac_cv_lib_vpx_vpx_codec_destroy" = xyes; then :
1.1       misho    38420: 
                   38421:     LDFLAGS=$save_old_LDFLAGS
                   38422:     ext_shared=$save_ext_shared
                   38423: 
                   38424: 
1.1.1.2 ! misho    38425:   if test "$GD_VPX_DIR/include" != "/usr/include"; then
1.1       misho    38426: 
1.1.1.2 ! misho    38427:   if test -z "$GD_VPX_DIR/include" || echo "$GD_VPX_DIR/include" | grep '^/' >/dev/null ; then
        !          38428:     ai_p=$GD_VPX_DIR/include
1.1       misho    38429:   else
                   38430: 
1.1.1.2 ! misho    38431:     ep_dir="`echo $GD_VPX_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
1.1       misho    38432: 
                   38433:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 ! misho    38434:     ai_p="$ep_realdir/`basename \"$GD_VPX_DIR/include\"`"
1.1       misho    38435:   fi
                   38436: 
                   38437: 
                   38438: 
                   38439:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   38440: 
                   38441:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   38442:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   38443:     eval "INCLUDEPATH$unique=set"
                   38444: 
                   38445:       if test ""; then
                   38446:         INCLUDES="-I$ai_p $INCLUDES"
                   38447:       else
                   38448:         INCLUDES="$INCLUDES -I$ai_p"
                   38449:       fi
                   38450: 
                   38451:   fi
                   38452: 
                   38453:   fi
                   38454: 
                   38455: 
                   38456: 
1.1.1.2 ! misho    38457:   case pthread in
        !          38458:   c|c_r|pthread*) ;;
        !          38459:   *)
        !          38460:       LIBS="-lpthread $LIBS"
        !          38461:    ;;
        !          38462:   esac
        !          38463: 
        !          38464: 
        !          38465: 
        !          38466: 
1.1       misho    38467:   if test "$ext_shared" = "yes"; then
1.1.1.2 ! misho    38468:     GD_SHARED_LIBADD="-lvpx $GD_SHARED_LIBADD"
        !          38469:     if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then
1.1       misho    38470: 
1.1.1.2 ! misho    38471:   if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then
1.1       misho    38472: 
1.1.1.2 ! misho    38473:   if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
        !          38474:     ai_p=$GD_VPX_DIR/$PHP_LIBDIR
1.1       misho    38475:   else
                   38476: 
1.1.1.2 ! misho    38477:     ep_dir="`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
1.1       misho    38478: 
                   38479:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 ! misho    38480:     ai_p="$ep_realdir/`basename \"$GD_VPX_DIR/$PHP_LIBDIR\"`"
        !          38481:   fi
        !          38482: 
        !          38483: 
        !          38484:       if test "$ext_shared" = "yes"; then
        !          38485:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
        !          38486:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
        !          38487:       else
        !          38488: 
        !          38489: 
        !          38490: 
        !          38491:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          38492: 
        !          38493:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
        !          38494:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          38495:     eval "LIBPATH$unique=set"
        !          38496: 
        !          38497:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
        !          38498:     LDFLAGS="$LDFLAGS -L$ai_p"
        !          38499:     PHP_RPATHS="$PHP_RPATHS $ai_p"
        !          38500: 
        !          38501:   fi
        !          38502: 
        !          38503: 
        !          38504:       fi
        !          38505: 
        !          38506:   fi
        !          38507: 
        !          38508:     fi
        !          38509:   else
        !          38510: 
        !          38511: 
        !          38512:   if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then
        !          38513: 
        !          38514:   if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then
        !          38515: 
        !          38516:   if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
        !          38517:     ai_p=$GD_VPX_DIR/$PHP_LIBDIR
        !          38518:   else
        !          38519: 
        !          38520:     ep_dir="`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
        !          38521: 
        !          38522:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          38523:     ai_p="$ep_realdir/`basename \"$GD_VPX_DIR/$PHP_LIBDIR\"`"
        !          38524:   fi
        !          38525: 
        !          38526: 
        !          38527: 
        !          38528: 
        !          38529: 
        !          38530:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          38531: 
        !          38532:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
        !          38533:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          38534:     eval "LIBPATH$unique=set"
        !          38535: 
        !          38536:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
        !          38537:     LDFLAGS="$LDFLAGS -L$ai_p"
        !          38538:     PHP_RPATHS="$PHP_RPATHS $ai_p"
        !          38539: 
        !          38540:   fi
        !          38541: 
        !          38542: 
        !          38543: 
        !          38544:   fi
        !          38545: 
        !          38546:   fi
        !          38547: 
        !          38548: 
        !          38549:   case vpx in
        !          38550:   c|c_r|pthread*) ;;
        !          38551:   *)
        !          38552:       LIBS="-lvpx $LIBS"
        !          38553:    ;;
        !          38554:   esac
        !          38555: 
        !          38556: 
        !          38557: 
        !          38558: 
        !          38559:   fi
        !          38560: 
        !          38561: 
        !          38562: 
        !          38563: 
        !          38564: else
        !          38565: 
        !          38566:     LDFLAGS=$save_old_LDFLAGS
        !          38567:     ext_shared=$save_ext_shared
        !          38568:     unset ac_cv_lib_vpx_vpx_codec_destroy
        !          38569: 
        !          38570:       as_fn_error $? "Problem with libvpx.(a|so). Please check config.log for more information." "$LINENO" 5
        !          38571: 
        !          38572: 
        !          38573: fi
        !          38574: 
        !          38575:   else
        !          38576:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-vpx-dir=<DIR>" >&5
        !          38577: $as_echo "If configure fails try --with-vpx-dir=<DIR>" >&6; }
        !          38578:   fi
        !          38579: 
        !          38580: 
        !          38581:   if test "$PHP_PNG_DIR" != "no"; then
        !          38582: 
        !          38583:     for i in $PHP_PNG_DIR /usr/local /usr; do
        !          38584:       test -f $i/include/png.h && GD_PNG_DIR=$i && break
        !          38585:     done
        !          38586: 
        !          38587:     if test -z "$GD_PNG_DIR"; then
        !          38588:       as_fn_error $? "png.h not found." "$LINENO" 5
        !          38589:     fi
        !          38590: 
        !          38591:     if test "$PHP_ZLIB_DIR" = "no"; then
        !          38592:       as_fn_error $? "PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" "$LINENO" 5
        !          38593:     fi
        !          38594: 
        !          38595: 
        !          38596:   save_old_LDFLAGS=$LDFLAGS
        !          38597:   ac_stuff="
        !          38598:       -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR
        !          38599:     "
        !          38600: 
        !          38601:   save_ext_shared=$ext_shared
        !          38602:   ext_shared=yes
        !          38603: 
        !          38604:   for ac_i in $ac_stuff; do
        !          38605:     case $ac_i in
        !          38606:     -pthread)
        !          38607:       if test "$ext_shared" = "yes"; then
        !          38608:         LDFLAGS="$LDFLAGS -pthread"
        !          38609:       else
        !          38610: 
        !          38611: 
        !          38612:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          38613: 
        !          38614:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
        !          38615:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          38616:     eval "EXTRA_LDFLAGS$unique=set"
        !          38617:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
        !          38618:   fi
        !          38619: 
        !          38620:       fi
        !          38621:     ;;
        !          38622:     -l*)
        !          38623:       ac_ii=`echo $ac_i|cut -c 3-`
        !          38624: 
        !          38625: 
        !          38626:   case $ac_ii in
        !          38627:   c|c_r|pthread*) ;;
        !          38628:   *)
        !          38629:     if test "$ext_shared" = "yes"; then
        !          38630:         LDFLAGS="$LDFLAGS -l$ac_ii"
        !          38631:     else
        !          38632: 
        !          38633: 
        !          38634:   case $ac_ii in
        !          38635:   c|c_r|pthread*) ;;
        !          38636:   *)
        !          38637:       LIBS="$LIBS -l$ac_ii"
        !          38638:    ;;
        !          38639:   esac
        !          38640: 
        !          38641: 
        !          38642:     fi
        !          38643:    ;;
        !          38644:   esac
        !          38645: 
        !          38646: 
        !          38647:     ;;
        !          38648:     -L*)
        !          38649:       ac_ii=`echo $ac_i|cut -c 3-`
        !          38650: 
        !          38651:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
        !          38652: 
        !          38653:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
        !          38654:     ai_p=$ac_ii
        !          38655:   else
        !          38656: 
        !          38657:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
        !          38658: 
        !          38659:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          38660:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
        !          38661:   fi
        !          38662: 
        !          38663: 
        !          38664:       if test "$ext_shared" = "yes"; then
        !          38665:         LDFLAGS="-L$ai_p $LDFLAGS"
        !          38666:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
        !          38667:       else
        !          38668: 
        !          38669: 
        !          38670: 
        !          38671:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          38672: 
        !          38673:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
        !          38674:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          38675:     eval "LIBPATH$unique=set"
        !          38676: 
        !          38677:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
        !          38678:     LDFLAGS="$LDFLAGS -L$ai_p"
        !          38679:     PHP_RPATHS="$PHP_RPATHS $ai_p"
        !          38680: 
        !          38681:   fi
        !          38682: 
        !          38683: 
        !          38684:       fi
        !          38685: 
        !          38686:   fi
        !          38687: 
        !          38688:     ;;
        !          38689:     esac
        !          38690:   done
        !          38691: 
        !          38692:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_image in -lpng" >&5
        !          38693: $as_echo_n "checking for png_write_image in -lpng... " >&6; }
        !          38694: if ${ac_cv_lib_png_png_write_image+:} false; then :
        !          38695:   $as_echo_n "(cached) " >&6
        !          38696: else
        !          38697:   ac_check_lib_save_LIBS=$LIBS
        !          38698: LIBS="-lpng  $LIBS"
        !          38699: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          38700: /* end confdefs.h.  */
        !          38701: 
        !          38702: /* Override any GCC internal prototype to avoid an error.
        !          38703:    Use char because int might match the return type of a GCC
        !          38704:    builtin and then its argument prototype would still apply.  */
        !          38705: #ifdef __cplusplus
        !          38706: extern "C"
        !          38707: #endif
        !          38708: char png_write_image ();
        !          38709: int
        !          38710: main ()
        !          38711: {
        !          38712: return png_write_image ();
        !          38713:   ;
        !          38714:   return 0;
        !          38715: }
        !          38716: _ACEOF
        !          38717: if ac_fn_c_try_link "$LINENO"; then :
        !          38718:   ac_cv_lib_png_png_write_image=yes
        !          38719: else
        !          38720:   ac_cv_lib_png_png_write_image=no
        !          38721: fi
        !          38722: rm -f core conftest.err conftest.$ac_objext \
        !          38723:     conftest$ac_exeext conftest.$ac_ext
        !          38724: LIBS=$ac_check_lib_save_LIBS
        !          38725: fi
        !          38726: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_image" >&5
        !          38727: $as_echo "$ac_cv_lib_png_png_write_image" >&6; }
        !          38728: if test "x$ac_cv_lib_png_png_write_image" = xyes; then :
        !          38729: 
        !          38730:     LDFLAGS=$save_old_LDFLAGS
        !          38731:     ext_shared=$save_ext_shared
        !          38732: 
        !          38733: 
        !          38734:   if test "$GD_PNG_DIR/include" != "/usr/include"; then
        !          38735: 
        !          38736:   if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then
        !          38737:     ai_p=$GD_PNG_DIR/include
        !          38738:   else
        !          38739: 
        !          38740:     ep_dir="`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
        !          38741: 
        !          38742:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          38743:     ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/include\"`"
        !          38744:   fi
        !          38745: 
        !          38746: 
        !          38747: 
        !          38748:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          38749: 
        !          38750:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
        !          38751:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          38752:     eval "INCLUDEPATH$unique=set"
        !          38753: 
        !          38754:       if test ""; then
        !          38755:         INCLUDES="-I$ai_p $INCLUDES"
        !          38756:       else
        !          38757:         INCLUDES="$INCLUDES -I$ai_p"
        !          38758:       fi
        !          38759: 
        !          38760:   fi
        !          38761: 
        !          38762:   fi
        !          38763: 
        !          38764: 
        !          38765: 
        !          38766:   if test "$ext_shared" = "yes"; then
        !          38767:     GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD"
        !          38768:     if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
        !          38769: 
        !          38770:   if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
        !          38771: 
        !          38772:   if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
        !          38773:     ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
        !          38774:   else
        !          38775: 
        !          38776:     ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
        !          38777: 
        !          38778:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          38779:     ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
1.1       misho    38780:   fi
                   38781: 
                   38782: 
                   38783:       if test "$ext_shared" = "yes"; then
                   38784:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
                   38785:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
                   38786:       else
                   38787: 
                   38788: 
                   38789: 
                   38790:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   38791: 
                   38792:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   38793:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   38794:     eval "LIBPATH$unique=set"
                   38795: 
                   38796:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   38797:     LDFLAGS="$LDFLAGS -L$ai_p"
                   38798:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   38799: 
                   38800:   fi
                   38801: 
                   38802: 
                   38803:       fi
                   38804: 
                   38805:   fi
                   38806: 
                   38807:     fi
                   38808:   else
                   38809: 
                   38810: 
                   38811:   if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
                   38812: 
                   38813:   if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   38814: 
                   38815:   if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   38816:     ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
                   38817:   else
                   38818: 
                   38819:     ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   38820: 
                   38821:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   38822:     ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
                   38823:   fi
                   38824: 
                   38825: 
                   38826: 
                   38827: 
                   38828: 
                   38829:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   38830: 
                   38831:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   38832:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   38833:     eval "LIBPATH$unique=set"
                   38834: 
                   38835:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   38836:     LDFLAGS="$LDFLAGS -L$ai_p"
                   38837:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   38838: 
                   38839:   fi
                   38840: 
                   38841: 
                   38842: 
                   38843:   fi
                   38844: 
                   38845:   fi
                   38846: 
                   38847: 
                   38848:   case z in
                   38849:   c|c_r|pthread*) ;;
                   38850:   *)
                   38851:       LIBS="-lz $LIBS"
                   38852:    ;;
                   38853:   esac
                   38854: 
                   38855: 
                   38856: 
                   38857: 
                   38858:   fi
                   38859: 
                   38860: 
                   38861: 
                   38862: 
                   38863:   if test "$ext_shared" = "yes"; then
                   38864:     GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD"
                   38865:     if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
                   38866: 
                   38867:   if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   38868: 
                   38869:   if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   38870:     ai_p=$GD_PNG_DIR/$PHP_LIBDIR
                   38871:   else
                   38872: 
                   38873:     ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   38874: 
                   38875:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   38876:     ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
                   38877:   fi
                   38878: 
                   38879: 
                   38880:       if test "$ext_shared" = "yes"; then
                   38881:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
                   38882:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
                   38883:       else
                   38884: 
                   38885: 
                   38886: 
                   38887:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   38888: 
                   38889:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   38890:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   38891:     eval "LIBPATH$unique=set"
                   38892: 
                   38893:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   38894:     LDFLAGS="$LDFLAGS -L$ai_p"
                   38895:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   38896: 
                   38897:   fi
                   38898: 
                   38899: 
                   38900:       fi
                   38901: 
                   38902:   fi
                   38903: 
                   38904:     fi
                   38905:   else
                   38906: 
                   38907: 
                   38908:   if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
                   38909: 
                   38910:   if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   38911: 
                   38912:   if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   38913:     ai_p=$GD_PNG_DIR/$PHP_LIBDIR
                   38914:   else
                   38915: 
                   38916:     ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   38917: 
                   38918:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   38919:     ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
                   38920:   fi
                   38921: 
                   38922: 
                   38923: 
                   38924: 
                   38925: 
                   38926:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   38927: 
                   38928:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   38929:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   38930:     eval "LIBPATH$unique=set"
                   38931: 
                   38932:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   38933:     LDFLAGS="$LDFLAGS -L$ai_p"
                   38934:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   38935: 
                   38936:   fi
                   38937: 
                   38938: 
                   38939: 
                   38940:   fi
                   38941: 
                   38942:   fi
                   38943: 
                   38944: 
                   38945:   case png in
                   38946:   c|c_r|pthread*) ;;
                   38947:   *)
                   38948:       LIBS="-lpng $LIBS"
                   38949:    ;;
                   38950:   esac
                   38951: 
                   38952: 
                   38953: 
                   38954: 
                   38955:   fi
                   38956: 
                   38957: 
                   38958: 
                   38959: 
                   38960: else
                   38961: 
                   38962:     LDFLAGS=$save_old_LDFLAGS
                   38963:     ext_shared=$save_ext_shared
                   38964:     unset ac_cv_lib_png_png_write_image
                   38965: 
                   38966:       as_fn_error $? "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5
                   38967: 
                   38968: 
                   38969: fi
                   38970: 
                   38971: 
                   38972:   else
                   38973:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&5
                   38974: $as_echo "If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&6; }
                   38975:   fi
                   38976: 
                   38977: 
                   38978:   if test "$PHP_XPM_DIR" != "no"; then
                   38979: 
                   38980:     for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do
                   38981:       test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break
                   38982:     done
                   38983: 
                   38984:     if test -z "$GD_XPM_DIR"; then
                   38985:       as_fn_error $? "libXpm.(a|so) not found." "$LINENO" 5
                   38986:     fi
                   38987: 
                   38988:     for i in include include/X11; do
                   38989:       test -f $GD_XPM_DIR/$i/xpm.h && GD_XPM_INC=$GD_XPM_DIR/include
                   38990:     done
                   38991: 
                   38992:     if test -z "$GD_XPM_INC"; then
                   38993:       as_fn_error $? "xpm.h not found." "$LINENO" 5
                   38994:     fi
                   38995: 
                   38996: 
                   38997:   save_old_LDFLAGS=$LDFLAGS
                   38998:   ac_stuff="
                   38999:       -L$GD_XPM_DIR/$PHP_LIBDIR -lX11
                   39000:     "
                   39001: 
                   39002:   save_ext_shared=$ext_shared
                   39003:   ext_shared=yes
                   39004: 
                   39005:   for ac_i in $ac_stuff; do
                   39006:     case $ac_i in
                   39007:     -pthread)
                   39008:       if test "$ext_shared" = "yes"; then
                   39009:         LDFLAGS="$LDFLAGS -pthread"
                   39010:       else
                   39011: 
                   39012: 
                   39013:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39014: 
                   39015:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   39016:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39017:     eval "EXTRA_LDFLAGS$unique=set"
                   39018:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   39019:   fi
                   39020: 
                   39021:       fi
                   39022:     ;;
                   39023:     -l*)
                   39024:       ac_ii=`echo $ac_i|cut -c 3-`
                   39025: 
                   39026: 
                   39027:   case $ac_ii in
                   39028:   c|c_r|pthread*) ;;
                   39029:   *)
                   39030:     if test "$ext_shared" = "yes"; then
                   39031:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   39032:     else
                   39033: 
                   39034: 
                   39035:   case $ac_ii in
                   39036:   c|c_r|pthread*) ;;
                   39037:   *)
                   39038:       LIBS="$LIBS -l$ac_ii"
                   39039:    ;;
                   39040:   esac
                   39041: 
                   39042: 
                   39043:     fi
                   39044:    ;;
                   39045:   esac
                   39046: 
                   39047: 
                   39048:     ;;
                   39049:     -L*)
                   39050:       ac_ii=`echo $ac_i|cut -c 3-`
                   39051: 
                   39052:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   39053: 
                   39054:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   39055:     ai_p=$ac_ii
                   39056:   else
                   39057: 
                   39058:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   39059: 
                   39060:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   39061:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   39062:   fi
                   39063: 
                   39064: 
                   39065:       if test "$ext_shared" = "yes"; then
                   39066:         LDFLAGS="-L$ai_p $LDFLAGS"
                   39067:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   39068:       else
                   39069: 
                   39070: 
                   39071: 
                   39072:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39073: 
                   39074:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   39075:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39076:     eval "LIBPATH$unique=set"
                   39077: 
                   39078:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   39079:     LDFLAGS="$LDFLAGS -L$ai_p"
                   39080:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   39081: 
                   39082:   fi
                   39083: 
                   39084: 
                   39085:       fi
                   39086: 
                   39087:   fi
                   39088: 
                   39089:     ;;
                   39090:     esac
                   39091:   done
                   39092: 
                   39093:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmFreeXpmImage in -lXpm" >&5
                   39094: $as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; }
                   39095: if ${ac_cv_lib_Xpm_XpmFreeXpmImage+:} false; then :
                   39096:   $as_echo_n "(cached) " >&6
                   39097: else
                   39098:   ac_check_lib_save_LIBS=$LIBS
                   39099: LIBS="-lXpm  $LIBS"
                   39100: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   39101: /* end confdefs.h.  */
                   39102: 
                   39103: /* Override any GCC internal prototype to avoid an error.
                   39104:    Use char because int might match the return type of a GCC
                   39105:    builtin and then its argument prototype would still apply.  */
                   39106: #ifdef __cplusplus
                   39107: extern "C"
                   39108: #endif
                   39109: char XpmFreeXpmImage ();
                   39110: int
                   39111: main ()
                   39112: {
                   39113: return XpmFreeXpmImage ();
                   39114:   ;
                   39115:   return 0;
                   39116: }
                   39117: _ACEOF
                   39118: if ac_fn_c_try_link "$LINENO"; then :
                   39119:   ac_cv_lib_Xpm_XpmFreeXpmImage=yes
                   39120: else
                   39121:   ac_cv_lib_Xpm_XpmFreeXpmImage=no
                   39122: fi
                   39123: rm -f core conftest.err conftest.$ac_objext \
                   39124:     conftest$ac_exeext conftest.$ac_ext
                   39125: LIBS=$ac_check_lib_save_LIBS
                   39126: fi
                   39127: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5
                   39128: $as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; }
                   39129: if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = xyes; then :
                   39130: 
                   39131:     LDFLAGS=$save_old_LDFLAGS
                   39132:     ext_shared=$save_ext_shared
                   39133: 
                   39134: 
                   39135:   if test "$GD_XPM_INC" != "/usr/include"; then
                   39136: 
                   39137:   if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then
                   39138:     ai_p=$GD_XPM_INC
                   39139:   else
                   39140: 
                   39141:     ep_dir="`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'`"
                   39142: 
                   39143:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   39144:     ai_p="$ep_realdir/`basename \"$GD_XPM_INC\"`"
                   39145:   fi
                   39146: 
                   39147: 
                   39148: 
                   39149:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39150: 
                   39151:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   39152:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39153:     eval "INCLUDEPATH$unique=set"
                   39154: 
                   39155:       if test ""; then
                   39156:         INCLUDES="-I$ai_p $INCLUDES"
                   39157:       else
                   39158:         INCLUDES="$INCLUDES -I$ai_p"
                   39159:       fi
                   39160: 
                   39161:   fi
                   39162: 
                   39163:   fi
                   39164: 
                   39165: 
                   39166: 
                   39167:   if test "$ext_shared" = "yes"; then
                   39168:     GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD"
                   39169:     if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
                   39170: 
                   39171:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   39172: 
                   39173:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   39174:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
                   39175:   else
                   39176: 
                   39177:     ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   39178: 
                   39179:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   39180:     ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
                   39181:   fi
                   39182: 
                   39183: 
                   39184:       if test "$ext_shared" = "yes"; then
                   39185:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
                   39186:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
                   39187:       else
                   39188: 
                   39189: 
                   39190: 
                   39191:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39192: 
                   39193:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   39194:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39195:     eval "LIBPATH$unique=set"
                   39196: 
                   39197:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   39198:     LDFLAGS="$LDFLAGS -L$ai_p"
                   39199:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   39200: 
                   39201:   fi
                   39202: 
                   39203: 
                   39204:       fi
                   39205: 
                   39206:   fi
                   39207: 
                   39208:     fi
                   39209:   else
                   39210: 
                   39211: 
                   39212:   if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
                   39213: 
                   39214:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   39215: 
                   39216:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   39217:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
                   39218:   else
                   39219: 
                   39220:     ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   39221: 
                   39222:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   39223:     ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
                   39224:   fi
                   39225: 
                   39226: 
                   39227: 
                   39228: 
                   39229: 
                   39230:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39231: 
                   39232:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   39233:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39234:     eval "LIBPATH$unique=set"
                   39235: 
                   39236:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   39237:     LDFLAGS="$LDFLAGS -L$ai_p"
                   39238:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   39239: 
                   39240:   fi
                   39241: 
                   39242: 
                   39243: 
                   39244:   fi
                   39245: 
                   39246:   fi
                   39247: 
                   39248: 
                   39249:   case Xpm in
                   39250:   c|c_r|pthread*) ;;
                   39251:   *)
                   39252:       LIBS="-lXpm $LIBS"
                   39253:    ;;
                   39254:   esac
                   39255: 
                   39256: 
                   39257: 
                   39258: 
                   39259:   fi
                   39260: 
                   39261: 
                   39262: 
                   39263: 
                   39264:   if test "$ext_shared" = "yes"; then
                   39265:     GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD"
                   39266:     if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
                   39267: 
                   39268:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   39269: 
                   39270:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   39271:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
                   39272:   else
                   39273: 
                   39274:     ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   39275: 
                   39276:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   39277:     ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
                   39278:   fi
                   39279: 
                   39280: 
                   39281:       if test "$ext_shared" = "yes"; then
                   39282:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
                   39283:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
                   39284:       else
                   39285: 
                   39286: 
                   39287: 
                   39288:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39289: 
                   39290:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   39291:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39292:     eval "LIBPATH$unique=set"
                   39293: 
                   39294:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   39295:     LDFLAGS="$LDFLAGS -L$ai_p"
                   39296:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   39297: 
                   39298:   fi
                   39299: 
                   39300: 
                   39301:       fi
                   39302: 
                   39303:   fi
                   39304: 
                   39305:     fi
                   39306:   else
                   39307: 
                   39308: 
                   39309:   if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
                   39310: 
                   39311:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   39312: 
                   39313:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   39314:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
                   39315:   else
                   39316: 
                   39317:     ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   39318: 
                   39319:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   39320:     ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
                   39321:   fi
                   39322: 
                   39323: 
                   39324: 
                   39325: 
                   39326: 
                   39327:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39328: 
                   39329:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   39330:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39331:     eval "LIBPATH$unique=set"
                   39332: 
                   39333:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   39334:     LDFLAGS="$LDFLAGS -L$ai_p"
                   39335:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   39336: 
                   39337:   fi
                   39338: 
                   39339: 
                   39340: 
                   39341:   fi
                   39342: 
                   39343:   fi
                   39344: 
                   39345: 
                   39346:   case X11 in
                   39347:   c|c_r|pthread*) ;;
                   39348:   *)
                   39349:       LIBS="-lX11 $LIBS"
                   39350:    ;;
                   39351:   esac
                   39352: 
                   39353: 
                   39354: 
                   39355: 
                   39356:   fi
                   39357: 
                   39358: 
                   39359: 
                   39360: 
                   39361: else
                   39362: 
                   39363:     LDFLAGS=$save_old_LDFLAGS
                   39364:     ext_shared=$save_ext_shared
                   39365:     unset ac_cv_lib_Xpm_XpmFreeXpmImage
                   39366: 
                   39367:       as_fn_error $? "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5
                   39368: 
                   39369: 
                   39370: fi
                   39371: 
                   39372:   else
                   39373:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-xpm-dir=<DIR>" >&5
                   39374: $as_echo "If configure fails try --with-xpm-dir=<DIR>" >&6; }
                   39375:   fi
                   39376: 
                   39377: 
                   39378:   if test "$PHP_FREETYPE_DIR" != "no"; then
                   39379: 
                   39380:     for i in $PHP_FREETYPE_DIR /usr/local /usr; do
                   39381:       if test -f "$i/include/freetype2/freetype/freetype.h"; then
                   39382:         FREETYPE2_DIR=$i
                   39383:         FREETYPE2_INC_DIR=$i/include/freetype2
                   39384:         break
                   39385:       fi
                   39386:     done
                   39387: 
                   39388:     if test -z "$FREETYPE2_DIR"; then
                   39389:       as_fn_error $? "freetype.h not found." "$LINENO" 5
                   39390:     fi
                   39391: 
                   39392: 
                   39393:   save_old_LDFLAGS=$LDFLAGS
                   39394:   ac_stuff="
                   39395:       -L$FREETYPE2_DIR/$PHP_LIBDIR
                   39396:     "
                   39397: 
                   39398:   save_ext_shared=$ext_shared
                   39399:   ext_shared=yes
                   39400: 
                   39401:   for ac_i in $ac_stuff; do
                   39402:     case $ac_i in
                   39403:     -pthread)
                   39404:       if test "$ext_shared" = "yes"; then
                   39405:         LDFLAGS="$LDFLAGS -pthread"
                   39406:       else
                   39407: 
                   39408: 
                   39409:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39410: 
                   39411:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   39412:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39413:     eval "EXTRA_LDFLAGS$unique=set"
                   39414:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   39415:   fi
                   39416: 
                   39417:       fi
                   39418:     ;;
                   39419:     -l*)
                   39420:       ac_ii=`echo $ac_i|cut -c 3-`
                   39421: 
                   39422: 
                   39423:   case $ac_ii in
                   39424:   c|c_r|pthread*) ;;
                   39425:   *)
                   39426:     if test "$ext_shared" = "yes"; then
                   39427:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   39428:     else
                   39429: 
                   39430: 
                   39431:   case $ac_ii in
                   39432:   c|c_r|pthread*) ;;
                   39433:   *)
                   39434:       LIBS="$LIBS -l$ac_ii"
                   39435:    ;;
                   39436:   esac
                   39437: 
                   39438: 
                   39439:     fi
                   39440:    ;;
                   39441:   esac
                   39442: 
                   39443: 
                   39444:     ;;
                   39445:     -L*)
                   39446:       ac_ii=`echo $ac_i|cut -c 3-`
                   39447: 
                   39448:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   39449: 
                   39450:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   39451:     ai_p=$ac_ii
                   39452:   else
                   39453: 
                   39454:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   39455: 
                   39456:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   39457:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   39458:   fi
                   39459: 
                   39460: 
                   39461:       if test "$ext_shared" = "yes"; then
                   39462:         LDFLAGS="-L$ai_p $LDFLAGS"
                   39463:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   39464:       else
                   39465: 
                   39466: 
                   39467: 
                   39468:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39469: 
                   39470:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   39471:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39472:     eval "LIBPATH$unique=set"
                   39473: 
                   39474:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   39475:     LDFLAGS="$LDFLAGS -L$ai_p"
                   39476:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   39477: 
                   39478:   fi
                   39479: 
                   39480: 
                   39481:       fi
                   39482: 
                   39483:   fi
                   39484: 
                   39485:     ;;
                   39486:     esac
                   39487:   done
                   39488: 
                   39489:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_New_Face in -lfreetype" >&5
                   39490: $as_echo_n "checking for FT_New_Face in -lfreetype... " >&6; }
                   39491: if ${ac_cv_lib_freetype_FT_New_Face+:} false; then :
                   39492:   $as_echo_n "(cached) " >&6
                   39493: else
                   39494:   ac_check_lib_save_LIBS=$LIBS
                   39495: LIBS="-lfreetype  $LIBS"
                   39496: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   39497: /* end confdefs.h.  */
                   39498: 
                   39499: /* Override any GCC internal prototype to avoid an error.
                   39500:    Use char because int might match the return type of a GCC
                   39501:    builtin and then its argument prototype would still apply.  */
                   39502: #ifdef __cplusplus
                   39503: extern "C"
                   39504: #endif
                   39505: char FT_New_Face ();
                   39506: int
                   39507: main ()
                   39508: {
                   39509: return FT_New_Face ();
                   39510:   ;
                   39511:   return 0;
                   39512: }
                   39513: _ACEOF
                   39514: if ac_fn_c_try_link "$LINENO"; then :
                   39515:   ac_cv_lib_freetype_FT_New_Face=yes
                   39516: else
                   39517:   ac_cv_lib_freetype_FT_New_Face=no
                   39518: fi
                   39519: rm -f core conftest.err conftest.$ac_objext \
                   39520:     conftest$ac_exeext conftest.$ac_ext
                   39521: LIBS=$ac_check_lib_save_LIBS
                   39522: fi
                   39523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_New_Face" >&5
                   39524: $as_echo "$ac_cv_lib_freetype_FT_New_Face" >&6; }
                   39525: if test "x$ac_cv_lib_freetype_FT_New_Face" = xyes; then :
                   39526: 
                   39527:     LDFLAGS=$save_old_LDFLAGS
                   39528:     ext_shared=$save_ext_shared
                   39529: 
                   39530: 
                   39531: 
                   39532:   if test "$ext_shared" = "yes"; then
                   39533:     GD_SHARED_LIBADD="-lfreetype $GD_SHARED_LIBADD"
                   39534:     if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
                   39535: 
                   39536:   if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   39537: 
                   39538:   if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   39539:     ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
                   39540:   else
                   39541: 
                   39542:     ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   39543: 
                   39544:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   39545:     ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
                   39546:   fi
                   39547: 
                   39548: 
                   39549:       if test "$ext_shared" = "yes"; then
                   39550:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
                   39551:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
                   39552:       else
                   39553: 
                   39554: 
                   39555: 
                   39556:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39557: 
                   39558:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   39559:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39560:     eval "LIBPATH$unique=set"
                   39561: 
                   39562:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   39563:     LDFLAGS="$LDFLAGS -L$ai_p"
                   39564:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   39565: 
                   39566:   fi
                   39567: 
                   39568: 
                   39569:       fi
                   39570: 
                   39571:   fi
                   39572: 
                   39573:     fi
                   39574:   else
                   39575: 
                   39576: 
                   39577:   if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
                   39578: 
                   39579:   if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   39580: 
                   39581:   if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   39582:     ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
                   39583:   else
                   39584: 
                   39585:     ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   39586: 
                   39587:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   39588:     ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
                   39589:   fi
                   39590: 
                   39591: 
                   39592: 
                   39593: 
                   39594: 
                   39595:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39596: 
                   39597:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   39598:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39599:     eval "LIBPATH$unique=set"
                   39600: 
                   39601:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   39602:     LDFLAGS="$LDFLAGS -L$ai_p"
                   39603:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   39604: 
                   39605:   fi
                   39606: 
                   39607: 
                   39608: 
                   39609:   fi
                   39610: 
                   39611:   fi
                   39612: 
                   39613: 
                   39614:   case freetype in
                   39615:   c|c_r|pthread*) ;;
                   39616:   *)
                   39617:       LIBS="-lfreetype $LIBS"
                   39618:    ;;
                   39619:   esac
                   39620: 
                   39621: 
                   39622: 
                   39623: 
                   39624:   fi
                   39625: 
                   39626: 
                   39627: 
                   39628:   if test "$FREETYPE2_DIR/include" != "/usr/include"; then
                   39629: 
                   39630:   if test -z "$FREETYPE2_DIR/include" || echo "$FREETYPE2_DIR/include" | grep '^/' >/dev/null ; then
                   39631:     ai_p=$FREETYPE2_DIR/include
                   39632:   else
                   39633: 
                   39634:     ep_dir="`echo $FREETYPE2_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   39635: 
                   39636:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   39637:     ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/include\"`"
                   39638:   fi
                   39639: 
                   39640: 
                   39641: 
                   39642:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39643: 
                   39644:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   39645:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39646:     eval "INCLUDEPATH$unique=set"
                   39647: 
                   39648:       if test ""; then
                   39649:         INCLUDES="-I$ai_p $INCLUDES"
                   39650:       else
                   39651:         INCLUDES="$INCLUDES -I$ai_p"
                   39652:       fi
                   39653: 
                   39654:   fi
                   39655: 
                   39656:   fi
                   39657: 
                   39658: 
                   39659:   if test "$FREETYPE2_INC_DIR" != "/usr/include"; then
                   39660: 
                   39661:   if test -z "$FREETYPE2_INC_DIR" || echo "$FREETYPE2_INC_DIR" | grep '^/' >/dev/null ; then
                   39662:     ai_p=$FREETYPE2_INC_DIR
                   39663:   else
                   39664: 
                   39665:     ep_dir="`echo $FREETYPE2_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   39666: 
                   39667:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   39668:     ai_p="$ep_realdir/`basename \"$FREETYPE2_INC_DIR\"`"
                   39669:   fi
                   39670: 
                   39671: 
                   39672: 
                   39673:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39674: 
                   39675:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   39676:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39677:     eval "INCLUDEPATH$unique=set"
                   39678: 
                   39679:       if test ""; then
                   39680:         INCLUDES="-I$ai_p $INCLUDES"
                   39681:       else
                   39682:         INCLUDES="$INCLUDES -I$ai_p"
                   39683:       fi
                   39684: 
                   39685:   fi
                   39686: 
                   39687:   fi
                   39688: 
                   39689: 
                   39690: $as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h
                   39691: 
                   39692: 
                   39693: $as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h
                   39694: 
                   39695: 
                   39696: $as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h
                   39697: 
                   39698: 
                   39699: 
                   39700: else
                   39701: 
                   39702:     LDFLAGS=$save_old_LDFLAGS
                   39703:     ext_shared=$save_ext_shared
                   39704:     unset ac_cv_lib_freetype_FT_New_Face
                   39705: 
                   39706:       as_fn_error $? "Problem with freetype.(a|so). Please check config.log for more information." "$LINENO" 5
                   39707: 
                   39708: 
                   39709: fi
                   39710: 
                   39711:   else
                   39712:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-freetype-dir=<DIR>" >&5
                   39713: $as_echo "If configure fails try --with-freetype-dir=<DIR>" >&6; }
                   39714:   fi
                   39715: 
                   39716: 
                   39717:   if test "$PHP_T1LIB" != "no"; then
                   39718: 
                   39719:     for i in $PHP_T1LIB /usr/local /usr; do
                   39720:       test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break
                   39721:     done
                   39722: 
                   39723:     if test -z "$GD_T1_DIR"; then
                   39724:       as_fn_error $? "Your t1lib distribution is not installed correctly. Please reinstall it." "$LINENO" 5
                   39725:     fi
                   39726: 
                   39727: 
                   39728:   save_old_LDFLAGS=$LDFLAGS
                   39729:   ac_stuff="
                   39730:       -L$GD_T1_DIR/$PHP_LIBDIR
                   39731:     "
                   39732: 
                   39733:   save_ext_shared=$ext_shared
                   39734:   ext_shared=yes
                   39735: 
                   39736:   for ac_i in $ac_stuff; do
                   39737:     case $ac_i in
                   39738:     -pthread)
                   39739:       if test "$ext_shared" = "yes"; then
                   39740:         LDFLAGS="$LDFLAGS -pthread"
                   39741:       else
                   39742: 
                   39743: 
                   39744:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39745: 
                   39746:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   39747:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39748:     eval "EXTRA_LDFLAGS$unique=set"
                   39749:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   39750:   fi
                   39751: 
                   39752:       fi
                   39753:     ;;
                   39754:     -l*)
                   39755:       ac_ii=`echo $ac_i|cut -c 3-`
                   39756: 
                   39757: 
                   39758:   case $ac_ii in
                   39759:   c|c_r|pthread*) ;;
                   39760:   *)
                   39761:     if test "$ext_shared" = "yes"; then
                   39762:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   39763:     else
                   39764: 
                   39765: 
                   39766:   case $ac_ii in
                   39767:   c|c_r|pthread*) ;;
                   39768:   *)
                   39769:       LIBS="$LIBS -l$ac_ii"
                   39770:    ;;
                   39771:   esac
                   39772: 
                   39773: 
                   39774:     fi
                   39775:    ;;
                   39776:   esac
                   39777: 
                   39778: 
                   39779:     ;;
                   39780:     -L*)
                   39781:       ac_ii=`echo $ac_i|cut -c 3-`
                   39782: 
                   39783:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   39784: 
                   39785:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   39786:     ai_p=$ac_ii
                   39787:   else
                   39788: 
                   39789:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   39790: 
                   39791:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   39792:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   39793:   fi
                   39794: 
                   39795: 
                   39796:       if test "$ext_shared" = "yes"; then
                   39797:         LDFLAGS="-L$ai_p $LDFLAGS"
                   39798:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   39799:       else
                   39800: 
                   39801: 
                   39802: 
                   39803:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39804: 
                   39805:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   39806:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39807:     eval "LIBPATH$unique=set"
                   39808: 
                   39809:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   39810:     LDFLAGS="$LDFLAGS -L$ai_p"
                   39811:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   39812: 
                   39813:   fi
                   39814: 
                   39815: 
                   39816:       fi
                   39817: 
                   39818:   fi
                   39819: 
                   39820:     ;;
                   39821:     esac
                   39822:   done
                   39823: 
                   39824:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1_StrError in -lt1" >&5
                   39825: $as_echo_n "checking for T1_StrError in -lt1... " >&6; }
                   39826: if ${ac_cv_lib_t1_T1_StrError+:} false; then :
                   39827:   $as_echo_n "(cached) " >&6
                   39828: else
                   39829:   ac_check_lib_save_LIBS=$LIBS
                   39830: LIBS="-lt1  $LIBS"
                   39831: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   39832: /* end confdefs.h.  */
                   39833: 
                   39834: /* Override any GCC internal prototype to avoid an error.
                   39835:    Use char because int might match the return type of a GCC
                   39836:    builtin and then its argument prototype would still apply.  */
                   39837: #ifdef __cplusplus
                   39838: extern "C"
                   39839: #endif
                   39840: char T1_StrError ();
                   39841: int
                   39842: main ()
                   39843: {
                   39844: return T1_StrError ();
                   39845:   ;
                   39846:   return 0;
                   39847: }
                   39848: _ACEOF
                   39849: if ac_fn_c_try_link "$LINENO"; then :
                   39850:   ac_cv_lib_t1_T1_StrError=yes
                   39851: else
                   39852:   ac_cv_lib_t1_T1_StrError=no
                   39853: fi
                   39854: rm -f core conftest.err conftest.$ac_objext \
                   39855:     conftest$ac_exeext conftest.$ac_ext
                   39856: LIBS=$ac_check_lib_save_LIBS
                   39857: fi
                   39858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_t1_T1_StrError" >&5
                   39859: $as_echo "$ac_cv_lib_t1_T1_StrError" >&6; }
                   39860: if test "x$ac_cv_lib_t1_T1_StrError" = xyes; then :
                   39861: 
                   39862:     LDFLAGS=$save_old_LDFLAGS
                   39863:     ext_shared=$save_ext_shared
                   39864: 
                   39865: 
                   39866: $as_echo "#define HAVE_LIBT1 1" >>confdefs.h
                   39867: 
                   39868: 
                   39869:   if test "$GD_T1_DIR/include" != "/usr/include"; then
                   39870: 
                   39871:   if test -z "$GD_T1_DIR/include" || echo "$GD_T1_DIR/include" | grep '^/' >/dev/null ; then
                   39872:     ai_p=$GD_T1_DIR/include
                   39873:   else
                   39874: 
                   39875:     ep_dir="`echo $GD_T1_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   39876: 
                   39877:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   39878:     ai_p="$ep_realdir/`basename \"$GD_T1_DIR/include\"`"
                   39879:   fi
                   39880: 
                   39881: 
                   39882: 
                   39883:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39884: 
                   39885:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   39886:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39887:     eval "INCLUDEPATH$unique=set"
                   39888: 
                   39889:       if test ""; then
                   39890:         INCLUDES="-I$ai_p $INCLUDES"
                   39891:       else
                   39892:         INCLUDES="$INCLUDES -I$ai_p"
                   39893:       fi
                   39894: 
                   39895:   fi
                   39896: 
                   39897:   fi
                   39898: 
                   39899: 
                   39900: 
                   39901:   if test "$ext_shared" = "yes"; then
                   39902:     GD_SHARED_LIBADD="-lt1 $GD_SHARED_LIBADD"
                   39903:     if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
                   39904: 
                   39905:   if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   39906: 
                   39907:   if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   39908:     ai_p=$GD_T1_DIR/$PHP_LIBDIR
                   39909:   else
                   39910: 
                   39911:     ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   39912: 
                   39913:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   39914:     ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
                   39915:   fi
                   39916: 
                   39917: 
                   39918:       if test "$ext_shared" = "yes"; then
                   39919:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
                   39920:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
                   39921:       else
                   39922: 
                   39923: 
                   39924: 
                   39925:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39926: 
                   39927:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   39928:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39929:     eval "LIBPATH$unique=set"
                   39930: 
                   39931:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   39932:     LDFLAGS="$LDFLAGS -L$ai_p"
                   39933:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   39934: 
                   39935:   fi
                   39936: 
                   39937: 
                   39938:       fi
                   39939: 
                   39940:   fi
                   39941: 
                   39942:     fi
                   39943:   else
                   39944: 
                   39945: 
                   39946:   if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
                   39947: 
                   39948:   if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   39949: 
                   39950:   if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   39951:     ai_p=$GD_T1_DIR/$PHP_LIBDIR
                   39952:   else
                   39953: 
                   39954:     ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   39955: 
                   39956:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   39957:     ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
                   39958:   fi
                   39959: 
                   39960: 
                   39961: 
                   39962: 
                   39963: 
                   39964:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   39965: 
                   39966:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   39967:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   39968:     eval "LIBPATH$unique=set"
                   39969: 
                   39970:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   39971:     LDFLAGS="$LDFLAGS -L$ai_p"
                   39972:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   39973: 
                   39974:   fi
                   39975: 
                   39976: 
                   39977: 
                   39978:   fi
                   39979: 
                   39980:   fi
                   39981: 
                   39982: 
                   39983:   case t1 in
                   39984:   c|c_r|pthread*) ;;
                   39985:   *)
                   39986:       LIBS="-lt1 $LIBS"
                   39987:    ;;
                   39988:   esac
                   39989: 
                   39990: 
                   39991: 
                   39992: 
                   39993:   fi
                   39994: 
                   39995: 
                   39996: 
                   39997: 
                   39998: else
                   39999: 
                   40000:     LDFLAGS=$save_old_LDFLAGS
                   40001:     ext_shared=$save_ext_shared
                   40002:     unset ac_cv_lib_t1_T1_StrError
                   40003: 
                   40004:       as_fn_error $? "Problem with libt1.(a|so). Please check config.log for more information." "$LINENO" 5
                   40005: 
                   40006: 
                   40007: fi
                   40008: 
                   40009:   fi
                   40010: 
                   40011: 
                   40012: 
                   40013: $as_echo "#define HAVE_LIBGD 1" >>confdefs.h
                   40014: 
                   40015: 
                   40016: $as_echo "#define HAVE_LIBGD13 1" >>confdefs.h
                   40017: 
                   40018: 
                   40019: $as_echo "#define HAVE_LIBGD15 1" >>confdefs.h
                   40020: 
                   40021: 
                   40022: $as_echo "#define HAVE_LIBGD20 1" >>confdefs.h
                   40023: 
                   40024: 
                   40025: $as_echo "#define HAVE_LIBGD204 1" >>confdefs.h
                   40026: 
                   40027: 
                   40028: $as_echo "#define HAVE_GD_IMAGESETTILE 1" >>confdefs.h
                   40029: 
                   40030: 
                   40031: $as_echo "#define HAVE_GD_IMAGESETBRUSH 1" >>confdefs.h
                   40032: 
                   40033: 
                   40034: $as_echo "#define HAVE_GDIMAGECOLORRESOLVE 1" >>confdefs.h
                   40035: 
                   40036: 
                   40037: $as_echo "#define HAVE_COLORCLOSESTHWB 1" >>confdefs.h
                   40038: 
                   40039: 
                   40040: $as_echo "#define HAVE_GD_WBMP 1" >>confdefs.h
                   40041: 
                   40042: 
                   40043: $as_echo "#define HAVE_GD_GD2 1" >>confdefs.h
                   40044: 
                   40045: 
                   40046: $as_echo "#define HAVE_GD_PNG 1" >>confdefs.h
                   40047: 
                   40048: 
                   40049: $as_echo "#define HAVE_GD_XBM 1" >>confdefs.h
                   40050: 
                   40051: 
                   40052: $as_echo "#define HAVE_GD_BUNDLED 1" >>confdefs.h
                   40053: 
                   40054: 
                   40055: $as_echo "#define HAVE_GD_GIF_READ 1" >>confdefs.h
                   40056: 
                   40057: 
                   40058: $as_echo "#define HAVE_GD_GIF_CREATE 1" >>confdefs.h
                   40059: 
                   40060: 
                   40061: $as_echo "#define HAVE_GD_IMAGEELLIPSE 1" >>confdefs.h
                   40062: 
                   40063: 
                   40064: $as_echo "#define HAVE_GD_FONTCACHESHUTDOWN 1" >>confdefs.h
                   40065: 
                   40066: 
                   40067: $as_echo "#define HAVE_GD_FONTMUTEX 1" >>confdefs.h
                   40068: 
                   40069: 
                   40070: $as_echo "#define HAVE_GD_DYNAMIC_CTX_EX 1" >>confdefs.h
                   40071: 
                   40072: 
                   40073: $as_echo "#define HAVE_GD_GIF_CTX 1" >>confdefs.h
                   40074: 
                   40075: 
                   40076:   GDLIB_CFLAGS="-DHAVE_LIBPNG"
                   40077: 
                   40078: 
1.1.1.2 ! misho    40079:   if test -n "$GD_VPX_DIR"; then
        !          40080: 
        !          40081: $as_echo "#define HAVE_GD_WEBP 1" >>confdefs.h
        !          40082: 
        !          40083:     GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBVPX"
        !          40084:   fi
        !          40085: 
1.1       misho    40086:   if test -n "$GD_JPEG_DIR"; then
                   40087: 
                   40088: $as_echo "#define HAVE_GD_JPG 1" >>confdefs.h
                   40089: 
                   40090:     GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBJPEG"
                   40091:   fi
                   40092: 
                   40093:   if test -n "$GD_XPM_DIR"; then
                   40094: 
                   40095: $as_echo "#define HAVE_GD_XPM 1" >>confdefs.h
                   40096: 
                   40097:     GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_XPM"
                   40098:   fi
                   40099: 
                   40100:   if test -n "$FREETYPE2_DIR"; then
                   40101: 
                   40102: $as_echo "#define HAVE_GD_STRINGFT 1" >>confdefs.h
                   40103: 
                   40104: 
                   40105: $as_echo "#define HAVE_GD_STRINGFTEX 1" >>confdefs.h
                   40106: 
                   40107: 
                   40108: $as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h
                   40109: 
                   40110:     GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBFREETYPE -DENABLE_GD_TTF"
                   40111:   fi
                   40112: 
                   40113:   if test -n "$USE_GD_JIS_CONV"; then
                   40114: 
                   40115: $as_echo "#define USE_GD_JISX0208 1" >>confdefs.h
                   40116: 
                   40117:     GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208"
                   40118:   fi
                   40119: 
                   40120: else
                   40121: 
                   40122:  if test "$PHP_GD" != "no"; then
                   40123:   GD_MODULE_TYPE=external
                   40124:   extra_sources="gdcache.c libgd/gd_compat.c libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_arc.c \
                   40125:                  libgd/gd_rotate.c libgd/gd_color.c"
                   40126: 
                   40127: 
                   40128:        if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
                   40129:                if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
                   40130:                        PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
                   40131:                        PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
                   40132:                elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
                   40133:                        PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
                   40134:                        PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
                   40135:                else
                   40136:                        as_fn_error $? "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5
                   40137:                fi
                   40138:        else
                   40139:                for i in /usr/local /usr; do
                   40140:                        if test -f "$i/include/zlib/zlib.h"; then
                   40141:                                PHP_ZLIB_DIR="$i"
                   40142:                                PHP_ZLIB_INCDIR="$i/include/zlib"
                   40143:                        elif test -f "$i/include/zlib.h"; then
                   40144:                                PHP_ZLIB_DIR="$i"
                   40145:                                PHP_ZLIB_INCDIR="$i/include"
                   40146:                        fi
                   40147:                done
                   40148:        fi
                   40149: 
                   40150: 
                   40151:   if test "$PHP_GD_NATIVE_TTF" = "yes"; then
                   40152: 
                   40153: $as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h
                   40154: 
                   40155:   fi
                   40156: 
                   40157: 
1.1.1.2 ! misho    40158:   if test "$PHP_VPX_DIR" != "no"; then
1.1       misho    40159: 
1.1.1.2 ! misho    40160:     for i in $PHP_VPX_DIR /usr/local /usr; do
        !          40161:       test -f $i/include/vpx_codec.h || test -f $i/include/vpx/vpx_codec.h && GD_VPX_DIR=$i && break
1.1       misho    40162:     done
                   40163: 
1.1.1.2 ! misho    40164:     if test -z "$GD_VPX_DIR"; then
        !          40165:       as_fn_error $? "vpx_codec.h not found." "$LINENO" 5
1.1       misho    40166:     fi
                   40167: 
                   40168: 
                   40169:   save_old_LDFLAGS=$LDFLAGS
                   40170:   ac_stuff="
1.1.1.2 ! misho    40171:       -L$GD_VPX_DIR/$PHP_LIBDIR
1.1       misho    40172:     "
                   40173: 
                   40174:   save_ext_shared=$ext_shared
                   40175:   ext_shared=yes
                   40176: 
                   40177:   for ac_i in $ac_stuff; do
                   40178:     case $ac_i in
                   40179:     -pthread)
                   40180:       if test "$ext_shared" = "yes"; then
                   40181:         LDFLAGS="$LDFLAGS -pthread"
                   40182:       else
                   40183: 
                   40184: 
                   40185:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   40186: 
                   40187:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   40188:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   40189:     eval "EXTRA_LDFLAGS$unique=set"
                   40190:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   40191:   fi
                   40192: 
                   40193:       fi
                   40194:     ;;
                   40195:     -l*)
                   40196:       ac_ii=`echo $ac_i|cut -c 3-`
                   40197: 
                   40198: 
                   40199:   case $ac_ii in
                   40200:   c|c_r|pthread*) ;;
                   40201:   *)
                   40202:     if test "$ext_shared" = "yes"; then
                   40203:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   40204:     else
                   40205: 
                   40206: 
                   40207:   case $ac_ii in
                   40208:   c|c_r|pthread*) ;;
                   40209:   *)
                   40210:       LIBS="$LIBS -l$ac_ii"
                   40211:    ;;
                   40212:   esac
                   40213: 
                   40214: 
                   40215:     fi
                   40216:    ;;
                   40217:   esac
                   40218: 
                   40219: 
                   40220:     ;;
                   40221:     -L*)
                   40222:       ac_ii=`echo $ac_i|cut -c 3-`
                   40223: 
                   40224:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   40225: 
                   40226:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   40227:     ai_p=$ac_ii
                   40228:   else
                   40229: 
                   40230:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   40231: 
                   40232:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   40233:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   40234:   fi
                   40235: 
                   40236: 
                   40237:       if test "$ext_shared" = "yes"; then
                   40238:         LDFLAGS="-L$ai_p $LDFLAGS"
                   40239:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   40240:       else
                   40241: 
                   40242: 
                   40243: 
                   40244:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   40245: 
                   40246:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   40247:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   40248:     eval "LIBPATH$unique=set"
                   40249: 
                   40250:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   40251:     LDFLAGS="$LDFLAGS -L$ai_p"
                   40252:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   40253: 
                   40254:   fi
                   40255: 
                   40256: 
                   40257:       fi
                   40258: 
                   40259:   fi
                   40260: 
                   40261:     ;;
                   40262:     esac
                   40263:   done
                   40264: 
1.1.1.2 ! misho    40265:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpx_codec_destroy in -lvpx" >&5
        !          40266: $as_echo_n "checking for vpx_codec_destroy in -lvpx... " >&6; }
        !          40267: if ${ac_cv_lib_vpx_vpx_codec_destroy+:} false; then :
1.1       misho    40268:   $as_echo_n "(cached) " >&6
                   40269: else
                   40270:   ac_check_lib_save_LIBS=$LIBS
1.1.1.2 ! misho    40271: LIBS="-lvpx  $LIBS"
1.1       misho    40272: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   40273: /* end confdefs.h.  */
                   40274: 
                   40275: /* Override any GCC internal prototype to avoid an error.
                   40276:    Use char because int might match the return type of a GCC
                   40277:    builtin and then its argument prototype would still apply.  */
                   40278: #ifdef __cplusplus
                   40279: extern "C"
                   40280: #endif
1.1.1.2 ! misho    40281: char vpx_codec_destroy ();
1.1       misho    40282: int
                   40283: main ()
                   40284: {
1.1.1.2 ! misho    40285: return vpx_codec_destroy ();
1.1       misho    40286:   ;
                   40287:   return 0;
                   40288: }
                   40289: _ACEOF
                   40290: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2 ! misho    40291:   ac_cv_lib_vpx_vpx_codec_destroy=yes
1.1       misho    40292: else
1.1.1.2 ! misho    40293:   ac_cv_lib_vpx_vpx_codec_destroy=no
1.1       misho    40294: fi
                   40295: rm -f core conftest.err conftest.$ac_objext \
                   40296:     conftest$ac_exeext conftest.$ac_ext
                   40297: LIBS=$ac_check_lib_save_LIBS
                   40298: fi
1.1.1.2 ! misho    40299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vpx_vpx_codec_destroy" >&5
        !          40300: $as_echo "$ac_cv_lib_vpx_vpx_codec_destroy" >&6; }
        !          40301: if test "x$ac_cv_lib_vpx_vpx_codec_destroy" = xyes; then :
1.1       misho    40302: 
                   40303:     LDFLAGS=$save_old_LDFLAGS
                   40304:     ext_shared=$save_ext_shared
                   40305: 
                   40306: 
1.1.1.2 ! misho    40307:   if test "$GD_VPX_DIR/include" != "/usr/include"; then
1.1       misho    40308: 
1.1.1.2 ! misho    40309:   if test -z "$GD_VPX_DIR/include" || echo "$GD_VPX_DIR/include" | grep '^/' >/dev/null ; then
        !          40310:     ai_p=$GD_VPX_DIR/include
1.1       misho    40311:   else
                   40312: 
1.1.1.2 ! misho    40313:     ep_dir="`echo $GD_VPX_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
1.1       misho    40314: 
                   40315:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 ! misho    40316:     ai_p="$ep_realdir/`basename \"$GD_VPX_DIR/include\"`"
1.1       misho    40317:   fi
                   40318: 
                   40319: 
                   40320: 
                   40321:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   40322: 
                   40323:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   40324:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   40325:     eval "INCLUDEPATH$unique=set"
                   40326: 
                   40327:       if test ""; then
                   40328:         INCLUDES="-I$ai_p $INCLUDES"
                   40329:       else
                   40330:         INCLUDES="$INCLUDES -I$ai_p"
                   40331:       fi
                   40332: 
                   40333:   fi
                   40334: 
                   40335:   fi
                   40336: 
                   40337: 
                   40338: 
1.1.1.2 ! misho    40339:   case pthread in
        !          40340:   c|c_r|pthread*) ;;
        !          40341:   *)
        !          40342:       LIBS="-lpthread $LIBS"
        !          40343:    ;;
        !          40344:   esac
        !          40345: 
        !          40346: 
        !          40347: 
        !          40348: 
1.1       misho    40349:   if test "$ext_shared" = "yes"; then
1.1.1.2 ! misho    40350:     GD_SHARED_LIBADD="-lvpx $GD_SHARED_LIBADD"
        !          40351:     if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then
1.1       misho    40352: 
1.1.1.2 ! misho    40353:   if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then
1.1       misho    40354: 
1.1.1.2 ! misho    40355:   if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
        !          40356:     ai_p=$GD_VPX_DIR/$PHP_LIBDIR
1.1       misho    40357:   else
                   40358: 
1.1.1.2 ! misho    40359:     ep_dir="`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
1.1       misho    40360: 
                   40361:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 ! misho    40362:     ai_p="$ep_realdir/`basename \"$GD_VPX_DIR/$PHP_LIBDIR\"`"
1.1       misho    40363:   fi
                   40364: 
                   40365: 
                   40366:       if test "$ext_shared" = "yes"; then
                   40367:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
                   40368:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
                   40369:       else
                   40370: 
                   40371: 
                   40372: 
                   40373:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   40374: 
                   40375:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   40376:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   40377:     eval "LIBPATH$unique=set"
                   40378: 
                   40379:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   40380:     LDFLAGS="$LDFLAGS -L$ai_p"
                   40381:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   40382: 
                   40383:   fi
                   40384: 
                   40385: 
                   40386:       fi
                   40387: 
                   40388:   fi
                   40389: 
                   40390:     fi
                   40391:   else
                   40392: 
                   40393: 
1.1.1.2 ! misho    40394:   if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then
1.1       misho    40395: 
1.1.1.2 ! misho    40396:   if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then
1.1       misho    40397: 
1.1.1.2 ! misho    40398:   if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
        !          40399:     ai_p=$GD_VPX_DIR/$PHP_LIBDIR
1.1       misho    40400:   else
                   40401: 
1.1.1.2 ! misho    40402:     ep_dir="`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
1.1       misho    40403: 
                   40404:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 ! misho    40405:     ai_p="$ep_realdir/`basename \"$GD_VPX_DIR/$PHP_LIBDIR\"`"
1.1       misho    40406:   fi
                   40407: 
                   40408: 
                   40409: 
                   40410: 
                   40411: 
                   40412:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   40413: 
                   40414:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   40415:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   40416:     eval "LIBPATH$unique=set"
                   40417: 
                   40418:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   40419:     LDFLAGS="$LDFLAGS -L$ai_p"
                   40420:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   40421: 
                   40422:   fi
                   40423: 
                   40424: 
                   40425: 
                   40426:   fi
                   40427: 
                   40428:   fi
                   40429: 
                   40430: 
1.1.1.2 ! misho    40431:   case vpx in
1.1       misho    40432:   c|c_r|pthread*) ;;
                   40433:   *)
1.1.1.2 ! misho    40434:       LIBS="-lvpx $LIBS"
1.1       misho    40435:    ;;
                   40436:   esac
                   40437: 
                   40438: 
                   40439: 
                   40440: 
                   40441:   fi
                   40442: 
                   40443: 
                   40444: 
                   40445: 
                   40446: else
                   40447: 
                   40448:     LDFLAGS=$save_old_LDFLAGS
                   40449:     ext_shared=$save_ext_shared
1.1.1.2 ! misho    40450:     unset ac_cv_lib_vpx_vpx_codec_destroy
1.1       misho    40451: 
1.1.1.2 ! misho    40452:       as_fn_error $? "Problem with libvpx.(a|so). Please check config.log for more information." "$LINENO" 5
1.1       misho    40453: 
                   40454: 
                   40455: fi
                   40456: 
                   40457:   else
1.1.1.2 ! misho    40458:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-vpx-dir=<DIR>" >&5
        !          40459: $as_echo "If configure fails try --with-vpx-dir=<DIR>" >&6; }
1.1       misho    40460:   fi
                   40461: 
                   40462: 
1.1.1.2 ! misho    40463:   if test "$PHP_JPEG_DIR" != "no"; then
1.1       misho    40464: 
1.1.1.2 ! misho    40465:     for i in $PHP_JPEG_DIR /usr/local /usr; do
        !          40466:       test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break
1.1       misho    40467:     done
                   40468: 
1.1.1.2 ! misho    40469:     if test -z "$GD_JPEG_DIR"; then
        !          40470:       as_fn_error $? "jpeglib.h not found." "$LINENO" 5
1.1       misho    40471:     fi
                   40472: 
                   40473: 
                   40474:   save_old_LDFLAGS=$LDFLAGS
                   40475:   ac_stuff="
1.1.1.2 ! misho    40476:       -L$GD_JPEG_DIR/$PHP_LIBDIR
1.1       misho    40477:     "
                   40478: 
                   40479:   save_ext_shared=$ext_shared
                   40480:   ext_shared=yes
                   40481: 
                   40482:   for ac_i in $ac_stuff; do
                   40483:     case $ac_i in
                   40484:     -pthread)
                   40485:       if test "$ext_shared" = "yes"; then
                   40486:         LDFLAGS="$LDFLAGS -pthread"
                   40487:       else
                   40488: 
                   40489: 
                   40490:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   40491: 
                   40492:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   40493:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   40494:     eval "EXTRA_LDFLAGS$unique=set"
                   40495:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   40496:   fi
                   40497: 
                   40498:       fi
                   40499:     ;;
                   40500:     -l*)
                   40501:       ac_ii=`echo $ac_i|cut -c 3-`
                   40502: 
                   40503: 
                   40504:   case $ac_ii in
                   40505:   c|c_r|pthread*) ;;
                   40506:   *)
                   40507:     if test "$ext_shared" = "yes"; then
                   40508:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   40509:     else
                   40510: 
                   40511: 
                   40512:   case $ac_ii in
                   40513:   c|c_r|pthread*) ;;
                   40514:   *)
                   40515:       LIBS="$LIBS -l$ac_ii"
                   40516:    ;;
                   40517:   esac
                   40518: 
                   40519: 
                   40520:     fi
                   40521:    ;;
                   40522:   esac
                   40523: 
                   40524: 
                   40525:     ;;
                   40526:     -L*)
                   40527:       ac_ii=`echo $ac_i|cut -c 3-`
                   40528: 
                   40529:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   40530: 
                   40531:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   40532:     ai_p=$ac_ii
                   40533:   else
                   40534: 
                   40535:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   40536: 
                   40537:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   40538:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   40539:   fi
                   40540: 
                   40541: 
                   40542:       if test "$ext_shared" = "yes"; then
                   40543:         LDFLAGS="-L$ai_p $LDFLAGS"
                   40544:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   40545:       else
                   40546: 
                   40547: 
                   40548: 
                   40549:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   40550: 
                   40551:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   40552:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   40553:     eval "LIBPATH$unique=set"
                   40554: 
                   40555:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   40556:     LDFLAGS="$LDFLAGS -L$ai_p"
                   40557:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   40558: 
                   40559:   fi
                   40560: 
                   40561: 
                   40562:       fi
                   40563: 
                   40564:   fi
                   40565: 
                   40566:     ;;
                   40567:     esac
                   40568:   done
                   40569: 
1.1.1.2 ! misho    40570:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
        !          40571: $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
        !          40572: if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
1.1       misho    40573:   $as_echo_n "(cached) " >&6
                   40574: else
                   40575:   ac_check_lib_save_LIBS=$LIBS
1.1.1.2 ! misho    40576: LIBS="-ljpeg  $LIBS"
1.1       misho    40577: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   40578: /* end confdefs.h.  */
                   40579: 
                   40580: /* Override any GCC internal prototype to avoid an error.
                   40581:    Use char because int might match the return type of a GCC
                   40582:    builtin and then its argument prototype would still apply.  */
                   40583: #ifdef __cplusplus
                   40584: extern "C"
                   40585: #endif
1.1.1.2 ! misho    40586: char jpeg_read_header ();
1.1       misho    40587: int
                   40588: main ()
                   40589: {
1.1.1.2 ! misho    40590: return jpeg_read_header ();
1.1       misho    40591:   ;
                   40592:   return 0;
                   40593: }
                   40594: _ACEOF
                   40595: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2 ! misho    40596:   ac_cv_lib_jpeg_jpeg_read_header=yes
1.1       misho    40597: else
1.1.1.2 ! misho    40598:   ac_cv_lib_jpeg_jpeg_read_header=no
1.1       misho    40599: fi
                   40600: rm -f core conftest.err conftest.$ac_objext \
                   40601:     conftest$ac_exeext conftest.$ac_ext
                   40602: LIBS=$ac_check_lib_save_LIBS
                   40603: fi
1.1.1.2 ! misho    40604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
        !          40605: $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
        !          40606: if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
1.1       misho    40607: 
                   40608:     LDFLAGS=$save_old_LDFLAGS
                   40609:     ext_shared=$save_ext_shared
                   40610: 
                   40611: 
1.1.1.2 ! misho    40612:   if test "$GD_JPEG_DIR/include" != "/usr/include"; then
1.1       misho    40613: 
1.1.1.2 ! misho    40614:   if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then
        !          40615:     ai_p=$GD_JPEG_DIR/include
1.1       misho    40616:   else
                   40617: 
1.1.1.2 ! misho    40618:     ep_dir="`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
1.1       misho    40619: 
                   40620:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 ! misho    40621:     ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/include\"`"
1.1       misho    40622:   fi
                   40623: 
                   40624: 
                   40625: 
                   40626:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   40627: 
                   40628:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   40629:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   40630:     eval "INCLUDEPATH$unique=set"
                   40631: 
                   40632:       if test ""; then
                   40633:         INCLUDES="-I$ai_p $INCLUDES"
                   40634:       else
                   40635:         INCLUDES="$INCLUDES -I$ai_p"
                   40636:       fi
                   40637: 
                   40638:   fi
                   40639: 
                   40640:   fi
                   40641: 
                   40642: 
                   40643: 
                   40644:   if test "$ext_shared" = "yes"; then
1.1.1.2 ! misho    40645:     GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD"
        !          40646:     if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
1.1       misho    40647: 
1.1.1.2 ! misho    40648:   if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
1.1       misho    40649: 
1.1.1.2 ! misho    40650:   if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
        !          40651:     ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
1.1       misho    40652:   else
                   40653: 
1.1.1.2 ! misho    40654:     ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
1.1       misho    40655: 
                   40656:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 ! misho    40657:     ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
1.1       misho    40658:   fi
                   40659: 
                   40660: 
                   40661:       if test "$ext_shared" = "yes"; then
                   40662:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
                   40663:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
                   40664:       else
                   40665: 
                   40666: 
                   40667: 
                   40668:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   40669: 
                   40670:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   40671:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   40672:     eval "LIBPATH$unique=set"
                   40673: 
                   40674:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   40675:     LDFLAGS="$LDFLAGS -L$ai_p"
                   40676:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   40677: 
                   40678:   fi
                   40679: 
                   40680: 
                   40681:       fi
                   40682: 
                   40683:   fi
                   40684: 
                   40685:     fi
                   40686:   else
                   40687: 
                   40688: 
1.1.1.2 ! misho    40689:   if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
1.1       misho    40690: 
1.1.1.2 ! misho    40691:   if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
1.1       misho    40692: 
1.1.1.2 ! misho    40693:   if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
        !          40694:     ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
1.1       misho    40695:   else
                   40696: 
1.1.1.2 ! misho    40697:     ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
1.1       misho    40698: 
                   40699:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
1.1.1.2 ! misho    40700:     ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
1.1       misho    40701:   fi
                   40702: 
                   40703: 
                   40704: 
                   40705: 
                   40706: 
                   40707:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   40708: 
                   40709:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   40710:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   40711:     eval "LIBPATH$unique=set"
                   40712: 
                   40713:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   40714:     LDFLAGS="$LDFLAGS -L$ai_p"
                   40715:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   40716: 
                   40717:   fi
                   40718: 
                   40719: 
                   40720: 
                   40721:   fi
                   40722: 
                   40723:   fi
                   40724: 
                   40725: 
1.1.1.2 ! misho    40726:   case jpeg in
1.1       misho    40727:   c|c_r|pthread*) ;;
                   40728:   *)
1.1.1.2 ! misho    40729:       LIBS="-ljpeg $LIBS"
1.1       misho    40730:    ;;
                   40731:   esac
                   40732: 
                   40733: 
                   40734: 
                   40735: 
                   40736:   fi
                   40737: 
                   40738: 
                   40739: 
                   40740: 
1.1.1.2 ! misho    40741: else
1.1       misho    40742: 
1.1.1.2 ! misho    40743:     LDFLAGS=$save_old_LDFLAGS
        !          40744:     ext_shared=$save_ext_shared
        !          40745:     unset ac_cv_lib_jpeg_jpeg_read_header
1.1       misho    40746: 
1.1.1.2 ! misho    40747:       as_fn_error $? "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5
1.1       misho    40748: 
                   40749: 
1.1.1.2 ! misho    40750: fi
        !          40751: 
        !          40752:   else
        !          40753:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-jpeg-dir=<DIR>" >&5
        !          40754: $as_echo "If configure fails try --with-jpeg-dir=<DIR>" >&6; }
1.1       misho    40755:   fi
                   40756: 
                   40757: 
1.1.1.2 ! misho    40758:   if test "$PHP_PNG_DIR" != "no"; then
        !          40759: 
        !          40760:     for i in $PHP_PNG_DIR /usr/local /usr; do
        !          40761:       test -f $i/include/png.h && GD_PNG_DIR=$i && break
        !          40762:     done
1.1       misho    40763: 
1.1.1.2 ! misho    40764:     if test -z "$GD_PNG_DIR"; then
        !          40765:       as_fn_error $? "png.h not found." "$LINENO" 5
        !          40766:     fi
1.1       misho    40767: 
1.1.1.2 ! misho    40768:     if test "$PHP_ZLIB_DIR" = "no"; then
        !          40769:       as_fn_error $? "PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" "$LINENO" 5
        !          40770:     fi
1.1       misho    40771: 
                   40772: 
1.1.1.2 ! misho    40773:   save_old_LDFLAGS=$LDFLAGS
        !          40774:   ac_stuff="
        !          40775:       -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR
        !          40776:     "
1.1       misho    40777: 
1.1.1.2 ! misho    40778:   save_ext_shared=$ext_shared
        !          40779:   ext_shared=yes
1.1       misho    40780: 
1.1.1.2 ! misho    40781:   for ac_i in $ac_stuff; do
        !          40782:     case $ac_i in
        !          40783:     -pthread)
        !          40784:       if test "$ext_shared" = "yes"; then
        !          40785:         LDFLAGS="$LDFLAGS -pthread"
        !          40786:       else
1.1       misho    40787: 
                   40788: 
1.1.1.2 ! misho    40789:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1       misho    40790: 
1.1.1.2 ! misho    40791:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
        !          40792:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          40793:     eval "EXTRA_LDFLAGS$unique=set"
        !          40794:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
1.1       misho    40795:   fi
                   40796: 
1.1.1.2 ! misho    40797:       fi
        !          40798:     ;;
        !          40799:     -l*)
        !          40800:       ac_ii=`echo $ac_i|cut -c 3-`
1.1       misho    40801: 
                   40802: 
1.1.1.2 ! misho    40803:   case $ac_ii in
        !          40804:   c|c_r|pthread*) ;;
        !          40805:   *)
        !          40806:     if test "$ext_shared" = "yes"; then
        !          40807:         LDFLAGS="$LDFLAGS -l$ac_ii"
        !          40808:     else
1.1       misho    40809: 
                   40810: 
1.1.1.2 ! misho    40811:   case $ac_ii in
        !          40812:   c|c_r|pthread*) ;;
        !          40813:   *)
        !          40814:       LIBS="$LIBS -l$ac_ii"
        !          40815:    ;;
        !          40816:   esac
1.1       misho    40817: 
                   40818: 
1.1.1.2 ! misho    40819:     fi
        !          40820:    ;;
        !          40821:   esac
        !          40822: 
        !          40823: 
        !          40824:     ;;
        !          40825:     -L*)
        !          40826:       ac_ii=`echo $ac_i|cut -c 3-`
        !          40827: 
        !          40828:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
        !          40829: 
        !          40830:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
        !          40831:     ai_p=$ac_ii
        !          40832:   else
        !          40833: 
        !          40834:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
        !          40835: 
        !          40836:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          40837:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
        !          40838:   fi
        !          40839: 
        !          40840: 
        !          40841:       if test "$ext_shared" = "yes"; then
        !          40842:         LDFLAGS="-L$ai_p $LDFLAGS"
        !          40843:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
        !          40844:       else
        !          40845: 
        !          40846: 
        !          40847: 
        !          40848:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          40849: 
        !          40850:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
        !          40851:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          40852:     eval "LIBPATH$unique=set"
        !          40853: 
        !          40854:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
        !          40855:     LDFLAGS="$LDFLAGS -L$ai_p"
        !          40856:     PHP_RPATHS="$PHP_RPATHS $ai_p"
        !          40857: 
        !          40858:   fi
        !          40859: 
        !          40860: 
        !          40861:       fi
        !          40862: 
        !          40863:   fi
        !          40864: 
        !          40865:     ;;
        !          40866:     esac
        !          40867:   done
        !          40868: 
        !          40869:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_image in -lpng" >&5
        !          40870: $as_echo_n "checking for png_write_image in -lpng... " >&6; }
        !          40871: if ${ac_cv_lib_png_png_write_image+:} false; then :
        !          40872:   $as_echo_n "(cached) " >&6
        !          40873: else
        !          40874:   ac_check_lib_save_LIBS=$LIBS
        !          40875: LIBS="-lpng  $LIBS"
        !          40876: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          40877: /* end confdefs.h.  */
        !          40878: 
        !          40879: /* Override any GCC internal prototype to avoid an error.
        !          40880:    Use char because int might match the return type of a GCC
        !          40881:    builtin and then its argument prototype would still apply.  */
        !          40882: #ifdef __cplusplus
        !          40883: extern "C"
        !          40884: #endif
        !          40885: char png_write_image ();
        !          40886: int
        !          40887: main ()
        !          40888: {
        !          40889: return png_write_image ();
        !          40890:   ;
        !          40891:   return 0;
        !          40892: }
        !          40893: _ACEOF
        !          40894: if ac_fn_c_try_link "$LINENO"; then :
        !          40895:   ac_cv_lib_png_png_write_image=yes
        !          40896: else
        !          40897:   ac_cv_lib_png_png_write_image=no
        !          40898: fi
        !          40899: rm -f core conftest.err conftest.$ac_objext \
        !          40900:     conftest$ac_exeext conftest.$ac_ext
        !          40901: LIBS=$ac_check_lib_save_LIBS
        !          40902: fi
        !          40903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_image" >&5
        !          40904: $as_echo "$ac_cv_lib_png_png_write_image" >&6; }
        !          40905: if test "x$ac_cv_lib_png_png_write_image" = xyes; then :
        !          40906: 
        !          40907:     LDFLAGS=$save_old_LDFLAGS
        !          40908:     ext_shared=$save_ext_shared
        !          40909: 
        !          40910: 
        !          40911:   if test "$GD_PNG_DIR/include" != "/usr/include"; then
        !          40912: 
        !          40913:   if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then
        !          40914:     ai_p=$GD_PNG_DIR/include
        !          40915:   else
        !          40916: 
        !          40917:     ep_dir="`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
        !          40918: 
        !          40919:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          40920:     ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/include\"`"
        !          40921:   fi
        !          40922: 
        !          40923: 
        !          40924: 
        !          40925:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          40926: 
        !          40927:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
        !          40928:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          40929:     eval "INCLUDEPATH$unique=set"
        !          40930: 
        !          40931:       if test ""; then
        !          40932:         INCLUDES="-I$ai_p $INCLUDES"
        !          40933:       else
        !          40934:         INCLUDES="$INCLUDES -I$ai_p"
        !          40935:       fi
        !          40936: 
        !          40937:   fi
        !          40938: 
        !          40939:   fi
        !          40940: 
        !          40941: 
        !          40942: 
        !          40943:   if test "$ext_shared" = "yes"; then
        !          40944:     GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD"
        !          40945:     if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
        !          40946: 
        !          40947:   if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
        !          40948: 
        !          40949:   if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
        !          40950:     ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
        !          40951:   else
        !          40952: 
        !          40953:     ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
        !          40954: 
        !          40955:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          40956:     ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
        !          40957:   fi
        !          40958: 
        !          40959: 
        !          40960:       if test "$ext_shared" = "yes"; then
        !          40961:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
        !          40962:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
        !          40963:       else
        !          40964: 
        !          40965: 
        !          40966: 
        !          40967:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          40968: 
        !          40969:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
        !          40970:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          40971:     eval "LIBPATH$unique=set"
        !          40972: 
        !          40973:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
        !          40974:     LDFLAGS="$LDFLAGS -L$ai_p"
        !          40975:     PHP_RPATHS="$PHP_RPATHS $ai_p"
        !          40976: 
        !          40977:   fi
        !          40978: 
        !          40979: 
        !          40980:       fi
        !          40981: 
        !          40982:   fi
        !          40983: 
        !          40984:     fi
        !          40985:   else
        !          40986: 
        !          40987: 
        !          40988:   if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
        !          40989: 
        !          40990:   if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
        !          40991: 
        !          40992:   if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
        !          40993:     ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
        !          40994:   else
        !          40995: 
        !          40996:     ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
        !          40997: 
        !          40998:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          40999:     ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
        !          41000:   fi
        !          41001: 
        !          41002: 
        !          41003: 
        !          41004: 
        !          41005: 
        !          41006:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          41007: 
        !          41008:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
        !          41009:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          41010:     eval "LIBPATH$unique=set"
        !          41011: 
        !          41012:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
        !          41013:     LDFLAGS="$LDFLAGS -L$ai_p"
        !          41014:     PHP_RPATHS="$PHP_RPATHS $ai_p"
        !          41015: 
        !          41016:   fi
        !          41017: 
        !          41018: 
        !          41019: 
        !          41020:   fi
        !          41021: 
        !          41022:   fi
        !          41023: 
        !          41024: 
        !          41025:   case z in
        !          41026:   c|c_r|pthread*) ;;
        !          41027:   *)
        !          41028:       LIBS="-lz $LIBS"
        !          41029:    ;;
        !          41030:   esac
        !          41031: 
        !          41032: 
        !          41033: 
        !          41034: 
        !          41035:   fi
        !          41036: 
        !          41037: 
        !          41038: 
        !          41039: 
        !          41040:   if test "$ext_shared" = "yes"; then
        !          41041:     GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD"
        !          41042:     if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
        !          41043: 
        !          41044:   if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
        !          41045: 
        !          41046:   if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
        !          41047:     ai_p=$GD_PNG_DIR/$PHP_LIBDIR
        !          41048:   else
        !          41049: 
        !          41050:     ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
        !          41051: 
        !          41052:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          41053:     ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
        !          41054:   fi
        !          41055: 
        !          41056: 
        !          41057:       if test "$ext_shared" = "yes"; then
        !          41058:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
        !          41059:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
        !          41060:       else
        !          41061: 
        !          41062: 
        !          41063: 
        !          41064:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          41065: 
        !          41066:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
        !          41067:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          41068:     eval "LIBPATH$unique=set"
        !          41069: 
        !          41070:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
        !          41071:     LDFLAGS="$LDFLAGS -L$ai_p"
        !          41072:     PHP_RPATHS="$PHP_RPATHS $ai_p"
        !          41073: 
        !          41074:   fi
        !          41075: 
        !          41076: 
        !          41077:       fi
        !          41078: 
        !          41079:   fi
        !          41080: 
        !          41081:     fi
        !          41082:   else
        !          41083: 
        !          41084: 
        !          41085:   if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
        !          41086: 
        !          41087:   if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
        !          41088: 
        !          41089:   if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
        !          41090:     ai_p=$GD_PNG_DIR/$PHP_LIBDIR
        !          41091:   else
        !          41092: 
        !          41093:     ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
        !          41094: 
        !          41095:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          41096:     ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
        !          41097:   fi
1.1       misho    41098: 
                   41099: 
                   41100: 
                   41101: 
                   41102: 
                   41103:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41104: 
                   41105:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   41106:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41107:     eval "LIBPATH$unique=set"
                   41108: 
                   41109:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   41110:     LDFLAGS="$LDFLAGS -L$ai_p"
                   41111:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   41112: 
                   41113:   fi
                   41114: 
                   41115: 
                   41116: 
                   41117:   fi
                   41118: 
                   41119:   fi
                   41120: 
                   41121: 
                   41122:   case png in
                   41123:   c|c_r|pthread*) ;;
                   41124:   *)
                   41125:       LIBS="-lpng $LIBS"
                   41126:    ;;
                   41127:   esac
                   41128: 
                   41129: 
                   41130: 
                   41131: 
                   41132:   fi
                   41133: 
                   41134: 
                   41135: 
                   41136: 
                   41137: else
                   41138: 
                   41139:     LDFLAGS=$save_old_LDFLAGS
                   41140:     ext_shared=$save_ext_shared
                   41141:     unset ac_cv_lib_png_png_write_image
                   41142: 
                   41143:       as_fn_error $? "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5
                   41144: 
                   41145: 
                   41146: fi
                   41147: 
                   41148: 
                   41149:   else
                   41150:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&5
                   41151: $as_echo "If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&6; }
                   41152:   fi
                   41153: 
                   41154: 
                   41155:   if test "$PHP_XPM_DIR" != "no"; then
                   41156: 
                   41157:     for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do
                   41158:       test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break
                   41159:     done
                   41160: 
                   41161:     if test -z "$GD_XPM_DIR"; then
                   41162:       as_fn_error $? "libXpm.(a|so) not found." "$LINENO" 5
                   41163:     fi
                   41164: 
                   41165:     for i in include include/X11; do
                   41166:       test -f $GD_XPM_DIR/$i/xpm.h && GD_XPM_INC=$GD_XPM_DIR/include
                   41167:     done
                   41168: 
                   41169:     if test -z "$GD_XPM_INC"; then
                   41170:       as_fn_error $? "xpm.h not found." "$LINENO" 5
                   41171:     fi
                   41172: 
                   41173: 
                   41174:   save_old_LDFLAGS=$LDFLAGS
                   41175:   ac_stuff="
                   41176:       -L$GD_XPM_DIR/$PHP_LIBDIR -lX11
                   41177:     "
                   41178: 
                   41179:   save_ext_shared=$ext_shared
                   41180:   ext_shared=yes
                   41181: 
                   41182:   for ac_i in $ac_stuff; do
                   41183:     case $ac_i in
                   41184:     -pthread)
                   41185:       if test "$ext_shared" = "yes"; then
                   41186:         LDFLAGS="$LDFLAGS -pthread"
                   41187:       else
                   41188: 
                   41189: 
                   41190:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41191: 
                   41192:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   41193:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41194:     eval "EXTRA_LDFLAGS$unique=set"
                   41195:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   41196:   fi
                   41197: 
                   41198:       fi
                   41199:     ;;
                   41200:     -l*)
                   41201:       ac_ii=`echo $ac_i|cut -c 3-`
                   41202: 
                   41203: 
                   41204:   case $ac_ii in
                   41205:   c|c_r|pthread*) ;;
                   41206:   *)
                   41207:     if test "$ext_shared" = "yes"; then
                   41208:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   41209:     else
                   41210: 
                   41211: 
                   41212:   case $ac_ii in
                   41213:   c|c_r|pthread*) ;;
                   41214:   *)
                   41215:       LIBS="$LIBS -l$ac_ii"
                   41216:    ;;
                   41217:   esac
                   41218: 
                   41219: 
                   41220:     fi
                   41221:    ;;
                   41222:   esac
                   41223: 
                   41224: 
                   41225:     ;;
                   41226:     -L*)
                   41227:       ac_ii=`echo $ac_i|cut -c 3-`
                   41228: 
                   41229:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   41230: 
                   41231:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   41232:     ai_p=$ac_ii
                   41233:   else
                   41234: 
                   41235:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   41236: 
                   41237:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   41238:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   41239:   fi
                   41240: 
                   41241: 
                   41242:       if test "$ext_shared" = "yes"; then
                   41243:         LDFLAGS="-L$ai_p $LDFLAGS"
                   41244:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   41245:       else
                   41246: 
                   41247: 
                   41248: 
                   41249:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41250: 
                   41251:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   41252:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41253:     eval "LIBPATH$unique=set"
                   41254: 
                   41255:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   41256:     LDFLAGS="$LDFLAGS -L$ai_p"
                   41257:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   41258: 
                   41259:   fi
                   41260: 
                   41261: 
                   41262:       fi
                   41263: 
                   41264:   fi
                   41265: 
                   41266:     ;;
                   41267:     esac
                   41268:   done
                   41269: 
                   41270:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmFreeXpmImage in -lXpm" >&5
                   41271: $as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; }
                   41272: if ${ac_cv_lib_Xpm_XpmFreeXpmImage+:} false; then :
                   41273:   $as_echo_n "(cached) " >&6
                   41274: else
                   41275:   ac_check_lib_save_LIBS=$LIBS
                   41276: LIBS="-lXpm  $LIBS"
                   41277: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   41278: /* end confdefs.h.  */
                   41279: 
                   41280: /* Override any GCC internal prototype to avoid an error.
                   41281:    Use char because int might match the return type of a GCC
                   41282:    builtin and then its argument prototype would still apply.  */
                   41283: #ifdef __cplusplus
                   41284: extern "C"
                   41285: #endif
                   41286: char XpmFreeXpmImage ();
                   41287: int
                   41288: main ()
                   41289: {
                   41290: return XpmFreeXpmImage ();
                   41291:   ;
                   41292:   return 0;
                   41293: }
                   41294: _ACEOF
                   41295: if ac_fn_c_try_link "$LINENO"; then :
                   41296:   ac_cv_lib_Xpm_XpmFreeXpmImage=yes
                   41297: else
                   41298:   ac_cv_lib_Xpm_XpmFreeXpmImage=no
                   41299: fi
                   41300: rm -f core conftest.err conftest.$ac_objext \
                   41301:     conftest$ac_exeext conftest.$ac_ext
                   41302: LIBS=$ac_check_lib_save_LIBS
                   41303: fi
                   41304: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5
                   41305: $as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; }
                   41306: if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = xyes; then :
                   41307: 
                   41308:     LDFLAGS=$save_old_LDFLAGS
                   41309:     ext_shared=$save_ext_shared
                   41310: 
                   41311: 
                   41312:   if test "$GD_XPM_INC" != "/usr/include"; then
                   41313: 
                   41314:   if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then
                   41315:     ai_p=$GD_XPM_INC
                   41316:   else
                   41317: 
                   41318:     ep_dir="`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'`"
                   41319: 
                   41320:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   41321:     ai_p="$ep_realdir/`basename \"$GD_XPM_INC\"`"
                   41322:   fi
                   41323: 
                   41324: 
                   41325: 
                   41326:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41327: 
                   41328:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   41329:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41330:     eval "INCLUDEPATH$unique=set"
                   41331: 
                   41332:       if test ""; then
                   41333:         INCLUDES="-I$ai_p $INCLUDES"
                   41334:       else
                   41335:         INCLUDES="$INCLUDES -I$ai_p"
                   41336:       fi
                   41337: 
                   41338:   fi
                   41339: 
                   41340:   fi
                   41341: 
                   41342: 
                   41343: 
                   41344:   if test "$ext_shared" = "yes"; then
                   41345:     GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD"
                   41346:     if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
                   41347: 
                   41348:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   41349: 
                   41350:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   41351:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
                   41352:   else
                   41353: 
                   41354:     ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   41355: 
                   41356:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   41357:     ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
                   41358:   fi
                   41359: 
                   41360: 
                   41361:       if test "$ext_shared" = "yes"; then
                   41362:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
                   41363:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
                   41364:       else
                   41365: 
                   41366: 
                   41367: 
                   41368:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41369: 
                   41370:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   41371:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41372:     eval "LIBPATH$unique=set"
                   41373: 
                   41374:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   41375:     LDFLAGS="$LDFLAGS -L$ai_p"
                   41376:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   41377: 
                   41378:   fi
                   41379: 
                   41380: 
                   41381:       fi
                   41382: 
                   41383:   fi
                   41384: 
                   41385:     fi
                   41386:   else
                   41387: 
                   41388: 
                   41389:   if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
                   41390: 
                   41391:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   41392: 
                   41393:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   41394:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
                   41395:   else
                   41396: 
                   41397:     ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   41398: 
                   41399:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   41400:     ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
                   41401:   fi
                   41402: 
                   41403: 
                   41404: 
                   41405: 
                   41406: 
                   41407:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41408: 
                   41409:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   41410:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41411:     eval "LIBPATH$unique=set"
                   41412: 
                   41413:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   41414:     LDFLAGS="$LDFLAGS -L$ai_p"
                   41415:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   41416: 
                   41417:   fi
                   41418: 
                   41419: 
                   41420: 
                   41421:   fi
                   41422: 
                   41423:   fi
                   41424: 
                   41425: 
                   41426:   case Xpm in
                   41427:   c|c_r|pthread*) ;;
                   41428:   *)
                   41429:       LIBS="-lXpm $LIBS"
                   41430:    ;;
                   41431:   esac
                   41432: 
                   41433: 
                   41434: 
                   41435: 
                   41436:   fi
                   41437: 
                   41438: 
                   41439: 
                   41440: 
                   41441:   if test "$ext_shared" = "yes"; then
                   41442:     GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD"
                   41443:     if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
                   41444: 
                   41445:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   41446: 
                   41447:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   41448:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
                   41449:   else
                   41450: 
                   41451:     ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   41452: 
                   41453:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   41454:     ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
                   41455:   fi
                   41456: 
                   41457: 
                   41458:       if test "$ext_shared" = "yes"; then
                   41459:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
                   41460:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
                   41461:       else
                   41462: 
                   41463: 
                   41464: 
                   41465:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41466: 
                   41467:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   41468:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41469:     eval "LIBPATH$unique=set"
                   41470: 
                   41471:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   41472:     LDFLAGS="$LDFLAGS -L$ai_p"
                   41473:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   41474: 
                   41475:   fi
                   41476: 
                   41477: 
                   41478:       fi
                   41479: 
                   41480:   fi
                   41481: 
                   41482:     fi
                   41483:   else
                   41484: 
                   41485: 
                   41486:   if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
                   41487: 
                   41488:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   41489: 
                   41490:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   41491:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
                   41492:   else
                   41493: 
                   41494:     ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   41495: 
                   41496:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   41497:     ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
                   41498:   fi
                   41499: 
                   41500: 
                   41501: 
                   41502: 
                   41503: 
                   41504:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41505: 
                   41506:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   41507:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41508:     eval "LIBPATH$unique=set"
                   41509: 
                   41510:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   41511:     LDFLAGS="$LDFLAGS -L$ai_p"
                   41512:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   41513: 
                   41514:   fi
                   41515: 
                   41516: 
                   41517: 
                   41518:   fi
                   41519: 
                   41520:   fi
                   41521: 
                   41522: 
                   41523:   case X11 in
                   41524:   c|c_r|pthread*) ;;
                   41525:   *)
                   41526:       LIBS="-lX11 $LIBS"
                   41527:    ;;
                   41528:   esac
                   41529: 
                   41530: 
                   41531: 
                   41532: 
                   41533:   fi
                   41534: 
                   41535: 
                   41536: 
                   41537: 
                   41538: else
                   41539: 
                   41540:     LDFLAGS=$save_old_LDFLAGS
                   41541:     ext_shared=$save_ext_shared
                   41542:     unset ac_cv_lib_Xpm_XpmFreeXpmImage
                   41543: 
                   41544:       as_fn_error $? "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5
                   41545: 
                   41546: 
                   41547: fi
                   41548: 
                   41549:   else
                   41550:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-xpm-dir=<DIR>" >&5
                   41551: $as_echo "If configure fails try --with-xpm-dir=<DIR>" >&6; }
                   41552:   fi
                   41553: 
                   41554: 
                   41555:   if test "$PHP_FREETYPE_DIR" != "no"; then
                   41556: 
                   41557:     for i in $PHP_FREETYPE_DIR /usr/local /usr; do
                   41558:       if test -f "$i/include/freetype2/freetype/freetype.h"; then
                   41559:         FREETYPE2_DIR=$i
                   41560:         FREETYPE2_INC_DIR=$i/include/freetype2
                   41561:         break
                   41562:       fi
                   41563:     done
                   41564: 
                   41565:     if test -z "$FREETYPE2_DIR"; then
                   41566:       as_fn_error $? "freetype.h not found." "$LINENO" 5
                   41567:     fi
                   41568: 
                   41569: 
                   41570:   save_old_LDFLAGS=$LDFLAGS
                   41571:   ac_stuff="
                   41572:       -L$FREETYPE2_DIR/$PHP_LIBDIR
                   41573:     "
                   41574: 
                   41575:   save_ext_shared=$ext_shared
                   41576:   ext_shared=yes
                   41577: 
                   41578:   for ac_i in $ac_stuff; do
                   41579:     case $ac_i in
                   41580:     -pthread)
                   41581:       if test "$ext_shared" = "yes"; then
                   41582:         LDFLAGS="$LDFLAGS -pthread"
                   41583:       else
                   41584: 
                   41585: 
                   41586:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41587: 
                   41588:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   41589:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41590:     eval "EXTRA_LDFLAGS$unique=set"
                   41591:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   41592:   fi
                   41593: 
                   41594:       fi
                   41595:     ;;
                   41596:     -l*)
                   41597:       ac_ii=`echo $ac_i|cut -c 3-`
                   41598: 
                   41599: 
                   41600:   case $ac_ii in
                   41601:   c|c_r|pthread*) ;;
                   41602:   *)
                   41603:     if test "$ext_shared" = "yes"; then
                   41604:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   41605:     else
                   41606: 
                   41607: 
                   41608:   case $ac_ii in
                   41609:   c|c_r|pthread*) ;;
                   41610:   *)
                   41611:       LIBS="$LIBS -l$ac_ii"
                   41612:    ;;
                   41613:   esac
                   41614: 
                   41615: 
                   41616:     fi
                   41617:    ;;
                   41618:   esac
                   41619: 
                   41620: 
                   41621:     ;;
                   41622:     -L*)
                   41623:       ac_ii=`echo $ac_i|cut -c 3-`
                   41624: 
                   41625:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   41626: 
                   41627:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   41628:     ai_p=$ac_ii
                   41629:   else
                   41630: 
                   41631:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   41632: 
                   41633:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   41634:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   41635:   fi
                   41636: 
                   41637: 
                   41638:       if test "$ext_shared" = "yes"; then
                   41639:         LDFLAGS="-L$ai_p $LDFLAGS"
                   41640:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   41641:       else
                   41642: 
                   41643: 
                   41644: 
                   41645:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41646: 
                   41647:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   41648:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41649:     eval "LIBPATH$unique=set"
                   41650: 
                   41651:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   41652:     LDFLAGS="$LDFLAGS -L$ai_p"
                   41653:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   41654: 
                   41655:   fi
                   41656: 
                   41657: 
                   41658:       fi
                   41659: 
                   41660:   fi
                   41661: 
                   41662:     ;;
                   41663:     esac
                   41664:   done
                   41665: 
                   41666:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_New_Face in -lfreetype" >&5
                   41667: $as_echo_n "checking for FT_New_Face in -lfreetype... " >&6; }
                   41668: if ${ac_cv_lib_freetype_FT_New_Face+:} false; then :
                   41669:   $as_echo_n "(cached) " >&6
                   41670: else
                   41671:   ac_check_lib_save_LIBS=$LIBS
                   41672: LIBS="-lfreetype  $LIBS"
                   41673: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   41674: /* end confdefs.h.  */
                   41675: 
                   41676: /* Override any GCC internal prototype to avoid an error.
                   41677:    Use char because int might match the return type of a GCC
                   41678:    builtin and then its argument prototype would still apply.  */
                   41679: #ifdef __cplusplus
                   41680: extern "C"
                   41681: #endif
                   41682: char FT_New_Face ();
                   41683: int
                   41684: main ()
                   41685: {
                   41686: return FT_New_Face ();
                   41687:   ;
                   41688:   return 0;
                   41689: }
                   41690: _ACEOF
                   41691: if ac_fn_c_try_link "$LINENO"; then :
                   41692:   ac_cv_lib_freetype_FT_New_Face=yes
                   41693: else
                   41694:   ac_cv_lib_freetype_FT_New_Face=no
                   41695: fi
                   41696: rm -f core conftest.err conftest.$ac_objext \
                   41697:     conftest$ac_exeext conftest.$ac_ext
                   41698: LIBS=$ac_check_lib_save_LIBS
                   41699: fi
                   41700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_New_Face" >&5
                   41701: $as_echo "$ac_cv_lib_freetype_FT_New_Face" >&6; }
                   41702: if test "x$ac_cv_lib_freetype_FT_New_Face" = xyes; then :
                   41703: 
                   41704:     LDFLAGS=$save_old_LDFLAGS
                   41705:     ext_shared=$save_ext_shared
                   41706: 
                   41707: 
                   41708: 
                   41709:   if test "$ext_shared" = "yes"; then
                   41710:     GD_SHARED_LIBADD="-lfreetype $GD_SHARED_LIBADD"
                   41711:     if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
                   41712: 
                   41713:   if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   41714: 
                   41715:   if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   41716:     ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
                   41717:   else
                   41718: 
                   41719:     ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   41720: 
                   41721:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   41722:     ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
                   41723:   fi
                   41724: 
                   41725: 
                   41726:       if test "$ext_shared" = "yes"; then
                   41727:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
                   41728:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
                   41729:       else
                   41730: 
                   41731: 
                   41732: 
                   41733:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41734: 
                   41735:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   41736:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41737:     eval "LIBPATH$unique=set"
                   41738: 
                   41739:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   41740:     LDFLAGS="$LDFLAGS -L$ai_p"
                   41741:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   41742: 
                   41743:   fi
                   41744: 
                   41745: 
                   41746:       fi
                   41747: 
                   41748:   fi
                   41749: 
                   41750:     fi
                   41751:   else
                   41752: 
                   41753: 
                   41754:   if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
                   41755: 
                   41756:   if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   41757: 
                   41758:   if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   41759:     ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
                   41760:   else
                   41761: 
                   41762:     ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   41763: 
                   41764:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   41765:     ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
                   41766:   fi
                   41767: 
                   41768: 
                   41769: 
                   41770: 
                   41771: 
                   41772:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41773: 
                   41774:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   41775:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41776:     eval "LIBPATH$unique=set"
                   41777: 
                   41778:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   41779:     LDFLAGS="$LDFLAGS -L$ai_p"
                   41780:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   41781: 
                   41782:   fi
                   41783: 
                   41784: 
                   41785: 
                   41786:   fi
                   41787: 
                   41788:   fi
                   41789: 
                   41790: 
                   41791:   case freetype in
                   41792:   c|c_r|pthread*) ;;
                   41793:   *)
                   41794:       LIBS="-lfreetype $LIBS"
                   41795:    ;;
                   41796:   esac
                   41797: 
                   41798: 
                   41799: 
                   41800: 
                   41801:   fi
                   41802: 
                   41803: 
                   41804: 
                   41805:   if test "$FREETYPE2_DIR/include" != "/usr/include"; then
                   41806: 
                   41807:   if test -z "$FREETYPE2_DIR/include" || echo "$FREETYPE2_DIR/include" | grep '^/' >/dev/null ; then
                   41808:     ai_p=$FREETYPE2_DIR/include
                   41809:   else
                   41810: 
                   41811:     ep_dir="`echo $FREETYPE2_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   41812: 
                   41813:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   41814:     ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/include\"`"
                   41815:   fi
                   41816: 
                   41817: 
                   41818: 
                   41819:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41820: 
                   41821:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   41822:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41823:     eval "INCLUDEPATH$unique=set"
                   41824: 
                   41825:       if test ""; then
                   41826:         INCLUDES="-I$ai_p $INCLUDES"
                   41827:       else
                   41828:         INCLUDES="$INCLUDES -I$ai_p"
                   41829:       fi
                   41830: 
                   41831:   fi
                   41832: 
                   41833:   fi
                   41834: 
                   41835: 
                   41836:   if test "$FREETYPE2_INC_DIR" != "/usr/include"; then
                   41837: 
                   41838:   if test -z "$FREETYPE2_INC_DIR" || echo "$FREETYPE2_INC_DIR" | grep '^/' >/dev/null ; then
                   41839:     ai_p=$FREETYPE2_INC_DIR
                   41840:   else
                   41841: 
                   41842:     ep_dir="`echo $FREETYPE2_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   41843: 
                   41844:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   41845:     ai_p="$ep_realdir/`basename \"$FREETYPE2_INC_DIR\"`"
                   41846:   fi
                   41847: 
                   41848: 
                   41849: 
                   41850:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41851: 
                   41852:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   41853:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41854:     eval "INCLUDEPATH$unique=set"
                   41855: 
                   41856:       if test ""; then
                   41857:         INCLUDES="-I$ai_p $INCLUDES"
                   41858:       else
                   41859:         INCLUDES="$INCLUDES -I$ai_p"
                   41860:       fi
                   41861: 
                   41862:   fi
                   41863: 
                   41864:   fi
                   41865: 
                   41866: 
                   41867: $as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h
                   41868: 
                   41869: 
                   41870: $as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h
                   41871: 
                   41872: 
                   41873: $as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h
                   41874: 
                   41875: 
                   41876: 
                   41877: else
                   41878: 
                   41879:     LDFLAGS=$save_old_LDFLAGS
                   41880:     ext_shared=$save_ext_shared
                   41881:     unset ac_cv_lib_freetype_FT_New_Face
                   41882: 
                   41883:       as_fn_error $? "Problem with freetype.(a|so). Please check config.log for more information." "$LINENO" 5
                   41884: 
                   41885: 
                   41886: fi
                   41887: 
                   41888:   else
                   41889:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-freetype-dir=<DIR>" >&5
                   41890: $as_echo "If configure fails try --with-freetype-dir=<DIR>" >&6; }
                   41891:   fi
                   41892: 
                   41893: 
                   41894:   if test "$PHP_T1LIB" != "no"; then
                   41895: 
                   41896:     for i in $PHP_T1LIB /usr/local /usr; do
                   41897:       test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break
                   41898:     done
                   41899: 
                   41900:     if test -z "$GD_T1_DIR"; then
                   41901:       as_fn_error $? "Your t1lib distribution is not installed correctly. Please reinstall it." "$LINENO" 5
                   41902:     fi
                   41903: 
                   41904: 
                   41905:   save_old_LDFLAGS=$LDFLAGS
                   41906:   ac_stuff="
                   41907:       -L$GD_T1_DIR/$PHP_LIBDIR
                   41908:     "
                   41909: 
                   41910:   save_ext_shared=$ext_shared
                   41911:   ext_shared=yes
                   41912: 
                   41913:   for ac_i in $ac_stuff; do
                   41914:     case $ac_i in
                   41915:     -pthread)
                   41916:       if test "$ext_shared" = "yes"; then
                   41917:         LDFLAGS="$LDFLAGS -pthread"
                   41918:       else
                   41919: 
                   41920: 
                   41921:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41922: 
                   41923:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   41924:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41925:     eval "EXTRA_LDFLAGS$unique=set"
                   41926:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   41927:   fi
                   41928: 
                   41929:       fi
                   41930:     ;;
                   41931:     -l*)
                   41932:       ac_ii=`echo $ac_i|cut -c 3-`
                   41933: 
                   41934: 
                   41935:   case $ac_ii in
                   41936:   c|c_r|pthread*) ;;
                   41937:   *)
                   41938:     if test "$ext_shared" = "yes"; then
                   41939:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   41940:     else
                   41941: 
                   41942: 
                   41943:   case $ac_ii in
                   41944:   c|c_r|pthread*) ;;
                   41945:   *)
                   41946:       LIBS="$LIBS -l$ac_ii"
                   41947:    ;;
                   41948:   esac
                   41949: 
                   41950: 
                   41951:     fi
                   41952:    ;;
                   41953:   esac
                   41954: 
                   41955: 
                   41956:     ;;
                   41957:     -L*)
                   41958:       ac_ii=`echo $ac_i|cut -c 3-`
                   41959: 
                   41960:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   41961: 
                   41962:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   41963:     ai_p=$ac_ii
                   41964:   else
                   41965: 
                   41966:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   41967: 
                   41968:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   41969:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   41970:   fi
                   41971: 
                   41972: 
                   41973:       if test "$ext_shared" = "yes"; then
                   41974:         LDFLAGS="-L$ai_p $LDFLAGS"
                   41975:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   41976:       else
                   41977: 
                   41978: 
                   41979: 
                   41980:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   41981: 
                   41982:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   41983:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   41984:     eval "LIBPATH$unique=set"
                   41985: 
                   41986:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   41987:     LDFLAGS="$LDFLAGS -L$ai_p"
                   41988:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   41989: 
                   41990:   fi
                   41991: 
                   41992: 
                   41993:       fi
                   41994: 
                   41995:   fi
                   41996: 
                   41997:     ;;
                   41998:     esac
                   41999:   done
                   42000: 
                   42001:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1_StrError in -lt1" >&5
                   42002: $as_echo_n "checking for T1_StrError in -lt1... " >&6; }
                   42003: if ${ac_cv_lib_t1_T1_StrError+:} false; then :
                   42004:   $as_echo_n "(cached) " >&6
                   42005: else
                   42006:   ac_check_lib_save_LIBS=$LIBS
                   42007: LIBS="-lt1  $LIBS"
                   42008: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   42009: /* end confdefs.h.  */
                   42010: 
                   42011: /* Override any GCC internal prototype to avoid an error.
                   42012:    Use char because int might match the return type of a GCC
                   42013:    builtin and then its argument prototype would still apply.  */
                   42014: #ifdef __cplusplus
                   42015: extern "C"
                   42016: #endif
                   42017: char T1_StrError ();
                   42018: int
                   42019: main ()
                   42020: {
                   42021: return T1_StrError ();
                   42022:   ;
                   42023:   return 0;
                   42024: }
                   42025: _ACEOF
                   42026: if ac_fn_c_try_link "$LINENO"; then :
                   42027:   ac_cv_lib_t1_T1_StrError=yes
                   42028: else
                   42029:   ac_cv_lib_t1_T1_StrError=no
                   42030: fi
                   42031: rm -f core conftest.err conftest.$ac_objext \
                   42032:     conftest$ac_exeext conftest.$ac_ext
                   42033: LIBS=$ac_check_lib_save_LIBS
                   42034: fi
                   42035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_t1_T1_StrError" >&5
                   42036: $as_echo "$ac_cv_lib_t1_T1_StrError" >&6; }
                   42037: if test "x$ac_cv_lib_t1_T1_StrError" = xyes; then :
                   42038: 
                   42039:     LDFLAGS=$save_old_LDFLAGS
                   42040:     ext_shared=$save_ext_shared
                   42041: 
                   42042: 
                   42043: $as_echo "#define HAVE_LIBT1 1" >>confdefs.h
                   42044: 
                   42045: 
                   42046:   if test "$GD_T1_DIR/include" != "/usr/include"; then
                   42047: 
                   42048:   if test -z "$GD_T1_DIR/include" || echo "$GD_T1_DIR/include" | grep '^/' >/dev/null ; then
                   42049:     ai_p=$GD_T1_DIR/include
                   42050:   else
                   42051: 
                   42052:     ep_dir="`echo $GD_T1_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   42053: 
                   42054:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   42055:     ai_p="$ep_realdir/`basename \"$GD_T1_DIR/include\"`"
                   42056:   fi
                   42057: 
                   42058: 
                   42059: 
                   42060:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   42061: 
                   42062:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   42063:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   42064:     eval "INCLUDEPATH$unique=set"
                   42065: 
                   42066:       if test ""; then
                   42067:         INCLUDES="-I$ai_p $INCLUDES"
                   42068:       else
                   42069:         INCLUDES="$INCLUDES -I$ai_p"
                   42070:       fi
                   42071: 
                   42072:   fi
                   42073: 
                   42074:   fi
                   42075: 
                   42076: 
                   42077: 
                   42078:   if test "$ext_shared" = "yes"; then
                   42079:     GD_SHARED_LIBADD="-lt1 $GD_SHARED_LIBADD"
                   42080:     if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
                   42081: 
                   42082:   if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   42083: 
                   42084:   if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   42085:     ai_p=$GD_T1_DIR/$PHP_LIBDIR
                   42086:   else
                   42087: 
                   42088:     ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   42089: 
                   42090:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   42091:     ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
                   42092:   fi
                   42093: 
                   42094: 
                   42095:       if test "$ext_shared" = "yes"; then
                   42096:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
                   42097:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
                   42098:       else
                   42099: 
                   42100: 
                   42101: 
                   42102:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   42103: 
                   42104:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   42105:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   42106:     eval "LIBPATH$unique=set"
                   42107: 
                   42108:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   42109:     LDFLAGS="$LDFLAGS -L$ai_p"
                   42110:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   42111: 
                   42112:   fi
                   42113: 
                   42114: 
                   42115:       fi
                   42116: 
                   42117:   fi
                   42118: 
                   42119:     fi
                   42120:   else
                   42121: 
                   42122: 
                   42123:   if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
                   42124: 
                   42125:   if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   42126: 
                   42127:   if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   42128:     ai_p=$GD_T1_DIR/$PHP_LIBDIR
                   42129:   else
                   42130: 
                   42131:     ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   42132: 
                   42133:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   42134:     ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
                   42135:   fi
                   42136: 
                   42137: 
                   42138: 
                   42139: 
                   42140: 
                   42141:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   42142: 
                   42143:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   42144:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   42145:     eval "LIBPATH$unique=set"
                   42146: 
                   42147:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   42148:     LDFLAGS="$LDFLAGS -L$ai_p"
                   42149:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   42150: 
                   42151:   fi
                   42152: 
                   42153: 
                   42154: 
                   42155:   fi
                   42156: 
                   42157:   fi
                   42158: 
                   42159: 
                   42160:   case t1 in
                   42161:   c|c_r|pthread*) ;;
                   42162:   *)
                   42163:       LIBS="-lt1 $LIBS"
                   42164:    ;;
                   42165:   esac
                   42166: 
                   42167: 
                   42168: 
                   42169: 
                   42170:   fi
                   42171: 
                   42172: 
                   42173: 
                   42174: 
                   42175: else
                   42176: 
                   42177:     LDFLAGS=$save_old_LDFLAGS
                   42178:     ext_shared=$save_ext_shared
                   42179:     unset ac_cv_lib_t1_T1_StrError
                   42180: 
                   42181:       as_fn_error $? "Problem with libt1.(a|so). Please check config.log for more information." "$LINENO" 5
                   42182: 
                   42183: 
                   42184: fi
                   42185: 
                   42186:   fi
                   42187: 
                   42188: 
                   42189:   for i in include/gd1.3 include/gd include gd1.3 gd ""; do
                   42190:     test -f "$PHP_GD/$i/gd.h" && GD_INCLUDE="$PHP_GD/$i"
                   42191:   done
                   42192: 
                   42193:   for i in $PHP_LIBDIR/gd1.3 $PHP_LIBDIR/gd $PHP_LIBDIR gd1.3 gd ""; do
                   42194:     test -f "$PHP_GD/$i/libgd.$SHLIB_SUFFIX_NAME" || test -f "$PHP_GD/$i/libgd.a" && GD_LIB="$PHP_GD/$i"
                   42195:   done
                   42196: 
                   42197:   if test -n "$GD_INCLUDE" && test -n "$GD_LIB"; then
                   42198: 
                   42199: 
                   42200:   if test "$ext_shared" = "yes"; then
                   42201:     GD_SHARED_LIBADD="-lgd $GD_SHARED_LIBADD"
                   42202:     if test -n "$GD_LIB"; then
                   42203: 
                   42204:   if test "$GD_LIB" != "/usr/$PHP_LIBDIR" && test "$GD_LIB" != "/usr/lib"; then
                   42205: 
                   42206:   if test -z "$GD_LIB" || echo "$GD_LIB" | grep '^/' >/dev/null ; then
                   42207:     ai_p=$GD_LIB
                   42208:   else
                   42209: 
                   42210:     ep_dir="`echo $GD_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
                   42211: 
                   42212:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   42213:     ai_p="$ep_realdir/`basename \"$GD_LIB\"`"
                   42214:   fi
                   42215: 
                   42216: 
                   42217:       if test "$ext_shared" = "yes"; then
                   42218:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
                   42219:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
                   42220:       else
                   42221: 
                   42222: 
                   42223: 
                   42224:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   42225: 
                   42226:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   42227:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   42228:     eval "LIBPATH$unique=set"
                   42229: 
                   42230:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   42231:     LDFLAGS="$LDFLAGS -L$ai_p"
                   42232:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   42233: 
                   42234:   fi
                   42235: 
                   42236: 
                   42237:       fi
                   42238: 
                   42239:   fi
                   42240: 
                   42241:     fi
                   42242:   else
                   42243: 
                   42244: 
                   42245:   if test -n "$GD_LIB"; then
                   42246: 
                   42247:   if test "$GD_LIB" != "/usr/$PHP_LIBDIR" && test "$GD_LIB" != "/usr/lib"; then
                   42248: 
                   42249:   if test -z "$GD_LIB" || echo "$GD_LIB" | grep '^/' >/dev/null ; then
                   42250:     ai_p=$GD_LIB
                   42251:   else
                   42252: 
                   42253:     ep_dir="`echo $GD_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
                   42254: 
                   42255:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   42256:     ai_p="$ep_realdir/`basename \"$GD_LIB\"`"
                   42257:   fi
                   42258: 
                   42259: 
                   42260: 
                   42261: 
                   42262: 
                   42263:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   42264: 
                   42265:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   42266:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   42267:     eval "LIBPATH$unique=set"
                   42268: 
                   42269:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   42270:     LDFLAGS="$LDFLAGS -L$ai_p"
                   42271:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   42272: 
                   42273:   fi
                   42274: 
                   42275: 
                   42276: 
                   42277:   fi
                   42278: 
                   42279:   fi
                   42280: 
                   42281: 
                   42282:   case gd in
                   42283:   c|c_r|pthread*) ;;
                   42284:   *)
                   42285:       LIBS="-lgd $LIBS"
                   42286:    ;;
                   42287:   esac
                   42288: 
                   42289: 
                   42290: 
                   42291: 
                   42292:   fi
                   42293: 
                   42294: 
                   42295: 
                   42296: $as_echo "#define HAVE_LIBGD 1" >>confdefs.h
                   42297: 
                   42298: 
                   42299: 
                   42300:   save_old_LDFLAGS=$LDFLAGS
                   42301:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   42302: 
                   42303:   save_ext_shared=$ext_shared
                   42304:   ext_shared=yes
                   42305: 
                   42306:   for ac_i in $ac_stuff; do
                   42307:     case $ac_i in
                   42308:     -pthread)
                   42309:       if test "$ext_shared" = "yes"; then
                   42310:         LDFLAGS="$LDFLAGS -pthread"
                   42311:       else
                   42312: 
                   42313: 
                   42314:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   42315: 
                   42316:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   42317:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   42318:     eval "EXTRA_LDFLAGS$unique=set"
                   42319:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   42320:   fi
                   42321: 
                   42322:       fi
                   42323:     ;;
                   42324:     -l*)
                   42325:       ac_ii=`echo $ac_i|cut -c 3-`
                   42326: 
                   42327: 
                   42328:   case $ac_ii in
                   42329:   c|c_r|pthread*) ;;
                   42330:   *)
                   42331:     if test "$ext_shared" = "yes"; then
                   42332:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   42333:     else
                   42334: 
                   42335: 
                   42336:   case $ac_ii in
                   42337:   c|c_r|pthread*) ;;
                   42338:   *)
                   42339:       LIBS="$LIBS -l$ac_ii"
                   42340:    ;;
                   42341:   esac
                   42342: 
                   42343: 
                   42344:     fi
                   42345:    ;;
                   42346:   esac
                   42347: 
                   42348: 
                   42349:     ;;
                   42350:     -L*)
                   42351:       ac_ii=`echo $ac_i|cut -c 3-`
                   42352: 
                   42353:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   42354: 
                   42355:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   42356:     ai_p=$ac_ii
                   42357:   else
                   42358: 
                   42359:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   42360: 
                   42361:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   42362:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   42363:   fi
                   42364: 
                   42365: 
                   42366:       if test "$ext_shared" = "yes"; then
                   42367:         LDFLAGS="-L$ai_p $LDFLAGS"
                   42368:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   42369:       else
                   42370: 
                   42371: 
                   42372: 
                   42373:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   42374: 
                   42375:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   42376:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   42377:     eval "LIBPATH$unique=set"
                   42378: 
                   42379:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   42380:     LDFLAGS="$LDFLAGS -L$ai_p"
                   42381:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   42382: 
                   42383:   fi
                   42384: 
                   42385: 
                   42386:       fi
                   42387: 
                   42388:   fi
                   42389: 
                   42390:     ;;
                   42391:     esac
                   42392:   done
                   42393: 
                   42394:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageString16 in -lgd" >&5
                   42395: $as_echo_n "checking for gdImageString16 in -lgd... " >&6; }
                   42396: if ${ac_cv_lib_gd_gdImageString16+:} false; then :
                   42397:   $as_echo_n "(cached) " >&6
                   42398: else
                   42399:   ac_check_lib_save_LIBS=$LIBS
                   42400: LIBS="-lgd  $LIBS"
                   42401: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   42402: /* end confdefs.h.  */
                   42403: 
                   42404: /* Override any GCC internal prototype to avoid an error.
                   42405:    Use char because int might match the return type of a GCC
                   42406:    builtin and then its argument prototype would still apply.  */
                   42407: #ifdef __cplusplus
                   42408: extern "C"
                   42409: #endif
                   42410: char gdImageString16 ();
                   42411: int
                   42412: main ()
                   42413: {
                   42414: return gdImageString16 ();
                   42415:   ;
                   42416:   return 0;
                   42417: }
                   42418: _ACEOF
                   42419: if ac_fn_c_try_link "$LINENO"; then :
                   42420:   ac_cv_lib_gd_gdImageString16=yes
                   42421: else
                   42422:   ac_cv_lib_gd_gdImageString16=no
                   42423: fi
                   42424: rm -f core conftest.err conftest.$ac_objext \
                   42425:     conftest$ac_exeext conftest.$ac_ext
                   42426: LIBS=$ac_check_lib_save_LIBS
                   42427: fi
                   42428: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageString16" >&5
                   42429: $as_echo "$ac_cv_lib_gd_gdImageString16" >&6; }
                   42430: if test "x$ac_cv_lib_gd_gdImageString16" = xyes; then :
                   42431: 
                   42432:     LDFLAGS=$save_old_LDFLAGS
                   42433:     ext_shared=$save_ext_shared
                   42434: 
                   42435: $as_echo "#define HAVE_LIBGD13 1" >>confdefs.h
                   42436: 
                   42437: 
                   42438: else
                   42439: 
                   42440:     LDFLAGS=$save_old_LDFLAGS
                   42441:     ext_shared=$save_ext_shared
                   42442:     unset ac_cv_lib_gd_gdImageString16
                   42443: 
                   42444: 
                   42445: fi
                   42446: 
                   42447: 
                   42448:   save_old_LDFLAGS=$LDFLAGS
                   42449:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   42450: 
                   42451:   save_ext_shared=$ext_shared
                   42452:   ext_shared=yes
                   42453: 
                   42454:   for ac_i in $ac_stuff; do
                   42455:     case $ac_i in
                   42456:     -pthread)
                   42457:       if test "$ext_shared" = "yes"; then
                   42458:         LDFLAGS="$LDFLAGS -pthread"
                   42459:       else
                   42460: 
                   42461: 
                   42462:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   42463: 
                   42464:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   42465:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   42466:     eval "EXTRA_LDFLAGS$unique=set"
                   42467:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   42468:   fi
                   42469: 
                   42470:       fi
                   42471:     ;;
                   42472:     -l*)
                   42473:       ac_ii=`echo $ac_i|cut -c 3-`
                   42474: 
                   42475: 
                   42476:   case $ac_ii in
                   42477:   c|c_r|pthread*) ;;
                   42478:   *)
                   42479:     if test "$ext_shared" = "yes"; then
                   42480:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   42481:     else
                   42482: 
                   42483: 
                   42484:   case $ac_ii in
                   42485:   c|c_r|pthread*) ;;
                   42486:   *)
                   42487:       LIBS="$LIBS -l$ac_ii"
                   42488:    ;;
                   42489:   esac
                   42490: 
                   42491: 
                   42492:     fi
                   42493:    ;;
                   42494:   esac
                   42495: 
                   42496: 
                   42497:     ;;
                   42498:     -L*)
                   42499:       ac_ii=`echo $ac_i|cut -c 3-`
                   42500: 
                   42501:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   42502: 
                   42503:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   42504:     ai_p=$ac_ii
                   42505:   else
                   42506: 
                   42507:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   42508: 
                   42509:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   42510:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   42511:   fi
                   42512: 
                   42513: 
                   42514:       if test "$ext_shared" = "yes"; then
                   42515:         LDFLAGS="-L$ai_p $LDFLAGS"
                   42516:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   42517:       else
                   42518: 
                   42519: 
                   42520: 
                   42521:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   42522: 
                   42523:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   42524:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   42525:     eval "LIBPATH$unique=set"
                   42526: 
                   42527:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   42528:     LDFLAGS="$LDFLAGS -L$ai_p"
                   42529:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   42530: 
                   42531:   fi
                   42532: 
                   42533: 
                   42534:       fi
                   42535: 
                   42536:   fi
                   42537: 
                   42538:     ;;
                   42539:     esac
                   42540:   done
                   42541: 
                   42542:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImagePaletteCopy in -lgd" >&5
                   42543: $as_echo_n "checking for gdImagePaletteCopy in -lgd... " >&6; }
                   42544: if ${ac_cv_lib_gd_gdImagePaletteCopy+:} false; then :
                   42545:   $as_echo_n "(cached) " >&6
                   42546: else
                   42547:   ac_check_lib_save_LIBS=$LIBS
                   42548: LIBS="-lgd  $LIBS"
                   42549: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   42550: /* end confdefs.h.  */
                   42551: 
                   42552: /* Override any GCC internal prototype to avoid an error.
                   42553:    Use char because int might match the return type of a GCC
                   42554:    builtin and then its argument prototype would still apply.  */
                   42555: #ifdef __cplusplus
                   42556: extern "C"
                   42557: #endif
                   42558: char gdImagePaletteCopy ();
                   42559: int
                   42560: main ()
                   42561: {
                   42562: return gdImagePaletteCopy ();
                   42563:   ;
                   42564:   return 0;
                   42565: }
                   42566: _ACEOF
                   42567: if ac_fn_c_try_link "$LINENO"; then :
                   42568:   ac_cv_lib_gd_gdImagePaletteCopy=yes
                   42569: else
                   42570:   ac_cv_lib_gd_gdImagePaletteCopy=no
                   42571: fi
                   42572: rm -f core conftest.err conftest.$ac_objext \
                   42573:     conftest$ac_exeext conftest.$ac_ext
                   42574: LIBS=$ac_check_lib_save_LIBS
                   42575: fi
                   42576: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImagePaletteCopy" >&5
                   42577: $as_echo "$ac_cv_lib_gd_gdImagePaletteCopy" >&6; }
                   42578: if test "x$ac_cv_lib_gd_gdImagePaletteCopy" = xyes; then :
                   42579: 
                   42580:     LDFLAGS=$save_old_LDFLAGS
                   42581:     ext_shared=$save_ext_shared
                   42582: 
                   42583: $as_echo "#define HAVE_LIBGD15 1" >>confdefs.h
                   42584: 
                   42585: 
                   42586: else
                   42587: 
                   42588:     LDFLAGS=$save_old_LDFLAGS
                   42589:     ext_shared=$save_ext_shared
                   42590:     unset ac_cv_lib_gd_gdImagePaletteCopy
                   42591: 
                   42592: 
                   42593: fi
                   42594: 
                   42595: 
                   42596:   save_old_LDFLAGS=$LDFLAGS
                   42597:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   42598: 
                   42599:   save_ext_shared=$ext_shared
                   42600:   ext_shared=yes
                   42601: 
                   42602:   for ac_i in $ac_stuff; do
                   42603:     case $ac_i in
                   42604:     -pthread)
                   42605:       if test "$ext_shared" = "yes"; then
                   42606:         LDFLAGS="$LDFLAGS -pthread"
                   42607:       else
                   42608: 
                   42609: 
                   42610:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   42611: 
                   42612:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   42613:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   42614:     eval "EXTRA_LDFLAGS$unique=set"
                   42615:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   42616:   fi
                   42617: 
                   42618:       fi
                   42619:     ;;
                   42620:     -l*)
                   42621:       ac_ii=`echo $ac_i|cut -c 3-`
                   42622: 
                   42623: 
                   42624:   case $ac_ii in
                   42625:   c|c_r|pthread*) ;;
                   42626:   *)
                   42627:     if test "$ext_shared" = "yes"; then
                   42628:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   42629:     else
                   42630: 
                   42631: 
                   42632:   case $ac_ii in
                   42633:   c|c_r|pthread*) ;;
                   42634:   *)
                   42635:       LIBS="$LIBS -l$ac_ii"
                   42636:    ;;
                   42637:   esac
                   42638: 
                   42639: 
                   42640:     fi
                   42641:    ;;
                   42642:   esac
                   42643: 
                   42644: 
                   42645:     ;;
                   42646:     -L*)
                   42647:       ac_ii=`echo $ac_i|cut -c 3-`
                   42648: 
                   42649:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   42650: 
                   42651:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   42652:     ai_p=$ac_ii
                   42653:   else
                   42654: 
                   42655:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   42656: 
                   42657:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   42658:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   42659:   fi
                   42660: 
                   42661: 
                   42662:       if test "$ext_shared" = "yes"; then
                   42663:         LDFLAGS="-L$ai_p $LDFLAGS"
                   42664:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   42665:       else
                   42666: 
                   42667: 
                   42668: 
                   42669:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   42670: 
                   42671:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   42672:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   42673:     eval "LIBPATH$unique=set"
                   42674: 
                   42675:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   42676:     LDFLAGS="$LDFLAGS -L$ai_p"
                   42677:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   42678: 
                   42679:   fi
                   42680: 
                   42681: 
                   42682:       fi
                   42683: 
                   42684:   fi
                   42685: 
                   42686:     ;;
                   42687:     esac
                   42688:   done
                   42689: 
                   42690:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromPng in -lgd" >&5
                   42691: $as_echo_n "checking for gdImageCreateFromPng in -lgd... " >&6; }
                   42692: if ${ac_cv_lib_gd_gdImageCreateFromPng+:} false; then :
                   42693:   $as_echo_n "(cached) " >&6
                   42694: else
                   42695:   ac_check_lib_save_LIBS=$LIBS
                   42696: LIBS="-lgd  $LIBS"
                   42697: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   42698: /* end confdefs.h.  */
                   42699: 
                   42700: /* Override any GCC internal prototype to avoid an error.
                   42701:    Use char because int might match the return type of a GCC
                   42702:    builtin and then its argument prototype would still apply.  */
                   42703: #ifdef __cplusplus
                   42704: extern "C"
                   42705: #endif
                   42706: char gdImageCreateFromPng ();
                   42707: int
                   42708: main ()
                   42709: {
                   42710: return gdImageCreateFromPng ();
                   42711:   ;
                   42712:   return 0;
                   42713: }
                   42714: _ACEOF
                   42715: if ac_fn_c_try_link "$LINENO"; then :
                   42716:   ac_cv_lib_gd_gdImageCreateFromPng=yes
                   42717: else
                   42718:   ac_cv_lib_gd_gdImageCreateFromPng=no
                   42719: fi
                   42720: rm -f core conftest.err conftest.$ac_objext \
                   42721:     conftest$ac_exeext conftest.$ac_ext
                   42722: LIBS=$ac_check_lib_save_LIBS
                   42723: fi
                   42724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromPng" >&5
                   42725: $as_echo "$ac_cv_lib_gd_gdImageCreateFromPng" >&6; }
                   42726: if test "x$ac_cv_lib_gd_gdImageCreateFromPng" = xyes; then :
                   42727: 
                   42728:     LDFLAGS=$save_old_LDFLAGS
                   42729:     ext_shared=$save_ext_shared
                   42730: 
                   42731: $as_echo "#define HAVE_GD_PNG 1" >>confdefs.h
                   42732: 
                   42733: 
                   42734: else
                   42735: 
                   42736:     LDFLAGS=$save_old_LDFLAGS
                   42737:     ext_shared=$save_ext_shared
                   42738:     unset ac_cv_lib_gd_gdImageCreateFromPng
                   42739: 
                   42740: 
                   42741: fi
                   42742: 
                   42743: 
                   42744:   save_old_LDFLAGS=$LDFLAGS
                   42745:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   42746: 
                   42747:   save_ext_shared=$ext_shared
                   42748:   ext_shared=yes
                   42749: 
                   42750:   for ac_i in $ac_stuff; do
                   42751:     case $ac_i in
                   42752:     -pthread)
                   42753:       if test "$ext_shared" = "yes"; then
                   42754:         LDFLAGS="$LDFLAGS -pthread"
                   42755:       else
                   42756: 
                   42757: 
                   42758:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   42759: 
                   42760:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   42761:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   42762:     eval "EXTRA_LDFLAGS$unique=set"
                   42763:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   42764:   fi
                   42765: 
                   42766:       fi
                   42767:     ;;
                   42768:     -l*)
                   42769:       ac_ii=`echo $ac_i|cut -c 3-`
                   42770: 
                   42771: 
                   42772:   case $ac_ii in
                   42773:   c|c_r|pthread*) ;;
                   42774:   *)
                   42775:     if test "$ext_shared" = "yes"; then
                   42776:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   42777:     else
                   42778: 
                   42779: 
                   42780:   case $ac_ii in
                   42781:   c|c_r|pthread*) ;;
                   42782:   *)
                   42783:       LIBS="$LIBS -l$ac_ii"
                   42784:    ;;
                   42785:   esac
                   42786: 
                   42787: 
                   42788:     fi
                   42789:    ;;
                   42790:   esac
                   42791: 
                   42792: 
                   42793:     ;;
                   42794:     -L*)
                   42795:       ac_ii=`echo $ac_i|cut -c 3-`
                   42796: 
                   42797:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   42798: 
                   42799:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   42800:     ai_p=$ac_ii
                   42801:   else
                   42802: 
                   42803:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   42804: 
                   42805:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   42806:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   42807:   fi
                   42808: 
                   42809: 
                   42810:       if test "$ext_shared" = "yes"; then
                   42811:         LDFLAGS="-L$ai_p $LDFLAGS"
                   42812:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   42813:       else
                   42814: 
                   42815: 
                   42816: 
                   42817:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   42818: 
                   42819:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   42820:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   42821:     eval "LIBPATH$unique=set"
                   42822: 
                   42823:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   42824:     LDFLAGS="$LDFLAGS -L$ai_p"
                   42825:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   42826: 
                   42827:   fi
                   42828: 
                   42829: 
                   42830:       fi
                   42831: 
                   42832:   fi
                   42833: 
                   42834:     ;;
                   42835:     esac
                   42836:   done
                   42837: 
                   42838:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromGif in -lgd" >&5
                   42839: $as_echo_n "checking for gdImageCreateFromGif in -lgd... " >&6; }
                   42840: if ${ac_cv_lib_gd_gdImageCreateFromGif+:} false; then :
                   42841:   $as_echo_n "(cached) " >&6
                   42842: else
                   42843:   ac_check_lib_save_LIBS=$LIBS
                   42844: LIBS="-lgd  $LIBS"
                   42845: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   42846: /* end confdefs.h.  */
                   42847: 
                   42848: /* Override any GCC internal prototype to avoid an error.
                   42849:    Use char because int might match the return type of a GCC
                   42850:    builtin and then its argument prototype would still apply.  */
                   42851: #ifdef __cplusplus
                   42852: extern "C"
                   42853: #endif
                   42854: char gdImageCreateFromGif ();
                   42855: int
                   42856: main ()
                   42857: {
                   42858: return gdImageCreateFromGif ();
                   42859:   ;
                   42860:   return 0;
                   42861: }
                   42862: _ACEOF
                   42863: if ac_fn_c_try_link "$LINENO"; then :
                   42864:   ac_cv_lib_gd_gdImageCreateFromGif=yes
                   42865: else
                   42866:   ac_cv_lib_gd_gdImageCreateFromGif=no
                   42867: fi
                   42868: rm -f core conftest.err conftest.$ac_objext \
                   42869:     conftest$ac_exeext conftest.$ac_ext
                   42870: LIBS=$ac_check_lib_save_LIBS
                   42871: fi
                   42872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromGif" >&5
                   42873: $as_echo "$ac_cv_lib_gd_gdImageCreateFromGif" >&6; }
                   42874: if test "x$ac_cv_lib_gd_gdImageCreateFromGif" = xyes; then :
                   42875: 
                   42876:     LDFLAGS=$save_old_LDFLAGS
                   42877:     ext_shared=$save_ext_shared
                   42878: 
                   42879: $as_echo "#define HAVE_GD_GIF_READ 1" >>confdefs.h
                   42880: 
                   42881: 
                   42882: else
                   42883: 
                   42884:     LDFLAGS=$save_old_LDFLAGS
                   42885:     ext_shared=$save_ext_shared
                   42886:     unset ac_cv_lib_gd_gdImageCreateFromGif
                   42887: 
                   42888: 
                   42889: fi
                   42890: 
                   42891: 
                   42892:   save_old_LDFLAGS=$LDFLAGS
                   42893:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   42894: 
                   42895:   save_ext_shared=$ext_shared
                   42896:   ext_shared=yes
                   42897: 
                   42898:   for ac_i in $ac_stuff; do
                   42899:     case $ac_i in
                   42900:     -pthread)
                   42901:       if test "$ext_shared" = "yes"; then
                   42902:         LDFLAGS="$LDFLAGS -pthread"
                   42903:       else
                   42904: 
                   42905: 
                   42906:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   42907: 
                   42908:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   42909:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   42910:     eval "EXTRA_LDFLAGS$unique=set"
                   42911:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   42912:   fi
                   42913: 
                   42914:       fi
                   42915:     ;;
                   42916:     -l*)
                   42917:       ac_ii=`echo $ac_i|cut -c 3-`
                   42918: 
                   42919: 
                   42920:   case $ac_ii in
                   42921:   c|c_r|pthread*) ;;
                   42922:   *)
                   42923:     if test "$ext_shared" = "yes"; then
                   42924:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   42925:     else
                   42926: 
                   42927: 
                   42928:   case $ac_ii in
                   42929:   c|c_r|pthread*) ;;
                   42930:   *)
                   42931:       LIBS="$LIBS -l$ac_ii"
                   42932:    ;;
                   42933:   esac
                   42934: 
                   42935: 
                   42936:     fi
                   42937:    ;;
                   42938:   esac
                   42939: 
                   42940: 
                   42941:     ;;
                   42942:     -L*)
                   42943:       ac_ii=`echo $ac_i|cut -c 3-`
                   42944: 
                   42945:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   42946: 
                   42947:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   42948:     ai_p=$ac_ii
                   42949:   else
                   42950: 
                   42951:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   42952: 
                   42953:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   42954:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   42955:   fi
                   42956: 
                   42957: 
                   42958:       if test "$ext_shared" = "yes"; then
                   42959:         LDFLAGS="-L$ai_p $LDFLAGS"
                   42960:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   42961:       else
                   42962: 
                   42963: 
                   42964: 
                   42965:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   42966: 
                   42967:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   42968:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   42969:     eval "LIBPATH$unique=set"
                   42970: 
                   42971:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   42972:     LDFLAGS="$LDFLAGS -L$ai_p"
                   42973:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   42974: 
                   42975:   fi
                   42976: 
                   42977: 
                   42978:       fi
                   42979: 
                   42980:   fi
                   42981: 
                   42982:     ;;
                   42983:     esac
                   42984:   done
                   42985: 
                   42986:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageGif in -lgd" >&5
                   42987: $as_echo_n "checking for gdImageGif in -lgd... " >&6; }
                   42988: if ${ac_cv_lib_gd_gdImageGif+:} false; then :
                   42989:   $as_echo_n "(cached) " >&6
                   42990: else
                   42991:   ac_check_lib_save_LIBS=$LIBS
                   42992: LIBS="-lgd  $LIBS"
                   42993: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   42994: /* end confdefs.h.  */
                   42995: 
                   42996: /* Override any GCC internal prototype to avoid an error.
                   42997:    Use char because int might match the return type of a GCC
                   42998:    builtin and then its argument prototype would still apply.  */
                   42999: #ifdef __cplusplus
                   43000: extern "C"
                   43001: #endif
                   43002: char gdImageGif ();
                   43003: int
                   43004: main ()
                   43005: {
                   43006: return gdImageGif ();
                   43007:   ;
                   43008:   return 0;
                   43009: }
                   43010: _ACEOF
                   43011: if ac_fn_c_try_link "$LINENO"; then :
                   43012:   ac_cv_lib_gd_gdImageGif=yes
                   43013: else
                   43014:   ac_cv_lib_gd_gdImageGif=no
                   43015: fi
                   43016: rm -f core conftest.err conftest.$ac_objext \
                   43017:     conftest$ac_exeext conftest.$ac_ext
                   43018: LIBS=$ac_check_lib_save_LIBS
                   43019: fi
                   43020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageGif" >&5
                   43021: $as_echo "$ac_cv_lib_gd_gdImageGif" >&6; }
                   43022: if test "x$ac_cv_lib_gd_gdImageGif" = xyes; then :
                   43023: 
                   43024:     LDFLAGS=$save_old_LDFLAGS
                   43025:     ext_shared=$save_ext_shared
                   43026: 
                   43027: $as_echo "#define HAVE_GD_GIF_CREATE 1" >>confdefs.h
                   43028: 
                   43029: 
                   43030: else
                   43031: 
                   43032:     LDFLAGS=$save_old_LDFLAGS
                   43033:     ext_shared=$save_ext_shared
                   43034:     unset ac_cv_lib_gd_gdImageGif
                   43035: 
                   43036: 
                   43037: fi
                   43038: 
                   43039: 
                   43040:   save_old_LDFLAGS=$LDFLAGS
                   43041:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   43042: 
                   43043:   save_ext_shared=$ext_shared
                   43044:   ext_shared=yes
                   43045: 
                   43046:   for ac_i in $ac_stuff; do
                   43047:     case $ac_i in
                   43048:     -pthread)
                   43049:       if test "$ext_shared" = "yes"; then
                   43050:         LDFLAGS="$LDFLAGS -pthread"
                   43051:       else
                   43052: 
                   43053: 
                   43054:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   43055: 
                   43056:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   43057:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   43058:     eval "EXTRA_LDFLAGS$unique=set"
                   43059:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   43060:   fi
                   43061: 
                   43062:       fi
                   43063:     ;;
                   43064:     -l*)
                   43065:       ac_ii=`echo $ac_i|cut -c 3-`
                   43066: 
                   43067: 
                   43068:   case $ac_ii in
                   43069:   c|c_r|pthread*) ;;
                   43070:   *)
                   43071:     if test "$ext_shared" = "yes"; then
                   43072:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   43073:     else
                   43074: 
                   43075: 
                   43076:   case $ac_ii in
                   43077:   c|c_r|pthread*) ;;
                   43078:   *)
                   43079:       LIBS="$LIBS -l$ac_ii"
                   43080:    ;;
                   43081:   esac
                   43082: 
                   43083: 
                   43084:     fi
                   43085:    ;;
                   43086:   esac
                   43087: 
                   43088: 
                   43089:     ;;
                   43090:     -L*)
                   43091:       ac_ii=`echo $ac_i|cut -c 3-`
                   43092: 
                   43093:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   43094: 
                   43095:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   43096:     ai_p=$ac_ii
                   43097:   else
                   43098: 
                   43099:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   43100: 
                   43101:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   43102:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   43103:   fi
                   43104: 
                   43105: 
                   43106:       if test "$ext_shared" = "yes"; then
                   43107:         LDFLAGS="-L$ai_p $LDFLAGS"
                   43108:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   43109:       else
                   43110: 
                   43111: 
                   43112: 
                   43113:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   43114: 
                   43115:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   43116:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   43117:     eval "LIBPATH$unique=set"
                   43118: 
                   43119:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   43120:     LDFLAGS="$LDFLAGS -L$ai_p"
                   43121:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   43122: 
                   43123:   fi
                   43124: 
                   43125: 
                   43126:       fi
                   43127: 
                   43128:   fi
                   43129: 
                   43130:     ;;
                   43131:     esac
                   43132:   done
                   43133: 
                   43134:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageWBMP in -lgd" >&5
                   43135: $as_echo_n "checking for gdImageWBMP in -lgd... " >&6; }
                   43136: if ${ac_cv_lib_gd_gdImageWBMP+:} false; then :
                   43137:   $as_echo_n "(cached) " >&6
                   43138: else
                   43139:   ac_check_lib_save_LIBS=$LIBS
                   43140: LIBS="-lgd  $LIBS"
                   43141: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   43142: /* end confdefs.h.  */
                   43143: 
                   43144: /* Override any GCC internal prototype to avoid an error.
                   43145:    Use char because int might match the return type of a GCC
                   43146:    builtin and then its argument prototype would still apply.  */
                   43147: #ifdef __cplusplus
                   43148: extern "C"
                   43149: #endif
                   43150: char gdImageWBMP ();
                   43151: int
                   43152: main ()
                   43153: {
                   43154: return gdImageWBMP ();
                   43155:   ;
                   43156:   return 0;
                   43157: }
                   43158: _ACEOF
                   43159: if ac_fn_c_try_link "$LINENO"; then :
                   43160:   ac_cv_lib_gd_gdImageWBMP=yes
                   43161: else
                   43162:   ac_cv_lib_gd_gdImageWBMP=no
                   43163: fi
                   43164: rm -f core conftest.err conftest.$ac_objext \
                   43165:     conftest$ac_exeext conftest.$ac_ext
                   43166: LIBS=$ac_check_lib_save_LIBS
                   43167: fi
                   43168: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageWBMP" >&5
                   43169: $as_echo "$ac_cv_lib_gd_gdImageWBMP" >&6; }
                   43170: if test "x$ac_cv_lib_gd_gdImageWBMP" = xyes; then :
                   43171: 
                   43172:     LDFLAGS=$save_old_LDFLAGS
                   43173:     ext_shared=$save_ext_shared
                   43174: 
                   43175: $as_echo "#define HAVE_GD_WBMP 1" >>confdefs.h
                   43176: 
                   43177: 
                   43178: else
                   43179: 
                   43180:     LDFLAGS=$save_old_LDFLAGS
                   43181:     ext_shared=$save_ext_shared
                   43182:     unset ac_cv_lib_gd_gdImageWBMP
                   43183: 
                   43184: 
                   43185: fi
                   43186: 
                   43187: 
                   43188:   save_old_LDFLAGS=$LDFLAGS
                   43189:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   43190: 
                   43191:   save_ext_shared=$ext_shared
                   43192:   ext_shared=yes
                   43193: 
                   43194:   for ac_i in $ac_stuff; do
                   43195:     case $ac_i in
                   43196:     -pthread)
                   43197:       if test "$ext_shared" = "yes"; then
                   43198:         LDFLAGS="$LDFLAGS -pthread"
                   43199:       else
                   43200: 
                   43201: 
                   43202:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   43203: 
                   43204:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   43205:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   43206:     eval "EXTRA_LDFLAGS$unique=set"
                   43207:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   43208:   fi
                   43209: 
                   43210:       fi
                   43211:     ;;
                   43212:     -l*)
                   43213:       ac_ii=`echo $ac_i|cut -c 3-`
                   43214: 
                   43215: 
                   43216:   case $ac_ii in
                   43217:   c|c_r|pthread*) ;;
                   43218:   *)
                   43219:     if test "$ext_shared" = "yes"; then
                   43220:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   43221:     else
                   43222: 
                   43223: 
                   43224:   case $ac_ii in
                   43225:   c|c_r|pthread*) ;;
                   43226:   *)
                   43227:       LIBS="$LIBS -l$ac_ii"
                   43228:    ;;
                   43229:   esac
                   43230: 
                   43231: 
                   43232:     fi
                   43233:    ;;
                   43234:   esac
                   43235: 
                   43236: 
                   43237:     ;;
                   43238:     -L*)
                   43239:       ac_ii=`echo $ac_i|cut -c 3-`
                   43240: 
                   43241:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   43242: 
                   43243:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   43244:     ai_p=$ac_ii
                   43245:   else
                   43246: 
                   43247:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   43248: 
                   43249:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   43250:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   43251:   fi
                   43252: 
                   43253: 
                   43254:       if test "$ext_shared" = "yes"; then
                   43255:         LDFLAGS="-L$ai_p $LDFLAGS"
                   43256:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   43257:       else
                   43258: 
                   43259: 
                   43260: 
                   43261:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   43262: 
                   43263:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   43264:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   43265:     eval "LIBPATH$unique=set"
                   43266: 
                   43267:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   43268:     LDFLAGS="$LDFLAGS -L$ai_p"
                   43269:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   43270: 
                   43271:   fi
                   43272: 
                   43273: 
                   43274:       fi
                   43275: 
                   43276:   fi
                   43277: 
                   43278:     ;;
                   43279:     esac
                   43280:   done
                   43281: 
                   43282:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromJpeg in -lgd" >&5
                   43283: $as_echo_n "checking for gdImageCreateFromJpeg in -lgd... " >&6; }
                   43284: if ${ac_cv_lib_gd_gdImageCreateFromJpeg+:} false; then :
                   43285:   $as_echo_n "(cached) " >&6
                   43286: else
                   43287:   ac_check_lib_save_LIBS=$LIBS
                   43288: LIBS="-lgd  $LIBS"
                   43289: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   43290: /* end confdefs.h.  */
                   43291: 
                   43292: /* Override any GCC internal prototype to avoid an error.
                   43293:    Use char because int might match the return type of a GCC
                   43294:    builtin and then its argument prototype would still apply.  */
                   43295: #ifdef __cplusplus
                   43296: extern "C"
                   43297: #endif
                   43298: char gdImageCreateFromJpeg ();
                   43299: int
                   43300: main ()
                   43301: {
                   43302: return gdImageCreateFromJpeg ();
                   43303:   ;
                   43304:   return 0;
                   43305: }
                   43306: _ACEOF
                   43307: if ac_fn_c_try_link "$LINENO"; then :
                   43308:   ac_cv_lib_gd_gdImageCreateFromJpeg=yes
                   43309: else
                   43310:   ac_cv_lib_gd_gdImageCreateFromJpeg=no
                   43311: fi
                   43312: rm -f core conftest.err conftest.$ac_objext \
                   43313:     conftest$ac_exeext conftest.$ac_ext
                   43314: LIBS=$ac_check_lib_save_LIBS
                   43315: fi
                   43316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromJpeg" >&5
                   43317: $as_echo "$ac_cv_lib_gd_gdImageCreateFromJpeg" >&6; }
                   43318: if test "x$ac_cv_lib_gd_gdImageCreateFromJpeg" = xyes; then :
                   43319: 
                   43320:     LDFLAGS=$save_old_LDFLAGS
                   43321:     ext_shared=$save_ext_shared
                   43322: 
                   43323: $as_echo "#define HAVE_GD_JPG 1" >>confdefs.h
                   43324: 
                   43325: 
                   43326: else
                   43327: 
                   43328:     LDFLAGS=$save_old_LDFLAGS
                   43329:     ext_shared=$save_ext_shared
                   43330:     unset ac_cv_lib_gd_gdImageCreateFromJpeg
                   43331: 
                   43332: 
                   43333: fi
                   43334: 
                   43335: 
                   43336:   save_old_LDFLAGS=$LDFLAGS
                   43337:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   43338: 
                   43339:   save_ext_shared=$ext_shared
                   43340:   ext_shared=yes
                   43341: 
                   43342:   for ac_i in $ac_stuff; do
                   43343:     case $ac_i in
                   43344:     -pthread)
                   43345:       if test "$ext_shared" = "yes"; then
                   43346:         LDFLAGS="$LDFLAGS -pthread"
                   43347:       else
                   43348: 
                   43349: 
                   43350:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   43351: 
                   43352:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   43353:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   43354:     eval "EXTRA_LDFLAGS$unique=set"
                   43355:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   43356:   fi
                   43357: 
                   43358:       fi
                   43359:     ;;
                   43360:     -l*)
                   43361:       ac_ii=`echo $ac_i|cut -c 3-`
                   43362: 
                   43363: 
                   43364:   case $ac_ii in
                   43365:   c|c_r|pthread*) ;;
                   43366:   *)
                   43367:     if test "$ext_shared" = "yes"; then
                   43368:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   43369:     else
                   43370: 
                   43371: 
                   43372:   case $ac_ii in
                   43373:   c|c_r|pthread*) ;;
                   43374:   *)
                   43375:       LIBS="$LIBS -l$ac_ii"
                   43376:    ;;
                   43377:   esac
                   43378: 
                   43379: 
                   43380:     fi
                   43381:    ;;
                   43382:   esac
                   43383: 
                   43384: 
                   43385:     ;;
                   43386:     -L*)
                   43387:       ac_ii=`echo $ac_i|cut -c 3-`
                   43388: 
                   43389:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   43390: 
                   43391:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   43392:     ai_p=$ac_ii
                   43393:   else
                   43394: 
                   43395:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   43396: 
                   43397:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   43398:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   43399:   fi
                   43400: 
                   43401: 
                   43402:       if test "$ext_shared" = "yes"; then
                   43403:         LDFLAGS="-L$ai_p $LDFLAGS"
                   43404:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   43405:       else
                   43406: 
                   43407: 
                   43408: 
                   43409:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   43410: 
                   43411:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   43412:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   43413:     eval "LIBPATH$unique=set"
                   43414: 
                   43415:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   43416:     LDFLAGS="$LDFLAGS -L$ai_p"
                   43417:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   43418: 
                   43419:   fi
                   43420: 
                   43421: 
                   43422:       fi
                   43423: 
                   43424:   fi
                   43425: 
                   43426:     ;;
                   43427:     esac
                   43428:   done
                   43429: 
                   43430:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromXpm in -lgd" >&5
                   43431: $as_echo_n "checking for gdImageCreateFromXpm in -lgd... " >&6; }
                   43432: if ${ac_cv_lib_gd_gdImageCreateFromXpm+:} false; then :
                   43433:   $as_echo_n "(cached) " >&6
                   43434: else
                   43435:   ac_check_lib_save_LIBS=$LIBS
                   43436: LIBS="-lgd  $LIBS"
                   43437: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   43438: /* end confdefs.h.  */
                   43439: 
                   43440: /* Override any GCC internal prototype to avoid an error.
                   43441:    Use char because int might match the return type of a GCC
                   43442:    builtin and then its argument prototype would still apply.  */
                   43443: #ifdef __cplusplus
                   43444: extern "C"
                   43445: #endif
                   43446: char gdImageCreateFromXpm ();
                   43447: int
                   43448: main ()
                   43449: {
                   43450: return gdImageCreateFromXpm ();
                   43451:   ;
                   43452:   return 0;
                   43453: }
                   43454: _ACEOF
                   43455: if ac_fn_c_try_link "$LINENO"; then :
                   43456:   ac_cv_lib_gd_gdImageCreateFromXpm=yes
                   43457: else
                   43458:   ac_cv_lib_gd_gdImageCreateFromXpm=no
                   43459: fi
                   43460: rm -f core conftest.err conftest.$ac_objext \
                   43461:     conftest$ac_exeext conftest.$ac_ext
                   43462: LIBS=$ac_check_lib_save_LIBS
                   43463: fi
                   43464: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromXpm" >&5
                   43465: $as_echo "$ac_cv_lib_gd_gdImageCreateFromXpm" >&6; }
                   43466: if test "x$ac_cv_lib_gd_gdImageCreateFromXpm" = xyes; then :
                   43467: 
                   43468:     LDFLAGS=$save_old_LDFLAGS
                   43469:     ext_shared=$save_ext_shared
                   43470: 
                   43471: $as_echo "#define HAVE_GD_XPM 1" >>confdefs.h
                   43472: 
                   43473: 
                   43474: else
                   43475: 
                   43476:     LDFLAGS=$save_old_LDFLAGS
                   43477:     ext_shared=$save_ext_shared
                   43478:     unset ac_cv_lib_gd_gdImageCreateFromXpm
                   43479: 
                   43480: 
                   43481: fi
                   43482: 
                   43483: 
                   43484:   save_old_LDFLAGS=$LDFLAGS
                   43485:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   43486: 
                   43487:   save_ext_shared=$ext_shared
                   43488:   ext_shared=yes
                   43489: 
                   43490:   for ac_i in $ac_stuff; do
                   43491:     case $ac_i in
                   43492:     -pthread)
                   43493:       if test "$ext_shared" = "yes"; then
                   43494:         LDFLAGS="$LDFLAGS -pthread"
                   43495:       else
                   43496: 
                   43497: 
                   43498:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   43499: 
                   43500:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   43501:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   43502:     eval "EXTRA_LDFLAGS$unique=set"
                   43503:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   43504:   fi
                   43505: 
                   43506:       fi
                   43507:     ;;
                   43508:     -l*)
                   43509:       ac_ii=`echo $ac_i|cut -c 3-`
                   43510: 
                   43511: 
                   43512:   case $ac_ii in
                   43513:   c|c_r|pthread*) ;;
                   43514:   *)
                   43515:     if test "$ext_shared" = "yes"; then
                   43516:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   43517:     else
                   43518: 
                   43519: 
                   43520:   case $ac_ii in
                   43521:   c|c_r|pthread*) ;;
                   43522:   *)
                   43523:       LIBS="$LIBS -l$ac_ii"
                   43524:    ;;
                   43525:   esac
                   43526: 
                   43527: 
                   43528:     fi
                   43529:    ;;
                   43530:   esac
                   43531: 
                   43532: 
                   43533:     ;;
                   43534:     -L*)
                   43535:       ac_ii=`echo $ac_i|cut -c 3-`
                   43536: 
                   43537:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   43538: 
                   43539:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   43540:     ai_p=$ac_ii
                   43541:   else
                   43542: 
                   43543:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   43544: 
                   43545:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   43546:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   43547:   fi
                   43548: 
                   43549: 
                   43550:       if test "$ext_shared" = "yes"; then
                   43551:         LDFLAGS="-L$ai_p $LDFLAGS"
                   43552:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   43553:       else
                   43554: 
                   43555: 
                   43556: 
                   43557:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   43558: 
                   43559:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   43560:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   43561:     eval "LIBPATH$unique=set"
                   43562: 
                   43563:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   43564:     LDFLAGS="$LDFLAGS -L$ai_p"
                   43565:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   43566: 
                   43567:   fi
                   43568: 
                   43569: 
                   43570:       fi
                   43571: 
                   43572:   fi
                   43573: 
                   43574:     ;;
                   43575:     esac
                   43576:   done
                   43577: 
                   43578:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromGd2 in -lgd" >&5
                   43579: $as_echo_n "checking for gdImageCreateFromGd2 in -lgd... " >&6; }
                   43580: if ${ac_cv_lib_gd_gdImageCreateFromGd2+:} false; then :
                   43581:   $as_echo_n "(cached) " >&6
                   43582: else
                   43583:   ac_check_lib_save_LIBS=$LIBS
                   43584: LIBS="-lgd  $LIBS"
                   43585: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   43586: /* end confdefs.h.  */
                   43587: 
                   43588: /* Override any GCC internal prototype to avoid an error.
                   43589:    Use char because int might match the return type of a GCC
                   43590:    builtin and then its argument prototype would still apply.  */
                   43591: #ifdef __cplusplus
                   43592: extern "C"
                   43593: #endif
                   43594: char gdImageCreateFromGd2 ();
                   43595: int
                   43596: main ()
                   43597: {
                   43598: return gdImageCreateFromGd2 ();
                   43599:   ;
                   43600:   return 0;
                   43601: }
                   43602: _ACEOF
                   43603: if ac_fn_c_try_link "$LINENO"; then :
                   43604:   ac_cv_lib_gd_gdImageCreateFromGd2=yes
                   43605: else
                   43606:   ac_cv_lib_gd_gdImageCreateFromGd2=no
                   43607: fi
                   43608: rm -f core conftest.err conftest.$ac_objext \
                   43609:     conftest$ac_exeext conftest.$ac_ext
                   43610: LIBS=$ac_check_lib_save_LIBS
                   43611: fi
                   43612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromGd2" >&5
                   43613: $as_echo "$ac_cv_lib_gd_gdImageCreateFromGd2" >&6; }
                   43614: if test "x$ac_cv_lib_gd_gdImageCreateFromGd2" = xyes; then :
                   43615: 
                   43616:     LDFLAGS=$save_old_LDFLAGS
                   43617:     ext_shared=$save_ext_shared
                   43618: 
                   43619: $as_echo "#define HAVE_GD_GD2 1" >>confdefs.h
                   43620: 
                   43621: 
                   43622: else
                   43623: 
                   43624:     LDFLAGS=$save_old_LDFLAGS
                   43625:     ext_shared=$save_ext_shared
                   43626:     unset ac_cv_lib_gd_gdImageCreateFromGd2
                   43627: 
                   43628: 
                   43629: fi
                   43630: 
                   43631: 
                   43632:   save_old_LDFLAGS=$LDFLAGS
                   43633:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   43634: 
                   43635:   save_ext_shared=$ext_shared
                   43636:   ext_shared=yes
                   43637: 
                   43638:   for ac_i in $ac_stuff; do
                   43639:     case $ac_i in
                   43640:     -pthread)
                   43641:       if test "$ext_shared" = "yes"; then
                   43642:         LDFLAGS="$LDFLAGS -pthread"
                   43643:       else
                   43644: 
                   43645: 
                   43646:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   43647: 
                   43648:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   43649:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   43650:     eval "EXTRA_LDFLAGS$unique=set"
                   43651:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   43652:   fi
                   43653: 
                   43654:       fi
                   43655:     ;;
                   43656:     -l*)
                   43657:       ac_ii=`echo $ac_i|cut -c 3-`
                   43658: 
                   43659: 
                   43660:   case $ac_ii in
                   43661:   c|c_r|pthread*) ;;
                   43662:   *)
                   43663:     if test "$ext_shared" = "yes"; then
                   43664:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   43665:     else
                   43666: 
                   43667: 
                   43668:   case $ac_ii in
                   43669:   c|c_r|pthread*) ;;
                   43670:   *)
                   43671:       LIBS="$LIBS -l$ac_ii"
                   43672:    ;;
                   43673:   esac
                   43674: 
                   43675: 
                   43676:     fi
                   43677:    ;;
                   43678:   esac
                   43679: 
                   43680: 
                   43681:     ;;
                   43682:     -L*)
                   43683:       ac_ii=`echo $ac_i|cut -c 3-`
                   43684: 
                   43685:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   43686: 
                   43687:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   43688:     ai_p=$ac_ii
                   43689:   else
                   43690: 
                   43691:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   43692: 
                   43693:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   43694:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   43695:   fi
                   43696: 
                   43697: 
                   43698:       if test "$ext_shared" = "yes"; then
                   43699:         LDFLAGS="-L$ai_p $LDFLAGS"
                   43700:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   43701:       else
                   43702: 
                   43703: 
                   43704: 
                   43705:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   43706: 
                   43707:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   43708:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   43709:     eval "LIBPATH$unique=set"
                   43710: 
                   43711:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   43712:     LDFLAGS="$LDFLAGS -L$ai_p"
                   43713:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   43714: 
                   43715:   fi
                   43716: 
                   43717: 
                   43718:       fi
                   43719: 
                   43720:   fi
                   43721: 
                   43722:     ;;
                   43723:     esac
                   43724:   done
                   43725: 
                   43726:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateTrueColor in -lgd" >&5
                   43727: $as_echo_n "checking for gdImageCreateTrueColor in -lgd... " >&6; }
                   43728: if ${ac_cv_lib_gd_gdImageCreateTrueColor+:} false; then :
                   43729:   $as_echo_n "(cached) " >&6
                   43730: else
                   43731:   ac_check_lib_save_LIBS=$LIBS
                   43732: LIBS="-lgd  $LIBS"
                   43733: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   43734: /* end confdefs.h.  */
                   43735: 
                   43736: /* Override any GCC internal prototype to avoid an error.
                   43737:    Use char because int might match the return type of a GCC
                   43738:    builtin and then its argument prototype would still apply.  */
                   43739: #ifdef __cplusplus
                   43740: extern "C"
                   43741: #endif
                   43742: char gdImageCreateTrueColor ();
                   43743: int
                   43744: main ()
                   43745: {
                   43746: return gdImageCreateTrueColor ();
                   43747:   ;
                   43748:   return 0;
                   43749: }
                   43750: _ACEOF
                   43751: if ac_fn_c_try_link "$LINENO"; then :
                   43752:   ac_cv_lib_gd_gdImageCreateTrueColor=yes
                   43753: else
                   43754:   ac_cv_lib_gd_gdImageCreateTrueColor=no
                   43755: fi
                   43756: rm -f core conftest.err conftest.$ac_objext \
                   43757:     conftest$ac_exeext conftest.$ac_ext
                   43758: LIBS=$ac_check_lib_save_LIBS
                   43759: fi
                   43760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateTrueColor" >&5
                   43761: $as_echo "$ac_cv_lib_gd_gdImageCreateTrueColor" >&6; }
                   43762: if test "x$ac_cv_lib_gd_gdImageCreateTrueColor" = xyes; then :
                   43763: 
                   43764:     LDFLAGS=$save_old_LDFLAGS
                   43765:     ext_shared=$save_ext_shared
                   43766: 
                   43767: $as_echo "#define HAVE_LIBGD20 1" >>confdefs.h
                   43768: 
                   43769: 
                   43770: else
                   43771: 
                   43772:     LDFLAGS=$save_old_LDFLAGS
                   43773:     ext_shared=$save_ext_shared
                   43774:     unset ac_cv_lib_gd_gdImageCreateTrueColor
                   43775: 
                   43776: 
                   43777: fi
                   43778: 
                   43779: 
                   43780:   save_old_LDFLAGS=$LDFLAGS
                   43781:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   43782: 
                   43783:   save_ext_shared=$ext_shared
                   43784:   ext_shared=yes
                   43785: 
                   43786:   for ac_i in $ac_stuff; do
                   43787:     case $ac_i in
                   43788:     -pthread)
                   43789:       if test "$ext_shared" = "yes"; then
                   43790:         LDFLAGS="$LDFLAGS -pthread"
                   43791:       else
                   43792: 
                   43793: 
                   43794:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   43795: 
                   43796:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   43797:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   43798:     eval "EXTRA_LDFLAGS$unique=set"
                   43799:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   43800:   fi
                   43801: 
                   43802:       fi
                   43803:     ;;
                   43804:     -l*)
                   43805:       ac_ii=`echo $ac_i|cut -c 3-`
                   43806: 
                   43807: 
                   43808:   case $ac_ii in
                   43809:   c|c_r|pthread*) ;;
                   43810:   *)
                   43811:     if test "$ext_shared" = "yes"; then
                   43812:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   43813:     else
                   43814: 
                   43815: 
                   43816:   case $ac_ii in
                   43817:   c|c_r|pthread*) ;;
                   43818:   *)
                   43819:       LIBS="$LIBS -l$ac_ii"
                   43820:    ;;
                   43821:   esac
                   43822: 
                   43823: 
                   43824:     fi
                   43825:    ;;
                   43826:   esac
                   43827: 
                   43828: 
                   43829:     ;;
                   43830:     -L*)
                   43831:       ac_ii=`echo $ac_i|cut -c 3-`
                   43832: 
                   43833:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   43834: 
                   43835:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   43836:     ai_p=$ac_ii
                   43837:   else
                   43838: 
                   43839:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   43840: 
                   43841:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   43842:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   43843:   fi
                   43844: 
                   43845: 
                   43846:       if test "$ext_shared" = "yes"; then
                   43847:         LDFLAGS="-L$ai_p $LDFLAGS"
                   43848:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   43849:       else
                   43850: 
                   43851: 
                   43852: 
                   43853:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   43854: 
                   43855:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   43856:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   43857:     eval "LIBPATH$unique=set"
                   43858: 
                   43859:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   43860:     LDFLAGS="$LDFLAGS -L$ai_p"
                   43861:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   43862: 
                   43863:   fi
                   43864: 
                   43865: 
                   43866:       fi
                   43867: 
                   43868:   fi
                   43869: 
                   43870:     ;;
                   43871:     esac
                   43872:   done
                   43873: 
                   43874:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageSetTile in -lgd" >&5
                   43875: $as_echo_n "checking for gdImageSetTile in -lgd... " >&6; }
                   43876: if ${ac_cv_lib_gd_gdImageSetTile+:} false; then :
                   43877:   $as_echo_n "(cached) " >&6
                   43878: else
                   43879:   ac_check_lib_save_LIBS=$LIBS
                   43880: LIBS="-lgd  $LIBS"
                   43881: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   43882: /* end confdefs.h.  */
                   43883: 
                   43884: /* Override any GCC internal prototype to avoid an error.
                   43885:    Use char because int might match the return type of a GCC
                   43886:    builtin and then its argument prototype would still apply.  */
                   43887: #ifdef __cplusplus
                   43888: extern "C"
                   43889: #endif
                   43890: char gdImageSetTile ();
                   43891: int
                   43892: main ()
                   43893: {
                   43894: return gdImageSetTile ();
                   43895:   ;
                   43896:   return 0;
                   43897: }
                   43898: _ACEOF
                   43899: if ac_fn_c_try_link "$LINENO"; then :
                   43900:   ac_cv_lib_gd_gdImageSetTile=yes
                   43901: else
                   43902:   ac_cv_lib_gd_gdImageSetTile=no
                   43903: fi
                   43904: rm -f core conftest.err conftest.$ac_objext \
                   43905:     conftest$ac_exeext conftest.$ac_ext
                   43906: LIBS=$ac_check_lib_save_LIBS
                   43907: fi
                   43908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageSetTile" >&5
                   43909: $as_echo "$ac_cv_lib_gd_gdImageSetTile" >&6; }
                   43910: if test "x$ac_cv_lib_gd_gdImageSetTile" = xyes; then :
                   43911: 
                   43912:     LDFLAGS=$save_old_LDFLAGS
                   43913:     ext_shared=$save_ext_shared
                   43914: 
                   43915: $as_echo "#define HAVE_GD_IMAGESETTILE 1" >>confdefs.h
                   43916: 
                   43917: 
                   43918: else
                   43919: 
                   43920:     LDFLAGS=$save_old_LDFLAGS
                   43921:     ext_shared=$save_ext_shared
                   43922:     unset ac_cv_lib_gd_gdImageSetTile
                   43923: 
                   43924: 
                   43925: fi
                   43926: 
                   43927: 
                   43928:   save_old_LDFLAGS=$LDFLAGS
                   43929:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   43930: 
                   43931:   save_ext_shared=$ext_shared
                   43932:   ext_shared=yes
                   43933: 
                   43934:   for ac_i in $ac_stuff; do
                   43935:     case $ac_i in
                   43936:     -pthread)
                   43937:       if test "$ext_shared" = "yes"; then
                   43938:         LDFLAGS="$LDFLAGS -pthread"
                   43939:       else
                   43940: 
                   43941: 
                   43942:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   43943: 
                   43944:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   43945:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   43946:     eval "EXTRA_LDFLAGS$unique=set"
                   43947:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   43948:   fi
                   43949: 
                   43950:       fi
                   43951:     ;;
                   43952:     -l*)
                   43953:       ac_ii=`echo $ac_i|cut -c 3-`
                   43954: 
                   43955: 
                   43956:   case $ac_ii in
                   43957:   c|c_r|pthread*) ;;
                   43958:   *)
                   43959:     if test "$ext_shared" = "yes"; then
                   43960:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   43961:     else
                   43962: 
                   43963: 
                   43964:   case $ac_ii in
                   43965:   c|c_r|pthread*) ;;
                   43966:   *)
                   43967:       LIBS="$LIBS -l$ac_ii"
                   43968:    ;;
                   43969:   esac
                   43970: 
                   43971: 
                   43972:     fi
                   43973:    ;;
                   43974:   esac
                   43975: 
                   43976: 
                   43977:     ;;
                   43978:     -L*)
                   43979:       ac_ii=`echo $ac_i|cut -c 3-`
                   43980: 
                   43981:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   43982: 
                   43983:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   43984:     ai_p=$ac_ii
                   43985:   else
                   43986: 
                   43987:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   43988: 
                   43989:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   43990:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   43991:   fi
                   43992: 
                   43993: 
                   43994:       if test "$ext_shared" = "yes"; then
                   43995:         LDFLAGS="-L$ai_p $LDFLAGS"
                   43996:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   43997:       else
                   43998: 
                   43999: 
                   44000: 
                   44001:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   44002: 
                   44003:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   44004:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   44005:     eval "LIBPATH$unique=set"
                   44006: 
                   44007:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   44008:     LDFLAGS="$LDFLAGS -L$ai_p"
                   44009:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   44010: 
                   44011:   fi
                   44012: 
                   44013: 
                   44014:       fi
                   44015: 
                   44016:   fi
                   44017: 
                   44018:     ;;
                   44019:     esac
                   44020:   done
                   44021: 
                   44022:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageEllipse in -lgd" >&5
                   44023: $as_echo_n "checking for gdImageEllipse in -lgd... " >&6; }
                   44024: if ${ac_cv_lib_gd_gdImageEllipse+:} false; then :
                   44025:   $as_echo_n "(cached) " >&6
                   44026: else
                   44027:   ac_check_lib_save_LIBS=$LIBS
                   44028: LIBS="-lgd  $LIBS"
                   44029: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   44030: /* end confdefs.h.  */
                   44031: 
                   44032: /* Override any GCC internal prototype to avoid an error.
                   44033:    Use char because int might match the return type of a GCC
                   44034:    builtin and then its argument prototype would still apply.  */
                   44035: #ifdef __cplusplus
                   44036: extern "C"
                   44037: #endif
                   44038: char gdImageEllipse ();
                   44039: int
                   44040: main ()
                   44041: {
                   44042: return gdImageEllipse ();
                   44043:   ;
                   44044:   return 0;
                   44045: }
                   44046: _ACEOF
                   44047: if ac_fn_c_try_link "$LINENO"; then :
                   44048:   ac_cv_lib_gd_gdImageEllipse=yes
                   44049: else
                   44050:   ac_cv_lib_gd_gdImageEllipse=no
                   44051: fi
                   44052: rm -f core conftest.err conftest.$ac_objext \
                   44053:     conftest$ac_exeext conftest.$ac_ext
                   44054: LIBS=$ac_check_lib_save_LIBS
                   44055: fi
                   44056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageEllipse" >&5
                   44057: $as_echo "$ac_cv_lib_gd_gdImageEllipse" >&6; }
                   44058: if test "x$ac_cv_lib_gd_gdImageEllipse" = xyes; then :
                   44059: 
                   44060:     LDFLAGS=$save_old_LDFLAGS
                   44061:     ext_shared=$save_ext_shared
                   44062: 
                   44063: $as_echo "#define HAVE_GD_IMAGEELLIPSE 1" >>confdefs.h
                   44064: 
                   44065: 
                   44066: else
                   44067: 
                   44068:     LDFLAGS=$save_old_LDFLAGS
                   44069:     ext_shared=$save_ext_shared
                   44070:     unset ac_cv_lib_gd_gdImageEllipse
                   44071: 
                   44072: 
                   44073: fi
                   44074: 
                   44075: 
                   44076:   save_old_LDFLAGS=$LDFLAGS
                   44077:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   44078: 
                   44079:   save_ext_shared=$ext_shared
                   44080:   ext_shared=yes
                   44081: 
                   44082:   for ac_i in $ac_stuff; do
                   44083:     case $ac_i in
                   44084:     -pthread)
                   44085:       if test "$ext_shared" = "yes"; then
                   44086:         LDFLAGS="$LDFLAGS -pthread"
                   44087:       else
                   44088: 
                   44089: 
                   44090:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   44091: 
                   44092:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   44093:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   44094:     eval "EXTRA_LDFLAGS$unique=set"
                   44095:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   44096:   fi
                   44097: 
                   44098:       fi
                   44099:     ;;
                   44100:     -l*)
                   44101:       ac_ii=`echo $ac_i|cut -c 3-`
                   44102: 
                   44103: 
                   44104:   case $ac_ii in
                   44105:   c|c_r|pthread*) ;;
                   44106:   *)
                   44107:     if test "$ext_shared" = "yes"; then
                   44108:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   44109:     else
                   44110: 
                   44111: 
                   44112:   case $ac_ii in
                   44113:   c|c_r|pthread*) ;;
                   44114:   *)
                   44115:       LIBS="$LIBS -l$ac_ii"
                   44116:    ;;
                   44117:   esac
                   44118: 
                   44119: 
                   44120:     fi
                   44121:    ;;
                   44122:   esac
                   44123: 
                   44124: 
                   44125:     ;;
                   44126:     -L*)
                   44127:       ac_ii=`echo $ac_i|cut -c 3-`
                   44128: 
                   44129:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   44130: 
                   44131:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   44132:     ai_p=$ac_ii
                   44133:   else
                   44134: 
                   44135:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   44136: 
                   44137:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   44138:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   44139:   fi
                   44140: 
                   44141: 
                   44142:       if test "$ext_shared" = "yes"; then
                   44143:         LDFLAGS="-L$ai_p $LDFLAGS"
                   44144:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   44145:       else
                   44146: 
                   44147: 
                   44148: 
                   44149:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   44150: 
                   44151:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   44152:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   44153:     eval "LIBPATH$unique=set"
                   44154: 
                   44155:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   44156:     LDFLAGS="$LDFLAGS -L$ai_p"
                   44157:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   44158: 
                   44159:   fi
                   44160: 
                   44161: 
                   44162:       fi
                   44163: 
                   44164:   fi
                   44165: 
                   44166:     ;;
                   44167:     esac
                   44168:   done
                   44169: 
                   44170:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageSetBrush in -lgd" >&5
                   44171: $as_echo_n "checking for gdImageSetBrush in -lgd... " >&6; }
                   44172: if ${ac_cv_lib_gd_gdImageSetBrush+:} false; then :
                   44173:   $as_echo_n "(cached) " >&6
                   44174: else
                   44175:   ac_check_lib_save_LIBS=$LIBS
                   44176: LIBS="-lgd  $LIBS"
                   44177: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   44178: /* end confdefs.h.  */
                   44179: 
                   44180: /* Override any GCC internal prototype to avoid an error.
                   44181:    Use char because int might match the return type of a GCC
                   44182:    builtin and then its argument prototype would still apply.  */
                   44183: #ifdef __cplusplus
                   44184: extern "C"
                   44185: #endif
                   44186: char gdImageSetBrush ();
                   44187: int
                   44188: main ()
                   44189: {
                   44190: return gdImageSetBrush ();
                   44191:   ;
                   44192:   return 0;
                   44193: }
                   44194: _ACEOF
                   44195: if ac_fn_c_try_link "$LINENO"; then :
                   44196:   ac_cv_lib_gd_gdImageSetBrush=yes
                   44197: else
                   44198:   ac_cv_lib_gd_gdImageSetBrush=no
                   44199: fi
                   44200: rm -f core conftest.err conftest.$ac_objext \
                   44201:     conftest$ac_exeext conftest.$ac_ext
                   44202: LIBS=$ac_check_lib_save_LIBS
                   44203: fi
                   44204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageSetBrush" >&5
                   44205: $as_echo "$ac_cv_lib_gd_gdImageSetBrush" >&6; }
                   44206: if test "x$ac_cv_lib_gd_gdImageSetBrush" = xyes; then :
                   44207: 
                   44208:     LDFLAGS=$save_old_LDFLAGS
                   44209:     ext_shared=$save_ext_shared
                   44210: 
                   44211: $as_echo "#define HAVE_GD_IMAGESETBRUSH 1" >>confdefs.h
                   44212: 
                   44213: 
                   44214: else
                   44215: 
                   44216:     LDFLAGS=$save_old_LDFLAGS
                   44217:     ext_shared=$save_ext_shared
                   44218:     unset ac_cv_lib_gd_gdImageSetBrush
                   44219: 
                   44220: 
                   44221: fi
                   44222: 
                   44223: 
                   44224:   save_old_LDFLAGS=$LDFLAGS
                   44225:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   44226: 
                   44227:   save_ext_shared=$ext_shared
                   44228:   ext_shared=yes
                   44229: 
                   44230:   for ac_i in $ac_stuff; do
                   44231:     case $ac_i in
                   44232:     -pthread)
                   44233:       if test "$ext_shared" = "yes"; then
                   44234:         LDFLAGS="$LDFLAGS -pthread"
                   44235:       else
                   44236: 
                   44237: 
                   44238:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   44239: 
                   44240:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   44241:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   44242:     eval "EXTRA_LDFLAGS$unique=set"
                   44243:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   44244:   fi
                   44245: 
                   44246:       fi
                   44247:     ;;
                   44248:     -l*)
                   44249:       ac_ii=`echo $ac_i|cut -c 3-`
                   44250: 
                   44251: 
                   44252:   case $ac_ii in
                   44253:   c|c_r|pthread*) ;;
                   44254:   *)
                   44255:     if test "$ext_shared" = "yes"; then
                   44256:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   44257:     else
                   44258: 
                   44259: 
                   44260:   case $ac_ii in
                   44261:   c|c_r|pthread*) ;;
                   44262:   *)
                   44263:       LIBS="$LIBS -l$ac_ii"
                   44264:    ;;
                   44265:   esac
                   44266: 
                   44267: 
                   44268:     fi
                   44269:    ;;
                   44270:   esac
                   44271: 
                   44272: 
                   44273:     ;;
                   44274:     -L*)
                   44275:       ac_ii=`echo $ac_i|cut -c 3-`
                   44276: 
                   44277:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   44278: 
                   44279:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   44280:     ai_p=$ac_ii
                   44281:   else
                   44282: 
                   44283:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   44284: 
                   44285:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   44286:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   44287:   fi
                   44288: 
                   44289: 
                   44290:       if test "$ext_shared" = "yes"; then
                   44291:         LDFLAGS="-L$ai_p $LDFLAGS"
                   44292:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   44293:       else
                   44294: 
                   44295: 
                   44296: 
                   44297:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   44298: 
                   44299:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   44300:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   44301:     eval "LIBPATH$unique=set"
                   44302: 
                   44303:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   44304:     LDFLAGS="$LDFLAGS -L$ai_p"
                   44305:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   44306: 
                   44307:   fi
                   44308: 
                   44309: 
                   44310:       fi
                   44311: 
                   44312:   fi
                   44313: 
                   44314:     ;;
                   44315:     esac
                   44316:   done
                   44317: 
                   44318:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringTTF in -lgd" >&5
                   44319: $as_echo_n "checking for gdImageStringTTF in -lgd... " >&6; }
                   44320: if ${ac_cv_lib_gd_gdImageStringTTF+:} false; then :
                   44321:   $as_echo_n "(cached) " >&6
                   44322: else
                   44323:   ac_check_lib_save_LIBS=$LIBS
                   44324: LIBS="-lgd  $LIBS"
                   44325: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   44326: /* end confdefs.h.  */
                   44327: 
                   44328: /* Override any GCC internal prototype to avoid an error.
                   44329:    Use char because int might match the return type of a GCC
                   44330:    builtin and then its argument prototype would still apply.  */
                   44331: #ifdef __cplusplus
                   44332: extern "C"
                   44333: #endif
                   44334: char gdImageStringTTF ();
                   44335: int
                   44336: main ()
                   44337: {
                   44338: return gdImageStringTTF ();
                   44339:   ;
                   44340:   return 0;
                   44341: }
                   44342: _ACEOF
                   44343: if ac_fn_c_try_link "$LINENO"; then :
                   44344:   ac_cv_lib_gd_gdImageStringTTF=yes
                   44345: else
                   44346:   ac_cv_lib_gd_gdImageStringTTF=no
                   44347: fi
                   44348: rm -f core conftest.err conftest.$ac_objext \
                   44349:     conftest$ac_exeext conftest.$ac_ext
                   44350: LIBS=$ac_check_lib_save_LIBS
                   44351: fi
                   44352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringTTF" >&5
                   44353: $as_echo "$ac_cv_lib_gd_gdImageStringTTF" >&6; }
                   44354: if test "x$ac_cv_lib_gd_gdImageStringTTF" = xyes; then :
                   44355: 
                   44356:     LDFLAGS=$save_old_LDFLAGS
                   44357:     ext_shared=$save_ext_shared
                   44358: 
                   44359: $as_echo "#define HAVE_GD_STRINGTTF 1" >>confdefs.h
                   44360: 
                   44361: 
                   44362: else
                   44363: 
                   44364:     LDFLAGS=$save_old_LDFLAGS
                   44365:     ext_shared=$save_ext_shared
                   44366:     unset ac_cv_lib_gd_gdImageStringTTF
                   44367: 
                   44368: 
                   44369: fi
                   44370: 
                   44371: 
                   44372:   save_old_LDFLAGS=$LDFLAGS
                   44373:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   44374: 
                   44375:   save_ext_shared=$ext_shared
                   44376:   ext_shared=yes
                   44377: 
                   44378:   for ac_i in $ac_stuff; do
                   44379:     case $ac_i in
                   44380:     -pthread)
                   44381:       if test "$ext_shared" = "yes"; then
                   44382:         LDFLAGS="$LDFLAGS -pthread"
                   44383:       else
                   44384: 
                   44385: 
                   44386:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   44387: 
                   44388:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   44389:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   44390:     eval "EXTRA_LDFLAGS$unique=set"
                   44391:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   44392:   fi
                   44393: 
                   44394:       fi
                   44395:     ;;
                   44396:     -l*)
                   44397:       ac_ii=`echo $ac_i|cut -c 3-`
                   44398: 
                   44399: 
                   44400:   case $ac_ii in
                   44401:   c|c_r|pthread*) ;;
                   44402:   *)
                   44403:     if test "$ext_shared" = "yes"; then
                   44404:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   44405:     else
                   44406: 
                   44407: 
                   44408:   case $ac_ii in
                   44409:   c|c_r|pthread*) ;;
                   44410:   *)
                   44411:       LIBS="$LIBS -l$ac_ii"
                   44412:    ;;
                   44413:   esac
                   44414: 
                   44415: 
                   44416:     fi
                   44417:    ;;
                   44418:   esac
                   44419: 
                   44420: 
                   44421:     ;;
                   44422:     -L*)
                   44423:       ac_ii=`echo $ac_i|cut -c 3-`
                   44424: 
                   44425:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   44426: 
                   44427:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   44428:     ai_p=$ac_ii
                   44429:   else
                   44430: 
                   44431:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   44432: 
                   44433:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   44434:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   44435:   fi
                   44436: 
                   44437: 
                   44438:       if test "$ext_shared" = "yes"; then
                   44439:         LDFLAGS="-L$ai_p $LDFLAGS"
                   44440:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   44441:       else
                   44442: 
                   44443: 
                   44444: 
                   44445:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   44446: 
                   44447:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   44448:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   44449:     eval "LIBPATH$unique=set"
                   44450: 
                   44451:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   44452:     LDFLAGS="$LDFLAGS -L$ai_p"
                   44453:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   44454: 
                   44455:   fi
                   44456: 
                   44457: 
                   44458:       fi
                   44459: 
                   44460:   fi
                   44461: 
                   44462:     ;;
                   44463:     esac
                   44464:   done
                   44465: 
                   44466:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringFT in -lgd" >&5
                   44467: $as_echo_n "checking for gdImageStringFT in -lgd... " >&6; }
                   44468: if ${ac_cv_lib_gd_gdImageStringFT+:} false; then :
                   44469:   $as_echo_n "(cached) " >&6
                   44470: else
                   44471:   ac_check_lib_save_LIBS=$LIBS
                   44472: LIBS="-lgd  $LIBS"
                   44473: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   44474: /* end confdefs.h.  */
                   44475: 
                   44476: /* Override any GCC internal prototype to avoid an error.
                   44477:    Use char because int might match the return type of a GCC
                   44478:    builtin and then its argument prototype would still apply.  */
                   44479: #ifdef __cplusplus
                   44480: extern "C"
                   44481: #endif
                   44482: char gdImageStringFT ();
                   44483: int
                   44484: main ()
                   44485: {
                   44486: return gdImageStringFT ();
                   44487:   ;
                   44488:   return 0;
                   44489: }
                   44490: _ACEOF
                   44491: if ac_fn_c_try_link "$LINENO"; then :
                   44492:   ac_cv_lib_gd_gdImageStringFT=yes
                   44493: else
                   44494:   ac_cv_lib_gd_gdImageStringFT=no
                   44495: fi
                   44496: rm -f core conftest.err conftest.$ac_objext \
                   44497:     conftest$ac_exeext conftest.$ac_ext
                   44498: LIBS=$ac_check_lib_save_LIBS
                   44499: fi
                   44500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringFT" >&5
                   44501: $as_echo "$ac_cv_lib_gd_gdImageStringFT" >&6; }
                   44502: if test "x$ac_cv_lib_gd_gdImageStringFT" = xyes; then :
                   44503: 
                   44504:     LDFLAGS=$save_old_LDFLAGS
                   44505:     ext_shared=$save_ext_shared
                   44506: 
                   44507: $as_echo "#define HAVE_GD_STRINGFT 1" >>confdefs.h
                   44508: 
                   44509: 
                   44510: else
                   44511: 
                   44512:     LDFLAGS=$save_old_LDFLAGS
                   44513:     ext_shared=$save_ext_shared
                   44514:     unset ac_cv_lib_gd_gdImageStringFT
                   44515: 
                   44516: 
                   44517: fi
                   44518: 
                   44519: 
                   44520:   save_old_LDFLAGS=$LDFLAGS
                   44521:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   44522: 
                   44523:   save_ext_shared=$ext_shared
                   44524:   ext_shared=yes
                   44525: 
                   44526:   for ac_i in $ac_stuff; do
                   44527:     case $ac_i in
                   44528:     -pthread)
                   44529:       if test "$ext_shared" = "yes"; then
                   44530:         LDFLAGS="$LDFLAGS -pthread"
                   44531:       else
                   44532: 
                   44533: 
                   44534:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   44535: 
                   44536:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   44537:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   44538:     eval "EXTRA_LDFLAGS$unique=set"
                   44539:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   44540:   fi
                   44541: 
                   44542:       fi
                   44543:     ;;
                   44544:     -l*)
                   44545:       ac_ii=`echo $ac_i|cut -c 3-`
                   44546: 
                   44547: 
                   44548:   case $ac_ii in
                   44549:   c|c_r|pthread*) ;;
                   44550:   *)
                   44551:     if test "$ext_shared" = "yes"; then
                   44552:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   44553:     else
                   44554: 
                   44555: 
                   44556:   case $ac_ii in
                   44557:   c|c_r|pthread*) ;;
                   44558:   *)
                   44559:       LIBS="$LIBS -l$ac_ii"
                   44560:    ;;
                   44561:   esac
                   44562: 
                   44563: 
                   44564:     fi
                   44565:    ;;
                   44566:   esac
                   44567: 
                   44568: 
                   44569:     ;;
                   44570:     -L*)
                   44571:       ac_ii=`echo $ac_i|cut -c 3-`
                   44572: 
                   44573:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   44574: 
                   44575:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   44576:     ai_p=$ac_ii
                   44577:   else
                   44578: 
                   44579:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   44580: 
                   44581:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   44582:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   44583:   fi
                   44584: 
                   44585: 
                   44586:       if test "$ext_shared" = "yes"; then
                   44587:         LDFLAGS="-L$ai_p $LDFLAGS"
                   44588:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   44589:       else
                   44590: 
                   44591: 
                   44592: 
                   44593:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   44594: 
                   44595:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   44596:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   44597:     eval "LIBPATH$unique=set"
                   44598: 
                   44599:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   44600:     LDFLAGS="$LDFLAGS -L$ai_p"
                   44601:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   44602: 
                   44603:   fi
                   44604: 
                   44605: 
                   44606:       fi
                   44607: 
                   44608:   fi
                   44609: 
                   44610:     ;;
                   44611:     esac
                   44612:   done
                   44613: 
                   44614:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringFTEx in -lgd" >&5
                   44615: $as_echo_n "checking for gdImageStringFTEx in -lgd... " >&6; }
                   44616: if ${ac_cv_lib_gd_gdImageStringFTEx+:} false; then :
                   44617:   $as_echo_n "(cached) " >&6
                   44618: else
                   44619:   ac_check_lib_save_LIBS=$LIBS
                   44620: LIBS="-lgd  $LIBS"
                   44621: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   44622: /* end confdefs.h.  */
                   44623: 
                   44624: /* Override any GCC internal prototype to avoid an error.
                   44625:    Use char because int might match the return type of a GCC
                   44626:    builtin and then its argument prototype would still apply.  */
                   44627: #ifdef __cplusplus
                   44628: extern "C"
                   44629: #endif
                   44630: char gdImageStringFTEx ();
                   44631: int
                   44632: main ()
                   44633: {
                   44634: return gdImageStringFTEx ();
                   44635:   ;
                   44636:   return 0;
                   44637: }
                   44638: _ACEOF
                   44639: if ac_fn_c_try_link "$LINENO"; then :
                   44640:   ac_cv_lib_gd_gdImageStringFTEx=yes
                   44641: else
                   44642:   ac_cv_lib_gd_gdImageStringFTEx=no
                   44643: fi
                   44644: rm -f core conftest.err conftest.$ac_objext \
                   44645:     conftest$ac_exeext conftest.$ac_ext
                   44646: LIBS=$ac_check_lib_save_LIBS
                   44647: fi
                   44648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringFTEx" >&5
                   44649: $as_echo "$ac_cv_lib_gd_gdImageStringFTEx" >&6; }
                   44650: if test "x$ac_cv_lib_gd_gdImageStringFTEx" = xyes; then :
                   44651: 
                   44652:     LDFLAGS=$save_old_LDFLAGS
                   44653:     ext_shared=$save_ext_shared
                   44654: 
                   44655: $as_echo "#define HAVE_GD_STRINGFTEX 1" >>confdefs.h
                   44656: 
                   44657: 
                   44658: else
                   44659: 
                   44660:     LDFLAGS=$save_old_LDFLAGS
                   44661:     ext_shared=$save_ext_shared
                   44662:     unset ac_cv_lib_gd_gdImageStringFTEx
                   44663: 
                   44664: 
                   44665: fi
                   44666: 
                   44667: 
                   44668:   save_old_LDFLAGS=$LDFLAGS
                   44669:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   44670: 
                   44671:   save_ext_shared=$ext_shared
                   44672:   ext_shared=yes
                   44673: 
                   44674:   for ac_i in $ac_stuff; do
                   44675:     case $ac_i in
                   44676:     -pthread)
                   44677:       if test "$ext_shared" = "yes"; then
                   44678:         LDFLAGS="$LDFLAGS -pthread"
                   44679:       else
                   44680: 
                   44681: 
                   44682:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   44683: 
                   44684:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   44685:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   44686:     eval "EXTRA_LDFLAGS$unique=set"
                   44687:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   44688:   fi
                   44689: 
                   44690:       fi
                   44691:     ;;
                   44692:     -l*)
                   44693:       ac_ii=`echo $ac_i|cut -c 3-`
                   44694: 
                   44695: 
                   44696:   case $ac_ii in
                   44697:   c|c_r|pthread*) ;;
                   44698:   *)
                   44699:     if test "$ext_shared" = "yes"; then
                   44700:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   44701:     else
                   44702: 
                   44703: 
                   44704:   case $ac_ii in
                   44705:   c|c_r|pthread*) ;;
                   44706:   *)
                   44707:       LIBS="$LIBS -l$ac_ii"
                   44708:    ;;
                   44709:   esac
                   44710: 
                   44711: 
                   44712:     fi
                   44713:    ;;
                   44714:   esac
                   44715: 
                   44716: 
                   44717:     ;;
                   44718:     -L*)
                   44719:       ac_ii=`echo $ac_i|cut -c 3-`
                   44720: 
                   44721:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   44722: 
                   44723:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   44724:     ai_p=$ac_ii
                   44725:   else
                   44726: 
                   44727:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   44728: 
                   44729:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   44730:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   44731:   fi
                   44732: 
                   44733: 
                   44734:       if test "$ext_shared" = "yes"; then
                   44735:         LDFLAGS="-L$ai_p $LDFLAGS"
                   44736:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   44737:       else
                   44738: 
                   44739: 
                   44740: 
                   44741:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   44742: 
                   44743:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   44744:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   44745:     eval "LIBPATH$unique=set"
                   44746: 
                   44747:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   44748:     LDFLAGS="$LDFLAGS -L$ai_p"
                   44749:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   44750: 
                   44751:   fi
                   44752: 
                   44753: 
                   44754:       fi
                   44755: 
                   44756:   fi
                   44757: 
                   44758:     ;;
                   44759:     esac
                   44760:   done
                   44761: 
                   44762:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageColorClosestHWB in -lgd" >&5
                   44763: $as_echo_n "checking for gdImageColorClosestHWB in -lgd... " >&6; }
                   44764: if ${ac_cv_lib_gd_gdImageColorClosestHWB+:} false; then :
                   44765:   $as_echo_n "(cached) " >&6
                   44766: else
                   44767:   ac_check_lib_save_LIBS=$LIBS
                   44768: LIBS="-lgd  $LIBS"
                   44769: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   44770: /* end confdefs.h.  */
                   44771: 
                   44772: /* Override any GCC internal prototype to avoid an error.
                   44773:    Use char because int might match the return type of a GCC
                   44774:    builtin and then its argument prototype would still apply.  */
                   44775: #ifdef __cplusplus
                   44776: extern "C"
                   44777: #endif
                   44778: char gdImageColorClosestHWB ();
                   44779: int
                   44780: main ()
                   44781: {
                   44782: return gdImageColorClosestHWB ();
                   44783:   ;
                   44784:   return 0;
                   44785: }
                   44786: _ACEOF
                   44787: if ac_fn_c_try_link "$LINENO"; then :
                   44788:   ac_cv_lib_gd_gdImageColorClosestHWB=yes
                   44789: else
                   44790:   ac_cv_lib_gd_gdImageColorClosestHWB=no
                   44791: fi
                   44792: rm -f core conftest.err conftest.$ac_objext \
                   44793:     conftest$ac_exeext conftest.$ac_ext
                   44794: LIBS=$ac_check_lib_save_LIBS
                   44795: fi
                   44796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageColorClosestHWB" >&5
                   44797: $as_echo "$ac_cv_lib_gd_gdImageColorClosestHWB" >&6; }
                   44798: if test "x$ac_cv_lib_gd_gdImageColorClosestHWB" = xyes; then :
                   44799: 
                   44800:     LDFLAGS=$save_old_LDFLAGS
                   44801:     ext_shared=$save_ext_shared
                   44802: 
                   44803: $as_echo "#define HAVE_COLORCLOSESTHWB 1" >>confdefs.h
                   44804: 
                   44805: 
                   44806: else
                   44807: 
                   44808:     LDFLAGS=$save_old_LDFLAGS
                   44809:     ext_shared=$save_ext_shared
                   44810:     unset ac_cv_lib_gd_gdImageColorClosestHWB
                   44811: 
                   44812: 
                   44813: fi
                   44814: 
                   44815: 
                   44816:   save_old_LDFLAGS=$LDFLAGS
                   44817:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   44818: 
                   44819:   save_ext_shared=$ext_shared
                   44820:   ext_shared=yes
                   44821: 
                   44822:   for ac_i in $ac_stuff; do
                   44823:     case $ac_i in
                   44824:     -pthread)
                   44825:       if test "$ext_shared" = "yes"; then
                   44826:         LDFLAGS="$LDFLAGS -pthread"
                   44827:       else
                   44828: 
                   44829: 
                   44830:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   44831: 
                   44832:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   44833:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   44834:     eval "EXTRA_LDFLAGS$unique=set"
                   44835:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   44836:   fi
                   44837: 
                   44838:       fi
                   44839:     ;;
                   44840:     -l*)
                   44841:       ac_ii=`echo $ac_i|cut -c 3-`
                   44842: 
                   44843: 
                   44844:   case $ac_ii in
                   44845:   c|c_r|pthread*) ;;
                   44846:   *)
                   44847:     if test "$ext_shared" = "yes"; then
                   44848:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   44849:     else
                   44850: 
                   44851: 
                   44852:   case $ac_ii in
                   44853:   c|c_r|pthread*) ;;
                   44854:   *)
                   44855:       LIBS="$LIBS -l$ac_ii"
                   44856:    ;;
                   44857:   esac
                   44858: 
                   44859: 
                   44860:     fi
                   44861:    ;;
                   44862:   esac
                   44863: 
                   44864: 
                   44865:     ;;
                   44866:     -L*)
                   44867:       ac_ii=`echo $ac_i|cut -c 3-`
                   44868: 
                   44869:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   44870: 
                   44871:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   44872:     ai_p=$ac_ii
                   44873:   else
                   44874: 
                   44875:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   44876: 
                   44877:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   44878:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   44879:   fi
                   44880: 
                   44881: 
                   44882:       if test "$ext_shared" = "yes"; then
                   44883:         LDFLAGS="-L$ai_p $LDFLAGS"
                   44884:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   44885:       else
                   44886: 
                   44887: 
                   44888: 
                   44889:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   44890: 
                   44891:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   44892:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   44893:     eval "LIBPATH$unique=set"
                   44894: 
                   44895:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   44896:     LDFLAGS="$LDFLAGS -L$ai_p"
                   44897:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   44898: 
                   44899:   fi
                   44900: 
                   44901: 
                   44902:       fi
                   44903: 
                   44904:   fi
                   44905: 
                   44906:     ;;
                   44907:     esac
                   44908:   done
                   44909: 
                   44910:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageColorResolve in -lgd" >&5
                   44911: $as_echo_n "checking for gdImageColorResolve in -lgd... " >&6; }
                   44912: if ${ac_cv_lib_gd_gdImageColorResolve+:} false; then :
                   44913:   $as_echo_n "(cached) " >&6
                   44914: else
                   44915:   ac_check_lib_save_LIBS=$LIBS
                   44916: LIBS="-lgd  $LIBS"
                   44917: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   44918: /* end confdefs.h.  */
                   44919: 
                   44920: /* Override any GCC internal prototype to avoid an error.
                   44921:    Use char because int might match the return type of a GCC
                   44922:    builtin and then its argument prototype would still apply.  */
                   44923: #ifdef __cplusplus
                   44924: extern "C"
                   44925: #endif
                   44926: char gdImageColorResolve ();
                   44927: int
                   44928: main ()
                   44929: {
                   44930: return gdImageColorResolve ();
                   44931:   ;
                   44932:   return 0;
                   44933: }
                   44934: _ACEOF
                   44935: if ac_fn_c_try_link "$LINENO"; then :
                   44936:   ac_cv_lib_gd_gdImageColorResolve=yes
                   44937: else
                   44938:   ac_cv_lib_gd_gdImageColorResolve=no
                   44939: fi
                   44940: rm -f core conftest.err conftest.$ac_objext \
                   44941:     conftest$ac_exeext conftest.$ac_ext
                   44942: LIBS=$ac_check_lib_save_LIBS
                   44943: fi
                   44944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageColorResolve" >&5
                   44945: $as_echo "$ac_cv_lib_gd_gdImageColorResolve" >&6; }
                   44946: if test "x$ac_cv_lib_gd_gdImageColorResolve" = xyes; then :
                   44947: 
                   44948:     LDFLAGS=$save_old_LDFLAGS
                   44949:     ext_shared=$save_ext_shared
                   44950: 
                   44951: $as_echo "#define HAVE_GDIMAGECOLORRESOLVE 1" >>confdefs.h
                   44952: 
                   44953: 
                   44954: else
                   44955: 
                   44956:     LDFLAGS=$save_old_LDFLAGS
                   44957:     ext_shared=$save_ext_shared
                   44958:     unset ac_cv_lib_gd_gdImageColorResolve
                   44959: 
                   44960: 
                   44961: fi
                   44962: 
                   44963: 
                   44964:   save_old_LDFLAGS=$LDFLAGS
                   44965:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   44966: 
                   44967:   save_ext_shared=$ext_shared
                   44968:   ext_shared=yes
                   44969: 
                   44970:   for ac_i in $ac_stuff; do
                   44971:     case $ac_i in
                   44972:     -pthread)
                   44973:       if test "$ext_shared" = "yes"; then
                   44974:         LDFLAGS="$LDFLAGS -pthread"
                   44975:       else
                   44976: 
                   44977: 
                   44978:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   44979: 
                   44980:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   44981:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   44982:     eval "EXTRA_LDFLAGS$unique=set"
                   44983:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   44984:   fi
                   44985: 
                   44986:       fi
                   44987:     ;;
                   44988:     -l*)
                   44989:       ac_ii=`echo $ac_i|cut -c 3-`
                   44990: 
                   44991: 
                   44992:   case $ac_ii in
                   44993:   c|c_r|pthread*) ;;
                   44994:   *)
                   44995:     if test "$ext_shared" = "yes"; then
                   44996:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   44997:     else
                   44998: 
                   44999: 
                   45000:   case $ac_ii in
                   45001:   c|c_r|pthread*) ;;
                   45002:   *)
                   45003:       LIBS="$LIBS -l$ac_ii"
                   45004:    ;;
                   45005:   esac
                   45006: 
                   45007: 
                   45008:     fi
                   45009:    ;;
                   45010:   esac
                   45011: 
                   45012: 
                   45013:     ;;
                   45014:     -L*)
                   45015:       ac_ii=`echo $ac_i|cut -c 3-`
                   45016: 
                   45017:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   45018: 
                   45019:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   45020:     ai_p=$ac_ii
                   45021:   else
                   45022: 
                   45023:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   45024: 
                   45025:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   45026:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   45027:   fi
                   45028: 
                   45029: 
                   45030:       if test "$ext_shared" = "yes"; then
                   45031:         LDFLAGS="-L$ai_p $LDFLAGS"
                   45032:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   45033:       else
                   45034: 
                   45035: 
                   45036: 
                   45037:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   45038: 
                   45039:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   45040:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   45041:     eval "LIBPATH$unique=set"
                   45042: 
                   45043:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   45044:     LDFLAGS="$LDFLAGS -L$ai_p"
                   45045:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   45046: 
                   45047:   fi
                   45048: 
                   45049: 
                   45050:       fi
                   45051: 
                   45052:   fi
                   45053: 
                   45054:     ;;
                   45055:     esac
                   45056:   done
                   45057: 
                   45058:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageGifCtx in -lgd" >&5
                   45059: $as_echo_n "checking for gdImageGifCtx in -lgd... " >&6; }
                   45060: if ${ac_cv_lib_gd_gdImageGifCtx+:} false; then :
                   45061:   $as_echo_n "(cached) " >&6
                   45062: else
                   45063:   ac_check_lib_save_LIBS=$LIBS
                   45064: LIBS="-lgd  $LIBS"
                   45065: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   45066: /* end confdefs.h.  */
                   45067: 
                   45068: /* Override any GCC internal prototype to avoid an error.
                   45069:    Use char because int might match the return type of a GCC
                   45070:    builtin and then its argument prototype would still apply.  */
                   45071: #ifdef __cplusplus
                   45072: extern "C"
                   45073: #endif
                   45074: char gdImageGifCtx ();
                   45075: int
                   45076: main ()
                   45077: {
                   45078: return gdImageGifCtx ();
                   45079:   ;
                   45080:   return 0;
                   45081: }
                   45082: _ACEOF
                   45083: if ac_fn_c_try_link "$LINENO"; then :
                   45084:   ac_cv_lib_gd_gdImageGifCtx=yes
                   45085: else
                   45086:   ac_cv_lib_gd_gdImageGifCtx=no
                   45087: fi
                   45088: rm -f core conftest.err conftest.$ac_objext \
                   45089:     conftest$ac_exeext conftest.$ac_ext
                   45090: LIBS=$ac_check_lib_save_LIBS
                   45091: fi
                   45092: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageGifCtx" >&5
                   45093: $as_echo "$ac_cv_lib_gd_gdImageGifCtx" >&6; }
                   45094: if test "x$ac_cv_lib_gd_gdImageGifCtx" = xyes; then :
                   45095: 
                   45096:     LDFLAGS=$save_old_LDFLAGS
                   45097:     ext_shared=$save_ext_shared
                   45098: 
                   45099: $as_echo "#define HAVE_GD_GIF_CTX 1" >>confdefs.h
                   45100: 
                   45101: 
                   45102: else
                   45103: 
                   45104:     LDFLAGS=$save_old_LDFLAGS
                   45105:     ext_shared=$save_ext_shared
                   45106:     unset ac_cv_lib_gd_gdImageGifCtx
                   45107: 
                   45108: 
                   45109: fi
                   45110: 
                   45111: 
                   45112:   save_old_LDFLAGS=$LDFLAGS
                   45113:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   45114: 
                   45115:   save_ext_shared=$ext_shared
                   45116:   ext_shared=yes
                   45117: 
                   45118:   for ac_i in $ac_stuff; do
                   45119:     case $ac_i in
                   45120:     -pthread)
                   45121:       if test "$ext_shared" = "yes"; then
                   45122:         LDFLAGS="$LDFLAGS -pthread"
                   45123:       else
                   45124: 
                   45125: 
                   45126:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   45127: 
                   45128:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   45129:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   45130:     eval "EXTRA_LDFLAGS$unique=set"
                   45131:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   45132:   fi
                   45133: 
                   45134:       fi
                   45135:     ;;
                   45136:     -l*)
                   45137:       ac_ii=`echo $ac_i|cut -c 3-`
                   45138: 
                   45139: 
                   45140:   case $ac_ii in
                   45141:   c|c_r|pthread*) ;;
                   45142:   *)
                   45143:     if test "$ext_shared" = "yes"; then
                   45144:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   45145:     else
                   45146: 
                   45147: 
                   45148:   case $ac_ii in
                   45149:   c|c_r|pthread*) ;;
                   45150:   *)
                   45151:       LIBS="$LIBS -l$ac_ii"
                   45152:    ;;
                   45153:   esac
                   45154: 
                   45155: 
                   45156:     fi
                   45157:    ;;
                   45158:   esac
                   45159: 
                   45160: 
                   45161:     ;;
                   45162:     -L*)
                   45163:       ac_ii=`echo $ac_i|cut -c 3-`
                   45164: 
                   45165:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   45166: 
                   45167:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   45168:     ai_p=$ac_ii
                   45169:   else
                   45170: 
                   45171:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   45172: 
                   45173:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   45174:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   45175:   fi
                   45176: 
                   45177: 
                   45178:       if test "$ext_shared" = "yes"; then
                   45179:         LDFLAGS="-L$ai_p $LDFLAGS"
                   45180:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   45181:       else
                   45182: 
                   45183: 
                   45184: 
                   45185:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   45186: 
                   45187:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   45188:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   45189:     eval "LIBPATH$unique=set"
                   45190: 
                   45191:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   45192:     LDFLAGS="$LDFLAGS -L$ai_p"
                   45193:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   45194: 
                   45195:   fi
                   45196: 
                   45197: 
                   45198:       fi
                   45199: 
                   45200:   fi
                   45201: 
                   45202:     ;;
                   45203:     esac
                   45204:   done
                   45205: 
                   45206:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdCacheCreate in -lgd" >&5
                   45207: $as_echo_n "checking for gdCacheCreate in -lgd... " >&6; }
                   45208: if ${ac_cv_lib_gd_gdCacheCreate+:} false; then :
                   45209:   $as_echo_n "(cached) " >&6
                   45210: else
                   45211:   ac_check_lib_save_LIBS=$LIBS
                   45212: LIBS="-lgd  $LIBS"
                   45213: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   45214: /* end confdefs.h.  */
                   45215: 
                   45216: /* Override any GCC internal prototype to avoid an error.
                   45217:    Use char because int might match the return type of a GCC
                   45218:    builtin and then its argument prototype would still apply.  */
                   45219: #ifdef __cplusplus
                   45220: extern "C"
                   45221: #endif
                   45222: char gdCacheCreate ();
                   45223: int
                   45224: main ()
                   45225: {
                   45226: return gdCacheCreate ();
                   45227:   ;
                   45228:   return 0;
                   45229: }
                   45230: _ACEOF
                   45231: if ac_fn_c_try_link "$LINENO"; then :
                   45232:   ac_cv_lib_gd_gdCacheCreate=yes
                   45233: else
                   45234:   ac_cv_lib_gd_gdCacheCreate=no
                   45235: fi
                   45236: rm -f core conftest.err conftest.$ac_objext \
                   45237:     conftest$ac_exeext conftest.$ac_ext
                   45238: LIBS=$ac_check_lib_save_LIBS
                   45239: fi
                   45240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdCacheCreate" >&5
                   45241: $as_echo "$ac_cv_lib_gd_gdCacheCreate" >&6; }
                   45242: if test "x$ac_cv_lib_gd_gdCacheCreate" = xyes; then :
                   45243: 
                   45244:     LDFLAGS=$save_old_LDFLAGS
                   45245:     ext_shared=$save_ext_shared
                   45246: 
                   45247: $as_echo "#define HAVE_GD_CACHE_CREATE 1" >>confdefs.h
                   45248: 
                   45249: 
                   45250: else
                   45251: 
                   45252:     LDFLAGS=$save_old_LDFLAGS
                   45253:     ext_shared=$save_ext_shared
                   45254:     unset ac_cv_lib_gd_gdCacheCreate
                   45255: 
                   45256: 
                   45257: fi
                   45258: 
                   45259: 
                   45260:   save_old_LDFLAGS=$LDFLAGS
                   45261:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   45262: 
                   45263:   save_ext_shared=$ext_shared
                   45264:   ext_shared=yes
                   45265: 
                   45266:   for ac_i in $ac_stuff; do
                   45267:     case $ac_i in
                   45268:     -pthread)
                   45269:       if test "$ext_shared" = "yes"; then
                   45270:         LDFLAGS="$LDFLAGS -pthread"
                   45271:       else
                   45272: 
                   45273: 
                   45274:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   45275: 
                   45276:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   45277:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   45278:     eval "EXTRA_LDFLAGS$unique=set"
                   45279:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   45280:   fi
                   45281: 
                   45282:       fi
                   45283:     ;;
                   45284:     -l*)
                   45285:       ac_ii=`echo $ac_i|cut -c 3-`
                   45286: 
                   45287: 
                   45288:   case $ac_ii in
                   45289:   c|c_r|pthread*) ;;
                   45290:   *)
                   45291:     if test "$ext_shared" = "yes"; then
                   45292:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   45293:     else
                   45294: 
                   45295: 
                   45296:   case $ac_ii in
                   45297:   c|c_r|pthread*) ;;
                   45298:   *)
                   45299:       LIBS="$LIBS -l$ac_ii"
                   45300:    ;;
                   45301:   esac
                   45302: 
                   45303: 
                   45304:     fi
                   45305:    ;;
                   45306:   esac
                   45307: 
                   45308: 
                   45309:     ;;
                   45310:     -L*)
                   45311:       ac_ii=`echo $ac_i|cut -c 3-`
                   45312: 
                   45313:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   45314: 
                   45315:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   45316:     ai_p=$ac_ii
                   45317:   else
                   45318: 
                   45319:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   45320: 
                   45321:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   45322:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   45323:   fi
                   45324: 
                   45325: 
                   45326:       if test "$ext_shared" = "yes"; then
                   45327:         LDFLAGS="-L$ai_p $LDFLAGS"
                   45328:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   45329:       else
                   45330: 
                   45331: 
                   45332: 
                   45333:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   45334: 
                   45335:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   45336:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   45337:     eval "LIBPATH$unique=set"
                   45338: 
                   45339:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   45340:     LDFLAGS="$LDFLAGS -L$ai_p"
                   45341:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   45342: 
                   45343:   fi
                   45344: 
                   45345: 
                   45346:       fi
                   45347: 
                   45348:   fi
                   45349: 
                   45350:     ;;
                   45351:     esac
                   45352:   done
                   45353: 
                   45354:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdFontCacheShutdown in -lgd" >&5
                   45355: $as_echo_n "checking for gdFontCacheShutdown in -lgd... " >&6; }
                   45356: if ${ac_cv_lib_gd_gdFontCacheShutdown+:} false; then :
                   45357:   $as_echo_n "(cached) " >&6
                   45358: else
                   45359:   ac_check_lib_save_LIBS=$LIBS
                   45360: LIBS="-lgd  $LIBS"
                   45361: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   45362: /* end confdefs.h.  */
                   45363: 
                   45364: /* Override any GCC internal prototype to avoid an error.
                   45365:    Use char because int might match the return type of a GCC
                   45366:    builtin and then its argument prototype would still apply.  */
                   45367: #ifdef __cplusplus
                   45368: extern "C"
                   45369: #endif
                   45370: char gdFontCacheShutdown ();
                   45371: int
                   45372: main ()
                   45373: {
                   45374: return gdFontCacheShutdown ();
                   45375:   ;
                   45376:   return 0;
                   45377: }
                   45378: _ACEOF
                   45379: if ac_fn_c_try_link "$LINENO"; then :
                   45380:   ac_cv_lib_gd_gdFontCacheShutdown=yes
                   45381: else
                   45382:   ac_cv_lib_gd_gdFontCacheShutdown=no
                   45383: fi
                   45384: rm -f core conftest.err conftest.$ac_objext \
                   45385:     conftest$ac_exeext conftest.$ac_ext
                   45386: LIBS=$ac_check_lib_save_LIBS
                   45387: fi
                   45388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdFontCacheShutdown" >&5
                   45389: $as_echo "$ac_cv_lib_gd_gdFontCacheShutdown" >&6; }
                   45390: if test "x$ac_cv_lib_gd_gdFontCacheShutdown" = xyes; then :
                   45391: 
                   45392:     LDFLAGS=$save_old_LDFLAGS
                   45393:     ext_shared=$save_ext_shared
                   45394: 
                   45395: $as_echo "#define HAVE_GD_FONTCACHESHUTDOWN 1" >>confdefs.h
                   45396: 
                   45397: 
                   45398: else
                   45399: 
                   45400:     LDFLAGS=$save_old_LDFLAGS
                   45401:     ext_shared=$save_ext_shared
                   45402:     unset ac_cv_lib_gd_gdFontCacheShutdown
                   45403: 
                   45404: 
                   45405: fi
                   45406: 
                   45407: 
                   45408:   save_old_LDFLAGS=$LDFLAGS
                   45409:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   45410: 
                   45411:   save_ext_shared=$ext_shared
                   45412:   ext_shared=yes
                   45413: 
                   45414:   for ac_i in $ac_stuff; do
                   45415:     case $ac_i in
                   45416:     -pthread)
                   45417:       if test "$ext_shared" = "yes"; then
                   45418:         LDFLAGS="$LDFLAGS -pthread"
                   45419:       else
                   45420: 
                   45421: 
                   45422:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   45423: 
                   45424:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   45425:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   45426:     eval "EXTRA_LDFLAGS$unique=set"
                   45427:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   45428:   fi
                   45429: 
                   45430:       fi
                   45431:     ;;
                   45432:     -l*)
                   45433:       ac_ii=`echo $ac_i|cut -c 3-`
                   45434: 
                   45435: 
                   45436:   case $ac_ii in
                   45437:   c|c_r|pthread*) ;;
                   45438:   *)
                   45439:     if test "$ext_shared" = "yes"; then
                   45440:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   45441:     else
                   45442: 
                   45443: 
                   45444:   case $ac_ii in
                   45445:   c|c_r|pthread*) ;;
                   45446:   *)
                   45447:       LIBS="$LIBS -l$ac_ii"
                   45448:    ;;
                   45449:   esac
                   45450: 
                   45451: 
                   45452:     fi
                   45453:    ;;
                   45454:   esac
                   45455: 
                   45456: 
                   45457:     ;;
                   45458:     -L*)
                   45459:       ac_ii=`echo $ac_i|cut -c 3-`
                   45460: 
                   45461:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   45462: 
                   45463:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   45464:     ai_p=$ac_ii
                   45465:   else
                   45466: 
                   45467:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   45468: 
                   45469:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   45470:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   45471:   fi
                   45472: 
                   45473: 
                   45474:       if test "$ext_shared" = "yes"; then
                   45475:         LDFLAGS="-L$ai_p $LDFLAGS"
                   45476:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   45477:       else
                   45478: 
                   45479: 
                   45480: 
                   45481:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   45482: 
                   45483:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   45484:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   45485:     eval "LIBPATH$unique=set"
                   45486: 
                   45487:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   45488:     LDFLAGS="$LDFLAGS -L$ai_p"
                   45489:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   45490: 
                   45491:   fi
                   45492: 
                   45493: 
                   45494:       fi
                   45495: 
                   45496:   fi
                   45497: 
                   45498:     ;;
                   45499:     esac
                   45500:   done
                   45501: 
                   45502:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdFreeFontCache in -lgd" >&5
                   45503: $as_echo_n "checking for gdFreeFontCache in -lgd... " >&6; }
                   45504: if ${ac_cv_lib_gd_gdFreeFontCache+:} false; then :
                   45505:   $as_echo_n "(cached) " >&6
                   45506: else
                   45507:   ac_check_lib_save_LIBS=$LIBS
                   45508: LIBS="-lgd  $LIBS"
                   45509: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   45510: /* end confdefs.h.  */
                   45511: 
                   45512: /* Override any GCC internal prototype to avoid an error.
                   45513:    Use char because int might match the return type of a GCC
                   45514:    builtin and then its argument prototype would still apply.  */
                   45515: #ifdef __cplusplus
                   45516: extern "C"
                   45517: #endif
                   45518: char gdFreeFontCache ();
                   45519: int
                   45520: main ()
                   45521: {
                   45522: return gdFreeFontCache ();
                   45523:   ;
                   45524:   return 0;
                   45525: }
                   45526: _ACEOF
                   45527: if ac_fn_c_try_link "$LINENO"; then :
                   45528:   ac_cv_lib_gd_gdFreeFontCache=yes
                   45529: else
                   45530:   ac_cv_lib_gd_gdFreeFontCache=no
                   45531: fi
                   45532: rm -f core conftest.err conftest.$ac_objext \
                   45533:     conftest$ac_exeext conftest.$ac_ext
                   45534: LIBS=$ac_check_lib_save_LIBS
                   45535: fi
                   45536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdFreeFontCache" >&5
                   45537: $as_echo "$ac_cv_lib_gd_gdFreeFontCache" >&6; }
                   45538: if test "x$ac_cv_lib_gd_gdFreeFontCache" = xyes; then :
                   45539: 
                   45540:     LDFLAGS=$save_old_LDFLAGS
                   45541:     ext_shared=$save_ext_shared
                   45542: 
                   45543: $as_echo "#define HAVE_GD_FREEFONTCACHE 1" >>confdefs.h
                   45544: 
                   45545: 
                   45546: else
                   45547: 
                   45548:     LDFLAGS=$save_old_LDFLAGS
                   45549:     ext_shared=$save_ext_shared
                   45550:     unset ac_cv_lib_gd_gdFreeFontCache
                   45551: 
                   45552: 
                   45553: fi
                   45554: 
                   45555: 
                   45556:   save_old_LDFLAGS=$LDFLAGS
                   45557:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   45558: 
                   45559:   save_ext_shared=$ext_shared
                   45560:   ext_shared=yes
                   45561: 
                   45562:   for ac_i in $ac_stuff; do
                   45563:     case $ac_i in
                   45564:     -pthread)
                   45565:       if test "$ext_shared" = "yes"; then
                   45566:         LDFLAGS="$LDFLAGS -pthread"
                   45567:       else
                   45568: 
                   45569: 
                   45570:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   45571: 
                   45572:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   45573:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   45574:     eval "EXTRA_LDFLAGS$unique=set"
                   45575:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   45576:   fi
                   45577: 
                   45578:       fi
                   45579:     ;;
                   45580:     -l*)
                   45581:       ac_ii=`echo $ac_i|cut -c 3-`
                   45582: 
                   45583: 
                   45584:   case $ac_ii in
                   45585:   c|c_r|pthread*) ;;
                   45586:   *)
                   45587:     if test "$ext_shared" = "yes"; then
                   45588:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   45589:     else
                   45590: 
                   45591: 
                   45592:   case $ac_ii in
                   45593:   c|c_r|pthread*) ;;
                   45594:   *)
                   45595:       LIBS="$LIBS -l$ac_ii"
                   45596:    ;;
                   45597:   esac
                   45598: 
                   45599: 
                   45600:     fi
                   45601:    ;;
                   45602:   esac
                   45603: 
                   45604: 
                   45605:     ;;
                   45606:     -L*)
                   45607:       ac_ii=`echo $ac_i|cut -c 3-`
                   45608: 
                   45609:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   45610: 
                   45611:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   45612:     ai_p=$ac_ii
                   45613:   else
                   45614: 
                   45615:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   45616: 
                   45617:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   45618:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   45619:   fi
                   45620: 
                   45621: 
                   45622:       if test "$ext_shared" = "yes"; then
                   45623:         LDFLAGS="-L$ai_p $LDFLAGS"
                   45624:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   45625:       else
                   45626: 
                   45627: 
                   45628: 
                   45629:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   45630: 
                   45631:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   45632:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   45633:     eval "LIBPATH$unique=set"
                   45634: 
                   45635:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   45636:     LDFLAGS="$LDFLAGS -L$ai_p"
                   45637:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   45638: 
                   45639:   fi
                   45640: 
                   45641: 
                   45642:       fi
                   45643: 
                   45644:   fi
                   45645: 
                   45646:     ;;
                   45647:     esac
                   45648:   done
                   45649: 
                   45650:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdFontCacheMutexSetup in -lgd" >&5
                   45651: $as_echo_n "checking for gdFontCacheMutexSetup in -lgd... " >&6; }
                   45652: if ${ac_cv_lib_gd_gdFontCacheMutexSetup+:} false; then :
                   45653:   $as_echo_n "(cached) " >&6
                   45654: else
                   45655:   ac_check_lib_save_LIBS=$LIBS
                   45656: LIBS="-lgd  $LIBS"
                   45657: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   45658: /* end confdefs.h.  */
                   45659: 
                   45660: /* Override any GCC internal prototype to avoid an error.
                   45661:    Use char because int might match the return type of a GCC
                   45662:    builtin and then its argument prototype would still apply.  */
                   45663: #ifdef __cplusplus
                   45664: extern "C"
                   45665: #endif
                   45666: char gdFontCacheMutexSetup ();
                   45667: int
                   45668: main ()
                   45669: {
                   45670: return gdFontCacheMutexSetup ();
                   45671:   ;
                   45672:   return 0;
                   45673: }
                   45674: _ACEOF
                   45675: if ac_fn_c_try_link "$LINENO"; then :
                   45676:   ac_cv_lib_gd_gdFontCacheMutexSetup=yes
                   45677: else
                   45678:   ac_cv_lib_gd_gdFontCacheMutexSetup=no
                   45679: fi
                   45680: rm -f core conftest.err conftest.$ac_objext \
                   45681:     conftest$ac_exeext conftest.$ac_ext
                   45682: LIBS=$ac_check_lib_save_LIBS
                   45683: fi
                   45684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdFontCacheMutexSetup" >&5
                   45685: $as_echo "$ac_cv_lib_gd_gdFontCacheMutexSetup" >&6; }
                   45686: if test "x$ac_cv_lib_gd_gdFontCacheMutexSetup" = xyes; then :
                   45687: 
                   45688:     LDFLAGS=$save_old_LDFLAGS
                   45689:     ext_shared=$save_ext_shared
                   45690: 
                   45691: $as_echo "#define HAVE_GD_FONTMUTEX 1" >>confdefs.h
                   45692: 
                   45693: 
                   45694: else
                   45695: 
                   45696:     LDFLAGS=$save_old_LDFLAGS
                   45697:     ext_shared=$save_ext_shared
                   45698:     unset ac_cv_lib_gd_gdFontCacheMutexSetup
                   45699: 
                   45700: 
                   45701: fi
                   45702: 
                   45703: 
                   45704:   save_old_LDFLAGS=$LDFLAGS
                   45705:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   45706: 
                   45707:   save_ext_shared=$ext_shared
                   45708:   ext_shared=yes
                   45709: 
                   45710:   for ac_i in $ac_stuff; do
                   45711:     case $ac_i in
                   45712:     -pthread)
                   45713:       if test "$ext_shared" = "yes"; then
                   45714:         LDFLAGS="$LDFLAGS -pthread"
                   45715:       else
                   45716: 
                   45717: 
                   45718:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   45719: 
                   45720:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   45721:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   45722:     eval "EXTRA_LDFLAGS$unique=set"
                   45723:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   45724:   fi
                   45725: 
                   45726:       fi
                   45727:     ;;
                   45728:     -l*)
                   45729:       ac_ii=`echo $ac_i|cut -c 3-`
                   45730: 
                   45731: 
                   45732:   case $ac_ii in
                   45733:   c|c_r|pthread*) ;;
                   45734:   *)
                   45735:     if test "$ext_shared" = "yes"; then
                   45736:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   45737:     else
                   45738: 
                   45739: 
                   45740:   case $ac_ii in
                   45741:   c|c_r|pthread*) ;;
                   45742:   *)
                   45743:       LIBS="$LIBS -l$ac_ii"
                   45744:    ;;
                   45745:   esac
                   45746: 
                   45747: 
                   45748:     fi
                   45749:    ;;
                   45750:   esac
                   45751: 
                   45752: 
                   45753:     ;;
                   45754:     -L*)
                   45755:       ac_ii=`echo $ac_i|cut -c 3-`
                   45756: 
                   45757:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   45758: 
                   45759:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   45760:     ai_p=$ac_ii
                   45761:   else
                   45762: 
                   45763:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   45764: 
                   45765:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   45766:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   45767:   fi
                   45768: 
                   45769: 
                   45770:       if test "$ext_shared" = "yes"; then
                   45771:         LDFLAGS="-L$ai_p $LDFLAGS"
                   45772:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   45773:       else
                   45774: 
                   45775: 
                   45776: 
                   45777:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   45778: 
                   45779:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   45780:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   45781:     eval "LIBPATH$unique=set"
                   45782: 
                   45783:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   45784:     LDFLAGS="$LDFLAGS -L$ai_p"
                   45785:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   45786: 
                   45787:   fi
                   45788: 
                   45789: 
                   45790:       fi
                   45791: 
                   45792:   fi
                   45793: 
                   45794:     ;;
                   45795:     esac
                   45796:   done
                   45797: 
                   45798:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdNewDynamicCtxEx in -lgd" >&5
                   45799: $as_echo_n "checking for gdNewDynamicCtxEx in -lgd... " >&6; }
                   45800: if ${ac_cv_lib_gd_gdNewDynamicCtxEx+:} false; then :
                   45801:   $as_echo_n "(cached) " >&6
                   45802: else
                   45803:   ac_check_lib_save_LIBS=$LIBS
                   45804: LIBS="-lgd  $LIBS"
                   45805: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   45806: /* end confdefs.h.  */
                   45807: 
                   45808: /* Override any GCC internal prototype to avoid an error.
                   45809:    Use char because int might match the return type of a GCC
                   45810:    builtin and then its argument prototype would still apply.  */
                   45811: #ifdef __cplusplus
                   45812: extern "C"
                   45813: #endif
                   45814: char gdNewDynamicCtxEx ();
                   45815: int
                   45816: main ()
                   45817: {
                   45818: return gdNewDynamicCtxEx ();
                   45819:   ;
                   45820:   return 0;
                   45821: }
                   45822: _ACEOF
                   45823: if ac_fn_c_try_link "$LINENO"; then :
                   45824:   ac_cv_lib_gd_gdNewDynamicCtxEx=yes
                   45825: else
                   45826:   ac_cv_lib_gd_gdNewDynamicCtxEx=no
                   45827: fi
                   45828: rm -f core conftest.err conftest.$ac_objext \
                   45829:     conftest$ac_exeext conftest.$ac_ext
                   45830: LIBS=$ac_check_lib_save_LIBS
                   45831: fi
                   45832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdNewDynamicCtxEx" >&5
                   45833: $as_echo "$ac_cv_lib_gd_gdNewDynamicCtxEx" >&6; }
                   45834: if test "x$ac_cv_lib_gd_gdNewDynamicCtxEx" = xyes; then :
                   45835: 
                   45836:     LDFLAGS=$save_old_LDFLAGS
                   45837:     ext_shared=$save_ext_shared
                   45838: 
                   45839: $as_echo "#define HAVE_GD_DYNAMIC_CTX_EX 1" >>confdefs.h
                   45840: 
                   45841: 
                   45842: else
                   45843: 
                   45844:     LDFLAGS=$save_old_LDFLAGS
                   45845:     ext_shared=$save_ext_shared
                   45846:     unset ac_cv_lib_gd_gdNewDynamicCtxEx
                   45847: 
                   45848: 
                   45849: fi
                   45850: 
                   45851: 
                   45852:   elif test -z "$GD_INCLUDE"; then
                   45853:     as_fn_error $? "Unable to find gd.h anywhere under $PHP_GD" "$LINENO" 5
                   45854:   else
                   45855:     as_fn_error $? "Unable to find libgd.(a|so) anywhere under $PHP_GD" "$LINENO" 5
                   45856:   fi
                   45857: 
                   45858: 
                   45859:   if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then
                   45860:     GD_INCLUDE=$GD_INCLUDE
                   45861:   else
                   45862: 
                   45863:     ep_dir="`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
                   45864: 
                   45865:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   45866:     GD_INCLUDE="$ep_realdir/`basename \"$GD_INCLUDE\"`"
                   45867:   fi
                   45868: 
                   45869: 
                   45870:         old_CPPFLAGS=$CPPFLAGS
                   45871:   CPPFLAGS=-I$GD_INCLUDE
                   45872:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   45873: /* end confdefs.h.  */
                   45874: 
                   45875: #include <gd.h>
                   45876: #include <stdlib.h>
                   45877: 
                   45878: int
                   45879: main ()
                   45880: {
                   45881: 
                   45882: gdIOCtx *ctx;
                   45883: ctx = malloc(sizeof(gdIOCtx));
                   45884: ctx->gd_free = 1;
                   45885: 
                   45886:   ;
                   45887:   return 0;
                   45888: }
                   45889: _ACEOF
                   45890: if ac_fn_c_try_compile "$LINENO"; then :
                   45891: 
                   45892: 
                   45893: $as_echo "#define HAVE_LIBGD204 1" >>confdefs.h
                   45894: 
                   45895: 
                   45896: fi
                   45897: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   45898:   CPPFLAGS=$old_CPPFLAGS
                   45899: 
                   45900:  fi
                   45901: fi
                   45902: 
                   45903: if test "$PHP_GD" != "no"; then
                   45904: 
                   45905:   ext_builddir=ext/gd
                   45906:   ext_srcdir=$abs_srcdir/ext/gd
                   45907: 
                   45908:   ac_extra=`echo "\\$(GDLIB_CFLAGS)"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
                   45909: 
                   45910:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   45911:     PHP_GD_SHARED=no
                   45912: 
                   45913: 
                   45914:   case ext/gd in
                   45915:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   45916:   /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   45917:   *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   45918:   esac
                   45919: 
                   45920: 
                   45921: 
                   45922:   b_c_pre=$php_c_pre
                   45923:   b_cxx_pre=$php_cxx_pre
                   45924:   b_c_meta=$php_c_meta
                   45925:   b_cxx_meta=$php_cxx_meta
                   45926:   b_c_post=$php_c_post
                   45927:   b_cxx_post=$php_cxx_post
                   45928:   b_lo=$php_lo
                   45929: 
                   45930: 
                   45931:   old_IFS=$IFS
                   45932:   for ac_src in gd.c $extra_sources; do
                   45933: 
                   45934:       IFS=.
                   45935:       set $ac_src
                   45936:       ac_obj=$1
                   45937:       IFS=$old_IFS
                   45938: 
                   45939:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   45940: 
                   45941:       case $ac_src in
                   45942:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   45943:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   45944:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   45945:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   45946:       esac
                   45947: 
                   45948:     cat >>Makefile.objects<<EOF
                   45949: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   45950:        $ac_comp
                   45951: EOF
                   45952:   done
                   45953: 
                   45954: 
                   45955:     EXT_STATIC="$EXT_STATIC gd"
                   45956:     if test "$ext_shared" != "nocli"; then
                   45957:       EXT_CLI_STATIC="$EXT_CLI_STATIC gd"
                   45958:     fi
                   45959:   else
                   45960:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   45961:       PHP_GD_SHARED=yes
                   45962: 
                   45963:   case ext/gd in
                   45964:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   45965:   /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   45966:   *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   45967:   esac
                   45968: 
                   45969: 
                   45970: 
                   45971:   b_c_pre=$shared_c_pre
                   45972:   b_cxx_pre=$shared_cxx_pre
                   45973:   b_c_meta=$shared_c_meta
                   45974:   b_cxx_meta=$shared_cxx_meta
                   45975:   b_c_post=$shared_c_post
                   45976:   b_cxx_post=$shared_cxx_post
                   45977:   b_lo=$shared_lo
                   45978: 
                   45979: 
                   45980:   old_IFS=$IFS
                   45981:   for ac_src in gd.c $extra_sources; do
                   45982: 
                   45983:       IFS=.
                   45984:       set $ac_src
                   45985:       ac_obj=$1
                   45986:       IFS=$old_IFS
                   45987: 
                   45988:       shared_objects_gd="$shared_objects_gd $ac_bdir$ac_obj.lo"
                   45989: 
                   45990:       case $ac_src in
                   45991:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   45992:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   45993:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   45994:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   45995:       esac
                   45996: 
                   45997:     cat >>Makefile.objects<<EOF
                   45998: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   45999:        $ac_comp
                   46000: EOF
                   46001:   done
                   46002: 
                   46003:       case $host_alias in
                   46004:         *netware*)
                   46005: 
                   46006:   install_modules="install-modules"
                   46007: 
                   46008:   case $host_alias in
                   46009:     *aix*)
                   46010:       suffix=so
                   46011:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpgd.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) $(PHPGD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpgd.so '$ext_builddir'/phpgd.so'
                   46012:       ;;
                   46013:     *netware*)
                   46014:       suffix=nlm
                   46015:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) -L$(top_builddir)/netware -lphp5lib $(GD_SHARED_LIBADD)'
                   46016:       ;;
                   46017:     *)
                   46018:       suffix=la
                   46019:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) $(PHPGD_SHARED_LIBADD)'
                   46020:       ;;
                   46021:   esac
                   46022: 
                   46023:   if test "x" = "xyes"; then
                   46024:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpgd.$suffix"
                   46025:   else
                   46026:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpgd.$suffix"
                   46027:   fi
                   46028: 
                   46029:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gd"
                   46030: 
                   46031:   cat >>Makefile.objects<<EOF
                   46032: \$(phplibdir)/phpgd.$suffix: $ext_builddir/phpgd.$suffix
                   46033:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpgd.$suffix \$(phplibdir)
                   46034: 
                   46035: $ext_builddir/phpgd.$suffix: \$(shared_objects_gd) \$(PHPGD_SHARED_DEPENDENCIES)
                   46036:        $link_cmd
                   46037: 
                   46038: EOF
                   46039: 
                   46040:           ;;
                   46041:         *)
                   46042: 
                   46043:   install_modules="install-modules"
                   46044: 
                   46045:   case $host_alias in
                   46046:     *aix*)
                   46047:       suffix=so
                   46048:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/gd.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) $(GD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/gd.so '$ext_builddir'/gd.so'
                   46049:       ;;
                   46050:     *netware*)
                   46051:       suffix=nlm
                   46052:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
                   46053:       ;;
                   46054:     *)
                   46055:       suffix=la
                   46056:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) $(GD_SHARED_LIBADD)'
                   46057:       ;;
                   46058:   esac
                   46059: 
                   46060:   if test "x" = "xyes"; then
                   46061:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gd.$suffix"
                   46062:   else
                   46063:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/gd.$suffix"
                   46064:   fi
                   46065: 
                   46066:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gd"
                   46067: 
                   46068:   cat >>Makefile.objects<<EOF
                   46069: \$(phplibdir)/gd.$suffix: $ext_builddir/gd.$suffix
                   46070:        \$(LIBTOOL) --mode=install cp $ext_builddir/gd.$suffix \$(phplibdir)
                   46071: 
                   46072: $ext_builddir/gd.$suffix: \$(shared_objects_gd) \$(GD_SHARED_DEPENDENCIES)
                   46073:        $link_cmd
                   46074: 
                   46075: EOF
                   46076: 
                   46077:           ;;
                   46078:       esac
                   46079: 
                   46080: cat >>confdefs.h <<_ACEOF
                   46081: #define COMPILE_DL_GD 1
                   46082: _ACEOF
                   46083: 
                   46084:     fi
                   46085:   fi
                   46086: 
                   46087:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   46088:     PHP_GD_SHARED=no
                   46089: 
                   46090: 
                   46091:   case ext/gd in
                   46092:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   46093:   /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   46094:   *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   46095:   esac
                   46096: 
                   46097: 
                   46098: 
                   46099:   b_c_pre=$php_c_pre
                   46100:   b_cxx_pre=$php_cxx_pre
                   46101:   b_c_meta=$php_c_meta
                   46102:   b_cxx_meta=$php_cxx_meta
                   46103:   b_c_post=$php_c_post
                   46104:   b_cxx_post=$php_cxx_post
                   46105:   b_lo=$php_lo
                   46106: 
                   46107: 
                   46108:   old_IFS=$IFS
                   46109:   for ac_src in gd.c $extra_sources; do
                   46110: 
                   46111:       IFS=.
                   46112:       set $ac_src
                   46113:       ac_obj=$1
                   46114:       IFS=$old_IFS
                   46115: 
1.1.1.2 ! misho    46116:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    46117: 
                   46118:       case $ac_src in
                   46119:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46120:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46121:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46122:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   46123:       esac
                   46124: 
                   46125:     cat >>Makefile.objects<<EOF
                   46126: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   46127:        $ac_comp
                   46128: EOF
                   46129:   done
                   46130: 
                   46131: 
                   46132: 
                   46133: 
                   46134:   case ext/gd in
                   46135:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   46136:   /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   46137:   *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   46138:   esac
                   46139: 
                   46140: 
                   46141: 
                   46142:   b_c_pre=$php_c_pre
                   46143:   b_cxx_pre=$php_cxx_pre
                   46144:   b_c_meta=$php_c_meta
                   46145:   b_cxx_meta=$php_cxx_meta
                   46146:   b_c_post=$php_c_post
                   46147:   b_cxx_post=$php_cxx_post
                   46148:   b_lo=$php_lo
                   46149: 
                   46150: 
                   46151:   old_IFS=$IFS
                   46152:   for ac_src in gd.c $extra_sources; do
                   46153: 
                   46154:       IFS=.
                   46155:       set $ac_src
                   46156:       ac_obj=$1
                   46157:       IFS=$old_IFS
                   46158: 
1.1.1.2 ! misho    46159:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    46160: 
                   46161:       case $ac_src in
                   46162:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46163:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46164:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46165:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   46166:       esac
                   46167: 
                   46168:     cat >>Makefile.objects<<EOF
                   46169: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   46170:        $ac_comp
                   46171: EOF
                   46172:   done
                   46173: 
                   46174: 
                   46175: 
                   46176: 
                   46177:   case ext/gd in
                   46178:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   46179:   /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   46180:   *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   46181:   esac
                   46182: 
                   46183: 
                   46184: 
                   46185:   b_c_pre=$php_c_pre
                   46186:   b_cxx_pre=$php_cxx_pre
                   46187:   b_c_meta=$php_c_meta
                   46188:   b_cxx_meta=$php_cxx_meta
                   46189:   b_c_post=$php_c_post
                   46190:   b_cxx_post=$php_cxx_post
                   46191:   b_lo=$php_lo
                   46192: 
                   46193: 
                   46194:   old_IFS=$IFS
                   46195:   for ac_src in gd.c $extra_sources; do
                   46196: 
                   46197:       IFS=.
                   46198:       set $ac_src
                   46199:       ac_obj=$1
                   46200:       IFS=$old_IFS
                   46201: 
1.1.1.2 ! misho    46202:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    46203: 
                   46204:       case $ac_src in
                   46205:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46206:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46207:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46208:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   46209:       esac
                   46210: 
                   46211:     cat >>Makefile.objects<<EOF
                   46212: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   46213:        $ac_comp
                   46214: EOF
                   46215:   done
                   46216: 
                   46217: 
                   46218:     EXT_CLI_STATIC="$EXT_CLI_STATIC gd"
                   46219:   fi
                   46220: 
                   46221: 
                   46222:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   46223: 
                   46224: 
                   46225: 
                   46226:   if test "$ext_builddir" = "."; then
                   46227:     PHP_PECL_EXTENSION=gd
                   46228: 
                   46229:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   46230: 
                   46231:   fi
                   46232: 
                   46233: 
                   46234: 
                   46235: 
                   46236:     BUILD_DIR="$BUILD_DIR $ext_builddir/libgd"
                   46237: 
                   46238: 
                   46239: 
                   46240:   if test "$GD_MODULE_TYPE" = "builtin"; then
                   46241:     GDLIB_CFLAGS="-I$ext_srcdir/libgd $GDLIB_CFLAGS"
                   46242:     GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/"
                   46243: 
                   46244: 
                   46245:   old_LIBS=$LIBS
                   46246:   LIBS=" $GD_SHARED_LIBADD  $LIBS"
                   46247:   if test "$cross_compiling" = yes; then :
                   46248: 
                   46249:     LIBS=$old_LIBS
                   46250: 
                   46251: else
                   46252:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   46253: /* end confdefs.h.  */
                   46254: 
                   46255:     char foobar () {}
                   46256:     char foobar();
                   46257:     int main() {
                   46258:       foobar();
                   46259:       return 0;
                   46260:     }
                   46261: 
                   46262: _ACEOF
                   46263: if ac_fn_c_try_run "$LINENO"; then :
                   46264: 
                   46265:     LIBS=$old_LIBS
                   46266: 
                   46267: 
                   46268: else
                   46269: 
                   46270:     LIBS=$old_LIBS
                   46271: 
                   46272:       as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5
                   46273: 
                   46274: 
                   46275: fi
                   46276: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   46277:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   46278: fi
                   46279: 
                   46280: 
                   46281:   else
                   46282:     GD_HEADER_DIRS="ext/gd/"
                   46283:     GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_CFLAGS"
                   46284: 
                   46285:   if test "$GD_INCLUDE" != "/usr/include"; then
                   46286: 
                   46287:   if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then
                   46288:     ai_p=$GD_INCLUDE
                   46289:   else
                   46290: 
                   46291:     ep_dir="`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
                   46292: 
                   46293:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   46294:     ai_p="$ep_realdir/`basename \"$GD_INCLUDE\"`"
                   46295:   fi
                   46296: 
                   46297: 
                   46298: 
                   46299:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   46300: 
                   46301:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   46302:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   46303:     eval "INCLUDEPATH$unique=set"
                   46304: 
                   46305:       if test ""; then
                   46306:         INCLUDES="-I$ai_p $INCLUDES"
                   46307:       else
                   46308:         INCLUDES="$INCLUDES -I$ai_p"
                   46309:       fi
                   46310: 
                   46311:   fi
                   46312: 
                   46313:   fi
                   46314: 
                   46315: 
                   46316:   save_old_LDFLAGS=$LDFLAGS
                   46317:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
                   46318: 
                   46319:   save_ext_shared=$ext_shared
                   46320:   ext_shared=yes
                   46321: 
                   46322:   for ac_i in $ac_stuff; do
                   46323:     case $ac_i in
                   46324:     -pthread)
                   46325:       if test "$ext_shared" = "yes"; then
                   46326:         LDFLAGS="$LDFLAGS -pthread"
                   46327:       else
                   46328: 
                   46329: 
                   46330:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   46331: 
                   46332:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   46333:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   46334:     eval "EXTRA_LDFLAGS$unique=set"
                   46335:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   46336:   fi
                   46337: 
                   46338:       fi
                   46339:     ;;
                   46340:     -l*)
                   46341:       ac_ii=`echo $ac_i|cut -c 3-`
                   46342: 
                   46343: 
                   46344:   case $ac_ii in
                   46345:   c|c_r|pthread*) ;;
                   46346:   *)
                   46347:     if test "$ext_shared" = "yes"; then
                   46348:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   46349:     else
                   46350: 
                   46351: 
                   46352:   case $ac_ii in
                   46353:   c|c_r|pthread*) ;;
                   46354:   *)
                   46355:       LIBS="$LIBS -l$ac_ii"
                   46356:    ;;
                   46357:   esac
                   46358: 
                   46359: 
                   46360:     fi
                   46361:    ;;
                   46362:   esac
                   46363: 
                   46364: 
                   46365:     ;;
                   46366:     -L*)
                   46367:       ac_ii=`echo $ac_i|cut -c 3-`
                   46368: 
                   46369:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   46370: 
                   46371:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   46372:     ai_p=$ac_ii
                   46373:   else
                   46374: 
                   46375:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   46376: 
                   46377:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   46378:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   46379:   fi
                   46380: 
                   46381: 
                   46382:       if test "$ext_shared" = "yes"; then
                   46383:         LDFLAGS="-L$ai_p $LDFLAGS"
                   46384:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   46385:       else
                   46386: 
                   46387: 
                   46388: 
                   46389:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   46390: 
                   46391:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   46392:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   46393:     eval "LIBPATH$unique=set"
                   46394: 
                   46395:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   46396:     LDFLAGS="$LDFLAGS -L$ai_p"
                   46397:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   46398: 
                   46399:   fi
                   46400: 
                   46401: 
                   46402:       fi
                   46403: 
                   46404:   fi
                   46405: 
                   46406:     ;;
                   46407:     esac
                   46408:   done
                   46409: 
                   46410:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreate in -lgd" >&5
                   46411: $as_echo_n "checking for gdImageCreate in -lgd... " >&6; }
                   46412: if ${ac_cv_lib_gd_gdImageCreate+:} false; then :
                   46413:   $as_echo_n "(cached) " >&6
                   46414: else
                   46415:   ac_check_lib_save_LIBS=$LIBS
                   46416: LIBS="-lgd  $LIBS"
                   46417: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   46418: /* end confdefs.h.  */
                   46419: 
                   46420: /* Override any GCC internal prototype to avoid an error.
                   46421:    Use char because int might match the return type of a GCC
                   46422:    builtin and then its argument prototype would still apply.  */
                   46423: #ifdef __cplusplus
                   46424: extern "C"
                   46425: #endif
                   46426: char gdImageCreate ();
                   46427: int
                   46428: main ()
                   46429: {
                   46430: return gdImageCreate ();
                   46431:   ;
                   46432:   return 0;
                   46433: }
                   46434: _ACEOF
                   46435: if ac_fn_c_try_link "$LINENO"; then :
                   46436:   ac_cv_lib_gd_gdImageCreate=yes
                   46437: else
                   46438:   ac_cv_lib_gd_gdImageCreate=no
                   46439: fi
                   46440: rm -f core conftest.err conftest.$ac_objext \
                   46441:     conftest$ac_exeext conftest.$ac_ext
                   46442: LIBS=$ac_check_lib_save_LIBS
                   46443: fi
                   46444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreate" >&5
                   46445: $as_echo "$ac_cv_lib_gd_gdImageCreate" >&6; }
                   46446: if test "x$ac_cv_lib_gd_gdImageCreate" = xyes; then :
                   46447: 
                   46448:     LDFLAGS=$save_old_LDFLAGS
                   46449:     ext_shared=$save_ext_shared
                   46450: 
                   46451: 
                   46452: else
                   46453: 
                   46454:     LDFLAGS=$save_old_LDFLAGS
                   46455:     ext_shared=$save_ext_shared
                   46456:     unset ac_cv_lib_gd_gdImageCreate
                   46457: 
                   46458:       as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5
                   46459: 
                   46460: 
                   46461: fi
                   46462: 
                   46463:   fi
                   46464: 
                   46465: 
                   46466: 
                   46467:     for header_file in $GD_HEADER_DIRS; do
                   46468: 
                   46469: 
                   46470:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
                   46471: 
                   46472:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   46473:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   46474:     eval "INSTALLHEADERS$unique=set"
                   46475: 
                   46476:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
                   46477: 
                   46478:   fi
                   46479: 
                   46480:     done
                   46481: 
                   46482: 
                   46483: 
                   46484:   PHP_VAR_SUBST="$PHP_VAR_SUBST GDLIB_CFLAGS"
                   46485: 
                   46486: 
                   46487:   PHP_VAR_SUBST="$PHP_VAR_SUBST GD_SHARED_LIBADD"
                   46488: 
                   46489: fi
                   46490: 
                   46491: 
                   46492: 
                   46493: php_with_gettext=no
                   46494: 
                   46495: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext support" >&5
                   46496: $as_echo_n "checking for GNU gettext support... " >&6; }
                   46497: 
                   46498: # Check whether --with-gettext was given.
                   46499: if test "${with_gettext+set}" = set; then :
                   46500:   withval=$with_gettext; PHP_GETTEXT=$withval
                   46501: else
                   46502: 
                   46503:   PHP_GETTEXT=no
                   46504:   test "$PHP_ENABLE_ALL" && PHP_GETTEXT=$PHP_ENABLE_ALL
                   46505: 
                   46506: fi
                   46507: 
                   46508: 
                   46509: 
                   46510: ext_output="yes, shared"
                   46511: ext_shared=yes
                   46512: case $PHP_GETTEXT in
                   46513: shared,*)
                   46514:   PHP_GETTEXT=`echo "$PHP_GETTEXT"|$SED 's/^shared,//'`
                   46515:   ;;
                   46516: shared)
                   46517:   PHP_GETTEXT=yes
                   46518:   ;;
                   46519: no)
                   46520:   ext_output=no
                   46521:   ext_shared=no
                   46522:   ;;
                   46523: *)
                   46524:   ext_output=yes
                   46525:   ext_shared=no
                   46526:   ;;
                   46527: esac
                   46528: 
                   46529: 
                   46530: 
                   46531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   46532: $as_echo "$ext_output" >&6; }
                   46533: 
                   46534: 
                   46535: 
                   46536: 
                   46537: if test "$PHP_GETTEXT" != "no"; then
                   46538:   for i in $PHP_GETTEXT /usr/local /usr; do
                   46539:     test -r $i/include/libintl.h && GETTEXT_DIR=$i && break
                   46540:   done
                   46541: 
                   46542:   if test -z "$GETTEXT_DIR"; then
                   46543:     as_fn_error $? "Cannot locate header file libintl.h" "$LINENO" 5
                   46544:   fi
                   46545: 
                   46546:   GETTEXT_LIBDIR=$GETTEXT_DIR/$PHP_LIBDIR
                   46547:   GETTEXT_INCDIR=$GETTEXT_DIR/include
                   46548: 
                   46549:   O_LDFLAGS=$LDFLAGS
                   46550:   LDFLAGS="$LDFLAGS -L$GETTEXT_LIBDIR"
                   46551:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
                   46552: $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
                   46553: if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
                   46554:   $as_echo_n "(cached) " >&6
                   46555: else
                   46556:   ac_check_lib_save_LIBS=$LIBS
                   46557: LIBS="-lintl  $LIBS"
                   46558: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   46559: /* end confdefs.h.  */
                   46560: 
                   46561: /* Override any GCC internal prototype to avoid an error.
                   46562:    Use char because int might match the return type of a GCC
                   46563:    builtin and then its argument prototype would still apply.  */
                   46564: #ifdef __cplusplus
                   46565: extern "C"
                   46566: #endif
                   46567: char bindtextdomain ();
                   46568: int
                   46569: main ()
                   46570: {
                   46571: return bindtextdomain ();
                   46572:   ;
                   46573:   return 0;
                   46574: }
                   46575: _ACEOF
                   46576: if ac_fn_c_try_link "$LINENO"; then :
                   46577:   ac_cv_lib_intl_bindtextdomain=yes
                   46578: else
                   46579:   ac_cv_lib_intl_bindtextdomain=no
                   46580: fi
                   46581: rm -f core conftest.err conftest.$ac_objext \
                   46582:     conftest$ac_exeext conftest.$ac_ext
                   46583: LIBS=$ac_check_lib_save_LIBS
                   46584: fi
                   46585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
                   46586: $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
                   46587: if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
                   46588: 
                   46589:        GETTEXT_LIBS=intl
                   46590:        GETTEXT_CHECK_IN_LIB=intl
                   46591: 
                   46592: else
                   46593:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lc" >&5
                   46594: $as_echo_n "checking for bindtextdomain in -lc... " >&6; }
                   46595: if ${ac_cv_lib_c_bindtextdomain+:} false; then :
                   46596:   $as_echo_n "(cached) " >&6
                   46597: else
                   46598:   ac_check_lib_save_LIBS=$LIBS
                   46599: LIBS="-lc  $LIBS"
                   46600: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   46601: /* end confdefs.h.  */
                   46602: 
                   46603: /* Override any GCC internal prototype to avoid an error.
                   46604:    Use char because int might match the return type of a GCC
                   46605:    builtin and then its argument prototype would still apply.  */
                   46606: #ifdef __cplusplus
                   46607: extern "C"
                   46608: #endif
                   46609: char bindtextdomain ();
                   46610: int
                   46611: main ()
                   46612: {
                   46613: return bindtextdomain ();
                   46614:   ;
                   46615:   return 0;
                   46616: }
                   46617: _ACEOF
                   46618: if ac_fn_c_try_link "$LINENO"; then :
                   46619:   ac_cv_lib_c_bindtextdomain=yes
                   46620: else
                   46621:   ac_cv_lib_c_bindtextdomain=no
                   46622: fi
                   46623: rm -f core conftest.err conftest.$ac_objext \
                   46624:     conftest$ac_exeext conftest.$ac_ext
                   46625: LIBS=$ac_check_lib_save_LIBS
                   46626: fi
                   46627: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_bindtextdomain" >&5
                   46628: $as_echo "$ac_cv_lib_c_bindtextdomain" >&6; }
                   46629: if test "x$ac_cv_lib_c_bindtextdomain" = xyes; then :
                   46630: 
                   46631:                GETTEXT_LIBS=
                   46632:                GETTEXT_CHECK_IN_LIB=c
                   46633: 
                   46634: else
                   46635: 
                   46636:                as_fn_error $? "Unable to find required gettext library" "$LINENO" 5
                   46637: 
                   46638: fi
                   46639: 
                   46640: 
                   46641: fi
                   46642: 
                   46643:   LDFLAGS=$O_LDFLAGS
                   46644: 
                   46645: 
                   46646: $as_echo "#define HAVE_LIBINTL 1" >>confdefs.h
                   46647: 
                   46648: 
                   46649:   ext_builddir=ext/gettext
                   46650:   ext_srcdir=$abs_srcdir/ext/gettext
                   46651: 
                   46652:   ac_extra=
                   46653: 
                   46654:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   46655:     PHP_GETTEXT_SHARED=no
                   46656: 
                   46657: 
                   46658:   case ext/gettext in
                   46659:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   46660:   /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   46661:   *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   46662:   esac
                   46663: 
                   46664: 
                   46665: 
                   46666:   b_c_pre=$php_c_pre
                   46667:   b_cxx_pre=$php_cxx_pre
                   46668:   b_c_meta=$php_c_meta
                   46669:   b_cxx_meta=$php_cxx_meta
                   46670:   b_c_post=$php_c_post
                   46671:   b_cxx_post=$php_cxx_post
                   46672:   b_lo=$php_lo
                   46673: 
                   46674: 
                   46675:   old_IFS=$IFS
                   46676:   for ac_src in gettext.c; do
                   46677: 
                   46678:       IFS=.
                   46679:       set $ac_src
                   46680:       ac_obj=$1
                   46681:       IFS=$old_IFS
                   46682: 
                   46683:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   46684: 
                   46685:       case $ac_src in
                   46686:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46687:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46688:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46689:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   46690:       esac
                   46691: 
                   46692:     cat >>Makefile.objects<<EOF
                   46693: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   46694:        $ac_comp
                   46695: EOF
                   46696:   done
                   46697: 
                   46698: 
                   46699:     EXT_STATIC="$EXT_STATIC gettext"
                   46700:     if test "$ext_shared" != "nocli"; then
                   46701:       EXT_CLI_STATIC="$EXT_CLI_STATIC gettext"
                   46702:     fi
                   46703:   else
                   46704:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   46705:       PHP_GETTEXT_SHARED=yes
                   46706: 
                   46707:   case ext/gettext in
                   46708:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   46709:   /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   46710:   *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   46711:   esac
                   46712: 
                   46713: 
                   46714: 
                   46715:   b_c_pre=$shared_c_pre
                   46716:   b_cxx_pre=$shared_cxx_pre
                   46717:   b_c_meta=$shared_c_meta
                   46718:   b_cxx_meta=$shared_cxx_meta
                   46719:   b_c_post=$shared_c_post
                   46720:   b_cxx_post=$shared_cxx_post
                   46721:   b_lo=$shared_lo
                   46722: 
                   46723: 
                   46724:   old_IFS=$IFS
                   46725:   for ac_src in gettext.c; do
                   46726: 
                   46727:       IFS=.
                   46728:       set $ac_src
                   46729:       ac_obj=$1
                   46730:       IFS=$old_IFS
                   46731: 
                   46732:       shared_objects_gettext="$shared_objects_gettext $ac_bdir$ac_obj.lo"
                   46733: 
                   46734:       case $ac_src in
                   46735:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46736:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46737:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46738:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   46739:       esac
                   46740: 
                   46741:     cat >>Makefile.objects<<EOF
                   46742: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   46743:        $ac_comp
                   46744: EOF
                   46745:   done
                   46746: 
                   46747:       case $host_alias in
                   46748:         *netware*)
                   46749: 
                   46750:   install_modules="install-modules"
                   46751: 
                   46752:   case $host_alias in
                   46753:     *aix*)
                   46754:       suffix=so
                   46755:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpgettext.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) $(PHPGETTEXT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpgettext.so '$ext_builddir'/phpgettext.so'
                   46756:       ;;
                   46757:     *netware*)
                   46758:       suffix=nlm
                   46759:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) -L$(top_builddir)/netware -lphp5lib $(GETTEXT_SHARED_LIBADD)'
                   46760:       ;;
                   46761:     *)
                   46762:       suffix=la
                   46763:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) $(PHPGETTEXT_SHARED_LIBADD)'
                   46764:       ;;
                   46765:   esac
                   46766: 
                   46767:   if test "x" = "xyes"; then
                   46768:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpgettext.$suffix"
                   46769:   else
                   46770:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpgettext.$suffix"
                   46771:   fi
                   46772: 
                   46773:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gettext"
                   46774: 
                   46775:   cat >>Makefile.objects<<EOF
                   46776: \$(phplibdir)/phpgettext.$suffix: $ext_builddir/phpgettext.$suffix
                   46777:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpgettext.$suffix \$(phplibdir)
                   46778: 
                   46779: $ext_builddir/phpgettext.$suffix: \$(shared_objects_gettext) \$(PHPGETTEXT_SHARED_DEPENDENCIES)
                   46780:        $link_cmd
                   46781: 
                   46782: EOF
                   46783: 
                   46784:           ;;
                   46785:         *)
                   46786: 
                   46787:   install_modules="install-modules"
                   46788: 
                   46789:   case $host_alias in
                   46790:     *aix*)
                   46791:       suffix=so
                   46792:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/gettext.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) $(GETTEXT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/gettext.so '$ext_builddir'/gettext.so'
                   46793:       ;;
                   46794:     *netware*)
                   46795:       suffix=nlm
                   46796:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) -L$(top_builddir)/netware -lphp5lib $(TEXT_SHARED_LIBADD)'
                   46797:       ;;
                   46798:     *)
                   46799:       suffix=la
                   46800:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) $(GETTEXT_SHARED_LIBADD)'
                   46801:       ;;
                   46802:   esac
                   46803: 
                   46804:   if test "x" = "xyes"; then
                   46805:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gettext.$suffix"
                   46806:   else
                   46807:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/gettext.$suffix"
                   46808:   fi
                   46809: 
                   46810:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gettext"
                   46811: 
                   46812:   cat >>Makefile.objects<<EOF
                   46813: \$(phplibdir)/gettext.$suffix: $ext_builddir/gettext.$suffix
                   46814:        \$(LIBTOOL) --mode=install cp $ext_builddir/gettext.$suffix \$(phplibdir)
                   46815: 
                   46816: $ext_builddir/gettext.$suffix: \$(shared_objects_gettext) \$(GETTEXT_SHARED_DEPENDENCIES)
                   46817:        $link_cmd
                   46818: 
                   46819: EOF
                   46820: 
                   46821:           ;;
                   46822:       esac
                   46823: 
                   46824: cat >>confdefs.h <<_ACEOF
                   46825: #define COMPILE_DL_GETTEXT 1
                   46826: _ACEOF
                   46827: 
                   46828:     fi
                   46829:   fi
                   46830: 
                   46831:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   46832:     PHP_GETTEXT_SHARED=no
                   46833: 
                   46834: 
                   46835:   case ext/gettext in
                   46836:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   46837:   /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   46838:   *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   46839:   esac
                   46840: 
                   46841: 
                   46842: 
                   46843:   b_c_pre=$php_c_pre
                   46844:   b_cxx_pre=$php_cxx_pre
                   46845:   b_c_meta=$php_c_meta
                   46846:   b_cxx_meta=$php_cxx_meta
                   46847:   b_c_post=$php_c_post
                   46848:   b_cxx_post=$php_cxx_post
                   46849:   b_lo=$php_lo
                   46850: 
                   46851: 
                   46852:   old_IFS=$IFS
                   46853:   for ac_src in gettext.c; do
                   46854: 
                   46855:       IFS=.
                   46856:       set $ac_src
                   46857:       ac_obj=$1
                   46858:       IFS=$old_IFS
                   46859: 
1.1.1.2 ! misho    46860:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    46861: 
                   46862:       case $ac_src in
                   46863:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46864:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46865:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46866:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   46867:       esac
                   46868: 
                   46869:     cat >>Makefile.objects<<EOF
                   46870: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   46871:        $ac_comp
                   46872: EOF
                   46873:   done
                   46874: 
                   46875: 
                   46876: 
                   46877: 
                   46878:   case ext/gettext in
                   46879:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   46880:   /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   46881:   *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   46882:   esac
                   46883: 
                   46884: 
                   46885: 
                   46886:   b_c_pre=$php_c_pre
                   46887:   b_cxx_pre=$php_cxx_pre
                   46888:   b_c_meta=$php_c_meta
                   46889:   b_cxx_meta=$php_cxx_meta
                   46890:   b_c_post=$php_c_post
                   46891:   b_cxx_post=$php_cxx_post
                   46892:   b_lo=$php_lo
                   46893: 
                   46894: 
                   46895:   old_IFS=$IFS
                   46896:   for ac_src in gettext.c; do
                   46897: 
                   46898:       IFS=.
                   46899:       set $ac_src
                   46900:       ac_obj=$1
                   46901:       IFS=$old_IFS
                   46902: 
1.1.1.2 ! misho    46903:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    46904: 
                   46905:       case $ac_src in
                   46906:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46907:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46908:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46909:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   46910:       esac
                   46911: 
                   46912:     cat >>Makefile.objects<<EOF
                   46913: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   46914:        $ac_comp
                   46915: EOF
                   46916:   done
                   46917: 
                   46918: 
                   46919: 
                   46920: 
                   46921:   case ext/gettext in
                   46922:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   46923:   /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   46924:   *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   46925:   esac
                   46926: 
                   46927: 
                   46928: 
                   46929:   b_c_pre=$php_c_pre
                   46930:   b_cxx_pre=$php_cxx_pre
                   46931:   b_c_meta=$php_c_meta
                   46932:   b_cxx_meta=$php_cxx_meta
                   46933:   b_c_post=$php_c_post
                   46934:   b_cxx_post=$php_cxx_post
                   46935:   b_lo=$php_lo
                   46936: 
                   46937: 
                   46938:   old_IFS=$IFS
                   46939:   for ac_src in gettext.c; do
                   46940: 
                   46941:       IFS=.
                   46942:       set $ac_src
                   46943:       ac_obj=$1
                   46944:       IFS=$old_IFS
                   46945: 
1.1.1.2 ! misho    46946:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    46947: 
                   46948:       case $ac_src in
                   46949:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46950:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46951:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   46952:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   46953:       esac
                   46954: 
                   46955:     cat >>Makefile.objects<<EOF
                   46956: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   46957:        $ac_comp
                   46958: EOF
                   46959:   done
                   46960: 
                   46961: 
                   46962:     EXT_CLI_STATIC="$EXT_CLI_STATIC gettext"
                   46963:   fi
                   46964: 
                   46965: 
                   46966:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   46967: 
                   46968: 
                   46969: 
                   46970:   if test "$ext_builddir" = "."; then
                   46971:     PHP_PECL_EXTENSION=gettext
                   46972: 
                   46973:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   46974: 
                   46975:   fi
                   46976: 
                   46977: 
                   46978:   PHP_VAR_SUBST="$PHP_VAR_SUBST GETTEXT_SHARED_LIBADD"
                   46979: 
                   46980: 
                   46981:   if test -n "$GETTEXT_LIBS"; then
                   46982: 
                   46983: 
                   46984:   if test "$ext_shared" = "yes"; then
                   46985:     GETTEXT_SHARED_LIBADD="-l$GETTEXT_LIBS $GETTEXT_SHARED_LIBADD"
                   46986:     if test -n "$GETTEXT_LIBDIR"; then
                   46987: 
                   46988:   if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then
                   46989: 
                   46990:   if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then
                   46991:     ai_p=$GETTEXT_LIBDIR
                   46992:   else
                   46993: 
                   46994:     ep_dir="`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   46995: 
                   46996:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   46997:     ai_p="$ep_realdir/`basename \"$GETTEXT_LIBDIR\"`"
                   46998:   fi
                   46999: 
                   47000: 
                   47001:       if test "$ext_shared" = "yes"; then
                   47002:         GETTEXT_SHARED_LIBADD="-L$ai_p $GETTEXT_SHARED_LIBADD"
                   47003:         test -n "$ld_runpath_switch" && GETTEXT_SHARED_LIBADD="$ld_runpath_switch$ai_p $GETTEXT_SHARED_LIBADD"
                   47004:       else
                   47005: 
                   47006: 
                   47007: 
                   47008:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   47009: 
                   47010:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   47011:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   47012:     eval "LIBPATH$unique=set"
                   47013: 
                   47014:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   47015:     LDFLAGS="$LDFLAGS -L$ai_p"
                   47016:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   47017: 
                   47018:   fi
                   47019: 
                   47020: 
                   47021:       fi
                   47022: 
                   47023:   fi
                   47024: 
                   47025:     fi
                   47026:   else
                   47027: 
                   47028: 
                   47029:   if test -n "$GETTEXT_LIBDIR"; then
                   47030: 
                   47031:   if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then
                   47032: 
                   47033:   if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then
                   47034:     ai_p=$GETTEXT_LIBDIR
                   47035:   else
                   47036: 
                   47037:     ep_dir="`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   47038: 
                   47039:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   47040:     ai_p="$ep_realdir/`basename \"$GETTEXT_LIBDIR\"`"
                   47041:   fi
                   47042: 
                   47043: 
                   47044: 
                   47045: 
                   47046: 
                   47047:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   47048: 
                   47049:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   47050:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   47051:     eval "LIBPATH$unique=set"
                   47052: 
                   47053:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   47054:     LDFLAGS="$LDFLAGS -L$ai_p"
                   47055:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   47056: 
                   47057:   fi
                   47058: 
                   47059: 
                   47060: 
                   47061:   fi
                   47062: 
                   47063:   fi
                   47064: 
                   47065: 
                   47066:   case $GETTEXT_LIBS in
                   47067:   c|c_r|pthread*) ;;
                   47068:   *)
                   47069:       LIBS="-l$GETTEXT_LIBS $LIBS"
                   47070:    ;;
                   47071:   esac
                   47072: 
                   47073: 
                   47074: 
                   47075: 
                   47076:   fi
                   47077: 
                   47078: 
                   47079:   fi
                   47080: 
                   47081: 
                   47082:   if test "$GETTEXT_INCDIR" != "/usr/include"; then
                   47083: 
                   47084:   if test -z "$GETTEXT_INCDIR" || echo "$GETTEXT_INCDIR" | grep '^/' >/dev/null ; then
                   47085:     ai_p=$GETTEXT_INCDIR
                   47086:   else
                   47087: 
                   47088:     ep_dir="`echo $GETTEXT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   47089: 
                   47090:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   47091:     ai_p="$ep_realdir/`basename \"$GETTEXT_INCDIR\"`"
                   47092:   fi
                   47093: 
                   47094: 
                   47095: 
                   47096:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   47097: 
                   47098:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   47099:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   47100:     eval "INCLUDEPATH$unique=set"
                   47101: 
                   47102:       if test ""; then
                   47103:         INCLUDES="-I$ai_p $INCLUDES"
                   47104:       else
                   47105:         INCLUDES="$INCLUDES -I$ai_p"
                   47106:       fi
                   47107: 
                   47108:   fi
                   47109: 
                   47110:   fi
                   47111: 
                   47112: 
                   47113:   as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_ngettext" | $as_tr_sh`
                   47114: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
                   47115: $as_echo_n "checking for ngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
                   47116: if eval \${$as_ac_Lib+:} false; then :
                   47117:   $as_echo_n "(cached) " >&6
                   47118: else
                   47119:   ac_check_lib_save_LIBS=$LIBS
                   47120: LIBS="-l$GETTEXT_CHECK_IN_LIB  $LIBS"
                   47121: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   47122: /* end confdefs.h.  */
                   47123: 
                   47124: /* Override any GCC internal prototype to avoid an error.
                   47125:    Use char because int might match the return type of a GCC
                   47126:    builtin and then its argument prototype would still apply.  */
                   47127: #ifdef __cplusplus
                   47128: extern "C"
                   47129: #endif
                   47130: char ngettext ();
                   47131: int
                   47132: main ()
                   47133: {
                   47134: return ngettext ();
                   47135:   ;
                   47136:   return 0;
                   47137: }
                   47138: _ACEOF
                   47139: if ac_fn_c_try_link "$LINENO"; then :
                   47140:   eval "$as_ac_Lib=yes"
                   47141: else
                   47142:   eval "$as_ac_Lib=no"
                   47143: fi
                   47144: rm -f core conftest.err conftest.$ac_objext \
                   47145:     conftest$ac_exeext conftest.$ac_ext
                   47146: LIBS=$ac_check_lib_save_LIBS
                   47147: fi
                   47148: eval ac_res=\$$as_ac_Lib
                   47149:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   47150: $as_echo "$ac_res" >&6; }
                   47151: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   47152: 
                   47153: $as_echo "#define HAVE_NGETTEXT 1" >>confdefs.h
                   47154: 
                   47155: fi
                   47156: 
                   47157:   as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dngettext" | $as_tr_sh`
                   47158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
                   47159: $as_echo_n "checking for dngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
                   47160: if eval \${$as_ac_Lib+:} false; then :
                   47161:   $as_echo_n "(cached) " >&6
                   47162: else
                   47163:   ac_check_lib_save_LIBS=$LIBS
                   47164: LIBS="-l$GETTEXT_CHECK_IN_LIB  $LIBS"
                   47165: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   47166: /* end confdefs.h.  */
                   47167: 
                   47168: /* Override any GCC internal prototype to avoid an error.
                   47169:    Use char because int might match the return type of a GCC
                   47170:    builtin and then its argument prototype would still apply.  */
                   47171: #ifdef __cplusplus
                   47172: extern "C"
                   47173: #endif
                   47174: char dngettext ();
                   47175: int
                   47176: main ()
                   47177: {
                   47178: return dngettext ();
                   47179:   ;
                   47180:   return 0;
                   47181: }
                   47182: _ACEOF
                   47183: if ac_fn_c_try_link "$LINENO"; then :
                   47184:   eval "$as_ac_Lib=yes"
                   47185: else
                   47186:   eval "$as_ac_Lib=no"
                   47187: fi
                   47188: rm -f core conftest.err conftest.$ac_objext \
                   47189:     conftest$ac_exeext conftest.$ac_ext
                   47190: LIBS=$ac_check_lib_save_LIBS
                   47191: fi
                   47192: eval ac_res=\$$as_ac_Lib
                   47193:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   47194: $as_echo "$ac_res" >&6; }
                   47195: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   47196: 
                   47197: $as_echo "#define HAVE_DNGETTEXT 1" >>confdefs.h
                   47198: 
                   47199: fi
                   47200: 
                   47201:   as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dcngettext" | $as_tr_sh`
                   47202: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
                   47203: $as_echo_n "checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
                   47204: if eval \${$as_ac_Lib+:} false; then :
                   47205:   $as_echo_n "(cached) " >&6
                   47206: else
                   47207:   ac_check_lib_save_LIBS=$LIBS
                   47208: LIBS="-l$GETTEXT_CHECK_IN_LIB  $LIBS"
                   47209: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   47210: /* end confdefs.h.  */
                   47211: 
                   47212: /* Override any GCC internal prototype to avoid an error.
                   47213:    Use char because int might match the return type of a GCC
                   47214:    builtin and then its argument prototype would still apply.  */
                   47215: #ifdef __cplusplus
                   47216: extern "C"
                   47217: #endif
                   47218: char dcngettext ();
                   47219: int
                   47220: main ()
                   47221: {
                   47222: return dcngettext ();
                   47223:   ;
                   47224:   return 0;
                   47225: }
                   47226: _ACEOF
                   47227: if ac_fn_c_try_link "$LINENO"; then :
                   47228:   eval "$as_ac_Lib=yes"
                   47229: else
                   47230:   eval "$as_ac_Lib=no"
                   47231: fi
                   47232: rm -f core conftest.err conftest.$ac_objext \
                   47233:     conftest$ac_exeext conftest.$ac_ext
                   47234: LIBS=$ac_check_lib_save_LIBS
                   47235: fi
                   47236: eval ac_res=\$$as_ac_Lib
                   47237:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   47238: $as_echo "$ac_res" >&6; }
                   47239: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   47240: 
                   47241: $as_echo "#define HAVE_DCNGETTEXT 1" >>confdefs.h
                   47242: 
                   47243: fi
                   47244: 
                   47245:   as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_bind_textdomain_codeset" | $as_tr_sh`
                   47246: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB" >&5
                   47247: $as_echo_n "checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
                   47248: if eval \${$as_ac_Lib+:} false; then :
                   47249:   $as_echo_n "(cached) " >&6
                   47250: else
                   47251:   ac_check_lib_save_LIBS=$LIBS
                   47252: LIBS="-l$GETTEXT_CHECK_IN_LIB  $LIBS"
                   47253: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   47254: /* end confdefs.h.  */
                   47255: 
                   47256: /* Override any GCC internal prototype to avoid an error.
                   47257:    Use char because int might match the return type of a GCC
                   47258:    builtin and then its argument prototype would still apply.  */
                   47259: #ifdef __cplusplus
                   47260: extern "C"
                   47261: #endif
                   47262: char bind_textdomain_codeset ();
                   47263: int
                   47264: main ()
                   47265: {
                   47266: return bind_textdomain_codeset ();
                   47267:   ;
                   47268:   return 0;
                   47269: }
                   47270: _ACEOF
                   47271: if ac_fn_c_try_link "$LINENO"; then :
                   47272:   eval "$as_ac_Lib=yes"
                   47273: else
                   47274:   eval "$as_ac_Lib=no"
                   47275: fi
                   47276: rm -f core conftest.err conftest.$ac_objext \
                   47277:     conftest$ac_exeext conftest.$ac_ext
                   47278: LIBS=$ac_check_lib_save_LIBS
                   47279: fi
                   47280: eval ac_res=\$$as_ac_Lib
                   47281:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   47282: $as_echo "$ac_res" >&6; }
                   47283: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   47284: 
                   47285: $as_echo "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
                   47286: 
                   47287: fi
                   47288: 
                   47289: 
                   47290: fi
                   47291: 
                   47292: 
                   47293: 
                   47294: php_with_gmp=no
                   47295: 
                   47296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU MP support" >&5
                   47297: $as_echo_n "checking for GNU MP support... " >&6; }
                   47298: 
                   47299: # Check whether --with-gmp was given.
                   47300: if test "${with_gmp+set}" = set; then :
                   47301:   withval=$with_gmp; PHP_GMP=$withval
                   47302: else
                   47303: 
                   47304:   PHP_GMP=no
                   47305:   test "$PHP_ENABLE_ALL" && PHP_GMP=$PHP_ENABLE_ALL
                   47306: 
                   47307: fi
                   47308: 
                   47309: 
                   47310: 
                   47311: ext_output="yes, shared"
                   47312: ext_shared=yes
                   47313: case $PHP_GMP in
                   47314: shared,*)
                   47315:   PHP_GMP=`echo "$PHP_GMP"|$SED 's/^shared,//'`
                   47316:   ;;
                   47317: shared)
                   47318:   PHP_GMP=yes
                   47319:   ;;
                   47320: no)
                   47321:   ext_output=no
                   47322:   ext_shared=no
                   47323:   ;;
                   47324: *)
                   47325:   ext_output=yes
                   47326:   ext_shared=no
                   47327:   ;;
                   47328: esac
                   47329: 
                   47330: 
                   47331: 
                   47332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   47333: $as_echo "$ext_output" >&6; }
                   47334: 
                   47335: 
                   47336: 
                   47337: 
                   47338: if test "$PHP_GMP" != "no"; then
                   47339: 
                   47340:   for i in $PHP_GMP /usr/local /usr; do
                   47341:     test -f $i/include/gmp.h && GMP_DIR=$i && break
                   47342:   done
                   47343: 
                   47344:   if test -z "$GMP_DIR"; then
                   47345:     as_fn_error $? "Unable to locate gmp.h" "$LINENO" 5
                   47346:   fi
                   47347: 
                   47348: 
                   47349:   save_old_LDFLAGS=$LDFLAGS
                   47350:   ac_stuff="
                   47351:     -L$GMP_DIR/$PHP_LIBDIR
                   47352:   "
                   47353: 
                   47354:   save_ext_shared=$ext_shared
                   47355:   ext_shared=yes
                   47356: 
                   47357:   for ac_i in $ac_stuff; do
                   47358:     case $ac_i in
                   47359:     -pthread)
                   47360:       if test "$ext_shared" = "yes"; then
                   47361:         LDFLAGS="$LDFLAGS -pthread"
                   47362:       else
                   47363: 
                   47364: 
                   47365:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   47366: 
                   47367:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   47368:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   47369:     eval "EXTRA_LDFLAGS$unique=set"
                   47370:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   47371:   fi
                   47372: 
                   47373:       fi
                   47374:     ;;
                   47375:     -l*)
                   47376:       ac_ii=`echo $ac_i|cut -c 3-`
                   47377: 
                   47378: 
                   47379:   case $ac_ii in
                   47380:   c|c_r|pthread*) ;;
                   47381:   *)
                   47382:     if test "$ext_shared" = "yes"; then
                   47383:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   47384:     else
                   47385: 
                   47386: 
                   47387:   case $ac_ii in
                   47388:   c|c_r|pthread*) ;;
                   47389:   *)
                   47390:       LIBS="$LIBS -l$ac_ii"
                   47391:    ;;
                   47392:   esac
                   47393: 
                   47394: 
                   47395:     fi
                   47396:    ;;
                   47397:   esac
                   47398: 
                   47399: 
                   47400:     ;;
                   47401:     -L*)
                   47402:       ac_ii=`echo $ac_i|cut -c 3-`
                   47403: 
                   47404:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   47405: 
                   47406:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   47407:     ai_p=$ac_ii
                   47408:   else
                   47409: 
                   47410:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   47411: 
                   47412:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   47413:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   47414:   fi
                   47415: 
                   47416: 
                   47417:       if test "$ext_shared" = "yes"; then
                   47418:         LDFLAGS="-L$ai_p $LDFLAGS"
                   47419:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   47420:       else
                   47421: 
                   47422: 
                   47423: 
                   47424:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   47425: 
                   47426:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   47427:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   47428:     eval "LIBPATH$unique=set"
                   47429: 
                   47430:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   47431:     LDFLAGS="$LDFLAGS -L$ai_p"
                   47432:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   47433: 
                   47434:   fi
                   47435: 
                   47436: 
                   47437:       fi
                   47438: 
                   47439:   fi
                   47440: 
                   47441:     ;;
                   47442:     esac
                   47443:   done
                   47444: 
                   47445:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmp_randinit_lc_2exp_size in -lgmp" >&5
                   47446: $as_echo_n "checking for __gmp_randinit_lc_2exp_size in -lgmp... " >&6; }
                   47447: if ${ac_cv_lib_gmp___gmp_randinit_lc_2exp_size+:} false; then :
                   47448:   $as_echo_n "(cached) " >&6
                   47449: else
                   47450:   ac_check_lib_save_LIBS=$LIBS
                   47451: LIBS="-lgmp  $LIBS"
                   47452: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   47453: /* end confdefs.h.  */
                   47454: 
                   47455: /* Override any GCC internal prototype to avoid an error.
                   47456:    Use char because int might match the return type of a GCC
                   47457:    builtin and then its argument prototype would still apply.  */
                   47458: #ifdef __cplusplus
                   47459: extern "C"
                   47460: #endif
                   47461: char __gmp_randinit_lc_2exp_size ();
                   47462: int
                   47463: main ()
                   47464: {
                   47465: return __gmp_randinit_lc_2exp_size ();
                   47466:   ;
                   47467:   return 0;
                   47468: }
                   47469: _ACEOF
                   47470: if ac_fn_c_try_link "$LINENO"; then :
                   47471:   ac_cv_lib_gmp___gmp_randinit_lc_2exp_size=yes
                   47472: else
                   47473:   ac_cv_lib_gmp___gmp_randinit_lc_2exp_size=no
                   47474: fi
                   47475: rm -f core conftest.err conftest.$ac_objext \
                   47476:     conftest$ac_exeext conftest.$ac_ext
                   47477: LIBS=$ac_check_lib_save_LIBS
                   47478: fi
                   47479: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&5
                   47480: $as_echo "$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&6; }
                   47481: if test "x$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" = xyes; then :
                   47482: 
                   47483:     LDFLAGS=$save_old_LDFLAGS
                   47484:     ext_shared=$save_ext_shared
                   47485: 
                   47486: 
                   47487: else
                   47488: 
                   47489:     LDFLAGS=$save_old_LDFLAGS
                   47490:     ext_shared=$save_ext_shared
                   47491:     unset ac_cv_lib_gmp___gmp_randinit_lc_2exp_size
                   47492: 
                   47493: 
                   47494:   save_old_LDFLAGS=$LDFLAGS
                   47495:   ac_stuff="
                   47496:       -L$GMP_DIR/$PHP_LIBDIR
                   47497:     "
                   47498: 
                   47499:   save_ext_shared=$ext_shared
                   47500:   ext_shared=yes
                   47501: 
                   47502:   for ac_i in $ac_stuff; do
                   47503:     case $ac_i in
                   47504:     -pthread)
                   47505:       if test "$ext_shared" = "yes"; then
                   47506:         LDFLAGS="$LDFLAGS -pthread"
                   47507:       else
                   47508: 
                   47509: 
                   47510:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   47511: 
                   47512:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   47513:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   47514:     eval "EXTRA_LDFLAGS$unique=set"
                   47515:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   47516:   fi
                   47517: 
                   47518:       fi
                   47519:     ;;
                   47520:     -l*)
                   47521:       ac_ii=`echo $ac_i|cut -c 3-`
                   47522: 
                   47523: 
                   47524:   case $ac_ii in
                   47525:   c|c_r|pthread*) ;;
                   47526:   *)
                   47527:     if test "$ext_shared" = "yes"; then
                   47528:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   47529:     else
                   47530: 
                   47531: 
                   47532:   case $ac_ii in
                   47533:   c|c_r|pthread*) ;;
                   47534:   *)
                   47535:       LIBS="$LIBS -l$ac_ii"
                   47536:    ;;
                   47537:   esac
                   47538: 
                   47539: 
                   47540:     fi
                   47541:    ;;
                   47542:   esac
                   47543: 
                   47544: 
                   47545:     ;;
                   47546:     -L*)
                   47547:       ac_ii=`echo $ac_i|cut -c 3-`
                   47548: 
                   47549:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   47550: 
                   47551:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   47552:     ai_p=$ac_ii
                   47553:   else
                   47554: 
                   47555:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   47556: 
                   47557:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   47558:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   47559:   fi
                   47560: 
                   47561: 
                   47562:       if test "$ext_shared" = "yes"; then
                   47563:         LDFLAGS="-L$ai_p $LDFLAGS"
                   47564:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   47565:       else
                   47566: 
                   47567: 
                   47568: 
                   47569:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   47570: 
                   47571:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   47572:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   47573:     eval "LIBPATH$unique=set"
                   47574: 
                   47575:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   47576:     LDFLAGS="$LDFLAGS -L$ai_p"
                   47577:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   47578: 
                   47579:   fi
                   47580: 
                   47581: 
                   47582:       fi
                   47583: 
                   47584:   fi
                   47585: 
                   47586:     ;;
                   47587:     esac
                   47588:   done
                   47589: 
                   47590:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp_randinit_lc_2exp_size in -lgmp" >&5
                   47591: $as_echo_n "checking for gmp_randinit_lc_2exp_size in -lgmp... " >&6; }
                   47592: if ${ac_cv_lib_gmp_gmp_randinit_lc_2exp_size+:} false; then :
                   47593:   $as_echo_n "(cached) " >&6
                   47594: else
                   47595:   ac_check_lib_save_LIBS=$LIBS
                   47596: LIBS="-lgmp  $LIBS"
                   47597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   47598: /* end confdefs.h.  */
                   47599: 
                   47600: /* Override any GCC internal prototype to avoid an error.
                   47601:    Use char because int might match the return type of a GCC
                   47602:    builtin and then its argument prototype would still apply.  */
                   47603: #ifdef __cplusplus
                   47604: extern "C"
                   47605: #endif
                   47606: char gmp_randinit_lc_2exp_size ();
                   47607: int
                   47608: main ()
                   47609: {
                   47610: return gmp_randinit_lc_2exp_size ();
                   47611:   ;
                   47612:   return 0;
                   47613: }
                   47614: _ACEOF
                   47615: if ac_fn_c_try_link "$LINENO"; then :
                   47616:   ac_cv_lib_gmp_gmp_randinit_lc_2exp_size=yes
                   47617: else
                   47618:   ac_cv_lib_gmp_gmp_randinit_lc_2exp_size=no
                   47619: fi
                   47620: rm -f core conftest.err conftest.$ac_objext \
                   47621:     conftest$ac_exeext conftest.$ac_ext
                   47622: LIBS=$ac_check_lib_save_LIBS
                   47623: fi
                   47624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&5
                   47625: $as_echo "$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&6; }
                   47626: if test "x$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" = xyes; then :
                   47627: 
                   47628:     LDFLAGS=$save_old_LDFLAGS
                   47629:     ext_shared=$save_ext_shared
                   47630: 
                   47631: 
                   47632: else
                   47633: 
                   47634:     LDFLAGS=$save_old_LDFLAGS
                   47635:     ext_shared=$save_ext_shared
                   47636:     unset ac_cv_lib_gmp_gmp_randinit_lc_2exp_size
                   47637: 
                   47638:       as_fn_error $? "GNU MP Library version 4.1.2 or greater required." "$LINENO" 5
                   47639: 
                   47640: 
                   47641: fi
                   47642: 
                   47643: 
                   47644: 
                   47645: fi
                   47646: 
                   47647: 
                   47648: 
                   47649: 
                   47650:   if test "$ext_shared" = "yes"; then
                   47651:     GMP_SHARED_LIBADD="-lgmp $GMP_SHARED_LIBADD"
                   47652:     if test -n "$GMP_DIR/$PHP_LIBDIR"; then
                   47653: 
                   47654:   if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   47655: 
                   47656:   if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   47657:     ai_p=$GMP_DIR/$PHP_LIBDIR
                   47658:   else
                   47659: 
                   47660:     ep_dir="`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   47661: 
                   47662:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   47663:     ai_p="$ep_realdir/`basename \"$GMP_DIR/$PHP_LIBDIR\"`"
                   47664:   fi
                   47665: 
                   47666: 
                   47667:       if test "$ext_shared" = "yes"; then
                   47668:         GMP_SHARED_LIBADD="-L$ai_p $GMP_SHARED_LIBADD"
                   47669:         test -n "$ld_runpath_switch" && GMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $GMP_SHARED_LIBADD"
                   47670:       else
                   47671: 
                   47672: 
                   47673: 
                   47674:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   47675: 
                   47676:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   47677:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   47678:     eval "LIBPATH$unique=set"
                   47679: 
                   47680:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   47681:     LDFLAGS="$LDFLAGS -L$ai_p"
                   47682:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   47683: 
                   47684:   fi
                   47685: 
                   47686: 
                   47687:       fi
                   47688: 
                   47689:   fi
                   47690: 
                   47691:     fi
                   47692:   else
                   47693: 
                   47694: 
                   47695:   if test -n "$GMP_DIR/$PHP_LIBDIR"; then
                   47696: 
                   47697:   if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   47698: 
                   47699:   if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   47700:     ai_p=$GMP_DIR/$PHP_LIBDIR
                   47701:   else
                   47702: 
                   47703:     ep_dir="`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   47704: 
                   47705:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   47706:     ai_p="$ep_realdir/`basename \"$GMP_DIR/$PHP_LIBDIR\"`"
                   47707:   fi
                   47708: 
                   47709: 
                   47710: 
                   47711: 
                   47712: 
                   47713:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   47714: 
                   47715:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   47716:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   47717:     eval "LIBPATH$unique=set"
                   47718: 
                   47719:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   47720:     LDFLAGS="$LDFLAGS -L$ai_p"
                   47721:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   47722: 
                   47723:   fi
                   47724: 
                   47725: 
                   47726: 
                   47727:   fi
                   47728: 
                   47729:   fi
                   47730: 
                   47731: 
                   47732:   case gmp in
                   47733:   c|c_r|pthread*) ;;
                   47734:   *)
                   47735:       LIBS="-lgmp $LIBS"
                   47736:    ;;
                   47737:   esac
                   47738: 
                   47739: 
                   47740: 
                   47741: 
                   47742:   fi
                   47743: 
                   47744: 
                   47745: 
                   47746:   if test "$GMP_DIR/include" != "/usr/include"; then
                   47747: 
                   47748:   if test -z "$GMP_DIR/include" || echo "$GMP_DIR/include" | grep '^/' >/dev/null ; then
                   47749:     ai_p=$GMP_DIR/include
                   47750:   else
                   47751: 
                   47752:     ep_dir="`echo $GMP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   47753: 
                   47754:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   47755:     ai_p="$ep_realdir/`basename \"$GMP_DIR/include\"`"
                   47756:   fi
                   47757: 
                   47758: 
                   47759: 
                   47760:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   47761: 
                   47762:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   47763:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   47764:     eval "INCLUDEPATH$unique=set"
                   47765: 
                   47766:       if test ""; then
                   47767:         INCLUDES="-I$ai_p $INCLUDES"
                   47768:       else
                   47769:         INCLUDES="$INCLUDES -I$ai_p"
                   47770:       fi
                   47771: 
                   47772:   fi
                   47773: 
                   47774:   fi
                   47775: 
                   47776: 
                   47777: 
                   47778:   ext_builddir=ext/gmp
                   47779:   ext_srcdir=$abs_srcdir/ext/gmp
                   47780: 
                   47781:   ac_extra=
                   47782: 
                   47783:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   47784:     PHP_GMP_SHARED=no
                   47785: 
                   47786: 
                   47787:   case ext/gmp in
                   47788:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   47789:   /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   47790:   *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   47791:   esac
                   47792: 
                   47793: 
                   47794: 
                   47795:   b_c_pre=$php_c_pre
                   47796:   b_cxx_pre=$php_cxx_pre
                   47797:   b_c_meta=$php_c_meta
                   47798:   b_cxx_meta=$php_cxx_meta
                   47799:   b_c_post=$php_c_post
                   47800:   b_cxx_post=$php_cxx_post
                   47801:   b_lo=$php_lo
                   47802: 
                   47803: 
                   47804:   old_IFS=$IFS
                   47805:   for ac_src in gmp.c; do
                   47806: 
                   47807:       IFS=.
                   47808:       set $ac_src
                   47809:       ac_obj=$1
                   47810:       IFS=$old_IFS
                   47811: 
                   47812:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   47813: 
                   47814:       case $ac_src in
                   47815:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   47816:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   47817:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   47818:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   47819:       esac
                   47820: 
                   47821:     cat >>Makefile.objects<<EOF
                   47822: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   47823:        $ac_comp
                   47824: EOF
                   47825:   done
                   47826: 
                   47827: 
                   47828:     EXT_STATIC="$EXT_STATIC gmp"
                   47829:     if test "$ext_shared" != "nocli"; then
                   47830:       EXT_CLI_STATIC="$EXT_CLI_STATIC gmp"
                   47831:     fi
                   47832:   else
                   47833:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   47834:       PHP_GMP_SHARED=yes
                   47835: 
                   47836:   case ext/gmp in
                   47837:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   47838:   /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   47839:   *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   47840:   esac
                   47841: 
                   47842: 
                   47843: 
                   47844:   b_c_pre=$shared_c_pre
                   47845:   b_cxx_pre=$shared_cxx_pre
                   47846:   b_c_meta=$shared_c_meta
                   47847:   b_cxx_meta=$shared_cxx_meta
                   47848:   b_c_post=$shared_c_post
                   47849:   b_cxx_post=$shared_cxx_post
                   47850:   b_lo=$shared_lo
                   47851: 
                   47852: 
                   47853:   old_IFS=$IFS
                   47854:   for ac_src in gmp.c; do
                   47855: 
                   47856:       IFS=.
                   47857:       set $ac_src
                   47858:       ac_obj=$1
                   47859:       IFS=$old_IFS
                   47860: 
                   47861:       shared_objects_gmp="$shared_objects_gmp $ac_bdir$ac_obj.lo"
                   47862: 
                   47863:       case $ac_src in
                   47864:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   47865:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   47866:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   47867:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   47868:       esac
                   47869: 
                   47870:     cat >>Makefile.objects<<EOF
                   47871: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   47872:        $ac_comp
                   47873: EOF
                   47874:   done
                   47875: 
                   47876:       case $host_alias in
                   47877:         *netware*)
                   47878: 
                   47879:   install_modules="install-modules"
                   47880: 
                   47881:   case $host_alias in
                   47882:     *aix*)
                   47883:       suffix=so
                   47884:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpgmp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) $(PHPGMP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpgmp.so '$ext_builddir'/phpgmp.so'
                   47885:       ;;
                   47886:     *netware*)
                   47887:       suffix=nlm
                   47888:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) -L$(top_builddir)/netware -lphp5lib $(GMP_SHARED_LIBADD)'
                   47889:       ;;
                   47890:     *)
                   47891:       suffix=la
                   47892:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) $(PHPGMP_SHARED_LIBADD)'
                   47893:       ;;
                   47894:   esac
                   47895: 
                   47896:   if test "x" = "xyes"; then
                   47897:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpgmp.$suffix"
                   47898:   else
                   47899:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpgmp.$suffix"
                   47900:   fi
                   47901: 
                   47902:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gmp"
                   47903: 
                   47904:   cat >>Makefile.objects<<EOF
                   47905: \$(phplibdir)/phpgmp.$suffix: $ext_builddir/phpgmp.$suffix
                   47906:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpgmp.$suffix \$(phplibdir)
                   47907: 
                   47908: $ext_builddir/phpgmp.$suffix: \$(shared_objects_gmp) \$(PHPGMP_SHARED_DEPENDENCIES)
                   47909:        $link_cmd
                   47910: 
                   47911: EOF
                   47912: 
                   47913:           ;;
                   47914:         *)
                   47915: 
                   47916:   install_modules="install-modules"
                   47917: 
                   47918:   case $host_alias in
                   47919:     *aix*)
                   47920:       suffix=so
                   47921:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/gmp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) $(GMP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/gmp.so '$ext_builddir'/gmp.so'
                   47922:       ;;
                   47923:     *netware*)
                   47924:       suffix=nlm
                   47925:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
                   47926:       ;;
                   47927:     *)
                   47928:       suffix=la
                   47929:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) $(GMP_SHARED_LIBADD)'
                   47930:       ;;
                   47931:   esac
                   47932: 
                   47933:   if test "x" = "xyes"; then
                   47934:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gmp.$suffix"
                   47935:   else
                   47936:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/gmp.$suffix"
                   47937:   fi
                   47938: 
                   47939:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gmp"
                   47940: 
                   47941:   cat >>Makefile.objects<<EOF
                   47942: \$(phplibdir)/gmp.$suffix: $ext_builddir/gmp.$suffix
                   47943:        \$(LIBTOOL) --mode=install cp $ext_builddir/gmp.$suffix \$(phplibdir)
                   47944: 
                   47945: $ext_builddir/gmp.$suffix: \$(shared_objects_gmp) \$(GMP_SHARED_DEPENDENCIES)
                   47946:        $link_cmd
                   47947: 
                   47948: EOF
                   47949: 
                   47950:           ;;
                   47951:       esac
                   47952: 
                   47953: cat >>confdefs.h <<_ACEOF
                   47954: #define COMPILE_DL_GMP 1
                   47955: _ACEOF
                   47956: 
                   47957:     fi
                   47958:   fi
                   47959: 
                   47960:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   47961:     PHP_GMP_SHARED=no
                   47962: 
                   47963: 
                   47964:   case ext/gmp in
                   47965:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   47966:   /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   47967:   *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   47968:   esac
                   47969: 
                   47970: 
                   47971: 
                   47972:   b_c_pre=$php_c_pre
                   47973:   b_cxx_pre=$php_cxx_pre
                   47974:   b_c_meta=$php_c_meta
                   47975:   b_cxx_meta=$php_cxx_meta
                   47976:   b_c_post=$php_c_post
                   47977:   b_cxx_post=$php_cxx_post
                   47978:   b_lo=$php_lo
                   47979: 
                   47980: 
                   47981:   old_IFS=$IFS
                   47982:   for ac_src in gmp.c; do
                   47983: 
                   47984:       IFS=.
                   47985:       set $ac_src
                   47986:       ac_obj=$1
                   47987:       IFS=$old_IFS
                   47988: 
1.1.1.2 ! misho    47989:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    47990: 
                   47991:       case $ac_src in
                   47992:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   47993:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   47994:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   47995:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   47996:       esac
                   47997: 
                   47998:     cat >>Makefile.objects<<EOF
                   47999: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   48000:        $ac_comp
                   48001: EOF
                   48002:   done
                   48003: 
                   48004: 
                   48005: 
                   48006: 
                   48007:   case ext/gmp in
                   48008:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   48009:   /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   48010:   *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   48011:   esac
                   48012: 
                   48013: 
                   48014: 
                   48015:   b_c_pre=$php_c_pre
                   48016:   b_cxx_pre=$php_cxx_pre
                   48017:   b_c_meta=$php_c_meta
                   48018:   b_cxx_meta=$php_cxx_meta
                   48019:   b_c_post=$php_c_post
                   48020:   b_cxx_post=$php_cxx_post
                   48021:   b_lo=$php_lo
                   48022: 
                   48023: 
                   48024:   old_IFS=$IFS
                   48025:   for ac_src in gmp.c; do
                   48026: 
                   48027:       IFS=.
                   48028:       set $ac_src
                   48029:       ac_obj=$1
                   48030:       IFS=$old_IFS
                   48031: 
1.1.1.2 ! misho    48032:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    48033: 
                   48034:       case $ac_src in
                   48035:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48036:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48037:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48038:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   48039:       esac
                   48040: 
                   48041:     cat >>Makefile.objects<<EOF
                   48042: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   48043:        $ac_comp
                   48044: EOF
                   48045:   done
                   48046: 
                   48047: 
                   48048: 
                   48049: 
                   48050:   case ext/gmp in
                   48051:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   48052:   /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   48053:   *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   48054:   esac
                   48055: 
                   48056: 
                   48057: 
                   48058:   b_c_pre=$php_c_pre
                   48059:   b_cxx_pre=$php_cxx_pre
                   48060:   b_c_meta=$php_c_meta
                   48061:   b_cxx_meta=$php_cxx_meta
                   48062:   b_c_post=$php_c_post
                   48063:   b_cxx_post=$php_cxx_post
                   48064:   b_lo=$php_lo
                   48065: 
                   48066: 
                   48067:   old_IFS=$IFS
                   48068:   for ac_src in gmp.c; do
                   48069: 
                   48070:       IFS=.
                   48071:       set $ac_src
                   48072:       ac_obj=$1
                   48073:       IFS=$old_IFS
                   48074: 
1.1.1.2 ! misho    48075:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    48076: 
                   48077:       case $ac_src in
                   48078:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48079:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48080:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48081:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   48082:       esac
                   48083: 
                   48084:     cat >>Makefile.objects<<EOF
                   48085: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   48086:        $ac_comp
                   48087: EOF
                   48088:   done
                   48089: 
                   48090: 
                   48091:     EXT_CLI_STATIC="$EXT_CLI_STATIC gmp"
                   48092:   fi
                   48093: 
                   48094: 
                   48095:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   48096: 
                   48097: 
                   48098: 
                   48099:   if test "$ext_builddir" = "."; then
                   48100:     PHP_PECL_EXTENSION=gmp
                   48101: 
                   48102:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   48103: 
                   48104:   fi
                   48105: 
                   48106: 
                   48107:   PHP_VAR_SUBST="$PHP_VAR_SUBST GMP_SHARED_LIBADD"
                   48108: 
                   48109: 
                   48110: $as_echo "#define HAVE_GMP 1" >>confdefs.h
                   48111: 
                   48112: fi
                   48113: 
                   48114: 
                   48115: 
                   48116: php_with_mhash=no
                   48117: 
                   48118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mhash support" >&5
                   48119: $as_echo_n "checking for mhash support... " >&6; }
                   48120: 
                   48121: # Check whether --with-mhash was given.
                   48122: if test "${with_mhash+set}" = set; then :
                   48123:   withval=$with_mhash; PHP_MHASH=$withval
                   48124: else
                   48125: 
                   48126:   PHP_MHASH=no
                   48127:   test "$PHP_ENABLE_ALL" && PHP_MHASH=$PHP_ENABLE_ALL
                   48128: 
                   48129: fi
                   48130: 
                   48131: 
                   48132: 
                   48133: ext_output="yes, shared"
                   48134: ext_shared=yes
                   48135: case $PHP_MHASH in
                   48136: shared,*)
                   48137:   PHP_MHASH=`echo "$PHP_MHASH"|$SED 's/^shared,//'`
                   48138:   ;;
                   48139: shared)
                   48140:   PHP_MHASH=yes
                   48141:   ;;
                   48142: no)
                   48143:   ext_output=no
                   48144:   ext_shared=no
                   48145:   ;;
                   48146: *)
                   48147:   ext_output=yes
                   48148:   ext_shared=no
                   48149:   ;;
                   48150: esac
                   48151: 
                   48152: 
                   48153: 
                   48154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   48155: $as_echo "$ext_output" >&6; }
                   48156: 
                   48157: 
                   48158: 
                   48159: 
                   48160: 
                   48161: php_enable_hash=yes
                   48162: 
                   48163: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hash support" >&5
                   48164: $as_echo_n "checking whether to enable hash support... " >&6; }
                   48165: # Check whether --enable-hash was given.
                   48166: if test "${enable_hash+set}" = set; then :
                   48167:   enableval=$enable_hash; PHP_HASH=$enableval
                   48168: else
                   48169: 
                   48170:   PHP_HASH=yes
                   48171:   test "$PHP_ENABLE_ALL" && PHP_HASH=$PHP_ENABLE_ALL
                   48172: 
                   48173: fi
                   48174: 
                   48175: 
                   48176: 
                   48177: ext_output="yes, shared"
                   48178: ext_shared=yes
                   48179: case $PHP_HASH in
                   48180: shared,*)
                   48181:   PHP_HASH=`echo "$PHP_HASH"|$SED 's/^shared,//'`
                   48182:   ;;
                   48183: shared)
                   48184:   PHP_HASH=yes
                   48185:   ;;
                   48186: no)
                   48187:   ext_output=no
                   48188:   ext_shared=no
                   48189:   ;;
                   48190: *)
                   48191:   ext_output=yes
                   48192:   ext_shared=no
                   48193:   ;;
                   48194: esac
                   48195: 
                   48196: 
                   48197: 
                   48198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   48199: $as_echo "$ext_output" >&6; }
                   48200: 
                   48201: 
                   48202: 
                   48203: 
                   48204: if test "$PHP_MHASH" != "no"; then
                   48205:   if test "$PHP_HASH" = "no"; then
                   48206:     PHP_HASH="yes"
                   48207:   fi
                   48208: 
                   48209: 
                   48210: $as_echo "#define PHP_MHASH_BC 1" >>confdefs.h
                   48211: 
                   48212: fi
                   48213: 
                   48214: if test "$PHP_HASH" != "no"; then
                   48215: 
                   48216: $as_echo "#define HAVE_HASH_EXT 1" >>confdefs.h
                   48217: 
                   48218: 
                   48219:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
                   48220: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
                   48221: if ${ac_cv_c_bigendian_php+:} false; then :
                   48222:   $as_echo_n "(cached) " >&6
                   48223: else
                   48224: 
                   48225:   ac_cv_c_bigendian_php=unknown
                   48226:   if test "$cross_compiling" = yes; then :
                   48227:   ac_cv_c_bigendian_php=unknown
                   48228: else
                   48229:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   48230: /* end confdefs.h.  */
                   48231: 
                   48232: int main(void)
                   48233: {
                   48234:   short one = 1;
                   48235:   char *cp = (char *)&one;
                   48236: 
                   48237:   if (*cp == 0) {
                   48238:     return(0);
                   48239:   } else {
                   48240:     return(1);
                   48241:   }
                   48242: }
                   48243: 
                   48244: _ACEOF
                   48245: if ac_fn_c_try_run "$LINENO"; then :
                   48246:   ac_cv_c_bigendian_php=yes
                   48247: else
                   48248:   ac_cv_c_bigendian_php=no
                   48249: fi
                   48250: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   48251:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   48252: fi
                   48253: 
                   48254: 
                   48255: fi
                   48256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5
                   48257: $as_echo "$ac_cv_c_bigendian_php" >&6; }
                   48258:  if test $ac_cv_c_bigendian_php = yes; then
                   48259: 
                   48260: $as_echo "#define WORDS_BIGENDIAN /**/" >>confdefs.h
                   48261: 
                   48262:  fi
                   48263: 
                   48264: 
                   48265:   # The cast to long int works around a bug in the HP C Compiler
                   48266: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   48267: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   48268: # This bug is HP SR number 8606223364.
                   48269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
                   48270: $as_echo_n "checking size of short... " >&6; }
                   48271: if ${ac_cv_sizeof_short+:} false; then :
                   48272:   $as_echo_n "(cached) " >&6
                   48273: else
                   48274:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
                   48275: 
                   48276: else
                   48277:   if test "$ac_cv_type_short" = yes; then
                   48278:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   48279: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   48280: as_fn_error 77 "cannot compute sizeof (short)
                   48281: See \`config.log' for more details" "$LINENO" 5; }
                   48282:    else
                   48283:      ac_cv_sizeof_short=0
                   48284:    fi
                   48285: fi
                   48286: 
                   48287: fi
                   48288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
                   48289: $as_echo "$ac_cv_sizeof_short" >&6; }
                   48290: 
                   48291: 
                   48292: 
                   48293: cat >>confdefs.h <<_ACEOF
                   48294: #define SIZEOF_SHORT $ac_cv_sizeof_short
                   48295: _ACEOF
                   48296: 
                   48297: 
                   48298:   # The cast to long int works around a bug in the HP C Compiler
                   48299: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   48300: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   48301: # This bug is HP SR number 8606223364.
                   48302: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   48303: $as_echo_n "checking size of int... " >&6; }
                   48304: if ${ac_cv_sizeof_int+:} false; then :
                   48305:   $as_echo_n "(cached) " >&6
                   48306: else
                   48307:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
                   48308: 
                   48309: else
                   48310:   if test "$ac_cv_type_int" = yes; then
                   48311:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   48312: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   48313: as_fn_error 77 "cannot compute sizeof (int)
                   48314: See \`config.log' for more details" "$LINENO" 5; }
                   48315:    else
                   48316:      ac_cv_sizeof_int=0
                   48317:    fi
                   48318: fi
                   48319: 
                   48320: fi
                   48321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   48322: $as_echo "$ac_cv_sizeof_int" >&6; }
                   48323: 
                   48324: 
                   48325: 
                   48326: cat >>confdefs.h <<_ACEOF
                   48327: #define SIZEOF_INT $ac_cv_sizeof_int
                   48328: _ACEOF
                   48329: 
                   48330: 
                   48331:   # The cast to long int works around a bug in the HP C Compiler
                   48332: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   48333: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   48334: # This bug is HP SR number 8606223364.
                   48335: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
                   48336: $as_echo_n "checking size of long... " >&6; }
                   48337: if ${ac_cv_sizeof_long+:} false; then :
                   48338:   $as_echo_n "(cached) " >&6
                   48339: else
                   48340:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
                   48341: 
                   48342: else
                   48343:   if test "$ac_cv_type_long" = yes; then
                   48344:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   48345: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   48346: as_fn_error 77 "cannot compute sizeof (long)
                   48347: See \`config.log' for more details" "$LINENO" 5; }
                   48348:    else
                   48349:      ac_cv_sizeof_long=0
                   48350:    fi
                   48351: fi
                   48352: 
                   48353: fi
                   48354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
                   48355: $as_echo "$ac_cv_sizeof_long" >&6; }
                   48356: 
                   48357: 
                   48358: 
                   48359: cat >>confdefs.h <<_ACEOF
                   48360: #define SIZEOF_LONG $ac_cv_sizeof_long
                   48361: _ACEOF
                   48362: 
                   48363: 
                   48364:   # The cast to long int works around a bug in the HP C Compiler
                   48365: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   48366: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   48367: # This bug is HP SR number 8606223364.
                   48368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
                   48369: $as_echo_n "checking size of long long... " >&6; }
                   48370: if ${ac_cv_sizeof_long_long+:} false; then :
                   48371:   $as_echo_n "(cached) " >&6
                   48372: else
                   48373:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
                   48374: 
                   48375: else
                   48376:   if test "$ac_cv_type_long_long" = yes; then
                   48377:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   48378: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   48379: as_fn_error 77 "cannot compute sizeof (long long)
                   48380: See \`config.log' for more details" "$LINENO" 5; }
                   48381:    else
                   48382:      ac_cv_sizeof_long_long=0
                   48383:    fi
                   48384: fi
                   48385: 
                   48386: fi
                   48387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
                   48388: $as_echo "$ac_cv_sizeof_long_long" >&6; }
                   48389: 
                   48390: 
                   48391: 
                   48392: cat >>confdefs.h <<_ACEOF
                   48393: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
                   48394: _ACEOF
                   48395: 
                   48396: 
                   48397: 
                   48398:   EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \
                   48399:     hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c hash_adler32.c \
1.1.1.2 ! misho    48400:     hash_crc32.c hash_fnv.c hash_joaat.c"
1.1       misho    48401:   EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \
                   48402:     php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \
1.1.1.2 ! misho    48403:     php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h \
        !          48404:     php_hash_fnv.h php_hash_joaat.h php_hash_types.h"
1.1       misho    48405: 
                   48406: 
                   48407:   ext_builddir=ext/hash
                   48408:   ext_srcdir=$abs_srcdir/ext/hash
                   48409: 
                   48410:   ac_extra=
                   48411: 
                   48412:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   48413:     PHP_HASH_SHARED=no
                   48414: 
                   48415: 
                   48416:   case ext/hash in
                   48417:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   48418:   /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   48419:   *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   48420:   esac
                   48421: 
                   48422: 
                   48423: 
                   48424:   b_c_pre=$php_c_pre
                   48425:   b_cxx_pre=$php_cxx_pre
                   48426:   b_c_meta=$php_c_meta
                   48427:   b_cxx_meta=$php_cxx_meta
                   48428:   b_c_post=$php_c_post
                   48429:   b_cxx_post=$php_cxx_post
                   48430:   b_lo=$php_lo
                   48431: 
                   48432: 
                   48433:   old_IFS=$IFS
                   48434:   for ac_src in $EXT_HASH_SOURCES; do
                   48435: 
                   48436:       IFS=.
                   48437:       set $ac_src
                   48438:       ac_obj=$1
                   48439:       IFS=$old_IFS
                   48440: 
                   48441:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   48442: 
                   48443:       case $ac_src in
                   48444:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48445:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48446:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48447:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   48448:       esac
                   48449: 
                   48450:     cat >>Makefile.objects<<EOF
                   48451: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   48452:        $ac_comp
                   48453: EOF
                   48454:   done
                   48455: 
                   48456: 
                   48457:     EXT_STATIC="$EXT_STATIC hash"
                   48458:     if test "$ext_shared" != "nocli"; then
                   48459:       EXT_CLI_STATIC="$EXT_CLI_STATIC hash"
                   48460:     fi
                   48461:   else
                   48462:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   48463:       PHP_HASH_SHARED=yes
                   48464: 
                   48465:   case ext/hash in
                   48466:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   48467:   /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   48468:   *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   48469:   esac
                   48470: 
                   48471: 
                   48472: 
                   48473:   b_c_pre=$shared_c_pre
                   48474:   b_cxx_pre=$shared_cxx_pre
                   48475:   b_c_meta=$shared_c_meta
                   48476:   b_cxx_meta=$shared_cxx_meta
                   48477:   b_c_post=$shared_c_post
                   48478:   b_cxx_post=$shared_cxx_post
                   48479:   b_lo=$shared_lo
                   48480: 
                   48481: 
                   48482:   old_IFS=$IFS
                   48483:   for ac_src in $EXT_HASH_SOURCES; do
                   48484: 
                   48485:       IFS=.
                   48486:       set $ac_src
                   48487:       ac_obj=$1
                   48488:       IFS=$old_IFS
                   48489: 
                   48490:       shared_objects_hash="$shared_objects_hash $ac_bdir$ac_obj.lo"
                   48491: 
                   48492:       case $ac_src in
                   48493:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48494:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48495:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48496:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   48497:       esac
                   48498: 
                   48499:     cat >>Makefile.objects<<EOF
                   48500: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   48501:        $ac_comp
                   48502: EOF
                   48503:   done
                   48504: 
                   48505:       case $host_alias in
                   48506:         *netware*)
                   48507: 
                   48508:   install_modules="install-modules"
                   48509: 
                   48510:   case $host_alias in
                   48511:     *aix*)
                   48512:       suffix=so
                   48513:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phphash.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) $(PHPHASH_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phphash.so '$ext_builddir'/phphash.so'
                   48514:       ;;
                   48515:     *netware*)
                   48516:       suffix=nlm
                   48517:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) -L$(top_builddir)/netware -lphp5lib $(HASH_SHARED_LIBADD)'
                   48518:       ;;
                   48519:     *)
                   48520:       suffix=la
                   48521:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) $(PHPHASH_SHARED_LIBADD)'
                   48522:       ;;
                   48523:   esac
                   48524: 
                   48525:   if test "x" = "xyes"; then
                   48526:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phphash.$suffix"
                   48527:   else
                   48528:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phphash.$suffix"
                   48529:   fi
                   48530: 
                   48531:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_hash"
                   48532: 
                   48533:   cat >>Makefile.objects<<EOF
                   48534: \$(phplibdir)/phphash.$suffix: $ext_builddir/phphash.$suffix
                   48535:        \$(LIBTOOL) --mode=install cp $ext_builddir/phphash.$suffix \$(phplibdir)
                   48536: 
                   48537: $ext_builddir/phphash.$suffix: \$(shared_objects_hash) \$(PHPHASH_SHARED_DEPENDENCIES)
                   48538:        $link_cmd
                   48539: 
                   48540: EOF
                   48541: 
                   48542:           ;;
                   48543:         *)
                   48544: 
                   48545:   install_modules="install-modules"
                   48546: 
                   48547:   case $host_alias in
                   48548:     *aix*)
                   48549:       suffix=so
                   48550:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/hash.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) $(HASH_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/hash.so '$ext_builddir'/hash.so'
                   48551:       ;;
                   48552:     *netware*)
                   48553:       suffix=nlm
                   48554:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) -L$(top_builddir)/netware -lphp5lib $(H_SHARED_LIBADD)'
                   48555:       ;;
                   48556:     *)
                   48557:       suffix=la
                   48558:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) $(HASH_SHARED_LIBADD)'
                   48559:       ;;
                   48560:   esac
                   48561: 
                   48562:   if test "x" = "xyes"; then
                   48563:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/hash.$suffix"
                   48564:   else
                   48565:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/hash.$suffix"
                   48566:   fi
                   48567: 
                   48568:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_hash"
                   48569: 
                   48570:   cat >>Makefile.objects<<EOF
                   48571: \$(phplibdir)/hash.$suffix: $ext_builddir/hash.$suffix
                   48572:        \$(LIBTOOL) --mode=install cp $ext_builddir/hash.$suffix \$(phplibdir)
                   48573: 
                   48574: $ext_builddir/hash.$suffix: \$(shared_objects_hash) \$(HASH_SHARED_DEPENDENCIES)
                   48575:        $link_cmd
                   48576: 
                   48577: EOF
                   48578: 
                   48579:           ;;
                   48580:       esac
                   48581: 
                   48582: cat >>confdefs.h <<_ACEOF
                   48583: #define COMPILE_DL_HASH 1
                   48584: _ACEOF
                   48585: 
                   48586:     fi
                   48587:   fi
                   48588: 
                   48589:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   48590:     PHP_HASH_SHARED=no
                   48591: 
                   48592: 
                   48593:   case ext/hash in
                   48594:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   48595:   /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   48596:   *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   48597:   esac
                   48598: 
                   48599: 
                   48600: 
                   48601:   b_c_pre=$php_c_pre
                   48602:   b_cxx_pre=$php_cxx_pre
                   48603:   b_c_meta=$php_c_meta
                   48604:   b_cxx_meta=$php_cxx_meta
                   48605:   b_c_post=$php_c_post
                   48606:   b_cxx_post=$php_cxx_post
                   48607:   b_lo=$php_lo
                   48608: 
                   48609: 
                   48610:   old_IFS=$IFS
                   48611:   for ac_src in $EXT_HASH_SOURCES; do
                   48612: 
                   48613:       IFS=.
                   48614:       set $ac_src
                   48615:       ac_obj=$1
                   48616:       IFS=$old_IFS
                   48617: 
1.1.1.2 ! misho    48618:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    48619: 
                   48620:       case $ac_src in
                   48621:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48622:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48623:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48624:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   48625:       esac
                   48626: 
                   48627:     cat >>Makefile.objects<<EOF
                   48628: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   48629:        $ac_comp
                   48630: EOF
                   48631:   done
                   48632: 
                   48633: 
                   48634: 
                   48635: 
                   48636:   case ext/hash in
                   48637:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   48638:   /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   48639:   *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   48640:   esac
                   48641: 
                   48642: 
                   48643: 
                   48644:   b_c_pre=$php_c_pre
                   48645:   b_cxx_pre=$php_cxx_pre
                   48646:   b_c_meta=$php_c_meta
                   48647:   b_cxx_meta=$php_cxx_meta
                   48648:   b_c_post=$php_c_post
                   48649:   b_cxx_post=$php_cxx_post
                   48650:   b_lo=$php_lo
                   48651: 
                   48652: 
                   48653:   old_IFS=$IFS
                   48654:   for ac_src in $EXT_HASH_SOURCES; do
                   48655: 
                   48656:       IFS=.
                   48657:       set $ac_src
                   48658:       ac_obj=$1
                   48659:       IFS=$old_IFS
                   48660: 
1.1.1.2 ! misho    48661:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    48662: 
                   48663:       case $ac_src in
                   48664:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48665:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48666:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48667:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   48668:       esac
                   48669: 
                   48670:     cat >>Makefile.objects<<EOF
                   48671: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   48672:        $ac_comp
                   48673: EOF
                   48674:   done
                   48675: 
                   48676: 
                   48677: 
                   48678: 
                   48679:   case ext/hash in
                   48680:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   48681:   /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   48682:   *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   48683:   esac
                   48684: 
                   48685: 
                   48686: 
                   48687:   b_c_pre=$php_c_pre
                   48688:   b_cxx_pre=$php_cxx_pre
                   48689:   b_c_meta=$php_c_meta
                   48690:   b_cxx_meta=$php_cxx_meta
                   48691:   b_c_post=$php_c_post
                   48692:   b_cxx_post=$php_cxx_post
                   48693:   b_lo=$php_lo
                   48694: 
                   48695: 
                   48696:   old_IFS=$IFS
                   48697:   for ac_src in $EXT_HASH_SOURCES; do
                   48698: 
                   48699:       IFS=.
                   48700:       set $ac_src
                   48701:       ac_obj=$1
                   48702:       IFS=$old_IFS
                   48703: 
1.1.1.2 ! misho    48704:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    48705: 
                   48706:       case $ac_src in
                   48707:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48708:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48709:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   48710:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   48711:       esac
                   48712: 
                   48713:     cat >>Makefile.objects<<EOF
                   48714: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   48715:        $ac_comp
                   48716: EOF
                   48717:   done
                   48718: 
                   48719: 
                   48720:     EXT_CLI_STATIC="$EXT_CLI_STATIC hash"
                   48721:   fi
                   48722: 
                   48723: 
                   48724:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   48725: 
                   48726: 
                   48727: 
                   48728:   if test "$ext_builddir" = "."; then
                   48729:     PHP_PECL_EXTENSION=hash
                   48730: 
                   48731:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   48732: 
                   48733:   fi
                   48734: 
                   48735: 
                   48736: 
                   48737: 
                   48738:     header_path=ext/hash
                   48739:     for header_file in $EXT_HASH_HEADERS; do
                   48740:       hp_hf="$header_path/$header_file"
                   48741: 
                   48742: 
                   48743:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
                   48744: 
                   48745:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   48746:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   48747:     eval "INSTALLHEADERS$unique=set"
                   48748: 
                   48749:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
                   48750: 
                   48751:   fi
                   48752: 
                   48753:     done
                   48754: 
                   48755: 
                   48756: 
                   48757: fi
                   48758: 
                   48759: 
                   48760: 
                   48761: php_with_iconv=yes
                   48762: 
                   48763: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv support" >&5
                   48764: $as_echo_n "checking for iconv support... " >&6; }
                   48765: 
                   48766: # Check whether --with-iconv was given.
                   48767: if test "${with_iconv+set}" = set; then :
                   48768:   withval=$with_iconv; PHP_ICONV=$withval
                   48769: else
                   48770: 
                   48771:   PHP_ICONV=yes
                   48772:   test "$PHP_ENABLE_ALL" && PHP_ICONV=$PHP_ENABLE_ALL
                   48773: 
                   48774: fi
                   48775: 
                   48776: 
                   48777: 
                   48778: ext_output="yes, shared"
                   48779: ext_shared=yes
                   48780: case $PHP_ICONV in
                   48781: shared,*)
                   48782:   PHP_ICONV=`echo "$PHP_ICONV"|$SED 's/^shared,//'`
                   48783:   ;;
                   48784: shared)
                   48785:   PHP_ICONV=yes
                   48786:   ;;
                   48787: no)
                   48788:   ext_output=no
                   48789:   ext_shared=no
                   48790:   ;;
                   48791: *)
                   48792:   ext_output=yes
                   48793:   ext_shared=no
                   48794:   ;;
                   48795: esac
                   48796: 
                   48797: 
                   48798: 
                   48799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   48800: $as_echo "$ext_output" >&6; }
                   48801: 
                   48802: 
                   48803: 
                   48804: 
                   48805: if test "$PHP_ICONV" != "no"; then
                   48806: 
                   48807: 
                   48808:   found_iconv=no
                   48809:   unset ICONV_DIR
                   48810: 
                   48811:   # Create the directories for a VPATH build:
                   48812:   $php_shtool mkdir -p ext/iconv
                   48813: 
                   48814:   echo > ext/iconv/php_have_bsd_iconv.h
                   48815:   echo > ext/iconv/php_have_ibm_iconv.h
                   48816:   echo > ext/iconv/php_have_glibc_iconv.h
                   48817:   echo > ext/iconv/php_have_libiconv.h
                   48818:   echo > ext/iconv/php_have_iconv.h
                   48819:   echo > ext/iconv/php_php_iconv_impl.h
                   48820:   echo > ext/iconv/php_iconv_aliased_libiconv.h
                   48821:   echo > ext/iconv/php_php_iconv_h_path.h
                   48822:   echo > ext/iconv/php_iconv_supports_errno.h
                   48823: 
                   48824:         if test "$PHP_ICONV" = "yes"; then
                   48825:     ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
                   48826: if test "x$ac_cv_func_iconv" = xyes; then :
                   48827: 
                   48828:       found_iconv=yes
                   48829: 
                   48830: else
                   48831: 
                   48832:       ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv"
                   48833: if test "x$ac_cv_func_libiconv" = xyes; then :
                   48834: 
                   48835: 
                   48836:   echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
                   48837: 
                   48838: 
                   48839: $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
                   48840: 
                   48841:         found_iconv=yes
                   48842: 
                   48843: fi
                   48844: 
                   48845: 
                   48846: fi
                   48847: 
                   48848:   fi
                   48849: 
                   48850:         if test "$found_iconv" = "no"; then
                   48851: 
                   48852:     for i in $PHP_ICONV /usr/local /usr; do
                   48853:       if test -r $i/include/giconv.h; then
                   48854: 
                   48855: $as_echo "#define HAVE_GICONV_H 1" >>confdefs.h
                   48856: 
                   48857:         ICONV_DIR=$i
                   48858:         iconv_lib_name=giconv
                   48859:         break
                   48860:       elif test -r $i/include/iconv.h; then
                   48861:         ICONV_DIR=$i
                   48862:         iconv_lib_name=iconv
                   48863:         break
                   48864:       fi
                   48865:     done
                   48866: 
                   48867:     if test -z "$ICONV_DIR"; then
                   48868:       as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=<DIR>" "$LINENO" 5
                   48869:     fi
                   48870: 
                   48871:     if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a ||
                   48872:        test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME
                   48873:     then
                   48874: 
                   48875:   save_old_LDFLAGS=$LDFLAGS
                   48876:   ac_stuff="
                   48877:         -L$ICONV_DIR/$PHP_LIBDIR
                   48878:       "
                   48879: 
                   48880:   save_ext_shared=$ext_shared
                   48881:   ext_shared=yes
                   48882: 
                   48883:   for ac_i in $ac_stuff; do
                   48884:     case $ac_i in
                   48885:     -pthread)
                   48886:       if test "$ext_shared" = "yes"; then
                   48887:         LDFLAGS="$LDFLAGS -pthread"
                   48888:       else
                   48889: 
                   48890: 
                   48891:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   48892: 
                   48893:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   48894:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   48895:     eval "EXTRA_LDFLAGS$unique=set"
                   48896:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   48897:   fi
                   48898: 
                   48899:       fi
                   48900:     ;;
                   48901:     -l*)
                   48902:       ac_ii=`echo $ac_i|cut -c 3-`
                   48903: 
                   48904: 
                   48905:   case $ac_ii in
                   48906:   c|c_r|pthread*) ;;
                   48907:   *)
                   48908:     if test "$ext_shared" = "yes"; then
                   48909:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   48910:     else
                   48911: 
                   48912: 
                   48913:   case $ac_ii in
                   48914:   c|c_r|pthread*) ;;
                   48915:   *)
                   48916:       LIBS="$LIBS -l$ac_ii"
                   48917:    ;;
                   48918:   esac
                   48919: 
                   48920: 
                   48921:     fi
                   48922:    ;;
                   48923:   esac
                   48924: 
                   48925: 
                   48926:     ;;
                   48927:     -L*)
                   48928:       ac_ii=`echo $ac_i|cut -c 3-`
                   48929: 
                   48930:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   48931: 
                   48932:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   48933:     ai_p=$ac_ii
                   48934:   else
                   48935: 
                   48936:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   48937: 
                   48938:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   48939:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   48940:   fi
                   48941: 
                   48942: 
                   48943:       if test "$ext_shared" = "yes"; then
                   48944:         LDFLAGS="-L$ai_p $LDFLAGS"
                   48945:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   48946:       else
                   48947: 
                   48948: 
                   48949: 
                   48950:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   48951: 
                   48952:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   48953:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   48954:     eval "LIBPATH$unique=set"
                   48955: 
                   48956:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   48957:     LDFLAGS="$LDFLAGS -L$ai_p"
                   48958:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   48959: 
                   48960:   fi
                   48961: 
                   48962: 
                   48963:       fi
                   48964: 
                   48965:   fi
                   48966: 
                   48967:     ;;
                   48968:     esac
                   48969:   done
                   48970: 
                   48971:   as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh`
                   48972: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5
                   48973: $as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; }
                   48974: if eval \${$as_ac_Lib+:} false; then :
                   48975:   $as_echo_n "(cached) " >&6
                   48976: else
                   48977:   ac_check_lib_save_LIBS=$LIBS
                   48978: LIBS="-l$iconv_lib_name  $LIBS"
                   48979: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   48980: /* end confdefs.h.  */
                   48981: 
                   48982: /* Override any GCC internal prototype to avoid an error.
                   48983:    Use char because int might match the return type of a GCC
                   48984:    builtin and then its argument prototype would still apply.  */
                   48985: #ifdef __cplusplus
                   48986: extern "C"
                   48987: #endif
                   48988: char libiconv ();
                   48989: int
                   48990: main ()
                   48991: {
                   48992: return libiconv ();
                   48993:   ;
                   48994:   return 0;
                   48995: }
                   48996: _ACEOF
                   48997: if ac_fn_c_try_link "$LINENO"; then :
                   48998:   eval "$as_ac_Lib=yes"
                   48999: else
                   49000:   eval "$as_ac_Lib=no"
                   49001: fi
                   49002: rm -f core conftest.err conftest.$ac_objext \
                   49003:     conftest$ac_exeext conftest.$ac_ext
                   49004: LIBS=$ac_check_lib_save_LIBS
                   49005: fi
                   49006: eval ac_res=\$$as_ac_Lib
                   49007:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   49008: $as_echo "$ac_res" >&6; }
                   49009: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   49010: 
                   49011:     LDFLAGS=$save_old_LDFLAGS
                   49012:     ext_shared=$save_ext_shared
                   49013: 
                   49014:         found_iconv=yes
                   49015: 
                   49016:   echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
                   49017: 
                   49018: 
                   49019: $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
                   49020: 
                   49021: 
                   49022:   echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h
                   49023: 
                   49024: 
                   49025: $as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h
                   49026: 
                   49027: 
                   49028: 
                   49029: else
                   49030: 
                   49031:     LDFLAGS=$save_old_LDFLAGS
                   49032:     ext_shared=$save_ext_shared
                   49033:     unset ac_cv_lib_$iconv_lib_name_libiconv
                   49034: 
                   49035: 
                   49036:   save_old_LDFLAGS=$LDFLAGS
                   49037:   ac_stuff="
                   49038:           -L$ICONV_DIR/$PHP_LIBDIR
                   49039:         "
                   49040: 
                   49041:   save_ext_shared=$ext_shared
                   49042:   ext_shared=yes
                   49043: 
                   49044:   for ac_i in $ac_stuff; do
                   49045:     case $ac_i in
                   49046:     -pthread)
                   49047:       if test "$ext_shared" = "yes"; then
                   49048:         LDFLAGS="$LDFLAGS -pthread"
                   49049:       else
                   49050: 
                   49051: 
                   49052:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   49053: 
                   49054:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   49055:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   49056:     eval "EXTRA_LDFLAGS$unique=set"
                   49057:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   49058:   fi
                   49059: 
                   49060:       fi
                   49061:     ;;
                   49062:     -l*)
                   49063:       ac_ii=`echo $ac_i|cut -c 3-`
                   49064: 
                   49065: 
                   49066:   case $ac_ii in
                   49067:   c|c_r|pthread*) ;;
                   49068:   *)
                   49069:     if test "$ext_shared" = "yes"; then
                   49070:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   49071:     else
                   49072: 
                   49073: 
                   49074:   case $ac_ii in
                   49075:   c|c_r|pthread*) ;;
                   49076:   *)
                   49077:       LIBS="$LIBS -l$ac_ii"
                   49078:    ;;
                   49079:   esac
                   49080: 
                   49081: 
                   49082:     fi
                   49083:    ;;
                   49084:   esac
                   49085: 
                   49086: 
                   49087:     ;;
                   49088:     -L*)
                   49089:       ac_ii=`echo $ac_i|cut -c 3-`
                   49090: 
                   49091:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   49092: 
                   49093:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   49094:     ai_p=$ac_ii
                   49095:   else
                   49096: 
                   49097:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   49098: 
                   49099:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   49100:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   49101:   fi
                   49102: 
                   49103: 
                   49104:       if test "$ext_shared" = "yes"; then
                   49105:         LDFLAGS="-L$ai_p $LDFLAGS"
                   49106:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   49107:       else
                   49108: 
                   49109: 
                   49110: 
                   49111:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   49112: 
                   49113:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   49114:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   49115:     eval "LIBPATH$unique=set"
                   49116: 
                   49117:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   49118:     LDFLAGS="$LDFLAGS -L$ai_p"
                   49119:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   49120: 
                   49121:   fi
                   49122: 
                   49123: 
                   49124:       fi
                   49125: 
                   49126:   fi
                   49127: 
                   49128:     ;;
                   49129:     esac
                   49130:   done
                   49131: 
                   49132:   as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh`
                   49133: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5
                   49134: $as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; }
                   49135: if eval \${$as_ac_Lib+:} false; then :
                   49136:   $as_echo_n "(cached) " >&6
                   49137: else
                   49138:   ac_check_lib_save_LIBS=$LIBS
                   49139: LIBS="-l$iconv_lib_name  $LIBS"
                   49140: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   49141: /* end confdefs.h.  */
                   49142: 
                   49143: /* Override any GCC internal prototype to avoid an error.
                   49144:    Use char because int might match the return type of a GCC
                   49145:    builtin and then its argument prototype would still apply.  */
                   49146: #ifdef __cplusplus
                   49147: extern "C"
                   49148: #endif
                   49149: char iconv ();
                   49150: int
                   49151: main ()
                   49152: {
                   49153: return iconv ();
                   49154:   ;
                   49155:   return 0;
                   49156: }
                   49157: _ACEOF
                   49158: if ac_fn_c_try_link "$LINENO"; then :
                   49159:   eval "$as_ac_Lib=yes"
                   49160: else
                   49161:   eval "$as_ac_Lib=no"
                   49162: fi
                   49163: rm -f core conftest.err conftest.$ac_objext \
                   49164:     conftest$ac_exeext conftest.$ac_ext
                   49165: LIBS=$ac_check_lib_save_LIBS
                   49166: fi
                   49167: eval ac_res=\$$as_ac_Lib
                   49168:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   49169: $as_echo "$ac_res" >&6; }
                   49170: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   49171: 
                   49172:     LDFLAGS=$save_old_LDFLAGS
                   49173:     ext_shared=$save_ext_shared
                   49174: 
                   49175:           found_iconv=yes
                   49176: 
                   49177: 
                   49178: else
                   49179: 
                   49180:     LDFLAGS=$save_old_LDFLAGS
                   49181:     ext_shared=$save_ext_shared
                   49182:     unset ac_cv_lib_$iconv_lib_name_iconv
                   49183: 
                   49184: 
                   49185: fi
                   49186: 
                   49187: 
                   49188: 
                   49189: fi
                   49190: 
                   49191:     fi
                   49192:   fi
                   49193: 
                   49194:   if test "$found_iconv" = "yes"; then
                   49195: 
                   49196:   echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h
                   49197: 
                   49198: 
                   49199: $as_echo "#define HAVE_ICONV 1" >>confdefs.h
                   49200: 
                   49201:     if test -n "$ICONV_DIR"; then
                   49202: 
                   49203: 
                   49204:   if test "$ext_shared" = "yes"; then
                   49205:     ICONV_SHARED_LIBADD="-l$iconv_lib_name $ICONV_SHARED_LIBADD"
                   49206:     if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
                   49207: 
                   49208:   if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   49209: 
                   49210:   if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   49211:     ai_p=$ICONV_DIR/$PHP_LIBDIR
                   49212:   else
                   49213: 
                   49214:     ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   49215: 
                   49216:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   49217:     ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
                   49218:   fi
                   49219: 
                   49220: 
                   49221:       if test "$ext_shared" = "yes"; then
                   49222:         ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD"
                   49223:         test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD"
                   49224:       else
                   49225: 
                   49226: 
                   49227: 
                   49228:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   49229: 
                   49230:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   49231:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   49232:     eval "LIBPATH$unique=set"
                   49233: 
                   49234:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   49235:     LDFLAGS="$LDFLAGS -L$ai_p"
                   49236:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   49237: 
                   49238:   fi
                   49239: 
                   49240: 
                   49241:       fi
                   49242: 
                   49243:   fi
                   49244: 
                   49245:     fi
                   49246:   else
                   49247: 
                   49248: 
                   49249:   if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
                   49250: 
                   49251:   if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   49252: 
                   49253:   if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   49254:     ai_p=$ICONV_DIR/$PHP_LIBDIR
                   49255:   else
                   49256: 
                   49257:     ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   49258: 
                   49259:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   49260:     ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
                   49261:   fi
                   49262: 
                   49263: 
                   49264: 
                   49265: 
                   49266: 
                   49267:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   49268: 
                   49269:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   49270:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   49271:     eval "LIBPATH$unique=set"
                   49272: 
                   49273:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   49274:     LDFLAGS="$LDFLAGS -L$ai_p"
                   49275:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   49276: 
                   49277:   fi
                   49278: 
                   49279: 
                   49280: 
                   49281:   fi
                   49282: 
                   49283:   fi
                   49284: 
                   49285: 
                   49286:   case $iconv_lib_name in
                   49287:   c|c_r|pthread*) ;;
                   49288:   *)
                   49289:       LIBS="-l$iconv_lib_name $LIBS"
                   49290:    ;;
                   49291:   esac
                   49292: 
                   49293: 
                   49294: 
                   49295: 
                   49296:   fi
                   49297: 
                   49298: 
                   49299: 
                   49300:   if test "$ICONV_DIR/include" != "/usr/include"; then
                   49301: 
                   49302:   if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then
                   49303:     ai_p=$ICONV_DIR/include
                   49304:   else
                   49305: 
                   49306:     ep_dir="`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   49307: 
                   49308:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   49309:     ai_p="$ep_realdir/`basename \"$ICONV_DIR/include\"`"
                   49310:   fi
                   49311: 
                   49312: 
                   49313: 
                   49314:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   49315: 
                   49316:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   49317:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   49318:     eval "INCLUDEPATH$unique=set"
                   49319: 
                   49320:       if test ""; then
                   49321:         INCLUDES="-I$ai_p $INCLUDES"
                   49322:       else
                   49323:         INCLUDES="$INCLUDES -I$ai_p"
                   49324:       fi
                   49325: 
                   49326:   fi
                   49327: 
                   49328:   fi
                   49329: 
                   49330:     fi
                   49331: 
                   49332:     iconv_avail="yes";
                   49333: 
                   49334: else
                   49335:     iconv_avail="no";
                   49336: 
                   49337:   fi
                   49338: 
                   49339: 
                   49340:   if test "$iconv_avail" != "no"; then
                   49341:     if test -z "$ICONV_DIR"; then
                   49342:       for i in /usr/local /usr; do
                   49343:         if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then
                   49344:           PHP_ICONV_PREFIX="$i"
                   49345:           break
                   49346:         fi
                   49347:       done
                   49348:       if test -z "$PHP_ICONV_PREFIX"; then
                   49349:         PHP_ICONV_PREFIX="/usr"
                   49350:       fi
                   49351:     else
                   49352:       PHP_ICONV_PREFIX="$ICONV_DIR"
                   49353:     fi
                   49354: 
                   49355:     CFLAGS="-I$PHP_ICONV_PREFIX/include $CFLAGS"
                   49356:     LDFLAGS="-L$PHP_ICONV_PREFIX/$PHP_LIBDIR $LDFLAGS"
                   49357: 
                   49358:     if test -r "$PHP_ICONV_PREFIX/include/giconv.h"; then
                   49359:       PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/giconv.h"
                   49360:     else
                   49361:       PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h"
                   49362:     fi
                   49363: 
                   49364:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is glibc's" >&5
                   49365: $as_echo_n "checking if iconv is glibc's... " >&6; }
                   49366:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   49367: /* end confdefs.h.  */
                   49368: #include <gnu/libc-version.h>
                   49369: int
                   49370: main ()
                   49371: {
                   49372: gnu_get_libc_version();
                   49373:   ;
                   49374:   return 0;
                   49375: }
                   49376: _ACEOF
                   49377: if ac_fn_c_try_link "$LINENO"; then :
                   49378: 
                   49379:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   49380: $as_echo "yes" >&6; }
                   49381:       iconv_impl_name="glibc"
                   49382: 
                   49383: else
                   49384: 
                   49385:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   49386: $as_echo "no" >&6; }
                   49387: 
                   49388: fi
                   49389: rm -f core conftest.err conftest.$ac_objext \
                   49390:     conftest$ac_exeext conftest.$ac_ext
                   49391: 
                   49392:     if test -z "$iconv_impl_name"; then
                   49393:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using GNU libiconv" >&5
                   49394: $as_echo_n "checking if using GNU libiconv... " >&6; }
                   49395:       php_iconv_old_ld="$LDFLAGS"
                   49396:       LDFLAGS="-liconv $LDFLAGS"
                   49397:       if test "$cross_compiling" = yes; then :
                   49398: 
                   49399:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   49400: $as_echo "no" >&6; }
                   49401:         LDFLAGS="$php_iconv_old_ld"
                   49402: 
                   49403: else
                   49404:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   49405: /* end confdefs.h.  */
                   49406: 
                   49407: #include <$PHP_ICONV_H_PATH>
                   49408: int main() {
                   49409:        printf("%d", _libiconv_version);
                   49410:        return 0;
                   49411: }
                   49412: 
                   49413: _ACEOF
                   49414: if ac_fn_c_try_run "$LINENO"; then :
                   49415: 
                   49416:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   49417: $as_echo "yes" >&6; }
                   49418:         iconv_impl_name="gnu_libiconv"
                   49419: 
                   49420: else
                   49421: 
                   49422:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   49423: $as_echo "no" >&6; }
                   49424:         LDFLAGS="$php_iconv_old_ld"
                   49425: 
                   49426: fi
                   49427: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   49428:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   49429: fi
                   49430: 
                   49431:     fi
                   49432: 
                   49433:     if test -z "$iconv_impl_name"; then
                   49434:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is Konstantin Chuguev's" >&5
                   49435: $as_echo_n "checking if iconv is Konstantin Chuguev's... " >&6; }
                   49436:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   49437: /* end confdefs.h.  */
                   49438: #include <iconv.h>
                   49439: int
                   49440: main ()
                   49441: {
                   49442: iconv_ccs_init(NULL, NULL);
                   49443:   ;
                   49444:   return 0;
                   49445: }
                   49446: _ACEOF
                   49447: if ac_fn_c_try_link "$LINENO"; then :
                   49448: 
                   49449:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   49450: $as_echo "yes" >&6; }
                   49451:         iconv_impl_name="bsd"
                   49452: 
                   49453: else
                   49454: 
                   49455:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   49456: $as_echo "no" >&6; }
                   49457: 
                   49458: fi
                   49459: rm -f core conftest.err conftest.$ac_objext \
                   49460:     conftest$ac_exeext conftest.$ac_ext
                   49461:     fi
                   49462: 
                   49463:     if test -z "$iconv_impl_name"; then
                   49464:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using IBM iconv" >&5
                   49465: $as_echo_n "checking if using IBM iconv... " >&6; }
                   49466:       php_iconv_old_ld="$LDFLAGS"
                   49467:       LDFLAGS="-liconv $LDFLAGS"
                   49468:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   49469: /* end confdefs.h.  */
                   49470: #include <iconv.h>
                   49471: int
                   49472: main ()
                   49473: {
                   49474: cstoccsid("");
                   49475:   ;
                   49476:   return 0;
                   49477: }
                   49478: _ACEOF
                   49479: if ac_fn_c_try_link "$LINENO"; then :
                   49480: 
                   49481:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   49482: $as_echo "yes" >&6; }
                   49483:         iconv_impl_name="ibm"
                   49484: 
                   49485: else
                   49486: 
                   49487:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   49488: $as_echo "no" >&6; }
                   49489:         LDFLAGS="$php_iconv_old_ld"
                   49490: 
                   49491: fi
                   49492: rm -f core conftest.err conftest.$ac_objext \
                   49493:     conftest$ac_exeext conftest.$ac_ext
                   49494:     fi
                   49495: 
                   49496:     echo > ext/iconv/php_have_bsd_iconv.h
                   49497:     echo > ext/iconv/php_have_glibc_iconv.h
                   49498:     echo > ext/iconv/php_have_libiconv.h
                   49499:     echo > ext/iconv/php_have_ibm_iconv.h
                   49500: 
                   49501:     case "$iconv_impl_name" in
                   49502:       gnu_libiconv )
                   49503: 
                   49504:   echo "#define PHP_ICONV_IMPL \"libiconv\"" > ext/iconv/php_php_iconv_impl.h
                   49505: 
                   49506: 
                   49507: $as_echo "#define PHP_ICONV_IMPL \"libiconv\"" >>confdefs.h
                   49508: 
                   49509: 
                   49510:   echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
                   49511: 
                   49512: 
                   49513: 
                   49514:   if test "$ext_shared" = "yes"; then
                   49515:     ICONV_SHARED_LIBADD="-liconv $ICONV_SHARED_LIBADD"
                   49516:     if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then
                   49517: 
                   49518:   if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then
                   49519: 
                   49520:   if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then
                   49521:     ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR"
                   49522:   else
                   49523: 
                   49524:     ep_dir="`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'`"
                   49525: 
                   49526:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   49527:     ai_p="$ep_realdir/`basename \""$PHP_ICONV_PREFIX/$PHP_LIBDIR"\"`"
                   49528:   fi
                   49529: 
                   49530: 
                   49531:       if test "$ext_shared" = "yes"; then
                   49532:         ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD"
                   49533:         test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD"
                   49534:       else
                   49535: 
                   49536: 
                   49537: 
                   49538:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   49539: 
                   49540:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   49541:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   49542:     eval "LIBPATH$unique=set"
                   49543: 
                   49544:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   49545:     LDFLAGS="$LDFLAGS -L$ai_p"
                   49546:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   49547: 
                   49548:   fi
                   49549: 
                   49550: 
                   49551:       fi
                   49552: 
                   49553:   fi
                   49554: 
                   49555:     fi
                   49556:   else
                   49557: 
                   49558: 
                   49559:   if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then
                   49560: 
                   49561:   if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then
                   49562: 
                   49563:   if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then
                   49564:     ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR"
                   49565:   else
                   49566: 
                   49567:     ep_dir="`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'`"
                   49568: 
                   49569:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   49570:     ai_p="$ep_realdir/`basename \""$PHP_ICONV_PREFIX/$PHP_LIBDIR"\"`"
                   49571:   fi
                   49572: 
                   49573: 
                   49574: 
                   49575: 
                   49576: 
                   49577:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   49578: 
                   49579:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   49580:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   49581:     eval "LIBPATH$unique=set"
                   49582: 
                   49583:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   49584:     LDFLAGS="$LDFLAGS -L$ai_p"
                   49585:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   49586: 
                   49587:   fi
                   49588: 
                   49589: 
                   49590: 
                   49591:   fi
                   49592: 
                   49593:   fi
                   49594: 
                   49595: 
                   49596:   case iconv in
                   49597:   c|c_r|pthread*) ;;
                   49598:   *)
                   49599:       LIBS="-liconv $LIBS"
                   49600:    ;;
                   49601:   esac
                   49602: 
                   49603: 
                   49604: 
                   49605: 
                   49606:   fi
                   49607: 
                   49608: 
                   49609:         ;;
                   49610: 
                   49611:       bsd )
                   49612: 
                   49613:   echo "#define HAVE_BSD_ICONV 1" > ext/iconv/php_have_bsd_iconv.h
                   49614: 
                   49615: 
                   49616: $as_echo "#define HAVE_BSD_ICONV 1" >>confdefs.h
                   49617: 
                   49618: 
                   49619:   echo "#define PHP_ICONV_IMPL \"BSD iconv\"" > ext/iconv/php_php_iconv_impl.h
                   49620: 
                   49621: 
                   49622: $as_echo "#define PHP_ICONV_IMPL \"BSD iconv\"" >>confdefs.h
                   49623: 
                   49624:         ;;
                   49625: 
                   49626:       glibc )
                   49627: 
                   49628:   echo "#define HAVE_GLIBC_ICONV 1" > ext/iconv/php_have_glibc_iconv.h
                   49629: 
                   49630: 
                   49631: $as_echo "#define HAVE_GLIBC_ICONV 1" >>confdefs.h
                   49632: 
                   49633: 
                   49634:   echo "#define PHP_ICONV_IMPL \"glibc\"" > ext/iconv/php_php_iconv_impl.h
                   49635: 
                   49636: 
                   49637: $as_echo "#define PHP_ICONV_IMPL \"glibc\"" >>confdefs.h
                   49638: 
                   49639:         ;;
                   49640:       ibm )
                   49641: 
                   49642:   echo "#define HAVE_IBM_ICONV 1" > ext/iconv/php_have_ibm_iconv.h
                   49643: 
                   49644: 
                   49645: $as_echo "#define HAVE_IBM_ICONV 1" >>confdefs.h
                   49646: 
                   49647: 
                   49648:   echo "#define PHP_ICONV_IMPL \"IBM iconv\"" > ext/iconv/php_php_iconv_impl.h
                   49649: 
                   49650: 
                   49651: $as_echo "#define PHP_ICONV_IMPL \"IBM iconv\"" >>confdefs.h
                   49652: 
                   49653:         ;;
                   49654:     esac
                   49655: 
                   49656:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv supports errno" >&5
                   49657: $as_echo_n "checking if iconv supports errno... " >&6; }
                   49658:     if test "$cross_compiling" = yes; then :
                   49659: 
                   49660:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   49661: $as_echo "no" >&6; }
                   49662: 
                   49663:   echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h
                   49664: 
                   49665: 
                   49666: $as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h
                   49667: 
                   49668: 
                   49669: else
                   49670:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   49671: /* end confdefs.h.  */
                   49672: 
                   49673: #include <$PHP_ICONV_H_PATH>
                   49674: #include <errno.h>
                   49675: 
                   49676: int main() {
                   49677:   iconv_t cd;
                   49678:   cd = iconv_open( "*blahblah*", "*blahblah*" );
                   49679:   if (cd == (iconv_t)(-1)) {
                   49680:     if (errno == EINVAL) {
                   49681:       return 0;
                   49682:        } else {
                   49683:       return 1;
                   49684:     }
                   49685:   }
                   49686:   iconv_close( cd );
                   49687:   return 2;
                   49688: }
                   49689: 
                   49690: _ACEOF
                   49691: if ac_fn_c_try_run "$LINENO"; then :
                   49692: 
                   49693:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   49694: $as_echo "yes" >&6; }
                   49695: 
                   49696:   echo "#define ICONV_SUPPORTS_ERRNO 1" > ext/iconv/php_iconv_supports_errno.h
                   49697: 
                   49698: 
                   49699: $as_echo "#define ICONV_SUPPORTS_ERRNO 1" >>confdefs.h
                   49700: 
                   49701: 
                   49702: else
                   49703: 
                   49704:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   49705: $as_echo "no" >&6; }
                   49706: 
                   49707:   echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h
                   49708: 
                   49709: 
                   49710: $as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h
                   49711: 
                   49712: 
                   49713: fi
                   49714: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   49715:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   49716: fi
                   49717: 
                   49718: 
                   49719:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your cpp allows macro usage in include lines" >&5
                   49720: $as_echo_n "checking if your cpp allows macro usage in include lines... " >&6; }
                   49721:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   49722: /* end confdefs.h.  */
                   49723: 
                   49724: #define FOO <$PHP_ICONV_H_PATH>
                   49725: #include FOO
                   49726: 
                   49727: int
                   49728: main ()
                   49729: {
                   49730: 
                   49731:   ;
                   49732:   return 0;
                   49733: }
                   49734: _ACEOF
                   49735: if ac_fn_c_try_compile "$LINENO"; then :
                   49736: 
                   49737:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   49738: $as_echo "yes" >&6; }
                   49739: 
                   49740:   echo "#define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>" > ext/iconv/php_php_iconv_h_path.h
                   49741: 
                   49742: 
                   49743: cat >>confdefs.h <<_ACEOF
                   49744: #define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>
                   49745: _ACEOF
                   49746: 
                   49747: 
                   49748: else
                   49749: 
                   49750:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   49751: $as_echo "no" >&6; }
                   49752: 
                   49753: fi
                   49754: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   49755: 
                   49756: 
                   49757:   ext_builddir=ext/iconv
                   49758:   ext_srcdir=$abs_srcdir/ext/iconv
                   49759: 
                   49760:   ac_extra=`echo "-I\"$PHP_ICONV_PREFIX/include\""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
                   49761: 
                   49762:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   49763:     PHP_ICONV_SHARED=no
                   49764: 
                   49765: 
                   49766:   case ext/iconv in
                   49767:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   49768:   /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   49769:   *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   49770:   esac
                   49771: 
                   49772: 
                   49773: 
                   49774:   b_c_pre=$php_c_pre
                   49775:   b_cxx_pre=$php_cxx_pre
                   49776:   b_c_meta=$php_c_meta
                   49777:   b_cxx_meta=$php_cxx_meta
                   49778:   b_c_post=$php_c_post
                   49779:   b_cxx_post=$php_cxx_post
                   49780:   b_lo=$php_lo
                   49781: 
                   49782: 
                   49783:   old_IFS=$IFS
                   49784:   for ac_src in iconv.c; do
                   49785: 
                   49786:       IFS=.
                   49787:       set $ac_src
                   49788:       ac_obj=$1
                   49789:       IFS=$old_IFS
                   49790: 
                   49791:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   49792: 
                   49793:       case $ac_src in
                   49794:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   49795:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   49796:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   49797:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   49798:       esac
                   49799: 
                   49800:     cat >>Makefile.objects<<EOF
                   49801: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   49802:        $ac_comp
                   49803: EOF
                   49804:   done
                   49805: 
                   49806: 
                   49807:     EXT_STATIC="$EXT_STATIC iconv"
                   49808:     if test "$ext_shared" != "nocli"; then
                   49809:       EXT_CLI_STATIC="$EXT_CLI_STATIC iconv"
                   49810:     fi
                   49811:   else
                   49812:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   49813:       PHP_ICONV_SHARED=yes
                   49814: 
                   49815:   case ext/iconv in
                   49816:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   49817:   /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   49818:   *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   49819:   esac
                   49820: 
                   49821: 
                   49822: 
                   49823:   b_c_pre=$shared_c_pre
                   49824:   b_cxx_pre=$shared_cxx_pre
                   49825:   b_c_meta=$shared_c_meta
                   49826:   b_cxx_meta=$shared_cxx_meta
                   49827:   b_c_post=$shared_c_post
                   49828:   b_cxx_post=$shared_cxx_post
                   49829:   b_lo=$shared_lo
                   49830: 
                   49831: 
                   49832:   old_IFS=$IFS
                   49833:   for ac_src in iconv.c; do
                   49834: 
                   49835:       IFS=.
                   49836:       set $ac_src
                   49837:       ac_obj=$1
                   49838:       IFS=$old_IFS
                   49839: 
                   49840:       shared_objects_iconv="$shared_objects_iconv $ac_bdir$ac_obj.lo"
                   49841: 
                   49842:       case $ac_src in
                   49843:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   49844:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   49845:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   49846:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   49847:       esac
                   49848: 
                   49849:     cat >>Makefile.objects<<EOF
                   49850: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   49851:        $ac_comp
                   49852: EOF
                   49853:   done
                   49854: 
                   49855:       case $host_alias in
                   49856:         *netware*)
                   49857: 
                   49858:   install_modules="install-modules"
                   49859: 
                   49860:   case $host_alias in
                   49861:     *aix*)
                   49862:       suffix=so
                   49863:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpiconv.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) $(PHPICONV_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpiconv.so '$ext_builddir'/phpiconv.so'
                   49864:       ;;
                   49865:     *netware*)
                   49866:       suffix=nlm
                   49867:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) -L$(top_builddir)/netware -lphp5lib $(ICONV_SHARED_LIBADD)'
                   49868:       ;;
                   49869:     *)
                   49870:       suffix=la
                   49871:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) $(PHPICONV_SHARED_LIBADD)'
                   49872:       ;;
                   49873:   esac
                   49874: 
                   49875:   if test "x" = "xyes"; then
                   49876:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpiconv.$suffix"
                   49877:   else
                   49878:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpiconv.$suffix"
                   49879:   fi
                   49880: 
                   49881:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_iconv"
                   49882: 
                   49883:   cat >>Makefile.objects<<EOF
                   49884: \$(phplibdir)/phpiconv.$suffix: $ext_builddir/phpiconv.$suffix
                   49885:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpiconv.$suffix \$(phplibdir)
                   49886: 
                   49887: $ext_builddir/phpiconv.$suffix: \$(shared_objects_iconv) \$(PHPICONV_SHARED_DEPENDENCIES)
                   49888:        $link_cmd
                   49889: 
                   49890: EOF
                   49891: 
                   49892:           ;;
                   49893:         *)
                   49894: 
                   49895:   install_modules="install-modules"
                   49896: 
                   49897:   case $host_alias in
                   49898:     *aix*)
                   49899:       suffix=so
                   49900:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/iconv.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) $(ICONV_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/iconv.so '$ext_builddir'/iconv.so'
                   49901:       ;;
                   49902:     *netware*)
                   49903:       suffix=nlm
                   49904:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) -L$(top_builddir)/netware -lphp5lib $(NV_SHARED_LIBADD)'
                   49905:       ;;
                   49906:     *)
                   49907:       suffix=la
                   49908:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) $(ICONV_SHARED_LIBADD)'
                   49909:       ;;
                   49910:   esac
                   49911: 
                   49912:   if test "x" = "xyes"; then
                   49913:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/iconv.$suffix"
                   49914:   else
                   49915:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/iconv.$suffix"
                   49916:   fi
                   49917: 
                   49918:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_iconv"
                   49919: 
                   49920:   cat >>Makefile.objects<<EOF
                   49921: \$(phplibdir)/iconv.$suffix: $ext_builddir/iconv.$suffix
                   49922:        \$(LIBTOOL) --mode=install cp $ext_builddir/iconv.$suffix \$(phplibdir)
                   49923: 
                   49924: $ext_builddir/iconv.$suffix: \$(shared_objects_iconv) \$(ICONV_SHARED_DEPENDENCIES)
                   49925:        $link_cmd
                   49926: 
                   49927: EOF
                   49928: 
                   49929:           ;;
                   49930:       esac
                   49931: 
                   49932: cat >>confdefs.h <<_ACEOF
                   49933: #define COMPILE_DL_ICONV 1
                   49934: _ACEOF
                   49935: 
                   49936:     fi
                   49937:   fi
                   49938: 
                   49939:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   49940:     PHP_ICONV_SHARED=no
                   49941: 
                   49942: 
                   49943:   case ext/iconv in
                   49944:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   49945:   /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   49946:   *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   49947:   esac
                   49948: 
                   49949: 
                   49950: 
                   49951:   b_c_pre=$php_c_pre
                   49952:   b_cxx_pre=$php_cxx_pre
                   49953:   b_c_meta=$php_c_meta
                   49954:   b_cxx_meta=$php_cxx_meta
                   49955:   b_c_post=$php_c_post
                   49956:   b_cxx_post=$php_cxx_post
                   49957:   b_lo=$php_lo
                   49958: 
                   49959: 
                   49960:   old_IFS=$IFS
                   49961:   for ac_src in iconv.c; do
                   49962: 
                   49963:       IFS=.
                   49964:       set $ac_src
                   49965:       ac_obj=$1
                   49966:       IFS=$old_IFS
                   49967: 
1.1.1.2 ! misho    49968:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    49969: 
                   49970:       case $ac_src in
                   49971:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   49972:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   49973:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   49974:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   49975:       esac
                   49976: 
                   49977:     cat >>Makefile.objects<<EOF
                   49978: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   49979:        $ac_comp
                   49980: EOF
                   49981:   done
                   49982: 
                   49983: 
                   49984: 
                   49985: 
                   49986:   case ext/iconv in
                   49987:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   49988:   /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   49989:   *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   49990:   esac
                   49991: 
                   49992: 
                   49993: 
                   49994:   b_c_pre=$php_c_pre
                   49995:   b_cxx_pre=$php_cxx_pre
                   49996:   b_c_meta=$php_c_meta
                   49997:   b_cxx_meta=$php_cxx_meta
                   49998:   b_c_post=$php_c_post
                   49999:   b_cxx_post=$php_cxx_post
                   50000:   b_lo=$php_lo
                   50001: 
                   50002: 
                   50003:   old_IFS=$IFS
                   50004:   for ac_src in iconv.c; do
                   50005: 
                   50006:       IFS=.
                   50007:       set $ac_src
                   50008:       ac_obj=$1
                   50009:       IFS=$old_IFS
                   50010: 
1.1.1.2 ! misho    50011:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    50012: 
                   50013:       case $ac_src in
                   50014:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50015:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50016:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50017:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   50018:       esac
                   50019: 
                   50020:     cat >>Makefile.objects<<EOF
                   50021: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   50022:        $ac_comp
                   50023: EOF
                   50024:   done
                   50025: 
                   50026: 
                   50027: 
                   50028: 
                   50029:   case ext/iconv in
                   50030:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   50031:   /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   50032:   *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   50033:   esac
                   50034: 
                   50035: 
                   50036: 
                   50037:   b_c_pre=$php_c_pre
                   50038:   b_cxx_pre=$php_cxx_pre
                   50039:   b_c_meta=$php_c_meta
                   50040:   b_cxx_meta=$php_cxx_meta
                   50041:   b_c_post=$php_c_post
                   50042:   b_cxx_post=$php_cxx_post
                   50043:   b_lo=$php_lo
                   50044: 
                   50045: 
                   50046:   old_IFS=$IFS
                   50047:   for ac_src in iconv.c; do
                   50048: 
                   50049:       IFS=.
                   50050:       set $ac_src
                   50051:       ac_obj=$1
                   50052:       IFS=$old_IFS
                   50053: 
1.1.1.2 ! misho    50054:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    50055: 
                   50056:       case $ac_src in
                   50057:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50058:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50059:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50060:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   50061:       esac
                   50062: 
                   50063:     cat >>Makefile.objects<<EOF
                   50064: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   50065:        $ac_comp
                   50066: EOF
                   50067:   done
                   50068: 
                   50069: 
                   50070:     EXT_CLI_STATIC="$EXT_CLI_STATIC iconv"
                   50071:   fi
                   50072: 
                   50073: 
                   50074:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   50075: 
                   50076: 
                   50077: 
                   50078:   if test "$ext_builddir" = "."; then
                   50079:     PHP_PECL_EXTENSION=iconv
                   50080: 
                   50081:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   50082: 
                   50083:   fi
                   50084: 
                   50085: 
                   50086:   PHP_VAR_SUBST="$PHP_VAR_SUBST ICONV_SHARED_LIBADD"
                   50087: 
                   50088: 
                   50089: 
                   50090:     for header_file in ext/iconv/; do
                   50091: 
                   50092: 
                   50093:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
                   50094: 
                   50095:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   50096:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   50097:     eval "INSTALLHEADERS$unique=set"
                   50098: 
                   50099:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
                   50100: 
                   50101:   fi
                   50102: 
                   50103:     done
                   50104: 
                   50105: 
                   50106:   else
                   50107:     as_fn_error $? "Please reinstall the iconv library." "$LINENO" 5
                   50108:   fi
                   50109: fi
                   50110: 
                   50111: 
                   50112: 
                   50113: 
                   50114: 
                   50115: 
                   50116: 
                   50117: 
                   50118: 
                   50119: 
                   50120: 
                   50121: 
                   50122: 
                   50123: 
                   50124: php_with_imap=no
                   50125: 
                   50126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP support" >&5
                   50127: $as_echo_n "checking for IMAP support... " >&6; }
                   50128: 
                   50129: # Check whether --with-imap was given.
                   50130: if test "${with_imap+set}" = set; then :
                   50131:   withval=$with_imap; PHP_IMAP=$withval
                   50132: else
                   50133: 
                   50134:   PHP_IMAP=no
                   50135:   test "$PHP_ENABLE_ALL" && PHP_IMAP=$PHP_ENABLE_ALL
                   50136: 
                   50137: fi
                   50138: 
                   50139: 
                   50140: 
                   50141: ext_output="yes, shared"
                   50142: ext_shared=yes
                   50143: case $PHP_IMAP in
                   50144: shared,*)
                   50145:   PHP_IMAP=`echo "$PHP_IMAP"|$SED 's/^shared,//'`
                   50146:   ;;
                   50147: shared)
                   50148:   PHP_IMAP=yes
                   50149:   ;;
                   50150: no)
                   50151:   ext_output=no
                   50152:   ext_shared=no
                   50153:   ;;
                   50154: *)
                   50155:   ext_output=yes
                   50156:   ext_shared=no
                   50157:   ;;
                   50158: esac
                   50159: 
                   50160: 
                   50161: 
                   50162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   50163: $as_echo "$ext_output" >&6; }
                   50164: 
                   50165: 
                   50166: 
                   50167: 
                   50168: 
                   50169: php_with_kerberos=no
                   50170: 
                   50171: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP Kerberos support" >&5
                   50172: $as_echo_n "checking for IMAP Kerberos support... " >&6; }
                   50173: 
                   50174: # Check whether --with-kerberos was given.
                   50175: if test "${with_kerberos+set}" = set; then :
                   50176:   withval=$with_kerberos; PHP_KERBEROS=$withval
                   50177: else
                   50178: 
                   50179:   PHP_KERBEROS=no
                   50180: 
                   50181: 
                   50182: fi
                   50183: 
                   50184: 
                   50185: ext_output=$PHP_KERBEROS
                   50186: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   50187: $as_echo "$ext_output" >&6; }
                   50188: 
                   50189: 
                   50190: 
                   50191: 
                   50192: 
                   50193: php_with_imap_ssl=no
                   50194: 
                   50195: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP SSL support" >&5
                   50196: $as_echo_n "checking for IMAP SSL support... " >&6; }
                   50197: 
                   50198: # Check whether --with-imap-ssl was given.
                   50199: if test "${with_imap_ssl+set}" = set; then :
                   50200:   withval=$with_imap_ssl; PHP_IMAP_SSL=$withval
                   50201: else
                   50202: 
                   50203:   PHP_IMAP_SSL=no
                   50204: 
                   50205: 
                   50206: fi
                   50207: 
                   50208: 
                   50209: ext_output=$PHP_IMAP_SSL
                   50210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   50211: $as_echo "$ext_output" >&6; }
                   50212: 
                   50213: 
                   50214: 
                   50215: 
                   50216: 
                   50217: if test "$PHP_IMAP" != "no"; then
                   50218: 
                   50219:   PHP_VAR_SUBST="$PHP_VAR_SUBST IMAP_SHARED_LIBADD"
                   50220: 
                   50221: 
                   50222:   ext_builddir=ext/imap
                   50223:   ext_srcdir=$abs_srcdir/ext/imap
                   50224: 
                   50225:   ac_extra=
                   50226: 
                   50227:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   50228:     PHP_IMAP_SHARED=no
                   50229: 
                   50230: 
                   50231:   case ext/imap in
                   50232:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   50233:   /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   50234:   *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   50235:   esac
                   50236: 
                   50237: 
                   50238: 
                   50239:   b_c_pre=$php_c_pre
                   50240:   b_cxx_pre=$php_cxx_pre
                   50241:   b_c_meta=$php_c_meta
                   50242:   b_cxx_meta=$php_cxx_meta
                   50243:   b_c_post=$php_c_post
                   50244:   b_cxx_post=$php_cxx_post
                   50245:   b_lo=$php_lo
                   50246: 
                   50247: 
                   50248:   old_IFS=$IFS
                   50249:   for ac_src in php_imap.c; do
                   50250: 
                   50251:       IFS=.
                   50252:       set $ac_src
                   50253:       ac_obj=$1
                   50254:       IFS=$old_IFS
                   50255: 
                   50256:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   50257: 
                   50258:       case $ac_src in
                   50259:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50260:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50261:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50262:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   50263:       esac
                   50264: 
                   50265:     cat >>Makefile.objects<<EOF
                   50266: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   50267:        $ac_comp
                   50268: EOF
                   50269:   done
                   50270: 
                   50271: 
                   50272:     EXT_STATIC="$EXT_STATIC imap"
                   50273:     if test "$ext_shared" != "nocli"; then
                   50274:       EXT_CLI_STATIC="$EXT_CLI_STATIC imap"
                   50275:     fi
                   50276:   else
                   50277:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   50278:       PHP_IMAP_SHARED=yes
                   50279: 
                   50280:   case ext/imap in
                   50281:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   50282:   /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   50283:   *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   50284:   esac
                   50285: 
                   50286: 
                   50287: 
                   50288:   b_c_pre=$shared_c_pre
                   50289:   b_cxx_pre=$shared_cxx_pre
                   50290:   b_c_meta=$shared_c_meta
                   50291:   b_cxx_meta=$shared_cxx_meta
                   50292:   b_c_post=$shared_c_post
                   50293:   b_cxx_post=$shared_cxx_post
                   50294:   b_lo=$shared_lo
                   50295: 
                   50296: 
                   50297:   old_IFS=$IFS
                   50298:   for ac_src in php_imap.c; do
                   50299: 
                   50300:       IFS=.
                   50301:       set $ac_src
                   50302:       ac_obj=$1
                   50303:       IFS=$old_IFS
                   50304: 
                   50305:       shared_objects_imap="$shared_objects_imap $ac_bdir$ac_obj.lo"
                   50306: 
                   50307:       case $ac_src in
                   50308:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50309:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50310:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50311:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   50312:       esac
                   50313: 
                   50314:     cat >>Makefile.objects<<EOF
                   50315: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   50316:        $ac_comp
                   50317: EOF
                   50318:   done
                   50319: 
                   50320:       case $host_alias in
                   50321:         *netware*)
                   50322: 
                   50323:   install_modules="install-modules"
                   50324: 
                   50325:   case $host_alias in
                   50326:     *aix*)
                   50327:       suffix=so
                   50328:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpimap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) $(PHPIMAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpimap.so '$ext_builddir'/phpimap.so'
                   50329:       ;;
                   50330:     *netware*)
                   50331:       suffix=nlm
                   50332:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) -L$(top_builddir)/netware -lphp5lib $(IMAP_SHARED_LIBADD)'
                   50333:       ;;
                   50334:     *)
                   50335:       suffix=la
                   50336:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) $(PHPIMAP_SHARED_LIBADD)'
                   50337:       ;;
                   50338:   esac
                   50339: 
                   50340:   if test "x" = "xyes"; then
                   50341:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpimap.$suffix"
                   50342:   else
                   50343:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpimap.$suffix"
                   50344:   fi
                   50345: 
                   50346:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_imap"
                   50347: 
                   50348:   cat >>Makefile.objects<<EOF
                   50349: \$(phplibdir)/phpimap.$suffix: $ext_builddir/phpimap.$suffix
                   50350:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpimap.$suffix \$(phplibdir)
                   50351: 
                   50352: $ext_builddir/phpimap.$suffix: \$(shared_objects_imap) \$(PHPIMAP_SHARED_DEPENDENCIES)
                   50353:        $link_cmd
                   50354: 
                   50355: EOF
                   50356: 
                   50357:           ;;
                   50358:         *)
                   50359: 
                   50360:   install_modules="install-modules"
                   50361: 
                   50362:   case $host_alias in
                   50363:     *aix*)
                   50364:       suffix=so
                   50365:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/imap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) $(IMAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/imap.so '$ext_builddir'/imap.so'
                   50366:       ;;
                   50367:     *netware*)
                   50368:       suffix=nlm
                   50369:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) -L$(top_builddir)/netware -lphp5lib $(P_SHARED_LIBADD)'
                   50370:       ;;
                   50371:     *)
                   50372:       suffix=la
                   50373:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) $(IMAP_SHARED_LIBADD)'
                   50374:       ;;
                   50375:   esac
                   50376: 
                   50377:   if test "x" = "xyes"; then
                   50378:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/imap.$suffix"
                   50379:   else
                   50380:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/imap.$suffix"
                   50381:   fi
                   50382: 
                   50383:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_imap"
                   50384: 
                   50385:   cat >>Makefile.objects<<EOF
                   50386: \$(phplibdir)/imap.$suffix: $ext_builddir/imap.$suffix
                   50387:        \$(LIBTOOL) --mode=install cp $ext_builddir/imap.$suffix \$(phplibdir)
                   50388: 
                   50389: $ext_builddir/imap.$suffix: \$(shared_objects_imap) \$(IMAP_SHARED_DEPENDENCIES)
                   50390:        $link_cmd
                   50391: 
                   50392: EOF
                   50393: 
                   50394:           ;;
                   50395:       esac
                   50396: 
                   50397: cat >>confdefs.h <<_ACEOF
                   50398: #define COMPILE_DL_IMAP 1
                   50399: _ACEOF
                   50400: 
                   50401:     fi
                   50402:   fi
                   50403: 
                   50404:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   50405:     PHP_IMAP_SHARED=no
                   50406: 
                   50407: 
                   50408:   case ext/imap in
                   50409:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   50410:   /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   50411:   *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   50412:   esac
                   50413: 
                   50414: 
                   50415: 
                   50416:   b_c_pre=$php_c_pre
                   50417:   b_cxx_pre=$php_cxx_pre
                   50418:   b_c_meta=$php_c_meta
                   50419:   b_cxx_meta=$php_cxx_meta
                   50420:   b_c_post=$php_c_post
                   50421:   b_cxx_post=$php_cxx_post
                   50422:   b_lo=$php_lo
                   50423: 
                   50424: 
                   50425:   old_IFS=$IFS
                   50426:   for ac_src in php_imap.c; do
                   50427: 
                   50428:       IFS=.
                   50429:       set $ac_src
                   50430:       ac_obj=$1
                   50431:       IFS=$old_IFS
                   50432: 
1.1.1.2 ! misho    50433:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    50434: 
                   50435:       case $ac_src in
                   50436:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50437:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50438:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50439:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   50440:       esac
                   50441: 
                   50442:     cat >>Makefile.objects<<EOF
                   50443: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   50444:        $ac_comp
                   50445: EOF
                   50446:   done
                   50447: 
                   50448: 
                   50449: 
                   50450: 
                   50451:   case ext/imap in
                   50452:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   50453:   /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   50454:   *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   50455:   esac
                   50456: 
                   50457: 
                   50458: 
                   50459:   b_c_pre=$php_c_pre
                   50460:   b_cxx_pre=$php_cxx_pre
                   50461:   b_c_meta=$php_c_meta
                   50462:   b_cxx_meta=$php_cxx_meta
                   50463:   b_c_post=$php_c_post
                   50464:   b_cxx_post=$php_cxx_post
                   50465:   b_lo=$php_lo
                   50466: 
                   50467: 
                   50468:   old_IFS=$IFS
                   50469:   for ac_src in php_imap.c; do
                   50470: 
                   50471:       IFS=.
                   50472:       set $ac_src
                   50473:       ac_obj=$1
                   50474:       IFS=$old_IFS
                   50475: 
1.1.1.2 ! misho    50476:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    50477: 
                   50478:       case $ac_src in
                   50479:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50480:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50481:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50482:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   50483:       esac
                   50484: 
                   50485:     cat >>Makefile.objects<<EOF
                   50486: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   50487:        $ac_comp
                   50488: EOF
                   50489:   done
                   50490: 
                   50491: 
                   50492: 
                   50493: 
                   50494:   case ext/imap in
                   50495:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   50496:   /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   50497:   *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   50498:   esac
                   50499: 
                   50500: 
                   50501: 
                   50502:   b_c_pre=$php_c_pre
                   50503:   b_cxx_pre=$php_cxx_pre
                   50504:   b_c_meta=$php_c_meta
                   50505:   b_cxx_meta=$php_cxx_meta
                   50506:   b_c_post=$php_c_post
                   50507:   b_cxx_post=$php_cxx_post
                   50508:   b_lo=$php_lo
                   50509: 
                   50510: 
                   50511:   old_IFS=$IFS
                   50512:   for ac_src in php_imap.c; do
                   50513: 
                   50514:       IFS=.
                   50515:       set $ac_src
                   50516:       ac_obj=$1
                   50517:       IFS=$old_IFS
                   50518: 
1.1.1.2 ! misho    50519:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    50520: 
                   50521:       case $ac_src in
                   50522:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50523:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50524:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   50525:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   50526:       esac
                   50527: 
                   50528:     cat >>Makefile.objects<<EOF
                   50529: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   50530:        $ac_comp
                   50531: EOF
                   50532:   done
                   50533: 
                   50534: 
                   50535:     EXT_CLI_STATIC="$EXT_CLI_STATIC imap"
                   50536:   fi
                   50537: 
                   50538: 
                   50539:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   50540: 
                   50541: 
                   50542: 
                   50543:   if test "$ext_builddir" = "."; then
                   50544:     PHP_PECL_EXTENSION=imap
                   50545: 
                   50546:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   50547: 
                   50548:   fi
                   50549: 
                   50550: 
                   50551: $as_echo "#define HAVE_IMAP 1" >>confdefs.h
                   50552: 
                   50553: 
                   50554:     for i in $PHP_IMAP /usr/local /usr; do
                   50555:       if test -r "$i/c-client.h"; then
                   50556: 
                   50557: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
                   50558: 
                   50559:     IMAP_DIR=$i
                   50560:     IMAP_INC_DIR=$i
                   50561:     break
                   50562:   elif test -r "$i/rfc822.h"; then
                   50563:     IMAP_DIR=$i;
                   50564:     IMAP_INC_DIR=$i
                   50565:        break
                   50566: 
                   50567:       elif test -r "$i/include/c-client/c-client.h"; then
                   50568: 
                   50569: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
                   50570: 
                   50571:     IMAP_DIR=$i
                   50572:     IMAP_INC_DIR=$i/include/c-client
                   50573:     break
                   50574:   elif test -r "$i/include/c-client/rfc822.h"; then
                   50575:     IMAP_DIR=$i;
                   50576:     IMAP_INC_DIR=$i/include/c-client
                   50577:        break
                   50578: 
                   50579:       elif test -r "$i/include/imap/c-client.h"; then
                   50580: 
                   50581: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
                   50582: 
                   50583:     IMAP_DIR=$i
                   50584:     IMAP_INC_DIR=$i/include/imap
                   50585:     break
                   50586:   elif test -r "$i/include/imap/rfc822.h"; then
                   50587:     IMAP_DIR=$i;
                   50588:     IMAP_INC_DIR=$i/include/imap
                   50589:        break
                   50590: 
                   50591:       elif test -r "$i/include/c-client.h"; then
                   50592: 
                   50593: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
                   50594: 
                   50595:     IMAP_DIR=$i
                   50596:     IMAP_INC_DIR=$i/include
                   50597:     break
                   50598:   elif test -r "$i/include/rfc822.h"; then
                   50599:     IMAP_DIR=$i;
                   50600:     IMAP_INC_DIR=$i/include
                   50601:        break
                   50602: 
                   50603:       elif test -r "$i/imap/c-client.h"; then
                   50604: 
                   50605: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
                   50606: 
                   50607:     IMAP_DIR=$i
                   50608:     IMAP_INC_DIR=$i/imap
                   50609:     break
                   50610:   elif test -r "$i/imap/rfc822.h"; then
                   50611:     IMAP_DIR=$i;
                   50612:     IMAP_INC_DIR=$i/imap
                   50613:        break
                   50614: 
                   50615:       elif test -r "$i/c-client/c-client.h"; then
                   50616: 
                   50617: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
                   50618: 
                   50619:     IMAP_DIR=$i
                   50620:     IMAP_INC_DIR=$i/c-client
                   50621:     break
                   50622:   elif test -r "$i/c-client/rfc822.h"; then
                   50623:     IMAP_DIR=$i;
                   50624:     IMAP_INC_DIR=$i/c-client
                   50625:        break
                   50626: 
                   50627:       fi
                   50628:     done
                   50629: 
                   50630:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   50631: /* end confdefs.h.  */
                   50632: #include <$IMAP_INC_DIR/mail.h>
                   50633: 
                   50634: _ACEOF
                   50635: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   50636:   $EGREP "mail_fetch_overview_sequence" >/dev/null 2>&1; then :
                   50637: 
                   50638: 
                   50639: $as_echo "#define HAVE_IMAP2004 1" >>confdefs.h
                   50640: 
                   50641: 
                   50642: fi
                   50643: rm -f conftest*
                   50644: 
                   50645: 
                   50646:         old_CFLAGS=$CFLAGS
                   50647:     CFLAGS="-I$IMAP_INC_DIR"
                   50648:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8_mime2text signature" >&5
                   50649: $as_echo_n "checking for utf8_mime2text signature... " >&6; }
                   50650: if ${ac_cv_utf8_mime2text+:} false; then :
                   50651:   $as_echo_n "(cached) " >&6
                   50652: else
                   50653:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   50654: /* end confdefs.h.  */
                   50655: 
                   50656: #include <stdio.h>
                   50657: #include <c-client.h>
                   50658: 
                   50659: int
                   50660: main ()
                   50661: {
                   50662: 
                   50663:         SIZEDTEXT *src, *dst;
                   50664:         utf8_mime2text(src, dst);
                   50665: 
                   50666:   ;
                   50667:   return 0;
                   50668: }
                   50669: _ACEOF
                   50670: if ac_fn_c_try_compile "$LINENO"; then :
                   50671: 
                   50672:         ac_cv_utf8_mime2text=old
                   50673: 
                   50674: else
                   50675: 
                   50676:         ac_cv_utf8_mime2text=new
                   50677: 
                   50678: fi
                   50679: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   50680: 
                   50681: fi
                   50682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utf8_mime2text" >&5
                   50683: $as_echo "$ac_cv_utf8_mime2text" >&6; }
                   50684:     if test "$ac_cv_utf8_mime2text" = "new"; then
                   50685: 
                   50686: $as_echo "#define HAVE_NEW_MIME2TEXT 1" >>confdefs.h
                   50687: 
                   50688:     fi
                   50689:     CFLAGS=$old_CFLAGS
                   50690: 
                   50691:     old_CFLAGS=$CFLAGS
                   50692:     CFLAGS="-I$IMAP_INC_DIR"
                   50693:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for U8T_DECOMPOSE" >&5
                   50694: $as_echo_n "checking for U8T_DECOMPOSE... " >&6; }
                   50695: if ${ac_cv_u8t_canonical+:} false; then :
                   50696:   $as_echo_n "(cached) " >&6
                   50697: else
                   50698:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   50699: /* end confdefs.h.  */
                   50700: 
                   50701: #include <c-client.h>
                   50702: 
                   50703: int
                   50704: main ()
                   50705: {
                   50706: 
                   50707:          int i = U8T_CANONICAL;
                   50708: 
                   50709:   ;
                   50710:   return 0;
                   50711: }
                   50712: _ACEOF
                   50713: if ac_fn_c_try_compile "$LINENO"; then :
                   50714: 
                   50715:          ac_cv_u8t_decompose=yes
                   50716: 
                   50717: else
                   50718: 
                   50719:          ac_cv_u8t_decompose=no
                   50720: 
                   50721: fi
                   50722: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   50723: 
                   50724: fi
                   50725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_u8t_canonical" >&5
                   50726: $as_echo "$ac_cv_u8t_canonical" >&6; }
                   50727:     CFLAGS=$old_CFLAGS
                   50728: 
                   50729:     if test "$ac_cv_u8t_decompose" = "no" && test "$ac_cv_utf8_mime2text" = "new"; then
                   50730:                as_fn_error $? "utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information." "$LINENO" 5
                   50731:     fi
                   50732:     if test "$ac_cv_u8t_decompose" = "yes" && test "$ac_cv_utf8_mime2text" = "old"; then
                   50733:                as_fn_error $? "utf8_mime2text() has old signature, but U8T_CANONICAL is present. This should not happen. Check config.log for additional information." "$LINENO" 5
                   50734:     fi
                   50735: 
                   50736:         old_CPPFLAGS=$CPPFLAGS
                   50737:     CPPFLAGS=-I$IMAP_INC_DIR
                   50738:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   50739: /* end confdefs.h.  */
                   50740: 
                   50741: #include "imap4r1.h"
                   50742: #if defined(IMAPSSLPORT)
                   50743:       this_is_true
                   50744: #endif
                   50745: 
                   50746: _ACEOF
                   50747: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   50748:   $EGREP "this_is_true" >/dev/null 2>&1; then :
                   50749: 
                   50750: 
                   50751: $as_echo "#define HAVE_IMAP2001 1" >>confdefs.h
                   50752: 
                   50753: 
                   50754: fi
                   50755: rm -f conftest*
                   50756: 
                   50757:     CPPFLAGS=$old_CPPFLAGS
                   50758: 
                   50759: 
                   50760:   save_old_LDFLAGS=$LDFLAGS
                   50761:   ac_stuff=""
                   50762: 
                   50763:   save_ext_shared=$ext_shared
                   50764:   ext_shared=yes
                   50765: 
                   50766:   for ac_i in $ac_stuff; do
                   50767:     case $ac_i in
                   50768:     -pthread)
                   50769:       if test "$ext_shared" = "yes"; then
                   50770:         LDFLAGS="$LDFLAGS -pthread"
                   50771:       else
                   50772: 
                   50773: 
                   50774:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   50775: 
                   50776:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   50777:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   50778:     eval "EXTRA_LDFLAGS$unique=set"
                   50779:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   50780:   fi
                   50781: 
                   50782:       fi
                   50783:     ;;
                   50784:     -l*)
                   50785:       ac_ii=`echo $ac_i|cut -c 3-`
                   50786: 
                   50787: 
                   50788:   case $ac_ii in
                   50789:   c|c_r|pthread*) ;;
                   50790:   *)
                   50791:     if test "$ext_shared" = "yes"; then
                   50792:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   50793:     else
                   50794: 
                   50795: 
                   50796:   case $ac_ii in
                   50797:   c|c_r|pthread*) ;;
                   50798:   *)
                   50799:       LIBS="$LIBS -l$ac_ii"
                   50800:    ;;
                   50801:   esac
                   50802: 
                   50803: 
                   50804:     fi
                   50805:    ;;
                   50806:   esac
                   50807: 
                   50808: 
                   50809:     ;;
                   50810:     -L*)
                   50811:       ac_ii=`echo $ac_i|cut -c 3-`
                   50812: 
                   50813:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   50814: 
                   50815:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   50816:     ai_p=$ac_ii
                   50817:   else
                   50818: 
                   50819:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   50820: 
                   50821:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   50822:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   50823:   fi
                   50824: 
                   50825: 
                   50826:       if test "$ext_shared" = "yes"; then
                   50827:         LDFLAGS="-L$ai_p $LDFLAGS"
                   50828:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   50829:       else
                   50830: 
                   50831: 
                   50832: 
                   50833:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   50834: 
                   50835:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   50836:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   50837:     eval "LIBPATH$unique=set"
                   50838: 
                   50839:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   50840:     LDFLAGS="$LDFLAGS -L$ai_p"
                   50841:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   50842: 
                   50843:   fi
                   50844: 
                   50845: 
                   50846:       fi
                   50847: 
                   50848:   fi
                   50849: 
                   50850:     ;;
                   50851:     esac
                   50852:   done
                   50853: 
                   50854:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
                   50855: $as_echo_n "checking for pam_start in -lpam... " >&6; }
                   50856: if ${ac_cv_lib_pam_pam_start+:} false; then :
                   50857:   $as_echo_n "(cached) " >&6
                   50858: else
                   50859:   ac_check_lib_save_LIBS=$LIBS
                   50860: LIBS="-lpam  $LIBS"
                   50861: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   50862: /* end confdefs.h.  */
                   50863: 
                   50864: /* Override any GCC internal prototype to avoid an error.
                   50865:    Use char because int might match the return type of a GCC
                   50866:    builtin and then its argument prototype would still apply.  */
                   50867: #ifdef __cplusplus
                   50868: extern "C"
                   50869: #endif
                   50870: char pam_start ();
                   50871: int
                   50872: main ()
                   50873: {
                   50874: return pam_start ();
                   50875:   ;
                   50876:   return 0;
                   50877: }
                   50878: _ACEOF
                   50879: if ac_fn_c_try_link "$LINENO"; then :
                   50880:   ac_cv_lib_pam_pam_start=yes
                   50881: else
                   50882:   ac_cv_lib_pam_pam_start=no
                   50883: fi
                   50884: rm -f core conftest.err conftest.$ac_objext \
                   50885:     conftest$ac_exeext conftest.$ac_ext
                   50886: LIBS=$ac_check_lib_save_LIBS
                   50887: fi
                   50888: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
                   50889: $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
                   50890: if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
                   50891: 
                   50892:     LDFLAGS=$save_old_LDFLAGS
                   50893:     ext_shared=$save_ext_shared
                   50894: 
                   50895: 
                   50896: 
                   50897:   case pam in
                   50898:   c|c_r|pthread*) ;;
                   50899:   *)
                   50900:     if test "$ext_shared" = "yes"; then
                   50901:         IMAP_SHARED_LIBADD="-lpam $IMAP_SHARED_LIBADD"
                   50902:     else
                   50903: 
                   50904: 
                   50905:   case pam in
                   50906:   c|c_r|pthread*) ;;
                   50907:   *)
                   50908:       LIBS="-lpam $LIBS"
                   50909:    ;;
                   50910:   esac
                   50911: 
                   50912: 
                   50913:     fi
                   50914:    ;;
                   50915:   esac
                   50916: 
                   50917: 
                   50918: 
                   50919: $as_echo "#define HAVE_LIBPAM 1" >>confdefs.h
                   50920: 
                   50921: 
                   50922: 
                   50923: else
                   50924: 
                   50925:     LDFLAGS=$save_old_LDFLAGS
                   50926:     ext_shared=$save_ext_shared
                   50927:     unset ac_cv_lib_pam_pam_start
                   50928: 
                   50929: 
                   50930: fi
                   50931: 
                   50932: 
                   50933: 
                   50934:   save_old_LDFLAGS=$LDFLAGS
                   50935:   ac_stuff=""
                   50936: 
                   50937:   save_ext_shared=$ext_shared
                   50938:   ext_shared=yes
                   50939: 
                   50940:   for ac_i in $ac_stuff; do
                   50941:     case $ac_i in
                   50942:     -pthread)
                   50943:       if test "$ext_shared" = "yes"; then
                   50944:         LDFLAGS="$LDFLAGS -pthread"
                   50945:       else
                   50946: 
                   50947: 
                   50948:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   50949: 
                   50950:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   50951:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   50952:     eval "EXTRA_LDFLAGS$unique=set"
                   50953:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   50954:   fi
                   50955: 
                   50956:       fi
                   50957:     ;;
                   50958:     -l*)
                   50959:       ac_ii=`echo $ac_i|cut -c 3-`
                   50960: 
                   50961: 
                   50962:   case $ac_ii in
                   50963:   c|c_r|pthread*) ;;
                   50964:   *)
                   50965:     if test "$ext_shared" = "yes"; then
                   50966:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   50967:     else
                   50968: 
                   50969: 
                   50970:   case $ac_ii in
                   50971:   c|c_r|pthread*) ;;
                   50972:   *)
                   50973:       LIBS="$LIBS -l$ac_ii"
                   50974:    ;;
                   50975:   esac
                   50976: 
                   50977: 
                   50978:     fi
                   50979:    ;;
                   50980:   esac
                   50981: 
                   50982: 
                   50983:     ;;
                   50984:     -L*)
                   50985:       ac_ii=`echo $ac_i|cut -c 3-`
                   50986: 
                   50987:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   50988: 
                   50989:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   50990:     ai_p=$ac_ii
                   50991:   else
                   50992: 
                   50993:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   50994: 
                   50995:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   50996:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   50997:   fi
                   50998: 
                   50999: 
                   51000:       if test "$ext_shared" = "yes"; then
                   51001:         LDFLAGS="-L$ai_p $LDFLAGS"
                   51002:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   51003:       else
                   51004: 
                   51005: 
                   51006: 
                   51007:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   51008: 
                   51009:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   51010:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   51011:     eval "LIBPATH$unique=set"
                   51012: 
                   51013:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   51014:     LDFLAGS="$LDFLAGS -L$ai_p"
                   51015:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   51016: 
                   51017:   fi
                   51018: 
                   51019: 
                   51020:       fi
                   51021: 
                   51022:   fi
                   51023: 
                   51024:     ;;
                   51025:     esac
                   51026:   done
                   51027: 
                   51028:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
                   51029: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
                   51030: if ${ac_cv_lib_crypt_crypt+:} false; then :
                   51031:   $as_echo_n "(cached) " >&6
                   51032: else
                   51033:   ac_check_lib_save_LIBS=$LIBS
                   51034: LIBS="-lcrypt  $LIBS"
                   51035: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   51036: /* end confdefs.h.  */
                   51037: 
                   51038: /* Override any GCC internal prototype to avoid an error.
                   51039:    Use char because int might match the return type of a GCC
                   51040:    builtin and then its argument prototype would still apply.  */
                   51041: #ifdef __cplusplus
                   51042: extern "C"
                   51043: #endif
                   51044: char crypt ();
                   51045: int
                   51046: main ()
                   51047: {
                   51048: return crypt ();
                   51049:   ;
                   51050:   return 0;
                   51051: }
                   51052: _ACEOF
                   51053: if ac_fn_c_try_link "$LINENO"; then :
                   51054:   ac_cv_lib_crypt_crypt=yes
                   51055: else
                   51056:   ac_cv_lib_crypt_crypt=no
                   51057: fi
                   51058: rm -f core conftest.err conftest.$ac_objext \
                   51059:     conftest$ac_exeext conftest.$ac_ext
                   51060: LIBS=$ac_check_lib_save_LIBS
                   51061: fi
                   51062: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
                   51063: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
                   51064: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
                   51065: 
                   51066:     LDFLAGS=$save_old_LDFLAGS
                   51067:     ext_shared=$save_ext_shared
                   51068: 
                   51069: 
                   51070: 
                   51071:   case crypt in
                   51072:   c|c_r|pthread*) ;;
                   51073:   *)
                   51074:     if test "$ext_shared" = "yes"; then
                   51075:         IMAP_SHARED_LIBADD="-lcrypt $IMAP_SHARED_LIBADD"
                   51076:     else
                   51077: 
                   51078: 
                   51079:   case crypt in
                   51080:   c|c_r|pthread*) ;;
                   51081:   *)
                   51082:       LIBS="-lcrypt $LIBS"
                   51083:    ;;
                   51084:   esac
                   51085: 
                   51086: 
                   51087:     fi
                   51088:    ;;
                   51089:   esac
                   51090: 
                   51091: 
                   51092: 
                   51093: $as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h
                   51094: 
                   51095: 
                   51096: 
                   51097: else
                   51098: 
                   51099:     LDFLAGS=$save_old_LDFLAGS
                   51100:     ext_shared=$save_ext_shared
                   51101:     unset ac_cv_lib_crypt_crypt
                   51102: 
                   51103: 
                   51104: fi
                   51105: 
                   51106: 
                   51107: 
                   51108:   if test -z "$IMAP_DIR" || echo "$IMAP_DIR" | grep '^/' >/dev/null ; then
                   51109:     IMAP_DIR=$IMAP_DIR
                   51110:   else
                   51111: 
                   51112:     ep_dir="`echo $IMAP_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   51113: 
                   51114:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   51115:     IMAP_DIR="$ep_realdir/`basename \"$IMAP_DIR\"`"
                   51116:   fi
                   51117: 
                   51118: 
                   51119:     if test -z "$IMAP_DIR"; then
                   51120:       as_fn_error $? "Cannot find rfc822.h. Please check your c-client installation." "$LINENO" 5
                   51121:     fi
                   51122: 
                   51123:     if test -r "$IMAP_DIR/c-client/c-client.a"; then
                   51124:       ln -s "$IMAP_DIR/c-client/c-client.a" "$IMAP_DIR/c-client/libc-client.a" >/dev/null 2>&1
                   51125:     elif test -r "$IMAP_DIR/$PHP_LIBDIR/c-client.a"; then
                   51126:       ln -s "$IMAP_DIR/$PHP_LIBDIR/c-client.a" "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" >/dev/null 2>&1
                   51127:     fi
                   51128: 
                   51129:     for lib in c-client4 c-client imap; do
                   51130:       IMAP_LIB=$lib
                   51131: 
                   51132:   str="$IMAP_DIR/$PHP_LIBDIR/lib$lib.*"
                   51133:   for i in `echo $str`; do
                   51134:     test -r $i && IMAP_LIBDIR=$IMAP_DIR/$PHP_LIBDIR && break 2
                   51135:   done
                   51136: 
                   51137: 
                   51138:   str="$IMAP_DIR/c-client/lib$lib.*"
                   51139:   for i in `echo $str`; do
                   51140:     test -r $i && IMAP_LIBDIR=$IMAP_DIR/c-client && break 2
                   51141:   done
                   51142: 
                   51143:     done
                   51144: 
                   51145:     if test -z "$IMAP_LIBDIR"; then
                   51146:       as_fn_error $? "Cannot find imap library (libc-client.a). Please check your c-client installation." "$LINENO" 5
                   51147:     fi
                   51148: 
                   51149: 
                   51150:   if test "$IMAP_INC_DIR" != "/usr/include"; then
                   51151: 
                   51152:   if test -z "$IMAP_INC_DIR" || echo "$IMAP_INC_DIR" | grep '^/' >/dev/null ; then
                   51153:     ai_p=$IMAP_INC_DIR
                   51154:   else
                   51155: 
                   51156:     ep_dir="`echo $IMAP_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   51157: 
                   51158:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   51159:     ai_p="$ep_realdir/`basename \"$IMAP_INC_DIR\"`"
                   51160:   fi
                   51161: 
                   51162: 
                   51163: 
                   51164:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   51165: 
                   51166:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   51167:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   51168:     eval "INCLUDEPATH$unique=set"
                   51169: 
                   51170:       if test ""; then
                   51171:         INCLUDES="-I$ai_p $INCLUDES"
                   51172:       else
                   51173:         INCLUDES="$INCLUDES -I$ai_p"
                   51174:       fi
                   51175: 
                   51176:   fi
                   51177: 
                   51178:   fi
                   51179: 
                   51180: 
                   51181: 
                   51182:   case $IMAP_LIB in
                   51183:   c|c_r|pthread*) ;;
                   51184:   *)
                   51185:     if test "$ext_shared" = "yes"; then
                   51186:         IMAP_SHARED_LIBADD="-l$IMAP_LIB $IMAP_SHARED_LIBADD"
                   51187:     else
                   51188: 
                   51189: 
                   51190:   case $IMAP_LIB in
                   51191:   c|c_r|pthread*) ;;
                   51192:   *)
                   51193:       DLIBS="-l$IMAP_LIB $DLIBS"
                   51194:    ;;
                   51195:   esac
                   51196: 
                   51197: 
                   51198:     fi
                   51199:    ;;
                   51200:   esac
                   51201: 
                   51202: 
                   51203: 
                   51204:   if test "$IMAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IMAP_LIBDIR" != "/usr/lib"; then
                   51205: 
                   51206:   if test -z "$IMAP_LIBDIR" || echo "$IMAP_LIBDIR" | grep '^/' >/dev/null ; then
                   51207:     ai_p=$IMAP_LIBDIR
                   51208:   else
                   51209: 
                   51210:     ep_dir="`echo $IMAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   51211: 
                   51212:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   51213:     ai_p="$ep_realdir/`basename \"$IMAP_LIBDIR\"`"
                   51214:   fi
                   51215: 
                   51216: 
                   51217:       if test "$ext_shared" = "yes"; then
                   51218:         IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
                   51219:         test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
                   51220:       else
                   51221: 
                   51222: 
                   51223: 
                   51224:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   51225: 
                   51226:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   51227:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   51228:     eval "LIBPATH$unique=set"
                   51229: 
                   51230:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   51231:     LDFLAGS="$LDFLAGS -L$ai_p"
                   51232:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   51233: 
                   51234:   fi
                   51235: 
                   51236: 
                   51237:       fi
                   51238: 
                   51239:   fi
                   51240: 
                   51241: 
                   51242:   if test "$PHP_KERBEROS" != "no"; then
                   51243: 
                   51244:   found_kerberos=no
                   51245:   unset KERBEROS_CFLAGS
                   51246:   unset KERBEROS_LIBS
                   51247: 
                   51248:     if test -z "$KRB5_CONFIG"; then
                   51249:     # Extract the first word of "krb5-config", so it can be a program name with args.
                   51250: set dummy krb5-config; ac_word=$2
                   51251: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   51252: $as_echo_n "checking for $ac_word... " >&6; }
                   51253: if ${ac_cv_path_KRB5_CONFIG+:} false; then :
                   51254:   $as_echo_n "(cached) " >&6
                   51255: else
                   51256:   case $KRB5_CONFIG in
                   51257:   [\\/]* | ?:[\\/]*)
                   51258:   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
                   51259:   ;;
                   51260:   *)
                   51261:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   51262: as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin"
                   51263: for as_dir in $as_dummy
                   51264: do
                   51265:   IFS=$as_save_IFS
                   51266:   test -z "$as_dir" && as_dir=.
                   51267:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    51268:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    51269:     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
                   51270:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   51271:     break 2
                   51272:   fi
                   51273: done
                   51274:   done
                   51275: IFS=$as_save_IFS
                   51276: 
                   51277:   test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
                   51278:   ;;
                   51279: esac
                   51280: fi
                   51281: KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
                   51282: if test -n "$KRB5_CONFIG"; then
                   51283:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
                   51284: $as_echo "$KRB5_CONFIG" >&6; }
                   51285: else
                   51286:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   51287: $as_echo "no" >&6; }
                   51288: fi
                   51289: 
                   51290: 
                   51291:   fi
                   51292: 
                   51293:     if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then
                   51294:     KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi`
                   51295:     KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi`
                   51296: 
                   51297:     if test -n "$KERBEROS_LIBS"; then
                   51298:       found_kerberos=yes
                   51299: 
                   51300:   for ac_i in $KERBEROS_LIBS; do
                   51301:     case $ac_i in
                   51302:     -pthread)
                   51303:       if test "$ext_shared" = "yes"; then
                   51304:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread"
                   51305:       else
                   51306: 
                   51307: 
                   51308:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   51309: 
                   51310:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   51311:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   51312:     eval "EXTRA_LDFLAGS$unique=set"
                   51313:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   51314:   fi
                   51315: 
                   51316:       fi
                   51317:     ;;
                   51318:     -l*)
                   51319:       ac_ii=`echo $ac_i|cut -c 3-`
                   51320: 
                   51321: 
                   51322:   case $ac_ii in
                   51323:   c|c_r|pthread*) ;;
                   51324:   *)
                   51325:     if test "$ext_shared" = "yes"; then
                   51326:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii"
                   51327:     else
                   51328: 
                   51329: 
                   51330:   case $ac_ii in
                   51331:   c|c_r|pthread*) ;;
                   51332:   *)
                   51333:       LIBS="$LIBS -l$ac_ii"
                   51334:    ;;
                   51335:   esac
                   51336: 
                   51337: 
                   51338:     fi
                   51339:    ;;
                   51340:   esac
                   51341: 
                   51342: 
                   51343:     ;;
                   51344:     -L*)
                   51345:       ac_ii=`echo $ac_i|cut -c 3-`
                   51346: 
                   51347:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   51348: 
                   51349:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   51350:     ai_p=$ac_ii
                   51351:   else
                   51352: 
                   51353:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   51354: 
                   51355:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   51356:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   51357:   fi
                   51358: 
                   51359: 
                   51360:       if test "$ext_shared" = "yes"; then
                   51361:         IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
                   51362:         test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
                   51363:       else
                   51364: 
                   51365: 
                   51366: 
                   51367:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   51368: 
                   51369:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   51370:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   51371:     eval "LIBPATH$unique=set"
                   51372: 
                   51373:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   51374:     LDFLAGS="$LDFLAGS -L$ai_p"
                   51375:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   51376: 
                   51377:   fi
                   51378: 
                   51379: 
                   51380:       fi
                   51381: 
                   51382:   fi
                   51383: 
                   51384:     ;;
                   51385:     esac
                   51386:   done
                   51387: 
                   51388: 
                   51389:   for ac_i in $KERBEROS_CFLAGS; do
                   51390:     case $ac_i in
                   51391:     -I*)
                   51392:       ac_ii=`echo $ac_i|cut -c 3-`
                   51393: 
                   51394:   if test "$ac_ii" != "/usr/include"; then
                   51395: 
                   51396:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   51397:     ai_p=$ac_ii
                   51398:   else
                   51399: 
                   51400:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   51401: 
                   51402:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   51403:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   51404:   fi
                   51405: 
                   51406: 
                   51407: 
                   51408:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   51409: 
                   51410:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   51411:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   51412:     eval "INCLUDEPATH$unique=set"
                   51413: 
                   51414:       if test ""; then
                   51415:         INCLUDES="-I$ai_p $INCLUDES"
                   51416:       else
                   51417:         INCLUDES="$INCLUDES -I$ai_p"
                   51418:       fi
                   51419: 
                   51420:   fi
                   51421: 
                   51422:   fi
                   51423: 
                   51424:     ;;
                   51425:     esac
                   51426:   done
                   51427: 
                   51428:     fi
                   51429:   fi
                   51430: 
                   51431:     if test "$found_kerberos" = "no"; then
                   51432: 
                   51433:     if test "$PHP_KERBEROS" = "yes"; then
                   51434:       PHP_KERBEROS="/usr/kerberos /usr/local /usr"
                   51435:     fi
                   51436: 
                   51437:     for i in $PHP_KERBEROS; do
                   51438:       if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then
                   51439:         PHP_KERBEROS_DIR=$i
                   51440:         break
                   51441:       fi
                   51442:     done
                   51443: 
                   51444:     if test "$PHP_KERBEROS_DIR"; then
                   51445:       found_kerberos=yes
                   51446: 
                   51447:   if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   51448: 
                   51449:   if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   51450:     ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR
                   51451:   else
                   51452: 
                   51453:     ep_dir="`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   51454: 
                   51455:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   51456:     ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/$PHP_LIBDIR\"`"
                   51457:   fi
                   51458: 
                   51459: 
                   51460:       if test "$ext_shared" = "yes"; then
                   51461:         IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
                   51462:         test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
                   51463:       else
                   51464: 
                   51465: 
                   51466: 
                   51467:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   51468: 
                   51469:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   51470:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   51471:     eval "LIBPATH$unique=set"
                   51472: 
                   51473:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   51474:     LDFLAGS="$LDFLAGS -L$ai_p"
                   51475:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   51476: 
                   51477:   fi
                   51478: 
                   51479: 
                   51480:       fi
                   51481: 
                   51482:   fi
                   51483: 
                   51484: 
                   51485: 
                   51486:   case gssapi_krb5 in
                   51487:   c|c_r|pthread*) ;;
                   51488:   *)
                   51489:     if test "$ext_shared" = "yes"; then
                   51490:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lgssapi_krb5"
                   51491:     else
                   51492: 
                   51493: 
                   51494:   case gssapi_krb5 in
                   51495:   c|c_r|pthread*) ;;
                   51496:   *)
                   51497:       LIBS="$LIBS -lgssapi_krb5"
                   51498:    ;;
                   51499:   esac
                   51500: 
                   51501: 
                   51502:     fi
                   51503:    ;;
                   51504:   esac
                   51505: 
                   51506: 
                   51507: 
                   51508: 
                   51509:   case krb5 in
                   51510:   c|c_r|pthread*) ;;
                   51511:   *)
                   51512:     if test "$ext_shared" = "yes"; then
                   51513:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lkrb5"
                   51514:     else
                   51515: 
                   51516: 
                   51517:   case krb5 in
                   51518:   c|c_r|pthread*) ;;
                   51519:   *)
                   51520:       LIBS="$LIBS -lkrb5"
                   51521:    ;;
                   51522:   esac
                   51523: 
                   51524: 
                   51525:     fi
                   51526:    ;;
                   51527:   esac
                   51528: 
                   51529: 
                   51530: 
                   51531: 
                   51532:   case k5crypto in
                   51533:   c|c_r|pthread*) ;;
                   51534:   *)
                   51535:     if test "$ext_shared" = "yes"; then
                   51536:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lk5crypto"
                   51537:     else
                   51538: 
                   51539: 
                   51540:   case k5crypto in
                   51541:   c|c_r|pthread*) ;;
                   51542:   *)
                   51543:       LIBS="$LIBS -lk5crypto"
                   51544:    ;;
                   51545:   esac
                   51546: 
                   51547: 
                   51548:     fi
                   51549:    ;;
                   51550:   esac
                   51551: 
                   51552: 
                   51553: 
                   51554: 
                   51555:   case com_err in
                   51556:   c|c_r|pthread*) ;;
                   51557:   *)
                   51558:     if test "$ext_shared" = "yes"; then
                   51559:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lcom_err"
                   51560:     else
                   51561: 
                   51562: 
                   51563:   case com_err in
                   51564:   c|c_r|pthread*) ;;
                   51565:   *)
                   51566:       LIBS="$LIBS -lcom_err"
                   51567:    ;;
                   51568:   esac
                   51569: 
                   51570: 
                   51571:     fi
                   51572:    ;;
                   51573:   esac
                   51574: 
                   51575: 
                   51576: 
                   51577:   if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then
                   51578: 
                   51579:   if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then
                   51580:     ai_p=$PHP_KERBEROS_DIR/include
                   51581:   else
                   51582: 
                   51583:     ep_dir="`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   51584: 
                   51585:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   51586:     ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/include\"`"
                   51587:   fi
                   51588: 
                   51589: 
                   51590: 
                   51591:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   51592: 
                   51593:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   51594:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   51595:     eval "INCLUDEPATH$unique=set"
                   51596: 
                   51597:       if test ""; then
                   51598:         INCLUDES="-I$ai_p $INCLUDES"
                   51599:       else
                   51600:         INCLUDES="$INCLUDES -I$ai_p"
                   51601:       fi
                   51602: 
                   51603:   fi
                   51604: 
                   51605:   fi
                   51606: 
                   51607:     fi
                   51608:   fi
                   51609: 
                   51610:   if test "$found_kerberos" = "yes"; then
                   51611: 
                   51612: 
                   51613: $as_echo "#define HAVE_IMAP_KRB 1" >>confdefs.h
                   51614: 
                   51615: 
                   51616: else
                   51617:       as_fn_error $? "Kerberos libraries not found.
                   51618: 
                   51619:       Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )
                   51620:       " "$LINENO" 5
                   51621: 
                   51622:   fi
                   51623: 
                   51624:   else
                   51625:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   51626: /* end confdefs.h.  */
                   51627: #include <$IMAP_INC_DIR/linkage.h>
                   51628: 
                   51629: _ACEOF
                   51630: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   51631:   $EGREP "auth_gss" >/dev/null 2>&1; then :
                   51632: 
                   51633:       as_fn_error $? "This c-client library is built with Kerberos support.
                   51634: 
                   51635:       Add --with-kerberos to your configure line. Check config.log for details.
                   51636:       " "$LINENO" 5
                   51637: 
                   51638: fi
                   51639: rm -f conftest*
                   51640: 
                   51641:   fi
                   51642: 
                   51643: 
                   51644:   if test "$PHP_IMAP_SSL" != "no"; then
                   51645:     if test "$PHP_OPENSSL" = ""; then
                   51646:       PHP_OPENSSL='no'
                   51647:     fi
                   51648: 
                   51649:   found_openssl=no
                   51650:   unset OPENSSL_INCDIR
                   51651:   unset OPENSSL_LIBDIR
                   51652: 
                   51653:     test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
                   51654:   test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
                   51655: 
                   51656:     if test -n "$PHP_OPENSSL" && test "$PHP_OPENSSL" != "no"; then
                   51657:     PHP_OPENSSL_DIR=$PHP_OPENSSL
                   51658:   elif test -n "$PHP_IMAP_SSL" && test "$PHP_IMAP_SSL" != "no"; then
                   51659:     PHP_OPENSSL_DIR=$PHP_IMAP_SSL
                   51660:   fi
                   51661: 
                   51662:     if test -z "$PKG_CONFIG"; then
                   51663:     # Extract the first word of "pkg-config", so it can be a program name with args.
                   51664: set dummy pkg-config; ac_word=$2
                   51665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   51666: $as_echo_n "checking for $ac_word... " >&6; }
                   51667: if ${ac_cv_path_PKG_CONFIG+:} false; then :
                   51668:   $as_echo_n "(cached) " >&6
                   51669: else
                   51670:   case $PKG_CONFIG in
                   51671:   [\\/]* | ?:[\\/]*)
                   51672:   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
                   51673:   ;;
                   51674:   *)
                   51675:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   51676: for as_dir in $PATH
                   51677: do
                   51678:   IFS=$as_save_IFS
                   51679:   test -z "$as_dir" && as_dir=.
                   51680:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    51681:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    51682:     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
                   51683:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   51684:     break 2
                   51685:   fi
                   51686: done
                   51687:   done
                   51688: IFS=$as_save_IFS
                   51689: 
                   51690:   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
                   51691:   ;;
                   51692: esac
                   51693: fi
                   51694: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
                   51695: if test -n "$PKG_CONFIG"; then
                   51696:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
                   51697: $as_echo "$PKG_CONFIG" >&6; }
                   51698: else
                   51699:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   51700: $as_echo "no" >&6; }
                   51701: fi
                   51702: 
                   51703: 
                   51704:   fi
                   51705: 
                   51706:     if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
                   51707:     if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
                   51708:       found_openssl=yes
                   51709:       OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
                   51710:       OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
                   51711:       OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
                   51712:     else
                   51713:       as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
                   51714:     fi
                   51715: 
                   51716:     if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then
                   51717: 
                   51718:   for ac_i in $OPENSSL_LIBS; do
                   51719:     case $ac_i in
                   51720:     -pthread)
                   51721:       if test "$ext_shared" = "yes"; then
                   51722:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread"
                   51723:       else
                   51724: 
                   51725: 
                   51726:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   51727: 
                   51728:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   51729:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   51730:     eval "EXTRA_LDFLAGS$unique=set"
                   51731:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   51732:   fi
                   51733: 
                   51734:       fi
                   51735:     ;;
                   51736:     -l*)
                   51737:       ac_ii=`echo $ac_i|cut -c 3-`
                   51738: 
                   51739: 
                   51740:   case $ac_ii in
                   51741:   c|c_r|pthread*) ;;
                   51742:   *)
                   51743:     if test "$ext_shared" = "yes"; then
                   51744:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii"
                   51745:     else
                   51746: 
                   51747: 
                   51748:   case $ac_ii in
                   51749:   c|c_r|pthread*) ;;
                   51750:   *)
                   51751:       LIBS="$LIBS -l$ac_ii"
                   51752:    ;;
                   51753:   esac
                   51754: 
                   51755: 
                   51756:     fi
                   51757:    ;;
                   51758:   esac
                   51759: 
                   51760: 
                   51761:     ;;
                   51762:     -L*)
                   51763:       ac_ii=`echo $ac_i|cut -c 3-`
                   51764: 
                   51765:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   51766: 
                   51767:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   51768:     ai_p=$ac_ii
                   51769:   else
                   51770: 
                   51771:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   51772: 
                   51773:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   51774:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   51775:   fi
                   51776: 
                   51777: 
                   51778:       if test "$ext_shared" = "yes"; then
                   51779:         IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
                   51780:         test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
                   51781:       else
                   51782: 
                   51783: 
                   51784: 
                   51785:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   51786: 
                   51787:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   51788:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   51789:     eval "LIBPATH$unique=set"
                   51790: 
                   51791:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   51792:     LDFLAGS="$LDFLAGS -L$ai_p"
                   51793:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   51794: 
                   51795:   fi
                   51796: 
                   51797: 
                   51798:       fi
                   51799: 
                   51800:   fi
                   51801: 
                   51802:     ;;
                   51803:     esac
                   51804:   done
                   51805: 
                   51806: 
                   51807:   for ac_i in $OPENSSL_INCS; do
                   51808:     case $ac_i in
                   51809:     -I*)
                   51810:       ac_ii=`echo $ac_i|cut -c 3-`
                   51811: 
                   51812:   if test "$ac_ii" != "/usr/include"; then
                   51813: 
                   51814:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   51815:     ai_p=$ac_ii
                   51816:   else
                   51817: 
                   51818:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   51819: 
                   51820:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   51821:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   51822:   fi
                   51823: 
                   51824: 
                   51825: 
                   51826:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   51827: 
                   51828:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   51829:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   51830:     eval "INCLUDEPATH$unique=set"
                   51831: 
                   51832:       if test ""; then
                   51833:         INCLUDES="-I$ai_p $INCLUDES"
                   51834:       else
                   51835:         INCLUDES="$INCLUDES -I$ai_p"
                   51836:       fi
                   51837: 
                   51838:   fi
                   51839: 
                   51840:   fi
                   51841: 
                   51842:     ;;
                   51843:     esac
                   51844:   done
                   51845: 
                   51846:     fi
                   51847:   fi
                   51848: 
                   51849:     if test "$found_openssl" = "no"; then
                   51850: 
                   51851:     if test "$PHP_OPENSSL_DIR" = "yes"; then
                   51852:       PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
                   51853:     fi
                   51854: 
                   51855:     for i in $PHP_OPENSSL_DIR; do
                   51856:       if test -r $i/include/openssl/evp.h; then
                   51857:         OPENSSL_INCDIR=$i/include
                   51858:       fi
                   51859:       if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
                   51860:         OPENSSL_LIBDIR=$i/$PHP_LIBDIR
                   51861:       fi
                   51862:       test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
                   51863:     done
                   51864: 
                   51865:     if test -z "$OPENSSL_INCDIR"; then
                   51866:       as_fn_error $? "Cannot find OpenSSL's <evp.h>" "$LINENO" 5
                   51867:     fi
                   51868: 
                   51869:     if test -z "$OPENSSL_LIBDIR"; then
                   51870:       as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5
                   51871:     fi
                   51872: 
                   51873:     old_CPPFLAGS=$CPPFLAGS
                   51874:     CPPFLAGS=-I$OPENSSL_INCDIR
                   51875:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
                   51876: $as_echo_n "checking for OpenSSL version... " >&6; }
                   51877:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   51878: /* end confdefs.h.  */
                   51879: 
                   51880: #include <openssl/opensslv.h>
                   51881: #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
                   51882:   yes
                   51883: #endif
                   51884: 
                   51885: _ACEOF
                   51886: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   51887:   $EGREP "yes" >/dev/null 2>&1; then :
                   51888: 
                   51889:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5
                   51890: $as_echo ">= 0.9.6" >&6; }
                   51891: 
                   51892: else
                   51893: 
                   51894:       as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
                   51895: 
                   51896: fi
                   51897: rm -f conftest*
                   51898: 
                   51899:     CPPFLAGS=$old_CPPFLAGS
                   51900: 
                   51901: 
                   51902:   if test "$OPENSSL_INCDIR" != "/usr/include"; then
                   51903: 
                   51904:   if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
                   51905:     ai_p=$OPENSSL_INCDIR
                   51906:   else
                   51907: 
                   51908:     ep_dir="`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   51909: 
                   51910:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   51911:     ai_p="$ep_realdir/`basename \"$OPENSSL_INCDIR\"`"
                   51912:   fi
                   51913: 
                   51914: 
                   51915: 
                   51916:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   51917: 
                   51918:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   51919:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   51920:     eval "INCLUDEPATH$unique=set"
                   51921: 
                   51922:       if test ""; then
                   51923:         INCLUDES="-I$ai_p $INCLUDES"
                   51924:       else
                   51925:         INCLUDES="$INCLUDES -I$ai_p"
                   51926:       fi
                   51927: 
                   51928:   fi
                   51929: 
                   51930:   fi
                   51931: 
                   51932: 
                   51933: 
                   51934:   save_old_LDFLAGS=$LDFLAGS
                   51935:   ac_stuff="
                   51936:       -L$OPENSSL_LIBDIR
                   51937:     "
                   51938: 
                   51939:   save_ext_shared=$ext_shared
                   51940:   ext_shared=yes
                   51941: 
                   51942:   for ac_i in $ac_stuff; do
                   51943:     case $ac_i in
                   51944:     -pthread)
                   51945:       if test "$ext_shared" = "yes"; then
                   51946:         LDFLAGS="$LDFLAGS -pthread"
                   51947:       else
                   51948: 
                   51949: 
                   51950:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   51951: 
                   51952:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   51953:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   51954:     eval "EXTRA_LDFLAGS$unique=set"
                   51955:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   51956:   fi
                   51957: 
                   51958:       fi
                   51959:     ;;
                   51960:     -l*)
                   51961:       ac_ii=`echo $ac_i|cut -c 3-`
                   51962: 
                   51963: 
                   51964:   case $ac_ii in
                   51965:   c|c_r|pthread*) ;;
                   51966:   *)
                   51967:     if test "$ext_shared" = "yes"; then
                   51968:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   51969:     else
                   51970: 
                   51971: 
                   51972:   case $ac_ii in
                   51973:   c|c_r|pthread*) ;;
                   51974:   *)
                   51975:       LIBS="$LIBS -l$ac_ii"
                   51976:    ;;
                   51977:   esac
                   51978: 
                   51979: 
                   51980:     fi
                   51981:    ;;
                   51982:   esac
                   51983: 
                   51984: 
                   51985:     ;;
                   51986:     -L*)
                   51987:       ac_ii=`echo $ac_i|cut -c 3-`
                   51988: 
                   51989:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   51990: 
                   51991:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   51992:     ai_p=$ac_ii
                   51993:   else
                   51994: 
                   51995:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   51996: 
                   51997:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   51998:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   51999:   fi
                   52000: 
                   52001: 
                   52002:       if test "$ext_shared" = "yes"; then
                   52003:         LDFLAGS="-L$ai_p $LDFLAGS"
                   52004:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   52005:       else
                   52006: 
                   52007: 
                   52008: 
                   52009:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   52010: 
                   52011:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   52012:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   52013:     eval "LIBPATH$unique=set"
                   52014: 
                   52015:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   52016:     LDFLAGS="$LDFLAGS -L$ai_p"
                   52017:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   52018: 
                   52019:   fi
                   52020: 
                   52021: 
                   52022:       fi
                   52023: 
                   52024:   fi
                   52025: 
                   52026:     ;;
                   52027:     esac
                   52028:   done
                   52029: 
                   52030:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5
                   52031: $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
                   52032: if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then :
                   52033:   $as_echo_n "(cached) " >&6
                   52034: else
                   52035:   ac_check_lib_save_LIBS=$LIBS
                   52036: LIBS="-lcrypto  $LIBS"
                   52037: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   52038: /* end confdefs.h.  */
                   52039: 
                   52040: /* Override any GCC internal prototype to avoid an error.
                   52041:    Use char because int might match the return type of a GCC
                   52042:    builtin and then its argument prototype would still apply.  */
                   52043: #ifdef __cplusplus
                   52044: extern "C"
                   52045: #endif
                   52046: char CRYPTO_free ();
                   52047: int
                   52048: main ()
                   52049: {
                   52050: return CRYPTO_free ();
                   52051:   ;
                   52052:   return 0;
                   52053: }
                   52054: _ACEOF
                   52055: if ac_fn_c_try_link "$LINENO"; then :
                   52056:   ac_cv_lib_crypto_CRYPTO_free=yes
                   52057: else
                   52058:   ac_cv_lib_crypto_CRYPTO_free=no
                   52059: fi
                   52060: rm -f core conftest.err conftest.$ac_objext \
                   52061:     conftest$ac_exeext conftest.$ac_ext
                   52062: LIBS=$ac_check_lib_save_LIBS
                   52063: fi
                   52064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
                   52065: $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
                   52066: if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then :
                   52067: 
                   52068:     LDFLAGS=$save_old_LDFLAGS
                   52069:     ext_shared=$save_ext_shared
                   52070: 
                   52071: 
                   52072: 
                   52073:   case crypto in
                   52074:   c|c_r|pthread*) ;;
                   52075:   *)
                   52076:     if test "$ext_shared" = "yes"; then
                   52077:         IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD"
                   52078:     else
                   52079: 
                   52080: 
                   52081:   case crypto in
                   52082:   c|c_r|pthread*) ;;
                   52083:   *)
                   52084:       LIBS="-lcrypto $LIBS"
                   52085:    ;;
                   52086:   esac
                   52087: 
                   52088: 
                   52089:     fi
                   52090:    ;;
                   52091:   esac
                   52092: 
                   52093: 
                   52094: 
                   52095: 
                   52096: else
                   52097: 
                   52098:     LDFLAGS=$save_old_LDFLAGS
                   52099:     ext_shared=$save_ext_shared
                   52100:     unset ac_cv_lib_crypto_CRYPTO_free
                   52101: 
                   52102:       as_fn_error $? "libcrypto not found!" "$LINENO" 5
                   52103: 
                   52104: 
                   52105: fi
                   52106: 
                   52107: 
                   52108:     old_LIBS=$LIBS
                   52109:     LIBS="$LIBS -lcrypto"
                   52110: 
                   52111:   save_old_LDFLAGS=$LDFLAGS
                   52112:   ac_stuff="
                   52113:       -L$OPENSSL_LIBDIR
                   52114:     "
                   52115: 
                   52116:   save_ext_shared=$ext_shared
                   52117:   ext_shared=yes
                   52118: 
                   52119:   for ac_i in $ac_stuff; do
                   52120:     case $ac_i in
                   52121:     -pthread)
                   52122:       if test "$ext_shared" = "yes"; then
                   52123:         LDFLAGS="$LDFLAGS -pthread"
                   52124:       else
                   52125: 
                   52126: 
                   52127:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   52128: 
                   52129:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   52130:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   52131:     eval "EXTRA_LDFLAGS$unique=set"
                   52132:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   52133:   fi
                   52134: 
                   52135:       fi
                   52136:     ;;
                   52137:     -l*)
                   52138:       ac_ii=`echo $ac_i|cut -c 3-`
                   52139: 
                   52140: 
                   52141:   case $ac_ii in
                   52142:   c|c_r|pthread*) ;;
                   52143:   *)
                   52144:     if test "$ext_shared" = "yes"; then
                   52145:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   52146:     else
                   52147: 
                   52148: 
                   52149:   case $ac_ii in
                   52150:   c|c_r|pthread*) ;;
                   52151:   *)
                   52152:       LIBS="$LIBS -l$ac_ii"
                   52153:    ;;
                   52154:   esac
                   52155: 
                   52156: 
                   52157:     fi
                   52158:    ;;
                   52159:   esac
                   52160: 
                   52161: 
                   52162:     ;;
                   52163:     -L*)
                   52164:       ac_ii=`echo $ac_i|cut -c 3-`
                   52165: 
                   52166:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   52167: 
                   52168:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   52169:     ai_p=$ac_ii
                   52170:   else
                   52171: 
                   52172:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   52173: 
                   52174:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   52175:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   52176:   fi
                   52177: 
                   52178: 
                   52179:       if test "$ext_shared" = "yes"; then
                   52180:         LDFLAGS="-L$ai_p $LDFLAGS"
                   52181:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   52182:       else
                   52183: 
                   52184: 
                   52185: 
                   52186:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   52187: 
                   52188:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   52189:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   52190:     eval "LIBPATH$unique=set"
                   52191: 
                   52192:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   52193:     LDFLAGS="$LDFLAGS -L$ai_p"
                   52194:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   52195: 
                   52196:   fi
                   52197: 
                   52198: 
                   52199:       fi
                   52200: 
                   52201:   fi
                   52202: 
                   52203:     ;;
                   52204:     esac
                   52205:   done
                   52206: 
                   52207:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5
                   52208: $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
                   52209: if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then :
                   52210:   $as_echo_n "(cached) " >&6
                   52211: else
                   52212:   ac_check_lib_save_LIBS=$LIBS
                   52213: LIBS="-lssl  $LIBS"
                   52214: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   52215: /* end confdefs.h.  */
                   52216: 
                   52217: /* Override any GCC internal prototype to avoid an error.
                   52218:    Use char because int might match the return type of a GCC
                   52219:    builtin and then its argument prototype would still apply.  */
                   52220: #ifdef __cplusplus
                   52221: extern "C"
                   52222: #endif
                   52223: char SSL_CTX_set_ssl_version ();
                   52224: int
                   52225: main ()
                   52226: {
                   52227: return SSL_CTX_set_ssl_version ();
                   52228:   ;
                   52229:   return 0;
                   52230: }
                   52231: _ACEOF
                   52232: if ac_fn_c_try_link "$LINENO"; then :
                   52233:   ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
                   52234: else
                   52235:   ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
                   52236: fi
                   52237: rm -f core conftest.err conftest.$ac_objext \
                   52238:     conftest$ac_exeext conftest.$ac_ext
                   52239: LIBS=$ac_check_lib_save_LIBS
                   52240: fi
                   52241: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
                   52242: $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
                   52243: if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then :
                   52244: 
                   52245:     LDFLAGS=$save_old_LDFLAGS
                   52246:     ext_shared=$save_ext_shared
                   52247: 
                   52248:       found_openssl=yes
                   52249: 
                   52250: 
                   52251: else
                   52252: 
                   52253:     LDFLAGS=$save_old_LDFLAGS
                   52254:     ext_shared=$save_ext_shared
                   52255:     unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
                   52256: 
                   52257:       as_fn_error $? "libssl not found!" "$LINENO" 5
                   52258: 
                   52259: 
                   52260: fi
                   52261: 
                   52262:     LIBS=$old_LIBS
                   52263: 
                   52264: 
                   52265:   case ssl in
                   52266:   c|c_r|pthread*) ;;
                   52267:   *)
                   52268:     if test "$ext_shared" = "yes"; then
                   52269:         IMAP_SHARED_LIBADD="-lssl $IMAP_SHARED_LIBADD"
                   52270:     else
                   52271: 
                   52272: 
                   52273:   case ssl in
                   52274:   c|c_r|pthread*) ;;
                   52275:   *)
                   52276:       LIBS="-lssl $LIBS"
                   52277:    ;;
                   52278:   esac
                   52279: 
                   52280: 
                   52281:     fi
                   52282:    ;;
                   52283:   esac
                   52284: 
                   52285: 
                   52286: 
                   52287: 
                   52288:   case crypto in
                   52289:   c|c_r|pthread*) ;;
                   52290:   *)
                   52291:     if test "$ext_shared" = "yes"; then
                   52292:         IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD"
                   52293:     else
                   52294: 
                   52295: 
                   52296:   case crypto in
                   52297:   c|c_r|pthread*) ;;
                   52298:   *)
                   52299:       LIBS="-lcrypto $LIBS"
                   52300:    ;;
                   52301:   esac
                   52302: 
                   52303: 
                   52304:     fi
                   52305:    ;;
                   52306:   esac
                   52307: 
                   52308: 
                   52309: 
                   52310: 
                   52311:   if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
                   52312: 
                   52313:   if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
                   52314:     ai_p=$OPENSSL_LIBDIR
                   52315:   else
                   52316: 
                   52317:     ep_dir="`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   52318: 
                   52319:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   52320:     ai_p="$ep_realdir/`basename \"$OPENSSL_LIBDIR\"`"
                   52321:   fi
                   52322: 
                   52323: 
                   52324:       if test "$ext_shared" = "yes"; then
                   52325:         IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
                   52326:         test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
                   52327:       else
                   52328: 
                   52329: 
                   52330: 
                   52331:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   52332: 
                   52333:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   52334:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   52335:     eval "LIBPATH$unique=set"
                   52336: 
                   52337:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   52338:     LDFLAGS="$LDFLAGS -L$ai_p"
                   52339:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   52340: 
                   52341:   fi
                   52342: 
                   52343: 
                   52344:       fi
                   52345: 
                   52346:   fi
                   52347: 
                   52348:   fi
                   52349: 
                   52350:   if test "$found_openssl" = "yes"; then
                   52351:     OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
                   52352: 
                   52353: 
                   52354: 
                   52355: 
                   52356: $as_echo "#define HAVE_IMAP_SSL 1" >>confdefs.h
                   52357: 
                   52358: 
                   52359: else
                   52360:       as_fn_error $? "OpenSSL libraries not found.
                   52361: 
                   52362:       Check the path given to --with-openssl-dir and output in config.log)
                   52363:       " "$LINENO" 5
                   52364: 
                   52365:   fi
                   52366: 
                   52367:   elif test -f "$IMAP_INC_DIR/linkage.c"; then
                   52368:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   52369: /* end confdefs.h.  */
                   52370: #include <$IMAP_INC_DIR/linkage.c>
                   52371: 
                   52372: _ACEOF
                   52373: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   52374:   $EGREP "ssl_onceonlyinit" >/dev/null 2>&1; then :
                   52375: 
                   52376:       as_fn_error $? "This c-client library is built with SSL support.
                   52377: 
                   52378:       Add --with-imap-ssl to your configure line. Check config.log for details.
                   52379:       " "$LINENO" 5
                   52380: 
                   52381: fi
                   52382: rm -f conftest*
                   52383: 
                   52384:   fi
                   52385: 
                   52386: 
                   52387:         TST_LIBS="$DLIBS $IMAP_SHARED_LIBADD"
                   52388: 
                   52389: 
                   52390: 
                   52391:   old_LIBS=$LIBS
                   52392:   LIBS="$TST_LIBS $LIBS"
                   52393:   if test "$cross_compiling" = yes; then :
                   52394: 
                   52395:     LIBS=$old_LIBS
                   52396: 
                   52397: else
                   52398:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   52399: /* end confdefs.h.  */
                   52400: 
                   52401: 
                   52402: #if defined(__GNUC__) && __GNUC__ >= 4
                   52403: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
                   52404: #else
                   52405: # define PHP_IMAP_EXPORT
                   52406: #endif
                   52407: 
                   52408:     PHP_IMAP_EXPORT void mm_log(void){}
                   52409:     PHP_IMAP_EXPORT void mm_dlog(void){}
                   52410:     PHP_IMAP_EXPORT void mm_flags(void){}
                   52411:     PHP_IMAP_EXPORT void mm_fatal(void){}
                   52412:     PHP_IMAP_EXPORT void mm_critical(void){}
                   52413:     PHP_IMAP_EXPORT void mm_nocritical(void){}
                   52414:     PHP_IMAP_EXPORT void mm_notify(void){}
                   52415:     PHP_IMAP_EXPORT void mm_login(void){}
                   52416:     PHP_IMAP_EXPORT void mm_diskerror(void){}
                   52417:     PHP_IMAP_EXPORT void mm_status(void){}
                   52418:     PHP_IMAP_EXPORT void mm_lsub(void){}
                   52419:     PHP_IMAP_EXPORT void mm_list(void){}
                   52420:     PHP_IMAP_EXPORT void mm_exists(void){}
                   52421:     PHP_IMAP_EXPORT void mm_searched(void){}
                   52422:     PHP_IMAP_EXPORT void mm_expunged(void){}
                   52423: 
                   52424:     char auth_gssapi_valid();
                   52425:     int main() {
                   52426:       auth_gssapi_valid();
                   52427:       return 0;
                   52428:     }
                   52429: 
                   52430: _ACEOF
                   52431: if ac_fn_c_try_run "$LINENO"; then :
                   52432: 
                   52433:     LIBS=$old_LIBS
                   52434: 
                   52435: 
                   52436: $as_echo "#define HAVE_IMAP_AUTH_GSS 1" >>confdefs.h
                   52437: 
                   52438: 
                   52439: 
                   52440: else
                   52441: 
                   52442:     LIBS=$old_LIBS
                   52443: 
                   52444: 
                   52445: fi
                   52446: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   52447:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   52448: fi
                   52449: 
                   52450: 
                   52451: 
                   52452: 
                   52453: 
                   52454: 
                   52455:   old_LIBS=$LIBS
                   52456:   LIBS="$TST_LIBS $LIBS"
                   52457:   if test "$cross_compiling" = yes; then :
                   52458: 
                   52459:     LIBS=$old_LIBS
                   52460: 
                   52461: else
                   52462:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   52463: /* end confdefs.h.  */
                   52464: 
                   52465: 
                   52466: #if defined(__GNUC__) && __GNUC__ >= 4
                   52467: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
                   52468: #else
                   52469: # define PHP_IMAP_EXPORT
                   52470: #endif
                   52471: 
                   52472:     PHP_IMAP_EXPORT void mm_log(void){}
                   52473:     PHP_IMAP_EXPORT void mm_dlog(void){}
                   52474:     PHP_IMAP_EXPORT void mm_flags(void){}
                   52475:     PHP_IMAP_EXPORT void mm_fatal(void){}
                   52476:     PHP_IMAP_EXPORT void mm_critical(void){}
                   52477:     PHP_IMAP_EXPORT void mm_nocritical(void){}
                   52478:     PHP_IMAP_EXPORT void mm_notify(void){}
                   52479:     PHP_IMAP_EXPORT void mm_login(void){}
                   52480:     PHP_IMAP_EXPORT void mm_diskerror(void){}
                   52481:     PHP_IMAP_EXPORT void mm_status(void){}
                   52482:     PHP_IMAP_EXPORT void mm_lsub(void){}
                   52483:     PHP_IMAP_EXPORT void mm_list(void){}
                   52484:     PHP_IMAP_EXPORT void mm_exists(void){}
                   52485:     PHP_IMAP_EXPORT void mm_searched(void){}
                   52486:     PHP_IMAP_EXPORT void mm_expunged(void){}
                   52487: 
                   52488:     char utf8_to_mutf7();
                   52489:     int main() {
                   52490:       utf8_to_mutf7();
                   52491:       return 0;
                   52492:     }
                   52493: 
                   52494: _ACEOF
                   52495: if ac_fn_c_try_run "$LINENO"; then :
                   52496: 
                   52497:     LIBS=$old_LIBS
                   52498: 
                   52499: 
                   52500: $as_echo "#define HAVE_IMAP_MUTF7 1" >>confdefs.h
                   52501: 
                   52502: 
                   52503: 
                   52504: else
                   52505: 
                   52506:     LIBS=$old_LIBS
                   52507: 
                   52508: 
                   52509: fi
                   52510: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   52511:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   52512: fi
                   52513: 
                   52514: 
                   52515: 
                   52516: 
                   52517:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rfc822_output_address_list function present" >&5
                   52518: $as_echo_n "checking whether rfc822_output_address_list function present... " >&6; }
                   52519: 
                   52520:   old_LIBS=$LIBS
                   52521:   LIBS="
                   52522:       $TST_LIBS
                   52523:      $LIBS"
                   52524:   if test "$cross_compiling" = yes; then :
                   52525: 
                   52526:     LIBS=$old_LIBS
                   52527: 
                   52528: else
                   52529:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   52530: /* end confdefs.h.  */
                   52531: 
                   52532: 
                   52533: #if defined(__GNUC__) && __GNUC__ >= 4
                   52534: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
                   52535: #else
                   52536: # define PHP_IMAP_EXPORT
                   52537: #endif
                   52538: 
                   52539:       PHP_IMAP_EXPORT void mm_log(void){}
                   52540:       PHP_IMAP_EXPORT void mm_dlog(void){}
                   52541:       PHP_IMAP_EXPORT void mm_flags(void){}
                   52542:       PHP_IMAP_EXPORT void mm_fatal(void){}
                   52543:       PHP_IMAP_EXPORT void mm_critical(void){}
                   52544:       PHP_IMAP_EXPORT void mm_nocritical(void){}
                   52545:       PHP_IMAP_EXPORT void mm_notify(void){}
                   52546:       PHP_IMAP_EXPORT void mm_login(void){}
                   52547:       PHP_IMAP_EXPORT void mm_diskerror(void){}
                   52548:       PHP_IMAP_EXPORT void mm_status(void){}
                   52549:       PHP_IMAP_EXPORT void mm_lsub(void){}
                   52550:       PHP_IMAP_EXPORT void mm_list(void){}
                   52551:       PHP_IMAP_EXPORT void mm_exists(void){}
                   52552:       PHP_IMAP_EXPORT void mm_searched(void){}
                   52553:       PHP_IMAP_EXPORT void mm_expunged(void){}
                   52554:       void rfc822_output_address_list(void);
                   52555:       void (*f)(void);
                   52556:       char foobar () {f = rfc822_output_address_list;}
                   52557: 
                   52558:     char foobar();
                   52559:     int main() {
                   52560:       foobar();
                   52561:       return 0;
                   52562:     }
                   52563: 
                   52564: _ACEOF
                   52565: if ac_fn_c_try_run "$LINENO"; then :
                   52566: 
                   52567:     LIBS=$old_LIBS
                   52568: 
                   52569:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   52570: $as_echo "yes" >&6; }
                   52571: 
                   52572: $as_echo "#define HAVE_RFC822_OUTPUT_ADDRESS_LIST 1" >>confdefs.h
                   52573: 
                   52574: 
                   52575: 
                   52576: else
                   52577: 
                   52578:     LIBS=$old_LIBS
                   52579: 
                   52580:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   52581: $as_echo "no" >&6; }
                   52582: 
                   52583: 
                   52584: fi
                   52585: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   52586:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   52587: fi
                   52588: 
                   52589: 
                   52590: 
                   52591:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build with IMAP works" >&5
                   52592: $as_echo_n "checking whether build with IMAP works... " >&6; }
                   52593: 
                   52594: 
                   52595:   old_LIBS=$LIBS
                   52596:   LIBS="$TST_LIBS $LIBS"
                   52597:   if test "$cross_compiling" = yes; then :
                   52598: 
                   52599:     LIBS=$old_LIBS
                   52600: 
                   52601: else
                   52602:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   52603: /* end confdefs.h.  */
                   52604: 
                   52605: 
                   52606: #if defined(__GNUC__) && __GNUC__ >= 4
                   52607: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
                   52608: #else
                   52609: # define PHP_IMAP_EXPORT
                   52610: #endif
                   52611: 
                   52612:     PHP_IMAP_EXPORT void mm_log(void){}
                   52613:     PHP_IMAP_EXPORT void mm_dlog(void){}
                   52614:     PHP_IMAP_EXPORT void mm_flags(void){}
                   52615:     PHP_IMAP_EXPORT void mm_fatal(void){}
                   52616:     PHP_IMAP_EXPORT void mm_critical(void){}
                   52617:     PHP_IMAP_EXPORT void mm_nocritical(void){}
                   52618:     PHP_IMAP_EXPORT void mm_notify(void){}
                   52619:     PHP_IMAP_EXPORT void mm_login(void){}
                   52620:     PHP_IMAP_EXPORT void mm_diskerror(void){}
                   52621:     PHP_IMAP_EXPORT void mm_status(void){}
                   52622:     PHP_IMAP_EXPORT void mm_lsub(void){}
                   52623:     PHP_IMAP_EXPORT void mm_list(void){}
                   52624:     PHP_IMAP_EXPORT void mm_exists(void){}
                   52625:     PHP_IMAP_EXPORT void mm_searched(void){}
                   52626:     PHP_IMAP_EXPORT void mm_expunged(void){}
                   52627: 
                   52628:     char mail_newbody();
                   52629:     int main() {
                   52630:       mail_newbody();
                   52631:       return 0;
                   52632:     }
                   52633: 
                   52634: _ACEOF
                   52635: if ac_fn_c_try_run "$LINENO"; then :
                   52636: 
                   52637:     LIBS=$old_LIBS
                   52638: 
                   52639:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   52640: $as_echo "yes" >&6; }
                   52641: 
                   52642: 
                   52643: else
                   52644: 
                   52645:     LIBS=$old_LIBS
                   52646: 
                   52647:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   52648: $as_echo "no" >&6; }
                   52649:       as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
                   52650: 
                   52651: 
                   52652: fi
                   52653: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   52654:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   52655: fi
                   52656: 
                   52657: 
                   52658: 
                   52659: fi
                   52660: 
                   52661: 
                   52662: 
                   52663: php_with_interbase=no
                   52664: 
                   52665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for InterBase support" >&5
                   52666: $as_echo_n "checking for InterBase support... " >&6; }
                   52667: 
                   52668: # Check whether --with-interbase was given.
                   52669: if test "${with_interbase+set}" = set; then :
                   52670:   withval=$with_interbase; PHP_INTERBASE=$withval
                   52671: else
                   52672: 
                   52673:   PHP_INTERBASE=no
                   52674:   test "$PHP_ENABLE_ALL" && PHP_INTERBASE=$PHP_ENABLE_ALL
                   52675: 
                   52676: fi
                   52677: 
                   52678: 
                   52679: 
                   52680: ext_output="yes, shared"
                   52681: ext_shared=yes
                   52682: case $PHP_INTERBASE in
                   52683: shared,*)
                   52684:   PHP_INTERBASE=`echo "$PHP_INTERBASE"|$SED 's/^shared,//'`
                   52685:   ;;
                   52686: shared)
                   52687:   PHP_INTERBASE=yes
                   52688:   ;;
                   52689: no)
                   52690:   ext_output=no
                   52691:   ext_shared=no
                   52692:   ;;
                   52693: *)
                   52694:   ext_output=yes
                   52695:   ext_shared=no
                   52696:   ;;
                   52697: esac
                   52698: 
                   52699: 
                   52700: 
                   52701: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   52702: $as_echo "$ext_output" >&6; }
                   52703: 
                   52704: 
                   52705: 
                   52706: 
                   52707: if test "$PHP_INTERBASE" != "no"; then
                   52708:   if test "$PHP_INTERBASE" = "yes"; then
                   52709:     IBASE_INCDIR=/usr/interbase/include
                   52710:     IBASE_LIBDIR=/usr/interbase/lib
                   52711:   else
                   52712:     IBASE_INCDIR=$PHP_INTERBASE/include
                   52713:     IBASE_LIBDIR=$PHP_INTERBASE/$PHP_LIBDIR
                   52714:   fi
                   52715: 
                   52716: 
                   52717:   save_old_LDFLAGS=$LDFLAGS
                   52718:   ac_stuff="
                   52719:     -L$IBASE_LIBDIR
                   52720:   "
                   52721: 
                   52722:   save_ext_shared=$ext_shared
                   52723:   ext_shared=yes
                   52724: 
                   52725:   for ac_i in $ac_stuff; do
                   52726:     case $ac_i in
                   52727:     -pthread)
                   52728:       if test "$ext_shared" = "yes"; then
                   52729:         LDFLAGS="$LDFLAGS -pthread"
                   52730:       else
                   52731: 
                   52732: 
                   52733:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   52734: 
                   52735:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   52736:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   52737:     eval "EXTRA_LDFLAGS$unique=set"
                   52738:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   52739:   fi
                   52740: 
                   52741:       fi
                   52742:     ;;
                   52743:     -l*)
                   52744:       ac_ii=`echo $ac_i|cut -c 3-`
                   52745: 
                   52746: 
                   52747:   case $ac_ii in
                   52748:   c|c_r|pthread*) ;;
                   52749:   *)
                   52750:     if test "$ext_shared" = "yes"; then
                   52751:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   52752:     else
                   52753: 
                   52754: 
                   52755:   case $ac_ii in
                   52756:   c|c_r|pthread*) ;;
                   52757:   *)
                   52758:       LIBS="$LIBS -l$ac_ii"
                   52759:    ;;
                   52760:   esac
                   52761: 
                   52762: 
                   52763:     fi
                   52764:    ;;
                   52765:   esac
                   52766: 
                   52767: 
                   52768:     ;;
                   52769:     -L*)
                   52770:       ac_ii=`echo $ac_i|cut -c 3-`
                   52771: 
                   52772:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   52773: 
                   52774:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   52775:     ai_p=$ac_ii
                   52776:   else
                   52777: 
                   52778:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   52779: 
                   52780:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   52781:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   52782:   fi
                   52783: 
                   52784: 
                   52785:       if test "$ext_shared" = "yes"; then
                   52786:         LDFLAGS="-L$ai_p $LDFLAGS"
                   52787:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   52788:       else
                   52789: 
                   52790: 
                   52791: 
                   52792:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   52793: 
                   52794:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   52795:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   52796:     eval "LIBPATH$unique=set"
                   52797: 
                   52798:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   52799:     LDFLAGS="$LDFLAGS -L$ai_p"
                   52800:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   52801: 
                   52802:   fi
                   52803: 
                   52804: 
                   52805:       fi
                   52806: 
                   52807:   fi
                   52808: 
                   52809:     ;;
                   52810:     esac
                   52811:   done
                   52812: 
                   52813:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5
                   52814: $as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; }
                   52815: if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then :
                   52816:   $as_echo_n "(cached) " >&6
                   52817: else
                   52818:   ac_check_lib_save_LIBS=$LIBS
                   52819: LIBS="-lfbclient  $LIBS"
                   52820: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   52821: /* end confdefs.h.  */
                   52822: 
                   52823: /* Override any GCC internal prototype to avoid an error.
                   52824:    Use char because int might match the return type of a GCC
                   52825:    builtin and then its argument prototype would still apply.  */
                   52826: #ifdef __cplusplus
                   52827: extern "C"
                   52828: #endif
                   52829: char isc_detach_database ();
                   52830: int
                   52831: main ()
                   52832: {
                   52833: return isc_detach_database ();
                   52834:   ;
                   52835:   return 0;
                   52836: }
                   52837: _ACEOF
                   52838: if ac_fn_c_try_link "$LINENO"; then :
                   52839:   ac_cv_lib_fbclient_isc_detach_database=yes
                   52840: else
                   52841:   ac_cv_lib_fbclient_isc_detach_database=no
                   52842: fi
                   52843: rm -f core conftest.err conftest.$ac_objext \
                   52844:     conftest$ac_exeext conftest.$ac_ext
                   52845: LIBS=$ac_check_lib_save_LIBS
                   52846: fi
                   52847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5
                   52848: $as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; }
                   52849: if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then :
                   52850: 
                   52851:     LDFLAGS=$save_old_LDFLAGS
                   52852:     ext_shared=$save_ext_shared
                   52853: 
                   52854:     IBASE_LIBNAME=fbclient
                   52855: 
                   52856: 
                   52857: else
                   52858: 
                   52859:     LDFLAGS=$save_old_LDFLAGS
                   52860:     ext_shared=$save_ext_shared
                   52861:     unset ac_cv_lib_fbclient_isc_detach_database
                   52862: 
                   52863: 
                   52864:   save_old_LDFLAGS=$LDFLAGS
                   52865:   ac_stuff="
                   52866:       -L$IBASE_LIBDIR
                   52867:     "
                   52868: 
                   52869:   save_ext_shared=$ext_shared
                   52870:   ext_shared=yes
                   52871: 
                   52872:   for ac_i in $ac_stuff; do
                   52873:     case $ac_i in
                   52874:     -pthread)
                   52875:       if test "$ext_shared" = "yes"; then
                   52876:         LDFLAGS="$LDFLAGS -pthread"
                   52877:       else
                   52878: 
                   52879: 
                   52880:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   52881: 
                   52882:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   52883:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   52884:     eval "EXTRA_LDFLAGS$unique=set"
                   52885:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   52886:   fi
                   52887: 
                   52888:       fi
                   52889:     ;;
                   52890:     -l*)
                   52891:       ac_ii=`echo $ac_i|cut -c 3-`
                   52892: 
                   52893: 
                   52894:   case $ac_ii in
                   52895:   c|c_r|pthread*) ;;
                   52896:   *)
                   52897:     if test "$ext_shared" = "yes"; then
                   52898:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   52899:     else
                   52900: 
                   52901: 
                   52902:   case $ac_ii in
                   52903:   c|c_r|pthread*) ;;
                   52904:   *)
                   52905:       LIBS="$LIBS -l$ac_ii"
                   52906:    ;;
                   52907:   esac
                   52908: 
                   52909: 
                   52910:     fi
                   52911:    ;;
                   52912:   esac
                   52913: 
                   52914: 
                   52915:     ;;
                   52916:     -L*)
                   52917:       ac_ii=`echo $ac_i|cut -c 3-`
                   52918: 
                   52919:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   52920: 
                   52921:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   52922:     ai_p=$ac_ii
                   52923:   else
                   52924: 
                   52925:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   52926: 
                   52927:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   52928:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   52929:   fi
                   52930: 
                   52931: 
                   52932:       if test "$ext_shared" = "yes"; then
                   52933:         LDFLAGS="-L$ai_p $LDFLAGS"
                   52934:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   52935:       else
                   52936: 
                   52937: 
                   52938: 
                   52939:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   52940: 
                   52941:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   52942:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   52943:     eval "LIBPATH$unique=set"
                   52944: 
                   52945:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   52946:     LDFLAGS="$LDFLAGS -L$ai_p"
                   52947:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   52948: 
                   52949:   fi
                   52950: 
                   52951: 
                   52952:       fi
                   52953: 
                   52954:   fi
                   52955: 
                   52956:     ;;
                   52957:     esac
                   52958:   done
                   52959: 
                   52960:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5
                   52961: $as_echo_n "checking for isc_detach_database in -lgds... " >&6; }
                   52962: if ${ac_cv_lib_gds_isc_detach_database+:} false; then :
                   52963:   $as_echo_n "(cached) " >&6
                   52964: else
                   52965:   ac_check_lib_save_LIBS=$LIBS
                   52966: LIBS="-lgds  $LIBS"
                   52967: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   52968: /* end confdefs.h.  */
                   52969: 
                   52970: /* Override any GCC internal prototype to avoid an error.
                   52971:    Use char because int might match the return type of a GCC
                   52972:    builtin and then its argument prototype would still apply.  */
                   52973: #ifdef __cplusplus
                   52974: extern "C"
                   52975: #endif
                   52976: char isc_detach_database ();
                   52977: int
                   52978: main ()
                   52979: {
                   52980: return isc_detach_database ();
                   52981:   ;
                   52982:   return 0;
                   52983: }
                   52984: _ACEOF
                   52985: if ac_fn_c_try_link "$LINENO"; then :
                   52986:   ac_cv_lib_gds_isc_detach_database=yes
                   52987: else
                   52988:   ac_cv_lib_gds_isc_detach_database=no
                   52989: fi
                   52990: rm -f core conftest.err conftest.$ac_objext \
                   52991:     conftest$ac_exeext conftest.$ac_ext
                   52992: LIBS=$ac_check_lib_save_LIBS
                   52993: fi
                   52994: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5
                   52995: $as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; }
                   52996: if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then :
                   52997: 
                   52998:     LDFLAGS=$save_old_LDFLAGS
                   52999:     ext_shared=$save_ext_shared
                   53000: 
                   53001:       IBASE_LIBNAME=gds
                   53002: 
                   53003: 
                   53004: else
                   53005: 
                   53006:     LDFLAGS=$save_old_LDFLAGS
                   53007:     ext_shared=$save_ext_shared
                   53008:     unset ac_cv_lib_gds_isc_detach_database
                   53009: 
                   53010: 
                   53011:   save_old_LDFLAGS=$LDFLAGS
                   53012:   ac_stuff="
                   53013:         -L$IBASE_LIBDIR
                   53014:       "
                   53015: 
                   53016:   save_ext_shared=$ext_shared
                   53017:   ext_shared=yes
                   53018: 
                   53019:   for ac_i in $ac_stuff; do
                   53020:     case $ac_i in
                   53021:     -pthread)
                   53022:       if test "$ext_shared" = "yes"; then
                   53023:         LDFLAGS="$LDFLAGS -pthread"
                   53024:       else
                   53025: 
                   53026: 
                   53027:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   53028: 
                   53029:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   53030:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   53031:     eval "EXTRA_LDFLAGS$unique=set"
                   53032:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   53033:   fi
                   53034: 
                   53035:       fi
                   53036:     ;;
                   53037:     -l*)
                   53038:       ac_ii=`echo $ac_i|cut -c 3-`
                   53039: 
                   53040: 
                   53041:   case $ac_ii in
                   53042:   c|c_r|pthread*) ;;
                   53043:   *)
                   53044:     if test "$ext_shared" = "yes"; then
                   53045:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   53046:     else
                   53047: 
                   53048: 
                   53049:   case $ac_ii in
                   53050:   c|c_r|pthread*) ;;
                   53051:   *)
                   53052:       LIBS="$LIBS -l$ac_ii"
                   53053:    ;;
                   53054:   esac
                   53055: 
                   53056: 
                   53057:     fi
                   53058:    ;;
                   53059:   esac
                   53060: 
                   53061: 
                   53062:     ;;
                   53063:     -L*)
                   53064:       ac_ii=`echo $ac_i|cut -c 3-`
                   53065: 
                   53066:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   53067: 
                   53068:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   53069:     ai_p=$ac_ii
                   53070:   else
                   53071: 
                   53072:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   53073: 
                   53074:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   53075:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   53076:   fi
                   53077: 
                   53078: 
                   53079:       if test "$ext_shared" = "yes"; then
                   53080:         LDFLAGS="-L$ai_p $LDFLAGS"
                   53081:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   53082:       else
                   53083: 
                   53084: 
                   53085: 
                   53086:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   53087: 
                   53088:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   53089:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   53090:     eval "LIBPATH$unique=set"
                   53091: 
                   53092:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   53093:     LDFLAGS="$LDFLAGS -L$ai_p"
                   53094:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   53095: 
                   53096:   fi
                   53097: 
                   53098: 
                   53099:       fi
                   53100: 
                   53101:   fi
                   53102: 
                   53103:     ;;
                   53104:     esac
                   53105:   done
                   53106: 
                   53107:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5
                   53108: $as_echo_n "checking for isc_detach_database in -lib_util... " >&6; }
                   53109: if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then :
                   53110:   $as_echo_n "(cached) " >&6
                   53111: else
                   53112:   ac_check_lib_save_LIBS=$LIBS
                   53113: LIBS="-lib_util  $LIBS"
                   53114: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   53115: /* end confdefs.h.  */
                   53116: 
                   53117: /* Override any GCC internal prototype to avoid an error.
                   53118:    Use char because int might match the return type of a GCC
                   53119:    builtin and then its argument prototype would still apply.  */
                   53120: #ifdef __cplusplus
                   53121: extern "C"
                   53122: #endif
                   53123: char isc_detach_database ();
                   53124: int
                   53125: main ()
                   53126: {
                   53127: return isc_detach_database ();
                   53128:   ;
                   53129:   return 0;
                   53130: }
                   53131: _ACEOF
                   53132: if ac_fn_c_try_link "$LINENO"; then :
                   53133:   ac_cv_lib_ib_util_isc_detach_database=yes
                   53134: else
                   53135:   ac_cv_lib_ib_util_isc_detach_database=no
                   53136: fi
                   53137: rm -f core conftest.err conftest.$ac_objext \
                   53138:     conftest$ac_exeext conftest.$ac_ext
                   53139: LIBS=$ac_check_lib_save_LIBS
                   53140: fi
                   53141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5
                   53142: $as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; }
                   53143: if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then :
                   53144: 
                   53145:     LDFLAGS=$save_old_LDFLAGS
                   53146:     ext_shared=$save_ext_shared
                   53147: 
                   53148:         IBASE_LIBNAME=ib_util
                   53149: 
                   53150: 
                   53151: else
                   53152: 
                   53153:     LDFLAGS=$save_old_LDFLAGS
                   53154:     ext_shared=$save_ext_shared
                   53155:     unset ac_cv_lib_ib_util_isc_detach_database
                   53156: 
                   53157:         as_fn_error $? "libgds, libib_util or libfbclient not found! Check config.log for more information." "$LINENO" 5
                   53158: 
                   53159: 
                   53160: fi
                   53161: 
                   53162: 
                   53163: 
                   53164: fi
                   53165: 
                   53166: 
                   53167: 
                   53168: fi
                   53169: 
                   53170: 
                   53171: 
                   53172: 
                   53173:   if test "$ext_shared" = "yes"; then
                   53174:     INTERBASE_SHARED_LIBADD="-l$IBASE_LIBNAME $INTERBASE_SHARED_LIBADD"
                   53175:     if test -n "$IBASE_LIBDIR"; then
                   53176: 
                   53177:   if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then
                   53178: 
                   53179:   if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then
                   53180:     ai_p=$IBASE_LIBDIR
                   53181:   else
                   53182: 
                   53183:     ep_dir="`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   53184: 
                   53185:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   53186:     ai_p="$ep_realdir/`basename \"$IBASE_LIBDIR\"`"
                   53187:   fi
                   53188: 
                   53189: 
                   53190:       if test "$ext_shared" = "yes"; then
                   53191:         INTERBASE_SHARED_LIBADD="-L$ai_p $INTERBASE_SHARED_LIBADD"
                   53192:         test -n "$ld_runpath_switch" && INTERBASE_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTERBASE_SHARED_LIBADD"
                   53193:       else
                   53194: 
                   53195: 
                   53196: 
                   53197:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   53198: 
                   53199:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   53200:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   53201:     eval "LIBPATH$unique=set"
                   53202: 
                   53203:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   53204:     LDFLAGS="$LDFLAGS -L$ai_p"
                   53205:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   53206: 
                   53207:   fi
                   53208: 
                   53209: 
                   53210:       fi
                   53211: 
                   53212:   fi
                   53213: 
                   53214:     fi
                   53215:   else
                   53216: 
                   53217: 
                   53218:   if test -n "$IBASE_LIBDIR"; then
                   53219: 
                   53220:   if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then
                   53221: 
                   53222:   if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then
                   53223:     ai_p=$IBASE_LIBDIR
                   53224:   else
                   53225: 
                   53226:     ep_dir="`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   53227: 
                   53228:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   53229:     ai_p="$ep_realdir/`basename \"$IBASE_LIBDIR\"`"
                   53230:   fi
                   53231: 
                   53232: 
                   53233: 
                   53234: 
                   53235: 
                   53236:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   53237: 
                   53238:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   53239:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   53240:     eval "LIBPATH$unique=set"
                   53241: 
                   53242:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   53243:     LDFLAGS="$LDFLAGS -L$ai_p"
                   53244:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   53245: 
                   53246:   fi
                   53247: 
                   53248: 
                   53249: 
                   53250:   fi
                   53251: 
                   53252:   fi
                   53253: 
                   53254: 
                   53255:   case $IBASE_LIBNAME in
                   53256:   c|c_r|pthread*) ;;
                   53257:   *)
                   53258:       LIBS="-l$IBASE_LIBNAME $LIBS"
                   53259:    ;;
                   53260:   esac
                   53261: 
                   53262: 
                   53263: 
                   53264: 
                   53265:   fi
                   53266: 
                   53267: 
                   53268: 
                   53269:   if test "$IBASE_INCDIR" != "/usr/include"; then
                   53270: 
                   53271:   if test -z "$IBASE_INCDIR" || echo "$IBASE_INCDIR" | grep '^/' >/dev/null ; then
                   53272:     ai_p=$IBASE_INCDIR
                   53273:   else
                   53274: 
                   53275:     ep_dir="`echo $IBASE_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   53276: 
                   53277:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   53278:     ai_p="$ep_realdir/`basename \"$IBASE_INCDIR\"`"
                   53279:   fi
                   53280: 
                   53281: 
                   53282: 
                   53283:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   53284: 
                   53285:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   53286:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   53287:     eval "INCLUDEPATH$unique=set"
                   53288: 
                   53289:       if test ""; then
                   53290:         INCLUDES="-I$ai_p $INCLUDES"
                   53291:       else
                   53292:         INCLUDES="$INCLUDES -I$ai_p"
                   53293:       fi
                   53294: 
                   53295:   fi
                   53296: 
                   53297:   fi
                   53298: 
                   53299: 
                   53300: $as_echo "#define HAVE_IBASE 1" >>confdefs.h
                   53301: 
                   53302: 
                   53303:   ext_builddir=ext/interbase
                   53304:   ext_srcdir=$abs_srcdir/ext/interbase
                   53305: 
                   53306:   ac_extra=
                   53307: 
                   53308:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   53309:     PHP_INTERBASE_SHARED=no
                   53310: 
                   53311: 
                   53312:   case ext/interbase in
                   53313:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   53314:   /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   53315:   *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   53316:   esac
                   53317: 
                   53318: 
                   53319: 
                   53320:   b_c_pre=$php_c_pre
                   53321:   b_cxx_pre=$php_cxx_pre
                   53322:   b_c_meta=$php_c_meta
                   53323:   b_cxx_meta=$php_cxx_meta
                   53324:   b_c_post=$php_c_post
                   53325:   b_cxx_post=$php_cxx_post
                   53326:   b_lo=$php_lo
                   53327: 
                   53328: 
                   53329:   old_IFS=$IFS
                   53330:   for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
                   53331: 
                   53332:       IFS=.
                   53333:       set $ac_src
                   53334:       ac_obj=$1
                   53335:       IFS=$old_IFS
                   53336: 
                   53337:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   53338: 
                   53339:       case $ac_src in
                   53340:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   53341:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   53342:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   53343:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   53344:       esac
                   53345: 
                   53346:     cat >>Makefile.objects<<EOF
                   53347: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   53348:        $ac_comp
                   53349: EOF
                   53350:   done
                   53351: 
                   53352: 
                   53353:     EXT_STATIC="$EXT_STATIC interbase"
                   53354:     if test "$ext_shared" != "nocli"; then
                   53355:       EXT_CLI_STATIC="$EXT_CLI_STATIC interbase"
                   53356:     fi
                   53357:   else
                   53358:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   53359:       PHP_INTERBASE_SHARED=yes
                   53360: 
                   53361:   case ext/interbase in
                   53362:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   53363:   /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   53364:   *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   53365:   esac
                   53366: 
                   53367: 
                   53368: 
                   53369:   b_c_pre=$shared_c_pre
                   53370:   b_cxx_pre=$shared_cxx_pre
                   53371:   b_c_meta=$shared_c_meta
                   53372:   b_cxx_meta=$shared_cxx_meta
                   53373:   b_c_post=$shared_c_post
                   53374:   b_cxx_post=$shared_cxx_post
                   53375:   b_lo=$shared_lo
                   53376: 
                   53377: 
                   53378:   old_IFS=$IFS
                   53379:   for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
                   53380: 
                   53381:       IFS=.
                   53382:       set $ac_src
                   53383:       ac_obj=$1
                   53384:       IFS=$old_IFS
                   53385: 
                   53386:       shared_objects_interbase="$shared_objects_interbase $ac_bdir$ac_obj.lo"
                   53387: 
                   53388:       case $ac_src in
                   53389:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   53390:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   53391:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   53392:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   53393:       esac
                   53394: 
                   53395:     cat >>Makefile.objects<<EOF
                   53396: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   53397:        $ac_comp
                   53398: EOF
                   53399:   done
                   53400: 
                   53401:       case $host_alias in
                   53402:         *netware*)
                   53403: 
                   53404:   install_modules="install-modules"
                   53405: 
                   53406:   case $host_alias in
                   53407:     *aix*)
                   53408:       suffix=so
                   53409:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpinterbase.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) $(PHPINTERBASE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpinterbase.so '$ext_builddir'/phpinterbase.so'
                   53410:       ;;
                   53411:     *netware*)
                   53412:       suffix=nlm
                   53413:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) -L$(top_builddir)/netware -lphp5lib $(INTERBASE_SHARED_LIBADD)'
                   53414:       ;;
                   53415:     *)
                   53416:       suffix=la
                   53417:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) $(PHPINTERBASE_SHARED_LIBADD)'
                   53418:       ;;
                   53419:   esac
                   53420: 
                   53421:   if test "x" = "xyes"; then
                   53422:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpinterbase.$suffix"
                   53423:   else
                   53424:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpinterbase.$suffix"
                   53425:   fi
                   53426: 
                   53427:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_interbase"
                   53428: 
                   53429:   cat >>Makefile.objects<<EOF
                   53430: \$(phplibdir)/phpinterbase.$suffix: $ext_builddir/phpinterbase.$suffix
                   53431:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpinterbase.$suffix \$(phplibdir)
                   53432: 
                   53433: $ext_builddir/phpinterbase.$suffix: \$(shared_objects_interbase) \$(PHPINTERBASE_SHARED_DEPENDENCIES)
                   53434:        $link_cmd
                   53435: 
                   53436: EOF
                   53437: 
                   53438:           ;;
                   53439:         *)
                   53440: 
                   53441:   install_modules="install-modules"
                   53442: 
                   53443:   case $host_alias in
                   53444:     *aix*)
                   53445:       suffix=so
                   53446:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/interbase.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) $(INTERBASE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/interbase.so '$ext_builddir'/interbase.so'
                   53447:       ;;
                   53448:     *netware*)
                   53449:       suffix=nlm
                   53450:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) -L$(top_builddir)/netware -lphp5lib $(ERBASE_SHARED_LIBADD)'
                   53451:       ;;
                   53452:     *)
                   53453:       suffix=la
                   53454:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) $(INTERBASE_SHARED_LIBADD)'
                   53455:       ;;
                   53456:   esac
                   53457: 
                   53458:   if test "x" = "xyes"; then
                   53459:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/interbase.$suffix"
                   53460:   else
                   53461:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/interbase.$suffix"
                   53462:   fi
                   53463: 
                   53464:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_interbase"
                   53465: 
                   53466:   cat >>Makefile.objects<<EOF
                   53467: \$(phplibdir)/interbase.$suffix: $ext_builddir/interbase.$suffix
                   53468:        \$(LIBTOOL) --mode=install cp $ext_builddir/interbase.$suffix \$(phplibdir)
                   53469: 
                   53470: $ext_builddir/interbase.$suffix: \$(shared_objects_interbase) \$(INTERBASE_SHARED_DEPENDENCIES)
                   53471:        $link_cmd
                   53472: 
                   53473: EOF
                   53474: 
                   53475:           ;;
                   53476:       esac
                   53477: 
                   53478: cat >>confdefs.h <<_ACEOF
                   53479: #define COMPILE_DL_INTERBASE 1
                   53480: _ACEOF
                   53481: 
                   53482:     fi
                   53483:   fi
                   53484: 
                   53485:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   53486:     PHP_INTERBASE_SHARED=no
                   53487: 
                   53488: 
                   53489:   case ext/interbase in
                   53490:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   53491:   /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   53492:   *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   53493:   esac
                   53494: 
                   53495: 
                   53496: 
                   53497:   b_c_pre=$php_c_pre
                   53498:   b_cxx_pre=$php_cxx_pre
                   53499:   b_c_meta=$php_c_meta
                   53500:   b_cxx_meta=$php_cxx_meta
                   53501:   b_c_post=$php_c_post
                   53502:   b_cxx_post=$php_cxx_post
                   53503:   b_lo=$php_lo
                   53504: 
                   53505: 
                   53506:   old_IFS=$IFS
                   53507:   for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
                   53508: 
                   53509:       IFS=.
                   53510:       set $ac_src
                   53511:       ac_obj=$1
                   53512:       IFS=$old_IFS
                   53513: 
1.1.1.2 ! misho    53514:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    53515: 
                   53516:       case $ac_src in
                   53517:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   53518:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   53519:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   53520:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   53521:       esac
                   53522: 
                   53523:     cat >>Makefile.objects<<EOF
                   53524: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   53525:        $ac_comp
                   53526: EOF
                   53527:   done
                   53528: 
                   53529: 
                   53530: 
                   53531: 
                   53532:   case ext/interbase in
                   53533:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   53534:   /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   53535:   *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   53536:   esac
                   53537: 
                   53538: 
                   53539: 
                   53540:   b_c_pre=$php_c_pre
                   53541:   b_cxx_pre=$php_cxx_pre
                   53542:   b_c_meta=$php_c_meta
                   53543:   b_cxx_meta=$php_cxx_meta
                   53544:   b_c_post=$php_c_post
                   53545:   b_cxx_post=$php_cxx_post
                   53546:   b_lo=$php_lo
                   53547: 
                   53548: 
                   53549:   old_IFS=$IFS
                   53550:   for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
                   53551: 
                   53552:       IFS=.
                   53553:       set $ac_src
                   53554:       ac_obj=$1
                   53555:       IFS=$old_IFS
                   53556: 
1.1.1.2 ! misho    53557:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    53558: 
                   53559:       case $ac_src in
                   53560:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   53561:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   53562:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   53563:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   53564:       esac
                   53565: 
                   53566:     cat >>Makefile.objects<<EOF
                   53567: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   53568:        $ac_comp
                   53569: EOF
                   53570:   done
                   53571: 
                   53572: 
                   53573: 
                   53574: 
                   53575:   case ext/interbase in
                   53576:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   53577:   /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   53578:   *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   53579:   esac
                   53580: 
                   53581: 
                   53582: 
                   53583:   b_c_pre=$php_c_pre
                   53584:   b_cxx_pre=$php_cxx_pre
                   53585:   b_c_meta=$php_c_meta
                   53586:   b_cxx_meta=$php_cxx_meta
                   53587:   b_c_post=$php_c_post
                   53588:   b_cxx_post=$php_cxx_post
                   53589:   b_lo=$php_lo
                   53590: 
                   53591: 
                   53592:   old_IFS=$IFS
                   53593:   for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
                   53594: 
                   53595:       IFS=.
                   53596:       set $ac_src
                   53597:       ac_obj=$1
                   53598:       IFS=$old_IFS
                   53599: 
1.1.1.2 ! misho    53600:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    53601: 
                   53602:       case $ac_src in
                   53603:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   53604:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   53605:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   53606:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   53607:       esac
                   53608: 
                   53609:     cat >>Makefile.objects<<EOF
                   53610: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   53611:        $ac_comp
                   53612: EOF
                   53613:   done
                   53614: 
                   53615: 
                   53616:     EXT_CLI_STATIC="$EXT_CLI_STATIC interbase"
                   53617:   fi
                   53618: 
                   53619: 
                   53620:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   53621: 
                   53622: 
                   53623: 
                   53624:   if test "$ext_builddir" = "."; then
                   53625:     PHP_PECL_EXTENSION=interbase
                   53626: 
                   53627:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   53628: 
                   53629:   fi
                   53630: 
                   53631: 
                   53632:   PHP_VAR_SUBST="$PHP_VAR_SUBST INTERBASE_SHARED_LIBADD"
                   53633: 
                   53634: fi
                   53635: 
                   53636: 
                   53637: 
                   53638: php_enable_intl=no
                   53639: 
                   53640: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalization support" >&5
                   53641: $as_echo_n "checking whether to enable internationalization support... " >&6; }
                   53642: # Check whether --enable-intl was given.
                   53643: if test "${enable_intl+set}" = set; then :
                   53644:   enableval=$enable_intl; PHP_INTL=$enableval
                   53645: else
                   53646: 
                   53647:   PHP_INTL=no
                   53648:   test "$PHP_ENABLE_ALL" && PHP_INTL=$PHP_ENABLE_ALL
                   53649: 
                   53650: fi
                   53651: 
                   53652: 
                   53653: 
                   53654: ext_output="yes, shared"
                   53655: ext_shared=yes
                   53656: case $PHP_INTL in
                   53657: shared,*)
                   53658:   PHP_INTL=`echo "$PHP_INTL"|$SED 's/^shared,//'`
                   53659:   ;;
                   53660: shared)
                   53661:   PHP_INTL=yes
                   53662:   ;;
                   53663: no)
                   53664:   ext_output=no
                   53665:   ext_shared=no
                   53666:   ;;
                   53667: *)
                   53668:   ext_output=yes
                   53669:   ext_shared=no
                   53670:   ;;
                   53671: esac
                   53672: 
                   53673: 
                   53674: 
                   53675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   53676: $as_echo "$ext_output" >&6; }
                   53677: 
                   53678: 
                   53679: 
                   53680: 
                   53681: if test "$PHP_INTL" != "no"; then
                   53682: 
                   53683: 
                   53684: php_with_icu_dir=DEFAULT
                   53685: 
                   53686: 
                   53687: 
                   53688: # Check whether --with-icu-dir was given.
                   53689: if test "${with_icu_dir+set}" = set; then :
                   53690:   withval=$with_icu_dir; PHP_ICU_DIR=$withval
                   53691: else
                   53692: 
                   53693:   PHP_ICU_DIR=DEFAULT
                   53694: 
                   53695: 
                   53696: fi
                   53697: 
                   53698: 
                   53699: ext_output=$PHP_ICU_DIR
                   53700: 
                   53701: 
                   53702: 
                   53703: 
                   53704: 
                   53705:   if test "$PHP_ICU_DIR" = "no"; then
                   53706:     PHP_ICU_DIR=DEFAULT
                   53707:   fi
                   53708: 
                   53709:   if test "$PHP_ICU_DIR" = "DEFAULT"; then
                   53710:         # Extract the first word of "icu-config", so it can be a program name with args.
                   53711: set dummy icu-config; ac_word=$2
                   53712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   53713: $as_echo_n "checking for $ac_word... " >&6; }
                   53714: if ${ac_cv_path_ICU_CONFIG+:} false; then :
                   53715:   $as_echo_n "(cached) " >&6
                   53716: else
                   53717:   case $ICU_CONFIG in
                   53718:   [\\/]* | ?:[\\/]*)
                   53719:   ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
                   53720:   ;;
                   53721:   *)
                   53722:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   53723: as_dummy="$PATH:/usr/local/bin"
                   53724: for as_dir in $as_dummy
                   53725: do
                   53726:   IFS=$as_save_IFS
                   53727:   test -z "$as_dir" && as_dir=.
                   53728:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    53729:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    53730:     ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
                   53731:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   53732:     break 2
                   53733:   fi
                   53734: done
                   53735:   done
                   53736: IFS=$as_save_IFS
                   53737: 
                   53738:   test -z "$ac_cv_path_ICU_CONFIG" && ac_cv_path_ICU_CONFIG="no"
                   53739:   ;;
                   53740: esac
                   53741: fi
                   53742: ICU_CONFIG=$ac_cv_path_ICU_CONFIG
                   53743: if test -n "$ICU_CONFIG"; then
                   53744:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
                   53745: $as_echo "$ICU_CONFIG" >&6; }
                   53746: else
                   53747:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   53748: $as_echo "no" >&6; }
                   53749: fi
                   53750: 
                   53751: 
                   53752:   else
                   53753:     ICU_CONFIG="$PHP_ICU_DIR/bin/icu-config"
                   53754:   fi
                   53755: 
                   53756:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of ICU headers and libraries" >&5
                   53757: $as_echo_n "checking for location of ICU headers and libraries... " >&6; }
                   53758: 
                   53759:     icu_install_prefix=`$ICU_CONFIG --prefix 2> /dev/null`
                   53760:   if test "$?" != "0" || test -z "$icu_install_prefix"; then
                   53761:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   53762: $as_echo "not found" >&6; }
                   53763:     as_fn_error $? "Unable to detect ICU prefix or $ICU_CONFIG failed. Please verify ICU install prefix and make sure icu-config works." "$LINENO" 5
                   53764:   else
                   53765:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_install_prefix" >&5
                   53766: $as_echo "$icu_install_prefix" >&6; }
                   53767: 
                   53768:         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU 3.4 or greater" >&5
                   53769: $as_echo_n "checking for ICU 3.4 or greater... " >&6; }
                   53770:     icu_version_full=`$ICU_CONFIG --version`
                   53771:     ac_IFS=$IFS
                   53772:     IFS="."
                   53773:     set $icu_version_full
                   53774:     IFS=$ac_IFS
                   53775:     icu_version=`expr $1 \* 1000 + $2`
                   53776:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $icu_version_full" >&5
                   53777: $as_echo "found $icu_version_full" >&6; }
                   53778: 
                   53779:     if test "$icu_version" -lt "3004"; then
                   53780:       as_fn_error $? "ICU version 3.4 or later is required" "$LINENO" 5
                   53781:     fi
                   53782: 
                   53783:     ICU_VERSION=$icu_version
                   53784:     ICU_INCS=`$ICU_CONFIG --cppflags-searchpath`
                   53785:     ICU_LIBS=`$ICU_CONFIG --ldflags --ldflags-icuio`
                   53786: 
                   53787:   for ac_i in $ICU_INCS; do
                   53788:     case $ac_i in
                   53789:     -I*)
                   53790:       ac_ii=`echo $ac_i|cut -c 3-`
                   53791: 
                   53792:   if test "$ac_ii" != "/usr/include"; then
                   53793: 
                   53794:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   53795:     ai_p=$ac_ii
                   53796:   else
                   53797: 
                   53798:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   53799: 
                   53800:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   53801:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   53802:   fi
                   53803: 
                   53804: 
                   53805: 
                   53806:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   53807: 
                   53808:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   53809:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   53810:     eval "INCLUDEPATH$unique=set"
                   53811: 
                   53812:       if test ""; then
                   53813:         INCLUDES="-I$ai_p $INCLUDES"
                   53814:       else
                   53815:         INCLUDES="$INCLUDES -I$ai_p"
                   53816:       fi
                   53817: 
                   53818:   fi
                   53819: 
                   53820:   fi
                   53821: 
                   53822:     ;;
                   53823:     esac
                   53824:   done
                   53825: 
                   53826: 
                   53827:   for ac_i in $ICU_LIBS; do
                   53828:     case $ac_i in
                   53829:     -pthread)
                   53830:       if test "$ext_shared" = "yes"; then
                   53831:         INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -pthread"
                   53832:       else
                   53833: 
                   53834: 
                   53835:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   53836: 
                   53837:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   53838:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   53839:     eval "EXTRA_LDFLAGS$unique=set"
                   53840:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   53841:   fi
                   53842: 
                   53843:       fi
                   53844:     ;;
                   53845:     -l*)
                   53846:       ac_ii=`echo $ac_i|cut -c 3-`
                   53847: 
                   53848: 
                   53849:   case $ac_ii in
                   53850:   c|c_r|pthread*) ;;
                   53851:   *)
                   53852:     if test "$ext_shared" = "yes"; then
                   53853:         INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -l$ac_ii"
                   53854:     else
                   53855: 
                   53856: 
                   53857:   case $ac_ii in
                   53858:   c|c_r|pthread*) ;;
                   53859:   *)
                   53860:       LIBS="$LIBS -l$ac_ii"
                   53861:    ;;
                   53862:   esac
                   53863: 
                   53864: 
                   53865:     fi
                   53866:    ;;
                   53867:   esac
                   53868: 
                   53869: 
                   53870:     ;;
                   53871:     -L*)
                   53872:       ac_ii=`echo $ac_i|cut -c 3-`
                   53873: 
                   53874:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   53875: 
                   53876:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   53877:     ai_p=$ac_ii
                   53878:   else
                   53879: 
                   53880:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   53881: 
                   53882:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   53883:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   53884:   fi
                   53885: 
                   53886: 
                   53887:       if test "$ext_shared" = "yes"; then
                   53888:         INTL_SHARED_LIBADD="-L$ai_p $INTL_SHARED_LIBADD"
                   53889:         test -n "$ld_runpath_switch" && INTL_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTL_SHARED_LIBADD"
                   53890:       else
                   53891: 
                   53892: 
                   53893: 
                   53894:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   53895: 
                   53896:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   53897:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   53898:     eval "LIBPATH$unique=set"
                   53899: 
                   53900:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   53901:     LDFLAGS="$LDFLAGS -L$ai_p"
                   53902:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   53903: 
                   53904:   fi
                   53905: 
                   53906: 
                   53907:       fi
                   53908: 
                   53909:   fi
                   53910: 
                   53911:     ;;
                   53912:     esac
                   53913:   done
                   53914: 
                   53915:   fi
                   53916: 
                   53917: 
                   53918:   PHP_VAR_SUBST="$PHP_VAR_SUBST INTL_SHARED_LIBADD"
                   53919: 
                   53920: 
                   53921:   if test -z "$php_cxx_done"; then
                   53922:     ac_ext=cpp
                   53923: ac_cpp='$CXXCPP $CPPFLAGS'
                   53924: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   53925: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   53926: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   53927: if test -z "$CXX"; then
                   53928:   if test -n "$CCC"; then
                   53929:     CXX=$CCC
                   53930:   else
                   53931:     if test -n "$ac_tool_prefix"; then
                   53932:   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
                   53933:   do
                   53934:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   53935: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   53936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   53937: $as_echo_n "checking for $ac_word... " >&6; }
                   53938: if ${ac_cv_prog_CXX+:} false; then :
                   53939:   $as_echo_n "(cached) " >&6
                   53940: else
                   53941:   if test -n "$CXX"; then
                   53942:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
                   53943: else
                   53944: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   53945: for as_dir in $PATH
                   53946: do
                   53947:   IFS=$as_save_IFS
                   53948:   test -z "$as_dir" && as_dir=.
                   53949:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    53950:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    53951:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
                   53952:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   53953:     break 2
                   53954:   fi
                   53955: done
                   53956:   done
                   53957: IFS=$as_save_IFS
                   53958: 
                   53959: fi
                   53960: fi
                   53961: CXX=$ac_cv_prog_CXX
                   53962: if test -n "$CXX"; then
                   53963:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   53964: $as_echo "$CXX" >&6; }
                   53965: else
                   53966:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   53967: $as_echo "no" >&6; }
                   53968: fi
                   53969: 
                   53970: 
                   53971:     test -n "$CXX" && break
                   53972:   done
                   53973: fi
                   53974: if test -z "$CXX"; then
                   53975:   ac_ct_CXX=$CXX
                   53976:   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
                   53977: do
                   53978:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   53979: set dummy $ac_prog; ac_word=$2
                   53980: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   53981: $as_echo_n "checking for $ac_word... " >&6; }
                   53982: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
                   53983:   $as_echo_n "(cached) " >&6
                   53984: else
                   53985:   if test -n "$ac_ct_CXX"; then
                   53986:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   53987: else
                   53988: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   53989: for as_dir in $PATH
                   53990: do
                   53991:   IFS=$as_save_IFS
                   53992:   test -z "$as_dir" && as_dir=.
                   53993:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    53994:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    53995:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   53996:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   53997:     break 2
                   53998:   fi
                   53999: done
                   54000:   done
                   54001: IFS=$as_save_IFS
                   54002: 
                   54003: fi
                   54004: fi
                   54005: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   54006: if test -n "$ac_ct_CXX"; then
                   54007:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   54008: $as_echo "$ac_ct_CXX" >&6; }
                   54009: else
                   54010:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   54011: $as_echo "no" >&6; }
                   54012: fi
                   54013: 
                   54014: 
                   54015:   test -n "$ac_ct_CXX" && break
                   54016: done
                   54017: 
                   54018:   if test "x$ac_ct_CXX" = x; then
                   54019:     CXX="g++"
                   54020:   else
                   54021:     case $cross_compiling:$ac_tool_warned in
                   54022: yes:)
                   54023: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   54024: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   54025: ac_tool_warned=yes ;;
                   54026: esac
                   54027:     CXX=$ac_ct_CXX
                   54028:   fi
                   54029: fi
                   54030: 
                   54031:   fi
                   54032: fi
                   54033: # Provide some information about the compiler.
                   54034: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   54035: set X $ac_compile
                   54036: ac_compiler=$2
                   54037: for ac_option in --version -v -V -qversion; do
                   54038:   { { ac_try="$ac_compiler $ac_option >&5"
                   54039: case "(($ac_try" in
                   54040:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   54041:   *) ac_try_echo=$ac_try;;
                   54042: esac
                   54043: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   54044: $as_echo "$ac_try_echo"; } >&5
                   54045:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   54046:   ac_status=$?
                   54047:   if test -s conftest.err; then
                   54048:     sed '10a\
                   54049: ... rest of stderr output deleted ...
                   54050:          10q' conftest.err >conftest.er1
                   54051:     cat conftest.er1 >&5
                   54052:   fi
                   54053:   rm -f conftest.er1 conftest.err
                   54054:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   54055:   test $ac_status = 0; }
                   54056: done
                   54057: 
                   54058: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   54059: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
                   54060: if ${ac_cv_cxx_compiler_gnu+:} false; then :
                   54061:   $as_echo_n "(cached) " >&6
                   54062: else
                   54063:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   54064: /* end confdefs.h.  */
                   54065: 
                   54066: int
                   54067: main ()
                   54068: {
                   54069: #ifndef __GNUC__
                   54070:        choke me
                   54071: #endif
                   54072: 
                   54073:   ;
                   54074:   return 0;
                   54075: }
                   54076: _ACEOF
                   54077: if ac_fn_cxx_try_compile "$LINENO"; then :
                   54078:   ac_compiler_gnu=yes
                   54079: else
                   54080:   ac_compiler_gnu=no
                   54081: fi
                   54082: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   54083: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
                   54084: 
                   54085: fi
                   54086: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   54087: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   54088: if test $ac_compiler_gnu = yes; then
                   54089:   GXX=yes
                   54090: else
                   54091:   GXX=
                   54092: fi
                   54093: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   54094: ac_save_CXXFLAGS=$CXXFLAGS
                   54095: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   54096: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
                   54097: if ${ac_cv_prog_cxx_g+:} false; then :
                   54098:   $as_echo_n "(cached) " >&6
                   54099: else
                   54100:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   54101:    ac_cxx_werror_flag=yes
                   54102:    ac_cv_prog_cxx_g=no
                   54103:    CXXFLAGS="-g"
                   54104:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   54105: /* end confdefs.h.  */
                   54106: 
                   54107: int
                   54108: main ()
                   54109: {
                   54110: 
                   54111:   ;
                   54112:   return 0;
                   54113: }
                   54114: _ACEOF
                   54115: if ac_fn_cxx_try_compile "$LINENO"; then :
                   54116:   ac_cv_prog_cxx_g=yes
                   54117: else
                   54118:   CXXFLAGS=""
                   54119:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   54120: /* end confdefs.h.  */
                   54121: 
                   54122: int
                   54123: main ()
                   54124: {
                   54125: 
                   54126:   ;
                   54127:   return 0;
                   54128: }
                   54129: _ACEOF
                   54130: if ac_fn_cxx_try_compile "$LINENO"; then :
                   54131: 
                   54132: else
                   54133:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   54134:         CXXFLAGS="-g"
                   54135:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   54136: /* end confdefs.h.  */
                   54137: 
                   54138: int
                   54139: main ()
                   54140: {
                   54141: 
                   54142:   ;
                   54143:   return 0;
                   54144: }
                   54145: _ACEOF
                   54146: if ac_fn_cxx_try_compile "$LINENO"; then :
                   54147:   ac_cv_prog_cxx_g=yes
                   54148: fi
                   54149: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   54150: fi
                   54151: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   54152: fi
                   54153: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   54154:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   54155: fi
                   54156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   54157: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   54158: if test "$ac_test_CXXFLAGS" = set; then
                   54159:   CXXFLAGS=$ac_save_CXXFLAGS
                   54160: elif test $ac_cv_prog_cxx_g = yes; then
                   54161:   if test "$GXX" = yes; then
                   54162:     CXXFLAGS="-g -O2"
                   54163:   else
                   54164:     CXXFLAGS="-g"
                   54165:   fi
                   54166: else
                   54167:   if test "$GXX" = yes; then
                   54168:     CXXFLAGS="-O2"
                   54169:   else
                   54170:     CXXFLAGS=
                   54171:   fi
                   54172: fi
                   54173: ac_ext=c
                   54174: ac_cpp='$CPP $CPPFLAGS'
                   54175: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   54176: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   54177: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   54178: 
                   54179:     ac_ext=cpp
                   54180: ac_cpp='$CXXCPP $CPPFLAGS'
                   54181: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   54182: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   54183: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   54184: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
                   54185: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
                   54186: if test -z "$CXXCPP"; then
                   54187:   if ${ac_cv_prog_CXXCPP+:} false; then :
                   54188:   $as_echo_n "(cached) " >&6
                   54189: else
                   54190:       # Double quotes because CXXCPP needs to be expanded
                   54191:     for CXXCPP in "$CXX -E" "/lib/cpp"
                   54192:     do
                   54193:       ac_preproc_ok=false
                   54194: for ac_cxx_preproc_warn_flag in '' yes
                   54195: do
                   54196:   # Use a header file that comes with gcc, so configuring glibc
                   54197:   # with a fresh cross-compiler works.
                   54198:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   54199:   # <limits.h> exists even on freestanding compilers.
                   54200:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   54201:   # not just through cpp. "Syntax error" is here to catch this case.
                   54202:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   54203: /* end confdefs.h.  */
                   54204: #ifdef __STDC__
                   54205: # include <limits.h>
                   54206: #else
                   54207: # include <assert.h>
                   54208: #endif
                   54209:                     Syntax error
                   54210: _ACEOF
                   54211: if ac_fn_cxx_try_cpp "$LINENO"; then :
                   54212: 
                   54213: else
                   54214:   # Broken: fails on valid input.
                   54215: continue
                   54216: fi
                   54217: rm -f conftest.err conftest.i conftest.$ac_ext
                   54218: 
                   54219:   # OK, works on sane cases.  Now check whether nonexistent headers
                   54220:   # can be detected and how.
                   54221:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   54222: /* end confdefs.h.  */
                   54223: #include <ac_nonexistent.h>
                   54224: _ACEOF
                   54225: if ac_fn_cxx_try_cpp "$LINENO"; then :
                   54226:   # Broken: success on invalid input.
                   54227: continue
                   54228: else
                   54229:   # Passes both tests.
                   54230: ac_preproc_ok=:
                   54231: break
                   54232: fi
                   54233: rm -f conftest.err conftest.i conftest.$ac_ext
                   54234: 
                   54235: done
                   54236: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   54237: rm -f conftest.i conftest.err conftest.$ac_ext
                   54238: if $ac_preproc_ok; then :
                   54239:   break
                   54240: fi
                   54241: 
                   54242:     done
                   54243:     ac_cv_prog_CXXCPP=$CXXCPP
                   54244: 
                   54245: fi
                   54246:   CXXCPP=$ac_cv_prog_CXXCPP
                   54247: else
                   54248:   ac_cv_prog_CXXCPP=$CXXCPP
                   54249: fi
                   54250: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
                   54251: $as_echo "$CXXCPP" >&6; }
                   54252: ac_preproc_ok=false
                   54253: for ac_cxx_preproc_warn_flag in '' yes
                   54254: do
                   54255:   # Use a header file that comes with gcc, so configuring glibc
                   54256:   # with a fresh cross-compiler works.
                   54257:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   54258:   # <limits.h> exists even on freestanding compilers.
                   54259:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   54260:   # not just through cpp. "Syntax error" is here to catch this case.
                   54261:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   54262: /* end confdefs.h.  */
                   54263: #ifdef __STDC__
                   54264: # include <limits.h>
                   54265: #else
                   54266: # include <assert.h>
                   54267: #endif
                   54268:                     Syntax error
                   54269: _ACEOF
                   54270: if ac_fn_cxx_try_cpp "$LINENO"; then :
                   54271: 
                   54272: else
                   54273:   # Broken: fails on valid input.
                   54274: continue
                   54275: fi
                   54276: rm -f conftest.err conftest.i conftest.$ac_ext
                   54277: 
                   54278:   # OK, works on sane cases.  Now check whether nonexistent headers
                   54279:   # can be detected and how.
                   54280:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   54281: /* end confdefs.h.  */
                   54282: #include <ac_nonexistent.h>
                   54283: _ACEOF
                   54284: if ac_fn_cxx_try_cpp "$LINENO"; then :
                   54285:   # Broken: success on invalid input.
                   54286: continue
                   54287: else
                   54288:   # Passes both tests.
                   54289: ac_preproc_ok=:
                   54290: break
                   54291: fi
                   54292: rm -f conftest.err conftest.i conftest.$ac_ext
                   54293: 
                   54294: done
                   54295: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   54296: rm -f conftest.i conftest.err conftest.$ac_ext
                   54297: if $ac_preproc_ok; then :
                   54298: 
                   54299: else
                   54300:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   54301: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   54302: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
                   54303: See \`config.log' for more details" "$LINENO" 5; }
                   54304: fi
                   54305: 
                   54306: ac_ext=c
                   54307: ac_cpp='$CPP $CPPFLAGS'
                   54308: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   54309: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   54310: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   54311: 
1.1.1.2 ! misho    54312: 
        !          54313: 
        !          54314:   case stdc++ in
        !          54315:   c|c_r|pthread*) ;;
        !          54316:   *)
        !          54317:       LIBS="-lstdc++ $LIBS"
        !          54318:    ;;
        !          54319:   esac
        !          54320: 
        !          54321: 
1.1       misho    54322:     php_cxx_done=yes
                   54323:   fi
                   54324: 
1.1.1.2 ! misho    54325:   if test "$icu_version" -ge "4002"; then
        !          54326:     icu_spoof_src=" spoofchecker/spoofchecker_class.c \
        !          54327:     spoofchecker/spoofchecker.c\
        !          54328:     spoofchecker/spoofchecker_create.c\
        !          54329:     spoofchecker/spoofchecker_main.c"
        !          54330:   else
        !          54331:     icu_spoof_src=""
        !          54332:   fi
1.1       misho    54333: 
                   54334:   ext_builddir=ext/intl
                   54335:   ext_srcdir=$abs_srcdir/ext/intl
                   54336: 
                   54337:   ac_extra=`echo "$ICU_INCS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
                   54338: 
                   54339:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   54340:     PHP_INTL_SHARED=no
                   54341: 
                   54342: 
                   54343:   case ext/intl in
                   54344:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   54345:   /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   54346:   *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   54347:   esac
                   54348: 
                   54349: 
                   54350: 
                   54351:   b_c_pre=$php_c_pre
                   54352:   b_cxx_pre=$php_cxx_pre
                   54353:   b_c_meta=$php_c_meta
                   54354:   b_cxx_meta=$php_cxx_meta
                   54355:   b_c_post=$php_c_post
                   54356:   b_cxx_post=$php_cxx_post
                   54357:   b_lo=$php_lo
                   54358: 
                   54359: 
                   54360:   old_IFS=$IFS
                   54361:   for ac_src in php_intl.c \
                   54362:     intl_error.c \
                   54363:     intl_convert.c \
                   54364:     collator/collator.c \
                   54365:     collator/collator_class.c \
                   54366:     collator/collator_sort.c \
                   54367:     collator/collator_convert.c \
                   54368:     collator/collator_locale.c \
                   54369:     collator/collator_compare.c \
                   54370:     collator/collator_attr.c \
                   54371:     collator/collator_create.c \
                   54372:     collator/collator_is_numeric.c \
                   54373:     collator/collator_error.c \
                   54374:     common/common_error.c \
                   54375:     formatter/formatter.c \
                   54376:     formatter/formatter_main.c \
                   54377:     formatter/formatter_class.c \
                   54378:     formatter/formatter_attr.c \
                   54379:     formatter/formatter_data.c \
                   54380:     formatter/formatter_format.c \
                   54381:     formatter/formatter_parse.c \
                   54382:     normalizer/normalizer.c \
                   54383:     normalizer/normalizer_class.c \
                   54384:     normalizer/normalizer_normalize.c \
                   54385:     locale/locale.c \
                   54386:     locale/locale_class.c \
                   54387:     locale/locale_methods.c \
                   54388:     dateformat/dateformat.c \
                   54389:     dateformat/dateformat_class.c \
                   54390:     dateformat/dateformat_attr.c \
                   54391:     dateformat/dateformat_data.c \
                   54392:     dateformat/dateformat_format.c \
                   54393:     dateformat/dateformat_parse.c \
                   54394:     msgformat/msgformat.c \
                   54395:     msgformat/msgformat_attr.c \
                   54396:     msgformat/msgformat_class.c \
                   54397:     msgformat/msgformat_data.c  \
                   54398:     msgformat/msgformat_format.c \
                   54399:     msgformat/msgformat_helpers.cpp \
                   54400:     msgformat/msgformat_parse.c \
                   54401:     grapheme/grapheme_string.c \
                   54402:     grapheme/grapheme_util.c \
                   54403:     resourcebundle/resourcebundle.c \
                   54404:     resourcebundle/resourcebundle_class.c \
                   54405:     resourcebundle/resourcebundle_iterator.c \
1.1.1.2 ! misho    54406:     transliterator/transliterator.c \
        !          54407:     transliterator/transliterator_class.c \
        !          54408:     transliterator/transliterator_methods.c \
        !          54409:     idn/idn.c \
        !          54410:     $icu_spoof_src; do
1.1       misho    54411: 
                   54412:       IFS=.
                   54413:       set $ac_src
                   54414:       ac_obj=$1
                   54415:       IFS=$old_IFS
                   54416: 
                   54417:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   54418: 
                   54419:       case $ac_src in
                   54420:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   54421:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   54422:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   54423:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   54424:       esac
                   54425: 
                   54426:     cat >>Makefile.objects<<EOF
                   54427: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   54428:        $ac_comp
                   54429: EOF
                   54430:   done
                   54431: 
                   54432: 
                   54433:     EXT_STATIC="$EXT_STATIC intl"
                   54434:     if test "$ext_shared" != "nocli"; then
                   54435:       EXT_CLI_STATIC="$EXT_CLI_STATIC intl"
                   54436:     fi
                   54437:   else
                   54438:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   54439:       PHP_INTL_SHARED=yes
                   54440: 
                   54441:   case ext/intl in
                   54442:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   54443:   /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   54444:   *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   54445:   esac
                   54446: 
                   54447: 
                   54448: 
                   54449:   b_c_pre=$shared_c_pre
                   54450:   b_cxx_pre=$shared_cxx_pre
                   54451:   b_c_meta=$shared_c_meta
                   54452:   b_cxx_meta=$shared_cxx_meta
                   54453:   b_c_post=$shared_c_post
                   54454:   b_cxx_post=$shared_cxx_post
                   54455:   b_lo=$shared_lo
                   54456: 
                   54457: 
                   54458:   old_IFS=$IFS
                   54459:   for ac_src in php_intl.c \
                   54460:     intl_error.c \
                   54461:     intl_convert.c \
                   54462:     collator/collator.c \
                   54463:     collator/collator_class.c \
                   54464:     collator/collator_sort.c \
                   54465:     collator/collator_convert.c \
                   54466:     collator/collator_locale.c \
                   54467:     collator/collator_compare.c \
                   54468:     collator/collator_attr.c \
                   54469:     collator/collator_create.c \
                   54470:     collator/collator_is_numeric.c \
                   54471:     collator/collator_error.c \
                   54472:     common/common_error.c \
                   54473:     formatter/formatter.c \
                   54474:     formatter/formatter_main.c \
                   54475:     formatter/formatter_class.c \
                   54476:     formatter/formatter_attr.c \
                   54477:     formatter/formatter_data.c \
                   54478:     formatter/formatter_format.c \
                   54479:     formatter/formatter_parse.c \
                   54480:     normalizer/normalizer.c \
                   54481:     normalizer/normalizer_class.c \
                   54482:     normalizer/normalizer_normalize.c \
                   54483:     locale/locale.c \
                   54484:     locale/locale_class.c \
                   54485:     locale/locale_methods.c \
                   54486:     dateformat/dateformat.c \
                   54487:     dateformat/dateformat_class.c \
                   54488:     dateformat/dateformat_attr.c \
                   54489:     dateformat/dateformat_data.c \
                   54490:     dateformat/dateformat_format.c \
                   54491:     dateformat/dateformat_parse.c \
                   54492:     msgformat/msgformat.c \
                   54493:     msgformat/msgformat_attr.c \
                   54494:     msgformat/msgformat_class.c \
                   54495:     msgformat/msgformat_data.c  \
                   54496:     msgformat/msgformat_format.c \
                   54497:     msgformat/msgformat_helpers.cpp \
                   54498:     msgformat/msgformat_parse.c \
                   54499:     grapheme/grapheme_string.c \
                   54500:     grapheme/grapheme_util.c \
                   54501:     resourcebundle/resourcebundle.c \
                   54502:     resourcebundle/resourcebundle_class.c \
                   54503:     resourcebundle/resourcebundle_iterator.c \
1.1.1.2 ! misho    54504:     transliterator/transliterator.c \
        !          54505:     transliterator/transliterator_class.c \
        !          54506:     transliterator/transliterator_methods.c \
        !          54507:     idn/idn.c \
        !          54508:     $icu_spoof_src; do
1.1       misho    54509: 
                   54510:       IFS=.
                   54511:       set $ac_src
                   54512:       ac_obj=$1
                   54513:       IFS=$old_IFS
                   54514: 
                   54515:       shared_objects_intl="$shared_objects_intl $ac_bdir$ac_obj.lo"
                   54516: 
                   54517:       case $ac_src in
                   54518:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   54519:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   54520:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   54521:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   54522:       esac
                   54523: 
                   54524:     cat >>Makefile.objects<<EOF
                   54525: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   54526:        $ac_comp
                   54527: EOF
                   54528:   done
                   54529: 
                   54530:       case $host_alias in
                   54531:         *netware*)
                   54532: 
                   54533:   install_modules="install-modules"
                   54534: 
                   54535:   case $host_alias in
                   54536:     *aix*)
                   54537:       suffix=so
                   54538:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpintl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) $(PHPINTL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpintl.so '$ext_builddir'/phpintl.so'
                   54539:       ;;
                   54540:     *netware*)
                   54541:       suffix=nlm
                   54542:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) -L$(top_builddir)/netware -lphp5lib $(INTL_SHARED_LIBADD)'
                   54543:       ;;
                   54544:     *)
                   54545:       suffix=la
                   54546:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) $(PHPINTL_SHARED_LIBADD)'
                   54547:       ;;
                   54548:   esac
                   54549: 
                   54550:   if test "x" = "xyes"; then
                   54551:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpintl.$suffix"
                   54552:   else
                   54553:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpintl.$suffix"
                   54554:   fi
                   54555: 
                   54556:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_intl"
                   54557: 
                   54558:   cat >>Makefile.objects<<EOF
                   54559: \$(phplibdir)/phpintl.$suffix: $ext_builddir/phpintl.$suffix
                   54560:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpintl.$suffix \$(phplibdir)
                   54561: 
                   54562: $ext_builddir/phpintl.$suffix: \$(shared_objects_intl) \$(PHPINTL_SHARED_DEPENDENCIES)
                   54563:        $link_cmd
                   54564: 
                   54565: EOF
                   54566: 
                   54567:           ;;
                   54568:         *)
                   54569: 
                   54570:   install_modules="install-modules"
                   54571: 
                   54572:   case $host_alias in
                   54573:     *aix*)
                   54574:       suffix=so
                   54575:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/intl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) $(INTL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/intl.so '$ext_builddir'/intl.so'
                   54576:       ;;
                   54577:     *netware*)
                   54578:       suffix=nlm
                   54579:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) -L$(top_builddir)/netware -lphp5lib $(L_SHARED_LIBADD)'
                   54580:       ;;
                   54581:     *)
                   54582:       suffix=la
                   54583:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) $(INTL_SHARED_LIBADD)'
                   54584:       ;;
                   54585:   esac
                   54586: 
                   54587:   if test "x" = "xyes"; then
                   54588:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/intl.$suffix"
                   54589:   else
                   54590:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/intl.$suffix"
                   54591:   fi
                   54592: 
                   54593:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_intl"
                   54594: 
                   54595:   cat >>Makefile.objects<<EOF
                   54596: \$(phplibdir)/intl.$suffix: $ext_builddir/intl.$suffix
                   54597:        \$(LIBTOOL) --mode=install cp $ext_builddir/intl.$suffix \$(phplibdir)
                   54598: 
                   54599: $ext_builddir/intl.$suffix: \$(shared_objects_intl) \$(INTL_SHARED_DEPENDENCIES)
                   54600:        $link_cmd
                   54601: 
                   54602: EOF
                   54603: 
                   54604:           ;;
                   54605:       esac
                   54606: 
                   54607: cat >>confdefs.h <<_ACEOF
                   54608: #define COMPILE_DL_INTL 1
                   54609: _ACEOF
                   54610: 
                   54611:     fi
                   54612:   fi
                   54613: 
                   54614:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   54615:     PHP_INTL_SHARED=no
                   54616: 
                   54617: 
                   54618:   case ext/intl in
                   54619:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   54620:   /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   54621:   *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   54622:   esac
                   54623: 
                   54624: 
                   54625: 
                   54626:   b_c_pre=$php_c_pre
                   54627:   b_cxx_pre=$php_cxx_pre
                   54628:   b_c_meta=$php_c_meta
                   54629:   b_cxx_meta=$php_cxx_meta
                   54630:   b_c_post=$php_c_post
                   54631:   b_cxx_post=$php_cxx_post
                   54632:   b_lo=$php_lo
                   54633: 
                   54634: 
                   54635:   old_IFS=$IFS
                   54636:   for ac_src in php_intl.c \
                   54637:     intl_error.c \
                   54638:     intl_convert.c \
                   54639:     collator/collator.c \
                   54640:     collator/collator_class.c \
                   54641:     collator/collator_sort.c \
                   54642:     collator/collator_convert.c \
                   54643:     collator/collator_locale.c \
                   54644:     collator/collator_compare.c \
                   54645:     collator/collator_attr.c \
                   54646:     collator/collator_create.c \
                   54647:     collator/collator_is_numeric.c \
                   54648:     collator/collator_error.c \
                   54649:     common/common_error.c \
                   54650:     formatter/formatter.c \
                   54651:     formatter/formatter_main.c \
                   54652:     formatter/formatter_class.c \
                   54653:     formatter/formatter_attr.c \
                   54654:     formatter/formatter_data.c \
                   54655:     formatter/formatter_format.c \
                   54656:     formatter/formatter_parse.c \
                   54657:     normalizer/normalizer.c \
                   54658:     normalizer/normalizer_class.c \
                   54659:     normalizer/normalizer_normalize.c \
                   54660:     locale/locale.c \
                   54661:     locale/locale_class.c \
                   54662:     locale/locale_methods.c \
                   54663:     dateformat/dateformat.c \
                   54664:     dateformat/dateformat_class.c \
                   54665:     dateformat/dateformat_attr.c \
                   54666:     dateformat/dateformat_data.c \
                   54667:     dateformat/dateformat_format.c \
                   54668:     dateformat/dateformat_parse.c \
                   54669:     msgformat/msgformat.c \
                   54670:     msgformat/msgformat_attr.c \
                   54671:     msgformat/msgformat_class.c \
                   54672:     msgformat/msgformat_data.c  \
                   54673:     msgformat/msgformat_format.c \
                   54674:     msgformat/msgformat_helpers.cpp \
                   54675:     msgformat/msgformat_parse.c \
                   54676:     grapheme/grapheme_string.c \
                   54677:     grapheme/grapheme_util.c \
                   54678:     resourcebundle/resourcebundle.c \
                   54679:     resourcebundle/resourcebundle_class.c \
                   54680:     resourcebundle/resourcebundle_iterator.c \
1.1.1.2 ! misho    54681:     transliterator/transliterator.c \
        !          54682:     transliterator/transliterator_class.c \
        !          54683:     transliterator/transliterator_methods.c \
        !          54684:     idn/idn.c \
        !          54685:     $icu_spoof_src; do
1.1       misho    54686: 
                   54687:       IFS=.
                   54688:       set $ac_src
                   54689:       ac_obj=$1
                   54690:       IFS=$old_IFS
                   54691: 
1.1.1.2 ! misho    54692:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    54693: 
                   54694:       case $ac_src in
                   54695:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   54696:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   54697:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   54698:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   54699:       esac
                   54700: 
                   54701:     cat >>Makefile.objects<<EOF
                   54702: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   54703:        $ac_comp
                   54704: EOF
                   54705:   done
                   54706: 
                   54707: 
                   54708: 
                   54709: 
                   54710:   case ext/intl in
                   54711:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   54712:   /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   54713:   *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   54714:   esac
                   54715: 
                   54716: 
                   54717: 
                   54718:   b_c_pre=$php_c_pre
                   54719:   b_cxx_pre=$php_cxx_pre
                   54720:   b_c_meta=$php_c_meta
                   54721:   b_cxx_meta=$php_cxx_meta
                   54722:   b_c_post=$php_c_post
                   54723:   b_cxx_post=$php_cxx_post
                   54724:   b_lo=$php_lo
                   54725: 
                   54726: 
                   54727:   old_IFS=$IFS
                   54728:   for ac_src in php_intl.c \
                   54729:     intl_error.c \
                   54730:     intl_convert.c \
                   54731:     collator/collator.c \
                   54732:     collator/collator_class.c \
                   54733:     collator/collator_sort.c \
                   54734:     collator/collator_convert.c \
                   54735:     collator/collator_locale.c \
                   54736:     collator/collator_compare.c \
                   54737:     collator/collator_attr.c \
                   54738:     collator/collator_create.c \
                   54739:     collator/collator_is_numeric.c \
                   54740:     collator/collator_error.c \
                   54741:     common/common_error.c \
                   54742:     formatter/formatter.c \
                   54743:     formatter/formatter_main.c \
                   54744:     formatter/formatter_class.c \
                   54745:     formatter/formatter_attr.c \
                   54746:     formatter/formatter_data.c \
                   54747:     formatter/formatter_format.c \
                   54748:     formatter/formatter_parse.c \
                   54749:     normalizer/normalizer.c \
                   54750:     normalizer/normalizer_class.c \
                   54751:     normalizer/normalizer_normalize.c \
                   54752:     locale/locale.c \
                   54753:     locale/locale_class.c \
                   54754:     locale/locale_methods.c \
                   54755:     dateformat/dateformat.c \
                   54756:     dateformat/dateformat_class.c \
                   54757:     dateformat/dateformat_attr.c \
                   54758:     dateformat/dateformat_data.c \
                   54759:     dateformat/dateformat_format.c \
                   54760:     dateformat/dateformat_parse.c \
                   54761:     msgformat/msgformat.c \
                   54762:     msgformat/msgformat_attr.c \
                   54763:     msgformat/msgformat_class.c \
                   54764:     msgformat/msgformat_data.c  \
                   54765:     msgformat/msgformat_format.c \
                   54766:     msgformat/msgformat_helpers.cpp \
                   54767:     msgformat/msgformat_parse.c \
                   54768:     grapheme/grapheme_string.c \
                   54769:     grapheme/grapheme_util.c \
                   54770:     resourcebundle/resourcebundle.c \
                   54771:     resourcebundle/resourcebundle_class.c \
                   54772:     resourcebundle/resourcebundle_iterator.c \
1.1.1.2 ! misho    54773:     transliterator/transliterator.c \
        !          54774:     transliterator/transliterator_class.c \
        !          54775:     transliterator/transliterator_methods.c \
        !          54776:     idn/idn.c \
        !          54777:     $icu_spoof_src; do
1.1       misho    54778: 
                   54779:       IFS=.
                   54780:       set $ac_src
                   54781:       ac_obj=$1
                   54782:       IFS=$old_IFS
                   54783: 
1.1.1.2 ! misho    54784:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    54785: 
                   54786:       case $ac_src in
                   54787:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   54788:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   54789:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   54790:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   54791:       esac
                   54792: 
                   54793:     cat >>Makefile.objects<<EOF
                   54794: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   54795:        $ac_comp
                   54796: EOF
                   54797:   done
                   54798: 
                   54799: 
                   54800: 
                   54801: 
                   54802:   case ext/intl in
                   54803:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   54804:   /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   54805:   *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   54806:   esac
                   54807: 
                   54808: 
                   54809: 
                   54810:   b_c_pre=$php_c_pre
                   54811:   b_cxx_pre=$php_cxx_pre
                   54812:   b_c_meta=$php_c_meta
                   54813:   b_cxx_meta=$php_cxx_meta
                   54814:   b_c_post=$php_c_post
                   54815:   b_cxx_post=$php_cxx_post
                   54816:   b_lo=$php_lo
                   54817: 
                   54818: 
                   54819:   old_IFS=$IFS
                   54820:   for ac_src in php_intl.c \
                   54821:     intl_error.c \
                   54822:     intl_convert.c \
                   54823:     collator/collator.c \
                   54824:     collator/collator_class.c \
                   54825:     collator/collator_sort.c \
                   54826:     collator/collator_convert.c \
                   54827:     collator/collator_locale.c \
                   54828:     collator/collator_compare.c \
                   54829:     collator/collator_attr.c \
                   54830:     collator/collator_create.c \
                   54831:     collator/collator_is_numeric.c \
                   54832:     collator/collator_error.c \
                   54833:     common/common_error.c \
                   54834:     formatter/formatter.c \
                   54835:     formatter/formatter_main.c \
                   54836:     formatter/formatter_class.c \
                   54837:     formatter/formatter_attr.c \
                   54838:     formatter/formatter_data.c \
                   54839:     formatter/formatter_format.c \
                   54840:     formatter/formatter_parse.c \
                   54841:     normalizer/normalizer.c \
                   54842:     normalizer/normalizer_class.c \
                   54843:     normalizer/normalizer_normalize.c \
                   54844:     locale/locale.c \
                   54845:     locale/locale_class.c \
                   54846:     locale/locale_methods.c \
                   54847:     dateformat/dateformat.c \
                   54848:     dateformat/dateformat_class.c \
                   54849:     dateformat/dateformat_attr.c \
                   54850:     dateformat/dateformat_data.c \
                   54851:     dateformat/dateformat_format.c \
                   54852:     dateformat/dateformat_parse.c \
                   54853:     msgformat/msgformat.c \
                   54854:     msgformat/msgformat_attr.c \
                   54855:     msgformat/msgformat_class.c \
                   54856:     msgformat/msgformat_data.c  \
                   54857:     msgformat/msgformat_format.c \
                   54858:     msgformat/msgformat_helpers.cpp \
                   54859:     msgformat/msgformat_parse.c \
                   54860:     grapheme/grapheme_string.c \
                   54861:     grapheme/grapheme_util.c \
                   54862:     resourcebundle/resourcebundle.c \
                   54863:     resourcebundle/resourcebundle_class.c \
                   54864:     resourcebundle/resourcebundle_iterator.c \
1.1.1.2 ! misho    54865:     transliterator/transliterator.c \
        !          54866:     transliterator/transliterator_class.c \
        !          54867:     transliterator/transliterator_methods.c \
        !          54868:     idn/idn.c \
        !          54869:     $icu_spoof_src; do
1.1       misho    54870: 
                   54871:       IFS=.
                   54872:       set $ac_src
                   54873:       ac_obj=$1
                   54874:       IFS=$old_IFS
                   54875: 
1.1.1.2 ! misho    54876:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    54877: 
                   54878:       case $ac_src in
                   54879:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   54880:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   54881:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   54882:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   54883:       esac
                   54884: 
                   54885:     cat >>Makefile.objects<<EOF
                   54886: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   54887:        $ac_comp
                   54888: EOF
                   54889:   done
                   54890: 
                   54891: 
                   54892:     EXT_CLI_STATIC="$EXT_CLI_STATIC intl"
                   54893:   fi
                   54894: 
                   54895: 
                   54896:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   54897: 
                   54898: 
                   54899: 
                   54900:   if test "$ext_builddir" = "."; then
                   54901:     PHP_PECL_EXTENSION=intl
                   54902: 
                   54903:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   54904: 
                   54905:   fi
                   54906: 
                   54907: 
                   54908: 
                   54909:     BUILD_DIR="$BUILD_DIR $ext_builddir/collator"
                   54910: 
                   54911: 
                   54912: 
                   54913: 
                   54914:     BUILD_DIR="$BUILD_DIR $ext_builddir/common"
                   54915: 
                   54916: 
                   54917: 
                   54918: 
                   54919:     BUILD_DIR="$BUILD_DIR $ext_builddir/formatter"
                   54920: 
                   54921: 
                   54922: 
                   54923: 
                   54924:     BUILD_DIR="$BUILD_DIR $ext_builddir/normalizer"
                   54925: 
                   54926: 
                   54927: 
                   54928: 
                   54929:     BUILD_DIR="$BUILD_DIR $ext_builddir/dateformat"
                   54930: 
                   54931: 
                   54932: 
                   54933: 
                   54934:     BUILD_DIR="$BUILD_DIR $ext_builddir/locale"
                   54935: 
                   54936: 
                   54937: 
                   54938: 
                   54939:     BUILD_DIR="$BUILD_DIR $ext_builddir/msgformat"
                   54940: 
                   54941: 
                   54942: 
                   54943: 
                   54944:     BUILD_DIR="$BUILD_DIR $ext_builddir/grapheme"
                   54945: 
                   54946: 
                   54947: 
                   54948: 
                   54949:     BUILD_DIR="$BUILD_DIR $ext_builddir/resourcebundle"
                   54950: 
                   54951: 
                   54952: 
                   54953: 
1.1.1.2 ! misho    54954:     BUILD_DIR="$BUILD_DIR $ext_builddir/transliterator"
        !          54955: 
        !          54956: 
        !          54957: 
        !          54958: 
1.1       misho    54959:     BUILD_DIR="$BUILD_DIR $ext_builddir/idn"
                   54960: 
                   54961: 
1.1.1.2 ! misho    54962: 
        !          54963: 
        !          54964:     BUILD_DIR="$BUILD_DIR $ext_builddir/spoofchecker"
        !          54965: 
        !          54966: 
1.1       misho    54967: fi
                   54968: 
                   54969: 
                   54970: 
                   54971: php_enable_json=yes
                   54972: 
                   54973: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable JavaScript Object Serialization support" >&5
                   54974: $as_echo_n "checking whether to enable JavaScript Object Serialization support... " >&6; }
                   54975: # Check whether --enable-json was given.
                   54976: if test "${enable_json+set}" = set; then :
                   54977:   enableval=$enable_json; PHP_JSON=$enableval
                   54978: else
                   54979: 
                   54980:   PHP_JSON=yes
                   54981:   test "$PHP_ENABLE_ALL" && PHP_JSON=$PHP_ENABLE_ALL
                   54982: 
                   54983: fi
                   54984: 
                   54985: 
                   54986: 
                   54987: ext_output="yes, shared"
                   54988: ext_shared=yes
                   54989: case $PHP_JSON in
                   54990: shared,*)
                   54991:   PHP_JSON=`echo "$PHP_JSON"|$SED 's/^shared,//'`
                   54992:   ;;
                   54993: shared)
                   54994:   PHP_JSON=yes
                   54995:   ;;
                   54996: no)
                   54997:   ext_output=no
                   54998:   ext_shared=no
                   54999:   ;;
                   55000: *)
                   55001:   ext_output=yes
                   55002:   ext_shared=no
                   55003:   ;;
                   55004: esac
                   55005: 
                   55006: 
                   55007: 
                   55008: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   55009: $as_echo "$ext_output" >&6; }
                   55010: 
                   55011: 
                   55012: 
                   55013: 
                   55014: if test "$PHP_JSON" != "no"; then
                   55015: 
                   55016: $as_echo "#define HAVE_JSON 1 " >>confdefs.h
                   55017: 
                   55018:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   55019: $as_echo_n "checking for ANSI C header files... " >&6; }
                   55020: if ${ac_cv_header_stdc+:} false; then :
                   55021:   $as_echo_n "(cached) " >&6
                   55022: else
                   55023:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   55024: /* end confdefs.h.  */
                   55025: #include <stdlib.h>
                   55026: #include <stdarg.h>
                   55027: #include <string.h>
                   55028: #include <float.h>
                   55029: 
                   55030: int
                   55031: main ()
                   55032: {
                   55033: 
                   55034:   ;
                   55035:   return 0;
                   55036: }
                   55037: _ACEOF
                   55038: if ac_fn_c_try_compile "$LINENO"; then :
                   55039:   ac_cv_header_stdc=yes
                   55040: else
                   55041:   ac_cv_header_stdc=no
                   55042: fi
                   55043: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   55044: 
                   55045: if test $ac_cv_header_stdc = yes; then
                   55046:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   55047:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   55048: /* end confdefs.h.  */
                   55049: #include <string.h>
                   55050: 
                   55051: _ACEOF
                   55052: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   55053:   $EGREP "memchr" >/dev/null 2>&1; then :
                   55054: 
                   55055: else
                   55056:   ac_cv_header_stdc=no
                   55057: fi
                   55058: rm -f conftest*
                   55059: 
                   55060: fi
                   55061: 
                   55062: if test $ac_cv_header_stdc = yes; then
                   55063:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   55064:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   55065: /* end confdefs.h.  */
                   55066: #include <stdlib.h>
                   55067: 
                   55068: _ACEOF
                   55069: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   55070:   $EGREP "free" >/dev/null 2>&1; then :
                   55071: 
                   55072: else
                   55073:   ac_cv_header_stdc=no
                   55074: fi
                   55075: rm -f conftest*
                   55076: 
                   55077: fi
                   55078: 
                   55079: if test $ac_cv_header_stdc = yes; then
                   55080:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   55081:   if test "$cross_compiling" = yes; then :
                   55082:   :
                   55083: else
                   55084:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   55085: /* end confdefs.h.  */
                   55086: #include <ctype.h>
                   55087: #include <stdlib.h>
                   55088: #if ((' ' & 0x0FF) == 0x020)
                   55089: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   55090: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   55091: #else
                   55092: # define ISLOWER(c) \
                   55093:                   (('a' <= (c) && (c) <= 'i') \
                   55094:                     || ('j' <= (c) && (c) <= 'r') \
                   55095:                     || ('s' <= (c) && (c) <= 'z'))
                   55096: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   55097: #endif
                   55098: 
                   55099: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   55100: int
                   55101: main ()
                   55102: {
                   55103:   int i;
                   55104:   for (i = 0; i < 256; i++)
                   55105:     if (XOR (islower (i), ISLOWER (i))
                   55106:        || toupper (i) != TOUPPER (i))
                   55107:       return 2;
                   55108:   return 0;
                   55109: }
                   55110: _ACEOF
                   55111: if ac_fn_c_try_run "$LINENO"; then :
                   55112: 
                   55113: else
                   55114:   ac_cv_header_stdc=no
                   55115: fi
                   55116: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   55117:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   55118: fi
                   55119: 
                   55120: fi
                   55121: fi
                   55122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   55123: $as_echo "$ac_cv_header_stdc" >&6; }
                   55124: if test $ac_cv_header_stdc = yes; then
                   55125: 
                   55126: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
                   55127: 
                   55128: fi
                   55129: 
                   55130: 
                   55131: 
                   55132:   ext_builddir=ext/json
                   55133:   ext_srcdir=$abs_srcdir/ext/json
                   55134: 
                   55135:   ac_extra=
                   55136: 
                   55137:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   55138:     PHP_JSON_SHARED=no
                   55139: 
                   55140: 
                   55141:   case ext/json in
                   55142:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   55143:   /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   55144:   *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   55145:   esac
                   55146: 
                   55147: 
                   55148: 
                   55149:   b_c_pre=$php_c_pre
                   55150:   b_cxx_pre=$php_cxx_pre
                   55151:   b_c_meta=$php_c_meta
                   55152:   b_cxx_meta=$php_cxx_meta
                   55153:   b_c_post=$php_c_post
                   55154:   b_cxx_post=$php_cxx_post
                   55155:   b_lo=$php_lo
                   55156: 
                   55157: 
                   55158:   old_IFS=$IFS
                   55159:   for ac_src in json.c utf8_to_utf16.c utf8_decode.c JSON_parser.c; do
                   55160: 
                   55161:       IFS=.
                   55162:       set $ac_src
                   55163:       ac_obj=$1
                   55164:       IFS=$old_IFS
                   55165: 
                   55166:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   55167: 
                   55168:       case $ac_src in
                   55169:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55170:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55171:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55172:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   55173:       esac
                   55174: 
                   55175:     cat >>Makefile.objects<<EOF
                   55176: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   55177:        $ac_comp
                   55178: EOF
                   55179:   done
                   55180: 
                   55181: 
                   55182:     EXT_STATIC="$EXT_STATIC json"
                   55183:     if test "$ext_shared" != "nocli"; then
                   55184:       EXT_CLI_STATIC="$EXT_CLI_STATIC json"
                   55185:     fi
                   55186:   else
                   55187:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   55188:       PHP_JSON_SHARED=yes
                   55189: 
                   55190:   case ext/json in
                   55191:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   55192:   /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   55193:   *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   55194:   esac
                   55195: 
                   55196: 
                   55197: 
                   55198:   b_c_pre=$shared_c_pre
                   55199:   b_cxx_pre=$shared_cxx_pre
                   55200:   b_c_meta=$shared_c_meta
                   55201:   b_cxx_meta=$shared_cxx_meta
                   55202:   b_c_post=$shared_c_post
                   55203:   b_cxx_post=$shared_cxx_post
                   55204:   b_lo=$shared_lo
                   55205: 
                   55206: 
                   55207:   old_IFS=$IFS
                   55208:   for ac_src in json.c utf8_to_utf16.c utf8_decode.c JSON_parser.c; do
                   55209: 
                   55210:       IFS=.
                   55211:       set $ac_src
                   55212:       ac_obj=$1
                   55213:       IFS=$old_IFS
                   55214: 
                   55215:       shared_objects_json="$shared_objects_json $ac_bdir$ac_obj.lo"
                   55216: 
                   55217:       case $ac_src in
                   55218:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55219:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55220:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55221:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   55222:       esac
                   55223: 
                   55224:     cat >>Makefile.objects<<EOF
                   55225: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   55226:        $ac_comp
                   55227: EOF
                   55228:   done
                   55229: 
                   55230:       case $host_alias in
                   55231:         *netware*)
                   55232: 
                   55233:   install_modules="install-modules"
                   55234: 
                   55235:   case $host_alias in
                   55236:     *aix*)
                   55237:       suffix=so
                   55238:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpjson.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) $(PHPJSON_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpjson.so '$ext_builddir'/phpjson.so'
                   55239:       ;;
                   55240:     *netware*)
                   55241:       suffix=nlm
                   55242:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) -L$(top_builddir)/netware -lphp5lib $(JSON_SHARED_LIBADD)'
                   55243:       ;;
                   55244:     *)
                   55245:       suffix=la
                   55246:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) $(PHPJSON_SHARED_LIBADD)'
                   55247:       ;;
                   55248:   esac
                   55249: 
                   55250:   if test "x" = "xyes"; then
                   55251:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpjson.$suffix"
                   55252:   else
                   55253:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpjson.$suffix"
                   55254:   fi
                   55255: 
                   55256:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_json"
                   55257: 
                   55258:   cat >>Makefile.objects<<EOF
                   55259: \$(phplibdir)/phpjson.$suffix: $ext_builddir/phpjson.$suffix
                   55260:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpjson.$suffix \$(phplibdir)
                   55261: 
                   55262: $ext_builddir/phpjson.$suffix: \$(shared_objects_json) \$(PHPJSON_SHARED_DEPENDENCIES)
                   55263:        $link_cmd
                   55264: 
                   55265: EOF
                   55266: 
                   55267:           ;;
                   55268:         *)
                   55269: 
                   55270:   install_modules="install-modules"
                   55271: 
                   55272:   case $host_alias in
                   55273:     *aix*)
                   55274:       suffix=so
                   55275:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/json.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) $(JSON_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/json.so '$ext_builddir'/json.so'
                   55276:       ;;
                   55277:     *netware*)
                   55278:       suffix=nlm
                   55279:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) -L$(top_builddir)/netware -lphp5lib $(N_SHARED_LIBADD)'
                   55280:       ;;
                   55281:     *)
                   55282:       suffix=la
                   55283:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) $(JSON_SHARED_LIBADD)'
                   55284:       ;;
                   55285:   esac
                   55286: 
                   55287:   if test "x" = "xyes"; then
                   55288:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/json.$suffix"
                   55289:   else
                   55290:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/json.$suffix"
                   55291:   fi
                   55292: 
                   55293:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_json"
                   55294: 
                   55295:   cat >>Makefile.objects<<EOF
                   55296: \$(phplibdir)/json.$suffix: $ext_builddir/json.$suffix
                   55297:        \$(LIBTOOL) --mode=install cp $ext_builddir/json.$suffix \$(phplibdir)
                   55298: 
                   55299: $ext_builddir/json.$suffix: \$(shared_objects_json) \$(JSON_SHARED_DEPENDENCIES)
                   55300:        $link_cmd
                   55301: 
                   55302: EOF
                   55303: 
                   55304:           ;;
                   55305:       esac
                   55306: 
                   55307: cat >>confdefs.h <<_ACEOF
                   55308: #define COMPILE_DL_JSON 1
                   55309: _ACEOF
                   55310: 
                   55311:     fi
                   55312:   fi
                   55313: 
                   55314:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   55315:     PHP_JSON_SHARED=no
                   55316: 
                   55317: 
                   55318:   case ext/json in
                   55319:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   55320:   /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   55321:   *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   55322:   esac
                   55323: 
                   55324: 
                   55325: 
                   55326:   b_c_pre=$php_c_pre
                   55327:   b_cxx_pre=$php_cxx_pre
                   55328:   b_c_meta=$php_c_meta
                   55329:   b_cxx_meta=$php_cxx_meta
                   55330:   b_c_post=$php_c_post
                   55331:   b_cxx_post=$php_cxx_post
                   55332:   b_lo=$php_lo
                   55333: 
                   55334: 
                   55335:   old_IFS=$IFS
                   55336:   for ac_src in json.c utf8_to_utf16.c utf8_decode.c JSON_parser.c; do
                   55337: 
                   55338:       IFS=.
                   55339:       set $ac_src
                   55340:       ac_obj=$1
                   55341:       IFS=$old_IFS
                   55342: 
1.1.1.2 ! misho    55343:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    55344: 
                   55345:       case $ac_src in
                   55346:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55347:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55348:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55349:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   55350:       esac
                   55351: 
                   55352:     cat >>Makefile.objects<<EOF
                   55353: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   55354:        $ac_comp
                   55355: EOF
                   55356:   done
                   55357: 
                   55358: 
                   55359: 
                   55360: 
                   55361:   case ext/json in
                   55362:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   55363:   /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   55364:   *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   55365:   esac
                   55366: 
                   55367: 
                   55368: 
                   55369:   b_c_pre=$php_c_pre
                   55370:   b_cxx_pre=$php_cxx_pre
                   55371:   b_c_meta=$php_c_meta
                   55372:   b_cxx_meta=$php_cxx_meta
                   55373:   b_c_post=$php_c_post
                   55374:   b_cxx_post=$php_cxx_post
                   55375:   b_lo=$php_lo
                   55376: 
                   55377: 
                   55378:   old_IFS=$IFS
                   55379:   for ac_src in json.c utf8_to_utf16.c utf8_decode.c JSON_parser.c; do
                   55380: 
                   55381:       IFS=.
                   55382:       set $ac_src
                   55383:       ac_obj=$1
                   55384:       IFS=$old_IFS
                   55385: 
1.1.1.2 ! misho    55386:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    55387: 
                   55388:       case $ac_src in
                   55389:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55390:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55391:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55392:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   55393:       esac
                   55394: 
                   55395:     cat >>Makefile.objects<<EOF
                   55396: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   55397:        $ac_comp
                   55398: EOF
                   55399:   done
                   55400: 
                   55401: 
                   55402: 
                   55403: 
                   55404:   case ext/json in
                   55405:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   55406:   /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   55407:   *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   55408:   esac
                   55409: 
                   55410: 
                   55411: 
                   55412:   b_c_pre=$php_c_pre
                   55413:   b_cxx_pre=$php_cxx_pre
                   55414:   b_c_meta=$php_c_meta
                   55415:   b_cxx_meta=$php_cxx_meta
                   55416:   b_c_post=$php_c_post
                   55417:   b_cxx_post=$php_cxx_post
                   55418:   b_lo=$php_lo
                   55419: 
                   55420: 
                   55421:   old_IFS=$IFS
                   55422:   for ac_src in json.c utf8_to_utf16.c utf8_decode.c JSON_parser.c; do
                   55423: 
                   55424:       IFS=.
                   55425:       set $ac_src
                   55426:       ac_obj=$1
                   55427:       IFS=$old_IFS
                   55428: 
1.1.1.2 ! misho    55429:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    55430: 
                   55431:       case $ac_src in
                   55432:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55433:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55434:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55435:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   55436:       esac
                   55437: 
                   55438:     cat >>Makefile.objects<<EOF
                   55439: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   55440:        $ac_comp
                   55441: EOF
                   55442:   done
                   55443: 
                   55444: 
                   55445:     EXT_CLI_STATIC="$EXT_CLI_STATIC json"
                   55446:   fi
                   55447: 
                   55448: 
                   55449:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   55450: 
                   55451: 
                   55452: 
                   55453:   if test "$ext_builddir" = "."; then
                   55454:     PHP_PECL_EXTENSION=json
                   55455: 
                   55456:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   55457: 
                   55458:   fi
                   55459: 
                   55460: 
                   55461: 
                   55462:     header_path=ext/json
                   55463:     for header_file in php_json.h; do
                   55464:       hp_hf="$header_path/$header_file"
                   55465: 
                   55466: 
                   55467:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
                   55468: 
                   55469:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   55470:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   55471:     eval "INSTALLHEADERS$unique=set"
                   55472: 
                   55473:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
                   55474: 
                   55475:   fi
                   55476: 
                   55477:     done
                   55478: 
                   55479: 
                   55480: 
                   55481:   PHP_VAR_SUBST="$PHP_VAR_SUBST JSON_SHARED_LIBADD"
                   55482: 
                   55483: fi
                   55484: 
                   55485: 
                   55486: 
                   55487: 
                   55488: 
                   55489: 
                   55490: 
                   55491: php_with_ldap=no
                   55492: 
                   55493: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5
                   55494: $as_echo_n "checking for LDAP support... " >&6; }
                   55495: 
                   55496: # Check whether --with-ldap was given.
                   55497: if test "${with_ldap+set}" = set; then :
                   55498:   withval=$with_ldap; PHP_LDAP=$withval
                   55499: else
                   55500: 
                   55501:   PHP_LDAP=no
                   55502:   test "$PHP_ENABLE_ALL" && PHP_LDAP=$PHP_ENABLE_ALL
                   55503: 
                   55504: fi
                   55505: 
                   55506: 
                   55507: 
                   55508: ext_output="yes, shared"
                   55509: ext_shared=yes
                   55510: case $PHP_LDAP in
                   55511: shared,*)
                   55512:   PHP_LDAP=`echo "$PHP_LDAP"|$SED 's/^shared,//'`
                   55513:   ;;
                   55514: shared)
                   55515:   PHP_LDAP=yes
                   55516:   ;;
                   55517: no)
                   55518:   ext_output=no
                   55519:   ext_shared=no
                   55520:   ;;
                   55521: *)
                   55522:   ext_output=yes
                   55523:   ext_shared=no
                   55524:   ;;
                   55525: esac
                   55526: 
                   55527: 
                   55528: 
                   55529: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   55530: $as_echo "$ext_output" >&6; }
                   55531: 
                   55532: 
                   55533: 
                   55534: 
                   55535: 
                   55536: php_with_ldap_sasl=no
                   55537: 
                   55538: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP Cyrus SASL support" >&5
                   55539: $as_echo_n "checking for LDAP Cyrus SASL support... " >&6; }
                   55540: 
                   55541: # Check whether --with-ldap-sasl was given.
                   55542: if test "${with_ldap_sasl+set}" = set; then :
                   55543:   withval=$with_ldap_sasl; PHP_LDAP_SASL=$withval
                   55544: else
                   55545: 
                   55546:   PHP_LDAP_SASL=no
                   55547: 
                   55548: 
                   55549: fi
                   55550: 
                   55551: 
                   55552: ext_output=$PHP_LDAP_SASL
                   55553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   55554: $as_echo "$ext_output" >&6; }
                   55555: 
                   55556: 
                   55557: 
                   55558: 
                   55559: if test "$PHP_LDAP" != "no"; then
                   55560: 
                   55561: 
                   55562:   ext_builddir=ext/ldap
                   55563:   ext_srcdir=$abs_srcdir/ext/ldap
                   55564: 
                   55565:   ac_extra=`echo "-DLDAP_DEPRECATED=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
                   55566: 
                   55567:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   55568:     PHP_LDAP_SHARED=no
                   55569: 
                   55570: 
                   55571:   case ext/ldap in
                   55572:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   55573:   /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   55574:   *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   55575:   esac
                   55576: 
                   55577: 
                   55578: 
                   55579:   b_c_pre=$php_c_pre
                   55580:   b_cxx_pre=$php_cxx_pre
                   55581:   b_c_meta=$php_c_meta
                   55582:   b_cxx_meta=$php_cxx_meta
                   55583:   b_c_post=$php_c_post
                   55584:   b_cxx_post=$php_cxx_post
                   55585:   b_lo=$php_lo
                   55586: 
                   55587: 
                   55588:   old_IFS=$IFS
                   55589:   for ac_src in ldap.c; do
                   55590: 
                   55591:       IFS=.
                   55592:       set $ac_src
                   55593:       ac_obj=$1
                   55594:       IFS=$old_IFS
                   55595: 
                   55596:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   55597: 
                   55598:       case $ac_src in
                   55599:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55600:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55601:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55602:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   55603:       esac
                   55604: 
                   55605:     cat >>Makefile.objects<<EOF
                   55606: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   55607:        $ac_comp
                   55608: EOF
                   55609:   done
                   55610: 
                   55611: 
                   55612:     EXT_STATIC="$EXT_STATIC ldap"
                   55613:     if test "$ext_shared" != "nocli"; then
                   55614:       EXT_CLI_STATIC="$EXT_CLI_STATIC ldap"
                   55615:     fi
                   55616:   else
                   55617:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   55618:       PHP_LDAP_SHARED=yes
                   55619: 
                   55620:   case ext/ldap in
                   55621:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   55622:   /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   55623:   *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   55624:   esac
                   55625: 
                   55626: 
                   55627: 
                   55628:   b_c_pre=$shared_c_pre
                   55629:   b_cxx_pre=$shared_cxx_pre
                   55630:   b_c_meta=$shared_c_meta
                   55631:   b_cxx_meta=$shared_cxx_meta
                   55632:   b_c_post=$shared_c_post
                   55633:   b_cxx_post=$shared_cxx_post
                   55634:   b_lo=$shared_lo
                   55635: 
                   55636: 
                   55637:   old_IFS=$IFS
                   55638:   for ac_src in ldap.c; do
                   55639: 
                   55640:       IFS=.
                   55641:       set $ac_src
                   55642:       ac_obj=$1
                   55643:       IFS=$old_IFS
                   55644: 
                   55645:       shared_objects_ldap="$shared_objects_ldap $ac_bdir$ac_obj.lo"
                   55646: 
                   55647:       case $ac_src in
                   55648:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55649:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55650:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55651:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   55652:       esac
                   55653: 
                   55654:     cat >>Makefile.objects<<EOF
                   55655: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   55656:        $ac_comp
                   55657: EOF
                   55658:   done
                   55659: 
                   55660:       case $host_alias in
                   55661:         *netware*)
                   55662: 
                   55663:   install_modules="install-modules"
                   55664: 
                   55665:   case $host_alias in
                   55666:     *aix*)
                   55667:       suffix=so
                   55668:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpldap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) $(PHPLDAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpldap.so '$ext_builddir'/phpldap.so'
                   55669:       ;;
                   55670:     *netware*)
                   55671:       suffix=nlm
                   55672:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) -L$(top_builddir)/netware -lphp5lib $(LDAP_SHARED_LIBADD)'
                   55673:       ;;
                   55674:     *)
                   55675:       suffix=la
                   55676:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) $(PHPLDAP_SHARED_LIBADD)'
                   55677:       ;;
                   55678:   esac
                   55679: 
                   55680:   if test "x" = "xyes"; then
                   55681:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpldap.$suffix"
                   55682:   else
                   55683:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpldap.$suffix"
                   55684:   fi
                   55685: 
                   55686:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ldap"
                   55687: 
                   55688:   cat >>Makefile.objects<<EOF
                   55689: \$(phplibdir)/phpldap.$suffix: $ext_builddir/phpldap.$suffix
                   55690:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpldap.$suffix \$(phplibdir)
                   55691: 
                   55692: $ext_builddir/phpldap.$suffix: \$(shared_objects_ldap) \$(PHPLDAP_SHARED_DEPENDENCIES)
                   55693:        $link_cmd
                   55694: 
                   55695: EOF
                   55696: 
                   55697:           ;;
                   55698:         *)
                   55699: 
                   55700:   install_modules="install-modules"
                   55701: 
                   55702:   case $host_alias in
                   55703:     *aix*)
                   55704:       suffix=so
                   55705:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/ldap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) $(LDAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/ldap.so '$ext_builddir'/ldap.so'
                   55706:       ;;
                   55707:     *netware*)
                   55708:       suffix=nlm
                   55709:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) -L$(top_builddir)/netware -lphp5lib $(P_SHARED_LIBADD)'
                   55710:       ;;
                   55711:     *)
                   55712:       suffix=la
                   55713:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) $(LDAP_SHARED_LIBADD)'
                   55714:       ;;
                   55715:   esac
                   55716: 
                   55717:   if test "x" = "xyes"; then
                   55718:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ldap.$suffix"
                   55719:   else
                   55720:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/ldap.$suffix"
                   55721:   fi
                   55722: 
                   55723:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ldap"
                   55724: 
                   55725:   cat >>Makefile.objects<<EOF
                   55726: \$(phplibdir)/ldap.$suffix: $ext_builddir/ldap.$suffix
                   55727:        \$(LIBTOOL) --mode=install cp $ext_builddir/ldap.$suffix \$(phplibdir)
                   55728: 
                   55729: $ext_builddir/ldap.$suffix: \$(shared_objects_ldap) \$(LDAP_SHARED_DEPENDENCIES)
                   55730:        $link_cmd
                   55731: 
                   55732: EOF
                   55733: 
                   55734:           ;;
                   55735:       esac
                   55736: 
                   55737: cat >>confdefs.h <<_ACEOF
                   55738: #define COMPILE_DL_LDAP 1
                   55739: _ACEOF
                   55740: 
                   55741:     fi
                   55742:   fi
                   55743: 
                   55744:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   55745:     PHP_LDAP_SHARED=no
                   55746: 
                   55747: 
                   55748:   case ext/ldap in
                   55749:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   55750:   /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   55751:   *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   55752:   esac
                   55753: 
                   55754: 
                   55755: 
                   55756:   b_c_pre=$php_c_pre
                   55757:   b_cxx_pre=$php_cxx_pre
                   55758:   b_c_meta=$php_c_meta
                   55759:   b_cxx_meta=$php_cxx_meta
                   55760:   b_c_post=$php_c_post
                   55761:   b_cxx_post=$php_cxx_post
                   55762:   b_lo=$php_lo
                   55763: 
                   55764: 
                   55765:   old_IFS=$IFS
                   55766:   for ac_src in ldap.c; do
                   55767: 
                   55768:       IFS=.
                   55769:       set $ac_src
                   55770:       ac_obj=$1
                   55771:       IFS=$old_IFS
                   55772: 
1.1.1.2 ! misho    55773:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    55774: 
                   55775:       case $ac_src in
                   55776:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55777:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55778:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55779:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   55780:       esac
                   55781: 
                   55782:     cat >>Makefile.objects<<EOF
                   55783: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   55784:        $ac_comp
                   55785: EOF
                   55786:   done
                   55787: 
                   55788: 
                   55789: 
                   55790: 
                   55791:   case ext/ldap in
                   55792:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   55793:   /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   55794:   *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   55795:   esac
                   55796: 
                   55797: 
                   55798: 
                   55799:   b_c_pre=$php_c_pre
                   55800:   b_cxx_pre=$php_cxx_pre
                   55801:   b_c_meta=$php_c_meta
                   55802:   b_cxx_meta=$php_cxx_meta
                   55803:   b_c_post=$php_c_post
                   55804:   b_cxx_post=$php_cxx_post
                   55805:   b_lo=$php_lo
                   55806: 
                   55807: 
                   55808:   old_IFS=$IFS
                   55809:   for ac_src in ldap.c; do
                   55810: 
                   55811:       IFS=.
                   55812:       set $ac_src
                   55813:       ac_obj=$1
                   55814:       IFS=$old_IFS
                   55815: 
1.1.1.2 ! misho    55816:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    55817: 
                   55818:       case $ac_src in
                   55819:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55820:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55821:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55822:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   55823:       esac
                   55824: 
                   55825:     cat >>Makefile.objects<<EOF
                   55826: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   55827:        $ac_comp
                   55828: EOF
                   55829:   done
                   55830: 
                   55831: 
                   55832: 
                   55833: 
                   55834:   case ext/ldap in
                   55835:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   55836:   /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   55837:   *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   55838:   esac
                   55839: 
                   55840: 
                   55841: 
                   55842:   b_c_pre=$php_c_pre
                   55843:   b_cxx_pre=$php_cxx_pre
                   55844:   b_c_meta=$php_c_meta
                   55845:   b_cxx_meta=$php_cxx_meta
                   55846:   b_c_post=$php_c_post
                   55847:   b_cxx_post=$php_cxx_post
                   55848:   b_lo=$php_lo
                   55849: 
                   55850: 
                   55851:   old_IFS=$IFS
                   55852:   for ac_src in ldap.c; do
                   55853: 
                   55854:       IFS=.
                   55855:       set $ac_src
                   55856:       ac_obj=$1
                   55857:       IFS=$old_IFS
                   55858: 
1.1.1.2 ! misho    55859:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    55860: 
                   55861:       case $ac_src in
                   55862:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55863:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55864:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   55865:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   55866:       esac
                   55867: 
                   55868:     cat >>Makefile.objects<<EOF
                   55869: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   55870:        $ac_comp
                   55871: EOF
                   55872:   done
                   55873: 
                   55874: 
                   55875:     EXT_CLI_STATIC="$EXT_CLI_STATIC ldap"
                   55876:   fi
                   55877: 
                   55878: 
                   55879:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   55880: 
                   55881: 
                   55882: 
                   55883:   if test "$ext_builddir" = "."; then
                   55884:     PHP_PECL_EXTENSION=ldap
                   55885: 
                   55886:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   55887: 
                   55888:   fi
                   55889: 
                   55890: 
                   55891:   if test "$PHP_LDAP" = "yes"; then
                   55892:     for i in /usr/local /usr; do
                   55893: 
                   55894:   if test -f $i/include/ldap.h; then
                   55895:     LDAP_DIR=$i
                   55896:     LDAP_INCDIR=$i/include
                   55897:     LDAP_LIBDIR=$i/$PHP_LIBDIR
                   55898:   elif test -f $i/include/umich-ldap/ldap.h; then
                   55899:     LDAP_DIR=$i
                   55900:     LDAP_INCDIR=$i/include/umich-ldap
                   55901:     LDAP_LIBDIR=$i/$PHP_LIBDIR
                   55902:   elif test -f $i/ldap/public/ldap.h; then
                   55903:     LDAP_DIR=$i
                   55904:     LDAP_INCDIR=$i/ldap/public
                   55905:     LDAP_LIBDIR=$i/$PHP_LIBDIR
                   55906:   fi
                   55907: 
                   55908:     done
                   55909:   else
                   55910: 
                   55911:   if test -f $PHP_LDAP/include/ldap.h; then
                   55912:     LDAP_DIR=$PHP_LDAP
                   55913:     LDAP_INCDIR=$PHP_LDAP/include
                   55914:     LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
                   55915:   elif test -f $PHP_LDAP/include/umich-ldap/ldap.h; then
                   55916:     LDAP_DIR=$PHP_LDAP
                   55917:     LDAP_INCDIR=$PHP_LDAP/include/umich-ldap
                   55918:     LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
                   55919:   elif test -f $PHP_LDAP/ldap/public/ldap.h; then
                   55920:     LDAP_DIR=$PHP_LDAP
                   55921:     LDAP_INCDIR=$PHP_LDAP/ldap/public
                   55922:     LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
                   55923:   fi
                   55924: 
                   55925:   fi
                   55926: 
                   55927:   if test -z "$LDAP_DIR"; then
                   55928:     as_fn_error $? "Cannot find ldap.h" "$LINENO" 5
                   55929:   fi
                   55930: 
                   55931: 
                   55932:   if test `uname` = "Linux"; then
                   55933:     LDAP_PTHREAD=pthread
                   55934:   else
                   55935:     LDAP_PTHREAD=
                   55936:   fi
                   55937: 
                   55938:   if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then
                   55939: 
                   55940: 
                   55941:   if test "$ext_shared" = "yes"; then
                   55942:     LDAP_SHARED_LIBADD="-llber $LDAP_SHARED_LIBADD"
                   55943:     if test -n "$LDAP_LIBDIR"; then
                   55944: 
                   55945:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   55946: 
                   55947:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   55948:     ai_p=$LDAP_LIBDIR
                   55949:   else
                   55950: 
                   55951:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   55952: 
                   55953:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   55954:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   55955:   fi
                   55956: 
                   55957: 
                   55958:       if test "$ext_shared" = "yes"; then
                   55959:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   55960:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   55961:       else
                   55962: 
                   55963: 
                   55964: 
                   55965:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   55966: 
                   55967:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   55968:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   55969:     eval "LIBPATH$unique=set"
                   55970: 
                   55971:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   55972:     LDFLAGS="$LDFLAGS -L$ai_p"
                   55973:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   55974: 
                   55975:   fi
                   55976: 
                   55977: 
                   55978:       fi
                   55979: 
                   55980:   fi
                   55981: 
                   55982:     fi
                   55983:   else
                   55984: 
                   55985: 
                   55986:   if test -n "$LDAP_LIBDIR"; then
                   55987: 
                   55988:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   55989: 
                   55990:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   55991:     ai_p=$LDAP_LIBDIR
                   55992:   else
                   55993: 
                   55994:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   55995: 
                   55996:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   55997:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   55998:   fi
                   55999: 
                   56000: 
                   56001: 
                   56002: 
                   56003: 
                   56004:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56005: 
                   56006:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56007:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56008:     eval "LIBPATH$unique=set"
                   56009: 
                   56010:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56011:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56012:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56013: 
                   56014:   fi
                   56015: 
                   56016: 
                   56017: 
                   56018:   fi
                   56019: 
                   56020:   fi
                   56021: 
                   56022: 
                   56023:   case lber in
                   56024:   c|c_r|pthread*) ;;
                   56025:   *)
                   56026:       LIBS="-llber $LIBS"
                   56027:    ;;
                   56028:   esac
                   56029: 
                   56030: 
                   56031: 
                   56032: 
                   56033:   fi
                   56034: 
                   56035: 
                   56036: 
                   56037: 
                   56038:   if test "$ext_shared" = "yes"; then
                   56039:     LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD"
                   56040:     if test -n "$LDAP_LIBDIR"; then
                   56041: 
                   56042:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56043: 
                   56044:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56045:     ai_p=$LDAP_LIBDIR
                   56046:   else
                   56047: 
                   56048:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56049: 
                   56050:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56051:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56052:   fi
                   56053: 
                   56054: 
                   56055:       if test "$ext_shared" = "yes"; then
                   56056:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   56057:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   56058:       else
                   56059: 
                   56060: 
                   56061: 
                   56062:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56063: 
                   56064:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56065:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56066:     eval "LIBPATH$unique=set"
                   56067: 
                   56068:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56069:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56070:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56071: 
                   56072:   fi
                   56073: 
                   56074: 
                   56075:       fi
                   56076: 
                   56077:   fi
                   56078: 
                   56079:     fi
                   56080:   else
                   56081: 
                   56082: 
                   56083:   if test -n "$LDAP_LIBDIR"; then
                   56084: 
                   56085:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56086: 
                   56087:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56088:     ai_p=$LDAP_LIBDIR
                   56089:   else
                   56090: 
                   56091:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56092: 
                   56093:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56094:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56095:   fi
                   56096: 
                   56097: 
                   56098: 
                   56099: 
                   56100: 
                   56101:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56102: 
                   56103:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56104:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56105:     eval "LIBPATH$unique=set"
                   56106: 
                   56107:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56108:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56109:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56110: 
                   56111:   fi
                   56112: 
                   56113: 
                   56114: 
                   56115:   fi
                   56116: 
                   56117:   fi
                   56118: 
                   56119: 
                   56120:   case ldap in
                   56121:   c|c_r|pthread*) ;;
                   56122:   *)
                   56123:       LIBS="-lldap $LIBS"
                   56124:    ;;
                   56125:   esac
                   56126: 
                   56127: 
                   56128: 
                   56129: 
                   56130:   fi
                   56131: 
                   56132: 
                   56133: 
                   56134:   elif test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME.3 || test -f $LDAP_LIBDIR/libldap.3.dylib; then
                   56135: 
                   56136: 
                   56137:   if test "$ext_shared" = "yes"; then
                   56138:     LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD"
                   56139:     if test -n "$LDAP_LIBDIR"; then
                   56140: 
                   56141:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56142: 
                   56143:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56144:     ai_p=$LDAP_LIBDIR
                   56145:   else
                   56146: 
                   56147:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56148: 
                   56149:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56150:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56151:   fi
                   56152: 
                   56153: 
                   56154:       if test "$ext_shared" = "yes"; then
                   56155:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   56156:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   56157:       else
                   56158: 
                   56159: 
                   56160: 
                   56161:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56162: 
                   56163:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56164:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56165:     eval "LIBPATH$unique=set"
                   56166: 
                   56167:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56168:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56169:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56170: 
                   56171:   fi
                   56172: 
                   56173: 
                   56174:       fi
                   56175: 
                   56176:   fi
                   56177: 
                   56178:     fi
                   56179:   else
                   56180: 
                   56181: 
                   56182:   if test -n "$LDAP_LIBDIR"; then
                   56183: 
                   56184:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56185: 
                   56186:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56187:     ai_p=$LDAP_LIBDIR
                   56188:   else
                   56189: 
                   56190:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56191: 
                   56192:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56193:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56194:   fi
                   56195: 
                   56196: 
                   56197: 
                   56198: 
                   56199: 
                   56200:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56201: 
                   56202:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56203:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56204:     eval "LIBPATH$unique=set"
                   56205: 
                   56206:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56207:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56208:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56209: 
                   56210:   fi
                   56211: 
                   56212: 
                   56213: 
                   56214:   fi
                   56215: 
                   56216:   fi
                   56217: 
                   56218: 
                   56219:   case ldap in
                   56220:   c|c_r|pthread*) ;;
                   56221:   *)
                   56222:       LIBS="-lldap $LIBS"
                   56223:    ;;
                   56224:   esac
                   56225: 
                   56226: 
                   56227: 
                   56228: 
                   56229:   fi
                   56230: 
                   56231: 
                   56232: 
                   56233:   elif test -f $LDAP_LIBDIR/libssldap50.$SHLIB_SUFFIX_NAME; then
                   56234:     if test -n "$LDAP_PTHREAD"; then
                   56235: 
                   56236: 
                   56237:   case $LDAP_PTHREAD in
                   56238:   c|c_r|pthread*) ;;
                   56239:   *)
                   56240:       LIBS="-l$LDAP_PTHREAD $LIBS"
                   56241:    ;;
                   56242:   esac
                   56243: 
                   56244: 
                   56245:     fi
                   56246: 
                   56247: 
                   56248:   if test "$ext_shared" = "yes"; then
                   56249:     LDAP_SHARED_LIBADD="-lnspr4 $LDAP_SHARED_LIBADD"
                   56250:     if test -n "$LDAP_LIBDIR"; then
                   56251: 
                   56252:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56253: 
                   56254:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56255:     ai_p=$LDAP_LIBDIR
                   56256:   else
                   56257: 
                   56258:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56259: 
                   56260:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56261:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56262:   fi
                   56263: 
                   56264: 
                   56265:       if test "$ext_shared" = "yes"; then
                   56266:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   56267:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   56268:       else
                   56269: 
                   56270: 
                   56271: 
                   56272:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56273: 
                   56274:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56275:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56276:     eval "LIBPATH$unique=set"
                   56277: 
                   56278:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56279:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56280:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56281: 
                   56282:   fi
                   56283: 
                   56284: 
                   56285:       fi
                   56286: 
                   56287:   fi
                   56288: 
                   56289:     fi
                   56290:   else
                   56291: 
                   56292: 
                   56293:   if test -n "$LDAP_LIBDIR"; then
                   56294: 
                   56295:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56296: 
                   56297:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56298:     ai_p=$LDAP_LIBDIR
                   56299:   else
                   56300: 
                   56301:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56302: 
                   56303:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56304:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56305:   fi
                   56306: 
                   56307: 
                   56308: 
                   56309: 
                   56310: 
                   56311:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56312: 
                   56313:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56314:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56315:     eval "LIBPATH$unique=set"
                   56316: 
                   56317:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56318:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56319:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56320: 
                   56321:   fi
                   56322: 
                   56323: 
                   56324: 
                   56325:   fi
                   56326: 
                   56327:   fi
                   56328: 
                   56329: 
                   56330:   case nspr4 in
                   56331:   c|c_r|pthread*) ;;
                   56332:   *)
                   56333:       LIBS="-lnspr4 $LIBS"
                   56334:    ;;
                   56335:   esac
                   56336: 
                   56337: 
                   56338: 
                   56339: 
                   56340:   fi
                   56341: 
                   56342: 
                   56343: 
                   56344: 
                   56345:   if test "$ext_shared" = "yes"; then
                   56346:     LDAP_SHARED_LIBADD="-lplc4 $LDAP_SHARED_LIBADD"
                   56347:     if test -n "$LDAP_LIBDIR"; then
                   56348: 
                   56349:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56350: 
                   56351:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56352:     ai_p=$LDAP_LIBDIR
                   56353:   else
                   56354: 
                   56355:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56356: 
                   56357:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56358:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56359:   fi
                   56360: 
                   56361: 
                   56362:       if test "$ext_shared" = "yes"; then
                   56363:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   56364:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   56365:       else
                   56366: 
                   56367: 
                   56368: 
                   56369:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56370: 
                   56371:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56372:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56373:     eval "LIBPATH$unique=set"
                   56374: 
                   56375:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56376:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56377:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56378: 
                   56379:   fi
                   56380: 
                   56381: 
                   56382:       fi
                   56383: 
                   56384:   fi
                   56385: 
                   56386:     fi
                   56387:   else
                   56388: 
                   56389: 
                   56390:   if test -n "$LDAP_LIBDIR"; then
                   56391: 
                   56392:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56393: 
                   56394:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56395:     ai_p=$LDAP_LIBDIR
                   56396:   else
                   56397: 
                   56398:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56399: 
                   56400:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56401:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56402:   fi
                   56403: 
                   56404: 
                   56405: 
                   56406: 
                   56407: 
                   56408:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56409: 
                   56410:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56411:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56412:     eval "LIBPATH$unique=set"
                   56413: 
                   56414:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56415:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56416:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56417: 
                   56418:   fi
                   56419: 
                   56420: 
                   56421: 
                   56422:   fi
                   56423: 
                   56424:   fi
                   56425: 
                   56426: 
                   56427:   case plc4 in
                   56428:   c|c_r|pthread*) ;;
                   56429:   *)
                   56430:       LIBS="-lplc4 $LIBS"
                   56431:    ;;
                   56432:   esac
                   56433: 
                   56434: 
                   56435: 
                   56436: 
                   56437:   fi
                   56438: 
                   56439: 
                   56440: 
                   56441: 
                   56442:   if test "$ext_shared" = "yes"; then
                   56443:     LDAP_SHARED_LIBADD="-lplds4 $LDAP_SHARED_LIBADD"
                   56444:     if test -n "$LDAP_LIBDIR"; then
                   56445: 
                   56446:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56447: 
                   56448:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56449:     ai_p=$LDAP_LIBDIR
                   56450:   else
                   56451: 
                   56452:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56453: 
                   56454:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56455:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56456:   fi
                   56457: 
                   56458: 
                   56459:       if test "$ext_shared" = "yes"; then
                   56460:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   56461:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   56462:       else
                   56463: 
                   56464: 
                   56465: 
                   56466:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56467: 
                   56468:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56469:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56470:     eval "LIBPATH$unique=set"
                   56471: 
                   56472:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56473:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56474:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56475: 
                   56476:   fi
                   56477: 
                   56478: 
                   56479:       fi
                   56480: 
                   56481:   fi
                   56482: 
                   56483:     fi
                   56484:   else
                   56485: 
                   56486: 
                   56487:   if test -n "$LDAP_LIBDIR"; then
                   56488: 
                   56489:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56490: 
                   56491:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56492:     ai_p=$LDAP_LIBDIR
                   56493:   else
                   56494: 
                   56495:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56496: 
                   56497:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56498:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56499:   fi
                   56500: 
                   56501: 
                   56502: 
                   56503: 
                   56504: 
                   56505:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56506: 
                   56507:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56508:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56509:     eval "LIBPATH$unique=set"
                   56510: 
                   56511:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56512:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56513:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56514: 
                   56515:   fi
                   56516: 
                   56517: 
                   56518: 
                   56519:   fi
                   56520: 
                   56521:   fi
                   56522: 
                   56523: 
                   56524:   case plds4 in
                   56525:   c|c_r|pthread*) ;;
                   56526:   *)
                   56527:       LIBS="-lplds4 $LIBS"
                   56528:    ;;
                   56529:   esac
                   56530: 
                   56531: 
                   56532: 
                   56533: 
                   56534:   fi
                   56535: 
                   56536: 
                   56537: 
                   56538: 
                   56539:   if test "$ext_shared" = "yes"; then
                   56540:     LDAP_SHARED_LIBADD="-lssldap50 $LDAP_SHARED_LIBADD"
                   56541:     if test -n "$LDAP_LIBDIR"; then
                   56542: 
                   56543:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56544: 
                   56545:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56546:     ai_p=$LDAP_LIBDIR
                   56547:   else
                   56548: 
                   56549:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56550: 
                   56551:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56552:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56553:   fi
                   56554: 
                   56555: 
                   56556:       if test "$ext_shared" = "yes"; then
                   56557:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   56558:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   56559:       else
                   56560: 
                   56561: 
                   56562: 
                   56563:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56564: 
                   56565:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56566:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56567:     eval "LIBPATH$unique=set"
                   56568: 
                   56569:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56570:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56571:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56572: 
                   56573:   fi
                   56574: 
                   56575: 
                   56576:       fi
                   56577: 
                   56578:   fi
                   56579: 
                   56580:     fi
                   56581:   else
                   56582: 
                   56583: 
                   56584:   if test -n "$LDAP_LIBDIR"; then
                   56585: 
                   56586:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56587: 
                   56588:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56589:     ai_p=$LDAP_LIBDIR
                   56590:   else
                   56591: 
                   56592:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56593: 
                   56594:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56595:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56596:   fi
                   56597: 
                   56598: 
                   56599: 
                   56600: 
                   56601: 
                   56602:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56603: 
                   56604:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56605:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56606:     eval "LIBPATH$unique=set"
                   56607: 
                   56608:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56609:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56610:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56611: 
                   56612:   fi
                   56613: 
                   56614: 
                   56615: 
                   56616:   fi
                   56617: 
                   56618:   fi
                   56619: 
                   56620: 
                   56621:   case ssldap50 in
                   56622:   c|c_r|pthread*) ;;
                   56623:   *)
                   56624:       LIBS="-lssldap50 $LIBS"
                   56625:    ;;
                   56626:   esac
                   56627: 
                   56628: 
                   56629: 
                   56630: 
                   56631:   fi
                   56632: 
                   56633: 
                   56634: 
                   56635: 
                   56636:   if test "$ext_shared" = "yes"; then
                   56637:     LDAP_SHARED_LIBADD="-lldap50 $LDAP_SHARED_LIBADD"
                   56638:     if test -n "$LDAP_LIBDIR"; then
                   56639: 
                   56640:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56641: 
                   56642:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56643:     ai_p=$LDAP_LIBDIR
                   56644:   else
                   56645: 
                   56646:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56647: 
                   56648:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56649:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56650:   fi
                   56651: 
                   56652: 
                   56653:       if test "$ext_shared" = "yes"; then
                   56654:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   56655:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   56656:       else
                   56657: 
                   56658: 
                   56659: 
                   56660:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56661: 
                   56662:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56663:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56664:     eval "LIBPATH$unique=set"
                   56665: 
                   56666:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56667:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56668:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56669: 
                   56670:   fi
                   56671: 
                   56672: 
                   56673:       fi
                   56674: 
                   56675:   fi
                   56676: 
                   56677:     fi
                   56678:   else
                   56679: 
                   56680: 
                   56681:   if test -n "$LDAP_LIBDIR"; then
                   56682: 
                   56683:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56684: 
                   56685:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56686:     ai_p=$LDAP_LIBDIR
                   56687:   else
                   56688: 
                   56689:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56690: 
                   56691:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56692:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56693:   fi
                   56694: 
                   56695: 
                   56696: 
                   56697: 
                   56698: 
                   56699:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56700: 
                   56701:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56702:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56703:     eval "LIBPATH$unique=set"
                   56704: 
                   56705:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56706:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56707:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56708: 
                   56709:   fi
                   56710: 
                   56711: 
                   56712: 
                   56713:   fi
                   56714: 
                   56715:   fi
                   56716: 
                   56717: 
                   56718:   case ldap50 in
                   56719:   c|c_r|pthread*) ;;
                   56720:   *)
                   56721:       LIBS="-lldap50 $LIBS"
                   56722:    ;;
                   56723:   esac
                   56724: 
                   56725: 
                   56726: 
                   56727: 
                   56728:   fi
                   56729: 
                   56730: 
                   56731: 
                   56732: 
                   56733:   if test "$ext_shared" = "yes"; then
                   56734:     LDAP_SHARED_LIBADD="-lprldap50 $LDAP_SHARED_LIBADD"
                   56735:     if test -n "$LDAP_LIBDIR"; then
                   56736: 
                   56737:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56738: 
                   56739:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56740:     ai_p=$LDAP_LIBDIR
                   56741:   else
                   56742: 
                   56743:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56744: 
                   56745:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56746:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56747:   fi
                   56748: 
                   56749: 
                   56750:       if test "$ext_shared" = "yes"; then
                   56751:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   56752:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   56753:       else
                   56754: 
                   56755: 
                   56756: 
                   56757:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56758: 
                   56759:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56760:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56761:     eval "LIBPATH$unique=set"
                   56762: 
                   56763:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56764:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56765:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56766: 
                   56767:   fi
                   56768: 
                   56769: 
                   56770:       fi
                   56771: 
                   56772:   fi
                   56773: 
                   56774:     fi
                   56775:   else
                   56776: 
                   56777: 
                   56778:   if test -n "$LDAP_LIBDIR"; then
                   56779: 
                   56780:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56781: 
                   56782:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56783:     ai_p=$LDAP_LIBDIR
                   56784:   else
                   56785: 
                   56786:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56787: 
                   56788:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56789:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56790:   fi
                   56791: 
                   56792: 
                   56793: 
                   56794: 
                   56795: 
                   56796:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56797: 
                   56798:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56799:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56800:     eval "LIBPATH$unique=set"
                   56801: 
                   56802:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56803:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56804:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56805: 
                   56806:   fi
                   56807: 
                   56808: 
                   56809: 
                   56810:   fi
                   56811: 
                   56812:   fi
                   56813: 
                   56814: 
                   56815:   case prldap50 in
                   56816:   c|c_r|pthread*) ;;
                   56817:   *)
                   56818:       LIBS="-lprldap50 $LIBS"
                   56819:    ;;
                   56820:   esac
                   56821: 
                   56822: 
                   56823: 
                   56824: 
                   56825:   fi
                   56826: 
                   56827: 
                   56828: 
                   56829: 
                   56830:   if test "$ext_shared" = "yes"; then
                   56831:     LDAP_SHARED_LIBADD="-lssl3 $LDAP_SHARED_LIBADD"
                   56832:     if test -n "$LDAP_LIBDIR"; then
                   56833: 
                   56834:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56835: 
                   56836:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56837:     ai_p=$LDAP_LIBDIR
                   56838:   else
                   56839: 
                   56840:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56841: 
                   56842:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56843:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56844:   fi
                   56845: 
                   56846: 
                   56847:       if test "$ext_shared" = "yes"; then
                   56848:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   56849:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   56850:       else
                   56851: 
                   56852: 
                   56853: 
                   56854:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56855: 
                   56856:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56857:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56858:     eval "LIBPATH$unique=set"
                   56859: 
                   56860:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56861:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56862:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56863: 
                   56864:   fi
                   56865: 
                   56866: 
                   56867:       fi
                   56868: 
                   56869:   fi
                   56870: 
                   56871:     fi
                   56872:   else
                   56873: 
                   56874: 
                   56875:   if test -n "$LDAP_LIBDIR"; then
                   56876: 
                   56877:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56878: 
                   56879:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56880:     ai_p=$LDAP_LIBDIR
                   56881:   else
                   56882: 
                   56883:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56884: 
                   56885:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56886:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56887:   fi
                   56888: 
                   56889: 
                   56890: 
                   56891: 
                   56892: 
                   56893:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56894: 
                   56895:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56896:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56897:     eval "LIBPATH$unique=set"
                   56898: 
                   56899:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56900:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56901:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56902: 
                   56903:   fi
                   56904: 
                   56905: 
                   56906: 
                   56907:   fi
                   56908: 
                   56909:   fi
                   56910: 
                   56911: 
                   56912:   case ssl3 in
                   56913:   c|c_r|pthread*) ;;
                   56914:   *)
                   56915:       LIBS="-lssl3 $LIBS"
                   56916:    ;;
                   56917:   esac
                   56918: 
                   56919: 
                   56920: 
                   56921: 
                   56922:   fi
                   56923: 
                   56924: 
                   56925: 
                   56926: $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
                   56927: 
                   56928: 
                   56929:   elif test -f $LDAP_LIBDIR/libldapssl41.$SHLIB_SUFFIX_NAME; then
                   56930:     if test -n "$LDAP_PTHREAD"; then
                   56931: 
                   56932: 
                   56933:   case $LDAP_PTHREAD in
                   56934:   c|c_r|pthread*) ;;
                   56935:   *)
                   56936:       LIBS="-l$LDAP_PTHREAD $LIBS"
                   56937:    ;;
                   56938:   esac
                   56939: 
                   56940: 
                   56941:     fi
                   56942: 
                   56943: 
                   56944:   if test "$ext_shared" = "yes"; then
                   56945:     LDAP_SHARED_LIBADD="-lnspr3 $LDAP_SHARED_LIBADD"
                   56946:     if test -n "$LDAP_LIBDIR"; then
                   56947: 
                   56948:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56949: 
                   56950:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56951:     ai_p=$LDAP_LIBDIR
                   56952:   else
                   56953: 
                   56954:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56955: 
                   56956:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   56957:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   56958:   fi
                   56959: 
                   56960: 
                   56961:       if test "$ext_shared" = "yes"; then
                   56962:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   56963:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   56964:       else
                   56965: 
                   56966: 
                   56967: 
                   56968:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   56969: 
                   56970:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   56971:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   56972:     eval "LIBPATH$unique=set"
                   56973: 
                   56974:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   56975:     LDFLAGS="$LDFLAGS -L$ai_p"
                   56976:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   56977: 
                   56978:   fi
                   56979: 
                   56980: 
                   56981:       fi
                   56982: 
                   56983:   fi
                   56984: 
                   56985:     fi
                   56986:   else
                   56987: 
                   56988: 
                   56989:   if test -n "$LDAP_LIBDIR"; then
                   56990: 
                   56991:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   56992: 
                   56993:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   56994:     ai_p=$LDAP_LIBDIR
                   56995:   else
                   56996: 
                   56997:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   56998: 
                   56999:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57000:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57001:   fi
                   57002: 
                   57003: 
                   57004: 
                   57005: 
                   57006: 
                   57007:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57008: 
                   57009:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57010:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57011:     eval "LIBPATH$unique=set"
                   57012: 
                   57013:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57014:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57015:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57016: 
                   57017:   fi
                   57018: 
                   57019: 
                   57020: 
                   57021:   fi
                   57022: 
                   57023:   fi
                   57024: 
                   57025: 
                   57026:   case nspr3 in
                   57027:   c|c_r|pthread*) ;;
                   57028:   *)
                   57029:       LIBS="-lnspr3 $LIBS"
                   57030:    ;;
                   57031:   esac
                   57032: 
                   57033: 
                   57034: 
                   57035: 
                   57036:   fi
                   57037: 
                   57038: 
                   57039: 
                   57040: 
                   57041:   if test "$ext_shared" = "yes"; then
                   57042:     LDAP_SHARED_LIBADD="-lplc3 $LDAP_SHARED_LIBADD"
                   57043:     if test -n "$LDAP_LIBDIR"; then
                   57044: 
                   57045:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57046: 
                   57047:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57048:     ai_p=$LDAP_LIBDIR
                   57049:   else
                   57050: 
                   57051:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57052: 
                   57053:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57054:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57055:   fi
                   57056: 
                   57057: 
                   57058:       if test "$ext_shared" = "yes"; then
                   57059:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   57060:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   57061:       else
                   57062: 
                   57063: 
                   57064: 
                   57065:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57066: 
                   57067:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57068:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57069:     eval "LIBPATH$unique=set"
                   57070: 
                   57071:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57072:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57073:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57074: 
                   57075:   fi
                   57076: 
                   57077: 
                   57078:       fi
                   57079: 
                   57080:   fi
                   57081: 
                   57082:     fi
                   57083:   else
                   57084: 
                   57085: 
                   57086:   if test -n "$LDAP_LIBDIR"; then
                   57087: 
                   57088:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57089: 
                   57090:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57091:     ai_p=$LDAP_LIBDIR
                   57092:   else
                   57093: 
                   57094:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57095: 
                   57096:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57097:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57098:   fi
                   57099: 
                   57100: 
                   57101: 
                   57102: 
                   57103: 
                   57104:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57105: 
                   57106:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57107:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57108:     eval "LIBPATH$unique=set"
                   57109: 
                   57110:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57111:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57112:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57113: 
                   57114:   fi
                   57115: 
                   57116: 
                   57117: 
                   57118:   fi
                   57119: 
                   57120:   fi
                   57121: 
                   57122: 
                   57123:   case plc3 in
                   57124:   c|c_r|pthread*) ;;
                   57125:   *)
                   57126:       LIBS="-lplc3 $LIBS"
                   57127:    ;;
                   57128:   esac
                   57129: 
                   57130: 
                   57131: 
                   57132: 
                   57133:   fi
                   57134: 
                   57135: 
                   57136: 
                   57137: 
                   57138:   if test "$ext_shared" = "yes"; then
                   57139:     LDAP_SHARED_LIBADD="-lplds3 $LDAP_SHARED_LIBADD"
                   57140:     if test -n "$LDAP_LIBDIR"; then
                   57141: 
                   57142:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57143: 
                   57144:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57145:     ai_p=$LDAP_LIBDIR
                   57146:   else
                   57147: 
                   57148:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57149: 
                   57150:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57151:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57152:   fi
                   57153: 
                   57154: 
                   57155:       if test "$ext_shared" = "yes"; then
                   57156:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   57157:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   57158:       else
                   57159: 
                   57160: 
                   57161: 
                   57162:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57163: 
                   57164:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57165:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57166:     eval "LIBPATH$unique=set"
                   57167: 
                   57168:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57169:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57170:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57171: 
                   57172:   fi
                   57173: 
                   57174: 
                   57175:       fi
                   57176: 
                   57177:   fi
                   57178: 
                   57179:     fi
                   57180:   else
                   57181: 
                   57182: 
                   57183:   if test -n "$LDAP_LIBDIR"; then
                   57184: 
                   57185:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57186: 
                   57187:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57188:     ai_p=$LDAP_LIBDIR
                   57189:   else
                   57190: 
                   57191:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57192: 
                   57193:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57194:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57195:   fi
                   57196: 
                   57197: 
                   57198: 
                   57199: 
                   57200: 
                   57201:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57202: 
                   57203:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57204:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57205:     eval "LIBPATH$unique=set"
                   57206: 
                   57207:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57208:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57209:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57210: 
                   57211:   fi
                   57212: 
                   57213: 
                   57214: 
                   57215:   fi
                   57216: 
                   57217:   fi
                   57218: 
                   57219: 
                   57220:   case plds3 in
                   57221:   c|c_r|pthread*) ;;
                   57222:   *)
                   57223:       LIBS="-lplds3 $LIBS"
                   57224:    ;;
                   57225:   esac
                   57226: 
                   57227: 
                   57228: 
                   57229: 
                   57230:   fi
                   57231: 
                   57232: 
                   57233: 
                   57234: 
                   57235:   if test "$ext_shared" = "yes"; then
                   57236:     LDAP_SHARED_LIBADD="-lldapssl41 $LDAP_SHARED_LIBADD"
                   57237:     if test -n "$LDAP_LIBDIR"; then
                   57238: 
                   57239:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57240: 
                   57241:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57242:     ai_p=$LDAP_LIBDIR
                   57243:   else
                   57244: 
                   57245:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57246: 
                   57247:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57248:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57249:   fi
                   57250: 
                   57251: 
                   57252:       if test "$ext_shared" = "yes"; then
                   57253:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   57254:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   57255:       else
                   57256: 
                   57257: 
                   57258: 
                   57259:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57260: 
                   57261:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57262:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57263:     eval "LIBPATH$unique=set"
                   57264: 
                   57265:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57266:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57267:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57268: 
                   57269:   fi
                   57270: 
                   57271: 
                   57272:       fi
                   57273: 
                   57274:   fi
                   57275: 
                   57276:     fi
                   57277:   else
                   57278: 
                   57279: 
                   57280:   if test -n "$LDAP_LIBDIR"; then
                   57281: 
                   57282:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57283: 
                   57284:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57285:     ai_p=$LDAP_LIBDIR
                   57286:   else
                   57287: 
                   57288:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57289: 
                   57290:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57291:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57292:   fi
                   57293: 
                   57294: 
                   57295: 
                   57296: 
                   57297: 
                   57298:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57299: 
                   57300:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57301:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57302:     eval "LIBPATH$unique=set"
                   57303: 
                   57304:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57305:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57306:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57307: 
                   57308:   fi
                   57309: 
                   57310: 
                   57311: 
                   57312:   fi
                   57313: 
                   57314:   fi
                   57315: 
                   57316: 
                   57317:   case ldapssl41 in
                   57318:   c|c_r|pthread*) ;;
                   57319:   *)
                   57320:       LIBS="-lldapssl41 $LIBS"
                   57321:    ;;
                   57322:   esac
                   57323: 
                   57324: 
                   57325: 
                   57326: 
                   57327:   fi
                   57328: 
                   57329: 
                   57330: 
                   57331: $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
                   57332: 
                   57333: 
                   57334:   elif test -f $LDAP_LIBDIR/libldapssl30.$SHLIB_SUFFIX_NAME; then
                   57335:     if test -n "$LDAP_PTHREAD"; then
                   57336: 
                   57337: 
                   57338:   case $LDAP_PTHREAD in
                   57339:   c|c_r|pthread*) ;;
                   57340:   *)
                   57341:       LIBS="-l$LDAP_PTHREAD $LIBS"
                   57342:    ;;
                   57343:   esac
                   57344: 
                   57345: 
                   57346:     fi
                   57347: 
                   57348: 
                   57349:   if test "$ext_shared" = "yes"; then
                   57350:     LDAP_SHARED_LIBADD="-lldapssl30 $LDAP_SHARED_LIBADD"
                   57351:     if test -n "$LDAP_LIBDIR"; then
                   57352: 
                   57353:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57354: 
                   57355:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57356:     ai_p=$LDAP_LIBDIR
                   57357:   else
                   57358: 
                   57359:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57360: 
                   57361:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57362:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57363:   fi
                   57364: 
                   57365: 
                   57366:       if test "$ext_shared" = "yes"; then
                   57367:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   57368:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   57369:       else
                   57370: 
                   57371: 
                   57372: 
                   57373:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57374: 
                   57375:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57376:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57377:     eval "LIBPATH$unique=set"
                   57378: 
                   57379:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57380:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57381:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57382: 
                   57383:   fi
                   57384: 
                   57385: 
                   57386:       fi
                   57387: 
                   57388:   fi
                   57389: 
                   57390:     fi
                   57391:   else
                   57392: 
                   57393: 
                   57394:   if test -n "$LDAP_LIBDIR"; then
                   57395: 
                   57396:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57397: 
                   57398:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57399:     ai_p=$LDAP_LIBDIR
                   57400:   else
                   57401: 
                   57402:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57403: 
                   57404:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57405:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57406:   fi
                   57407: 
                   57408: 
                   57409: 
                   57410: 
                   57411: 
                   57412:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57413: 
                   57414:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57415:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57416:     eval "LIBPATH$unique=set"
                   57417: 
                   57418:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57419:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57420:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57421: 
                   57422:   fi
                   57423: 
                   57424: 
                   57425: 
                   57426:   fi
                   57427: 
                   57428:   fi
                   57429: 
                   57430: 
                   57431:   case ldapssl30 in
                   57432:   c|c_r|pthread*) ;;
                   57433:   *)
                   57434:       LIBS="-lldapssl30 $LIBS"
                   57435:    ;;
                   57436:   esac
                   57437: 
                   57438: 
                   57439: 
                   57440: 
                   57441:   fi
                   57442: 
                   57443: 
                   57444: 
                   57445: $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
                   57446: 
                   57447: 
                   57448:   elif test -f $LDAP_LIBDIR/libldap30.$SHLIB_SUFFIX_NAME; then
                   57449:     if test -n "$LDAP_PTHREAD"; then
                   57450: 
                   57451: 
                   57452:   case $LDAP_PTHREAD in
                   57453:   c|c_r|pthread*) ;;
                   57454:   *)
                   57455:       LIBS="-l$LDAP_PTHREAD $LIBS"
                   57456:    ;;
                   57457:   esac
                   57458: 
                   57459: 
                   57460:     fi
                   57461: 
                   57462: 
                   57463:   if test "$ext_shared" = "yes"; then
                   57464:     LDAP_SHARED_LIBADD="-lldap30 $LDAP_SHARED_LIBADD"
                   57465:     if test -n "$LDAP_LIBDIR"; then
                   57466: 
                   57467:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57468: 
                   57469:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57470:     ai_p=$LDAP_LIBDIR
                   57471:   else
                   57472: 
                   57473:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57474: 
                   57475:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57476:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57477:   fi
                   57478: 
                   57479: 
                   57480:       if test "$ext_shared" = "yes"; then
                   57481:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   57482:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   57483:       else
                   57484: 
                   57485: 
                   57486: 
                   57487:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57488: 
                   57489:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57490:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57491:     eval "LIBPATH$unique=set"
                   57492: 
                   57493:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57494:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57495:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57496: 
                   57497:   fi
                   57498: 
                   57499: 
                   57500:       fi
                   57501: 
                   57502:   fi
                   57503: 
                   57504:     fi
                   57505:   else
                   57506: 
                   57507: 
                   57508:   if test -n "$LDAP_LIBDIR"; then
                   57509: 
                   57510:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57511: 
                   57512:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57513:     ai_p=$LDAP_LIBDIR
                   57514:   else
                   57515: 
                   57516:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57517: 
                   57518:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57519:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57520:   fi
                   57521: 
                   57522: 
                   57523: 
                   57524: 
                   57525: 
                   57526:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57527: 
                   57528:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57529:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57530:     eval "LIBPATH$unique=set"
                   57531: 
                   57532:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57533:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57534:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57535: 
                   57536:   fi
                   57537: 
                   57538: 
                   57539: 
                   57540:   fi
                   57541: 
                   57542:   fi
                   57543: 
                   57544: 
                   57545:   case ldap30 in
                   57546:   c|c_r|pthread*) ;;
                   57547:   *)
                   57548:       LIBS="-lldap30 $LIBS"
                   57549:    ;;
                   57550:   esac
                   57551: 
                   57552: 
                   57553: 
                   57554: 
                   57555:   fi
                   57556: 
                   57557: 
                   57558: 
                   57559: $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
                   57560: 
                   57561: 
                   57562:   elif test -f $LDAP_LIBDIR/libumich_ldap.$SHLIB_SUFFIX_NAME; then
                   57563: 
                   57564: 
                   57565:   if test "$ext_shared" = "yes"; then
                   57566:     LDAP_SHARED_LIBADD="-lumich_lber $LDAP_SHARED_LIBADD"
                   57567:     if test -n "$LDAP_LIBDIR"; then
                   57568: 
                   57569:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57570: 
                   57571:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57572:     ai_p=$LDAP_LIBDIR
                   57573:   else
                   57574: 
                   57575:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57576: 
                   57577:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57578:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57579:   fi
                   57580: 
                   57581: 
                   57582:       if test "$ext_shared" = "yes"; then
                   57583:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   57584:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   57585:       else
                   57586: 
                   57587: 
                   57588: 
                   57589:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57590: 
                   57591:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57592:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57593:     eval "LIBPATH$unique=set"
                   57594: 
                   57595:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57596:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57597:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57598: 
                   57599:   fi
                   57600: 
                   57601: 
                   57602:       fi
                   57603: 
                   57604:   fi
                   57605: 
                   57606:     fi
                   57607:   else
                   57608: 
                   57609: 
                   57610:   if test -n "$LDAP_LIBDIR"; then
                   57611: 
                   57612:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57613: 
                   57614:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57615:     ai_p=$LDAP_LIBDIR
                   57616:   else
                   57617: 
                   57618:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57619: 
                   57620:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57621:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57622:   fi
                   57623: 
                   57624: 
                   57625: 
                   57626: 
                   57627: 
                   57628:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57629: 
                   57630:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57631:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57632:     eval "LIBPATH$unique=set"
                   57633: 
                   57634:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57635:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57636:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57637: 
                   57638:   fi
                   57639: 
                   57640: 
                   57641: 
                   57642:   fi
                   57643: 
                   57644:   fi
                   57645: 
                   57646: 
                   57647:   case umich_lber in
                   57648:   c|c_r|pthread*) ;;
                   57649:   *)
                   57650:       LIBS="-lumich_lber $LIBS"
                   57651:    ;;
                   57652:   esac
                   57653: 
                   57654: 
                   57655: 
                   57656: 
                   57657:   fi
                   57658: 
                   57659: 
                   57660: 
                   57661: 
                   57662:   if test "$ext_shared" = "yes"; then
                   57663:     LDAP_SHARED_LIBADD="-lumich_ldap $LDAP_SHARED_LIBADD"
                   57664:     if test -n "$LDAP_LIBDIR"; then
                   57665: 
                   57666:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57667: 
                   57668:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57669:     ai_p=$LDAP_LIBDIR
                   57670:   else
                   57671: 
                   57672:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57673: 
                   57674:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57675:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57676:   fi
                   57677: 
                   57678: 
                   57679:       if test "$ext_shared" = "yes"; then
                   57680:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   57681:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   57682:       else
                   57683: 
                   57684: 
                   57685: 
                   57686:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57687: 
                   57688:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57689:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57690:     eval "LIBPATH$unique=set"
                   57691: 
                   57692:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57693:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57694:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57695: 
                   57696:   fi
                   57697: 
                   57698: 
                   57699:       fi
                   57700: 
                   57701:   fi
                   57702: 
                   57703:     fi
                   57704:   else
                   57705: 
                   57706: 
                   57707:   if test -n "$LDAP_LIBDIR"; then
                   57708: 
                   57709:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57710: 
                   57711:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57712:     ai_p=$LDAP_LIBDIR
                   57713:   else
                   57714: 
                   57715:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57716: 
                   57717:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57718:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57719:   fi
                   57720: 
                   57721: 
                   57722: 
                   57723: 
                   57724: 
                   57725:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57726: 
                   57727:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57728:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57729:     eval "LIBPATH$unique=set"
                   57730: 
                   57731:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57732:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57733:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57734: 
                   57735:   fi
                   57736: 
                   57737: 
                   57738: 
                   57739:   fi
                   57740: 
                   57741:   fi
                   57742: 
                   57743: 
                   57744:   case umich_ldap in
                   57745:   c|c_r|pthread*) ;;
                   57746:   *)
                   57747:       LIBS="-lumich_ldap $LIBS"
                   57748:    ;;
                   57749:   esac
                   57750: 
                   57751: 
                   57752: 
                   57753: 
                   57754:   fi
                   57755: 
                   57756: 
                   57757: 
                   57758:   elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME; then
                   57759: 
                   57760: 
                   57761:   if test "$ext_shared" = "yes"; then
                   57762:     LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD"
                   57763:     if test -n "$LDAP_LIBDIR"; then
                   57764: 
                   57765:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57766: 
                   57767:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57768:     ai_p=$LDAP_LIBDIR
                   57769:   else
                   57770: 
                   57771:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57772: 
                   57773:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57774:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57775:   fi
                   57776: 
                   57777: 
                   57778:       if test "$ext_shared" = "yes"; then
                   57779:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   57780:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   57781:       else
                   57782: 
                   57783: 
                   57784: 
                   57785:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57786: 
                   57787:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57788:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57789:     eval "LIBPATH$unique=set"
                   57790: 
                   57791:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57792:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57793:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57794: 
                   57795:   fi
                   57796: 
                   57797: 
                   57798:       fi
                   57799: 
                   57800:   fi
                   57801: 
                   57802:     fi
                   57803:   else
                   57804: 
                   57805: 
                   57806:   if test -n "$LDAP_LIBDIR"; then
                   57807: 
                   57808:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
                   57809: 
                   57810:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
                   57811:     ai_p=$LDAP_LIBDIR
                   57812:   else
                   57813: 
                   57814:     ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57815: 
                   57816:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57817:     ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
                   57818:   fi
                   57819: 
                   57820: 
                   57821: 
                   57822: 
                   57823: 
                   57824:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57825: 
                   57826:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   57827:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57828:     eval "LIBPATH$unique=set"
                   57829: 
                   57830:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   57831:     LDFLAGS="$LDFLAGS -L$ai_p"
                   57832:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   57833: 
                   57834:   fi
                   57835: 
                   57836: 
                   57837: 
                   57838:   fi
                   57839: 
                   57840:   fi
                   57841: 
                   57842: 
                   57843:   case clntsh in
                   57844:   c|c_r|pthread*) ;;
                   57845:   *)
                   57846:       LIBS="-lclntsh $LIBS"
                   57847:    ;;
                   57848:   esac
                   57849: 
                   57850: 
                   57851: 
                   57852: 
                   57853:   fi
                   57854: 
                   57855: 
                   57856: 
                   57857: $as_echo "#define HAVE_ORALDAP 1" >>confdefs.h
                   57858: 
                   57859:     if test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.10.1; then
                   57860: 
                   57861: $as_echo "#define HAVE_ORALDAP_10 1" >>confdefs.h
                   57862: 
                   57863:     fi
                   57864:   else
                   57865:     as_fn_error $? "Cannot find ldap libraries in $LDAP_LIBDIR." "$LINENO" 5
                   57866:   fi
                   57867: 
                   57868: 
                   57869:   if test "$LDAP_INCDIR" != "/usr/include"; then
                   57870: 
                   57871:   if test -z "$LDAP_INCDIR" || echo "$LDAP_INCDIR" | grep '^/' >/dev/null ; then
                   57872:     ai_p=$LDAP_INCDIR
                   57873:   else
                   57874: 
                   57875:     ep_dir="`echo $LDAP_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   57876: 
                   57877:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   57878:     ai_p="$ep_realdir/`basename \"$LDAP_INCDIR\"`"
                   57879:   fi
                   57880: 
                   57881: 
                   57882: 
                   57883:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   57884: 
                   57885:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   57886:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   57887:     eval "INCLUDEPATH$unique=set"
                   57888: 
                   57889:       if test ""; then
                   57890:         INCLUDES="-I$ai_p $INCLUDES"
                   57891:       else
                   57892:         INCLUDES="$INCLUDES -I$ai_p"
                   57893:       fi
                   57894: 
                   57895:   fi
                   57896: 
                   57897:   fi
                   57898: 
                   57899: 
                   57900:   PHP_VAR_SUBST="$PHP_VAR_SUBST LDAP_SHARED_LIBADD"
                   57901: 
                   57902: 
                   57903: $as_echo "#define HAVE_LDAP 1" >>confdefs.h
                   57904: 
                   57905: 
                   57906:     _SAVE_CPPFLAGS=$CPPFLAGS
                   57907:   _SAVE_LIBS=$LIBS
                   57908:   CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR"
                   57909:   LIBS="$LIBS $LDAP_SHARED_LIBADD"
                   57910: 
                   57911:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3 arg ldap_set_rebind_proc" >&5
                   57912: $as_echo_n "checking for 3 arg ldap_set_rebind_proc... " >&6; }
                   57913: if ${ac_cv_3arg_setrebindproc+:} false; then :
                   57914:   $as_echo_n "(cached) " >&6
                   57915: else
                   57916:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   57917: /* end confdefs.h.  */
                   57918: #include <ldap.h>
                   57919: int
                   57920: main ()
                   57921: {
                   57922: ldap_set_rebind_proc(0,0,0)
                   57923:   ;
                   57924:   return 0;
                   57925: }
                   57926: _ACEOF
                   57927: if ac_fn_c_try_compile "$LINENO"; then :
                   57928:   ac_cv_3arg_setrebindproc=yes
                   57929: else
                   57930:   ac_cv_3arg_setrebindproc=no
                   57931: fi
                   57932: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   57933: fi
                   57934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_3arg_setrebindproc" >&5
                   57935: $as_echo "$ac_cv_3arg_setrebindproc" >&6; }
                   57936:   if test "$ac_cv_3arg_setrebindproc" = yes; then
                   57937: 
                   57938: $as_echo "#define HAVE_3ARG_SETREBINDPROC 1" >>confdefs.h
                   57939: 
                   57940:   fi
                   57941: 
                   57942:       for ac_func in ldap_parse_result ldap_parse_reference ldap_start_tls_s
                   57943: do :
                   57944:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   57945: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   57946: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   57947:   cat >>confdefs.h <<_ACEOF
                   57948: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   57949: _ACEOF
                   57950: 
                   57951: fi
                   57952: done
                   57953: 
                   57954: 
                   57955:         if test "$PHP_LDAP_SASL" != "no"; then
                   57956: 
                   57957:   if test "$PHP_LDAP_SASL" = "yes"; then
                   57958:     SEARCH_DIRS="/usr/local /usr"
                   57959:   else
                   57960:     SEARCH_DIRS=$PHP_LDAP_SASL
                   57961:   fi
                   57962: 
                   57963:   for i in $SEARCH_DIRS; do
                   57964:     if test -f $i/include/sasl/sasl.h; then
                   57965:       LDAP_SASL_DIR=$i
                   57966: 
                   57967: $as_echo "#define HAVE_LDAP_SASL_SASL_H 1" >>confdefs.h
                   57968: 
                   57969:       break
                   57970:     elif test -f $i/include/sasl.h; then
                   57971:       LDAP_SASL_DIR=$i
                   57972: 
                   57973: $as_echo "#define HAVE_LDAP_SASL_H 1" >>confdefs.h
                   57974: 
                   57975:       break
                   57976:     fi
                   57977:   done
                   57978: 
                   57979:   if test "$LDAP_SASL_DIR"; then
                   57980:     LDAP_SASL_INCDIR=$LDAP_SASL_DIR/include
                   57981:     LDAP_SASL_LIBDIR=$LDAP_SASL_DIR/$PHP_LIBDIR
                   57982:   else
                   57983:     as_fn_error $? "sasl.h not found!" "$LINENO" 5
                   57984:   fi
                   57985: 
                   57986:   if test "$PHP_LDAP_SASL" = "yes"; then
                   57987:     SASL_LIB="-lsasl2"
                   57988:   else
                   57989:     SASL_LIB="-L$LDAP_SASL_LIBDIR -lsasl2"
                   57990:   fi
                   57991: 
                   57992: 
                   57993:   save_old_LDFLAGS=$LDFLAGS
                   57994:   ac_stuff="
                   57995:     $LDAP_SHARED_LIBADD $SASL_LIB
                   57996:   "
                   57997: 
                   57998:   save_ext_shared=$ext_shared
                   57999:   ext_shared=yes
                   58000: 
                   58001:   for ac_i in $ac_stuff; do
                   58002:     case $ac_i in
                   58003:     -pthread)
                   58004:       if test "$ext_shared" = "yes"; then
                   58005:         LDFLAGS="$LDFLAGS -pthread"
                   58006:       else
                   58007: 
                   58008: 
                   58009:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   58010: 
                   58011:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   58012:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   58013:     eval "EXTRA_LDFLAGS$unique=set"
                   58014:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   58015:   fi
                   58016: 
                   58017:       fi
                   58018:     ;;
                   58019:     -l*)
                   58020:       ac_ii=`echo $ac_i|cut -c 3-`
                   58021: 
                   58022: 
                   58023:   case $ac_ii in
                   58024:   c|c_r|pthread*) ;;
                   58025:   *)
                   58026:     if test "$ext_shared" = "yes"; then
                   58027:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   58028:     else
                   58029: 
                   58030: 
                   58031:   case $ac_ii in
                   58032:   c|c_r|pthread*) ;;
                   58033:   *)
                   58034:       LIBS="$LIBS -l$ac_ii"
                   58035:    ;;
                   58036:   esac
                   58037: 
                   58038: 
                   58039:     fi
                   58040:    ;;
                   58041:   esac
                   58042: 
                   58043: 
                   58044:     ;;
                   58045:     -L*)
                   58046:       ac_ii=`echo $ac_i|cut -c 3-`
                   58047: 
                   58048:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   58049: 
                   58050:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   58051:     ai_p=$ac_ii
                   58052:   else
                   58053: 
                   58054:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   58055: 
                   58056:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   58057:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   58058:   fi
                   58059: 
                   58060: 
                   58061:       if test "$ext_shared" = "yes"; then
                   58062:         LDFLAGS="-L$ai_p $LDFLAGS"
                   58063:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   58064:       else
                   58065: 
                   58066: 
                   58067: 
                   58068:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   58069: 
                   58070:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   58071:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   58072:     eval "LIBPATH$unique=set"
                   58073: 
                   58074:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   58075:     LDFLAGS="$LDFLAGS -L$ai_p"
                   58076:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   58077: 
                   58078:   fi
                   58079: 
                   58080: 
                   58081:       fi
                   58082: 
                   58083:   fi
                   58084: 
                   58085:     ;;
                   58086:     esac
                   58087:   done
                   58088: 
                   58089:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_version in -lsasl2" >&5
                   58090: $as_echo_n "checking for sasl_version in -lsasl2... " >&6; }
                   58091: if ${ac_cv_lib_sasl2_sasl_version+:} false; then :
                   58092:   $as_echo_n "(cached) " >&6
                   58093: else
                   58094:   ac_check_lib_save_LIBS=$LIBS
                   58095: LIBS="-lsasl2  $LIBS"
                   58096: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   58097: /* end confdefs.h.  */
                   58098: 
                   58099: /* Override any GCC internal prototype to avoid an error.
                   58100:    Use char because int might match the return type of a GCC
                   58101:    builtin and then its argument prototype would still apply.  */
                   58102: #ifdef __cplusplus
                   58103: extern "C"
                   58104: #endif
                   58105: char sasl_version ();
                   58106: int
                   58107: main ()
                   58108: {
                   58109: return sasl_version ();
                   58110:   ;
                   58111:   return 0;
                   58112: }
                   58113: _ACEOF
                   58114: if ac_fn_c_try_link "$LINENO"; then :
                   58115:   ac_cv_lib_sasl2_sasl_version=yes
                   58116: else
                   58117:   ac_cv_lib_sasl2_sasl_version=no
                   58118: fi
                   58119: rm -f core conftest.err conftest.$ac_objext \
                   58120:     conftest$ac_exeext conftest.$ac_ext
                   58121: LIBS=$ac_check_lib_save_LIBS
                   58122: fi
                   58123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_version" >&5
                   58124: $as_echo "$ac_cv_lib_sasl2_sasl_version" >&6; }
                   58125: if test "x$ac_cv_lib_sasl2_sasl_version" = xyes; then :
                   58126: 
                   58127:     LDFLAGS=$save_old_LDFLAGS
                   58128:     ext_shared=$save_ext_shared
                   58129: 
                   58130: 
                   58131:   if test "$LDAP_SASL_INCDIR" != "/usr/include"; then
                   58132: 
                   58133:   if test -z "$LDAP_SASL_INCDIR" || echo "$LDAP_SASL_INCDIR" | grep '^/' >/dev/null ; then
                   58134:     ai_p=$LDAP_SASL_INCDIR
                   58135:   else
                   58136: 
                   58137:     ep_dir="`echo $LDAP_SASL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   58138: 
                   58139:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   58140:     ai_p="$ep_realdir/`basename \"$LDAP_SASL_INCDIR\"`"
                   58141:   fi
                   58142: 
                   58143: 
                   58144: 
                   58145:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   58146: 
                   58147:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   58148:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   58149:     eval "INCLUDEPATH$unique=set"
                   58150: 
                   58151:       if test ""; then
                   58152:         INCLUDES="-I$ai_p $INCLUDES"
                   58153:       else
                   58154:         INCLUDES="$INCLUDES -I$ai_p"
                   58155:       fi
                   58156: 
                   58157:   fi
                   58158: 
                   58159:   fi
                   58160: 
                   58161: 
                   58162: 
                   58163:   if test "$ext_shared" = "yes"; then
                   58164:     LDAP_SHARED_LIBADD="-lsasl2 $LDAP_SHARED_LIBADD"
                   58165:     if test -n "$LDAP_SASL_LIBDIR"; then
                   58166: 
                   58167:   if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then
                   58168: 
                   58169:   if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then
                   58170:     ai_p=$LDAP_SASL_LIBDIR
                   58171:   else
                   58172: 
                   58173:     ep_dir="`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   58174: 
                   58175:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   58176:     ai_p="$ep_realdir/`basename \"$LDAP_SASL_LIBDIR\"`"
                   58177:   fi
                   58178: 
                   58179: 
                   58180:       if test "$ext_shared" = "yes"; then
                   58181:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
                   58182:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
                   58183:       else
                   58184: 
                   58185: 
                   58186: 
                   58187:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   58188: 
                   58189:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   58190:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   58191:     eval "LIBPATH$unique=set"
                   58192: 
                   58193:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   58194:     LDFLAGS="$LDFLAGS -L$ai_p"
                   58195:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   58196: 
                   58197:   fi
                   58198: 
                   58199: 
                   58200:       fi
                   58201: 
                   58202:   fi
                   58203: 
                   58204:     fi
                   58205:   else
                   58206: 
                   58207: 
                   58208:   if test -n "$LDAP_SASL_LIBDIR"; then
                   58209: 
                   58210:   if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then
                   58211: 
                   58212:   if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then
                   58213:     ai_p=$LDAP_SASL_LIBDIR
                   58214:   else
                   58215: 
                   58216:     ep_dir="`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   58217: 
                   58218:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   58219:     ai_p="$ep_realdir/`basename \"$LDAP_SASL_LIBDIR\"`"
                   58220:   fi
                   58221: 
                   58222: 
                   58223: 
                   58224: 
                   58225: 
                   58226:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   58227: 
                   58228:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   58229:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   58230:     eval "LIBPATH$unique=set"
                   58231: 
                   58232:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   58233:     LDFLAGS="$LDFLAGS -L$ai_p"
                   58234:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   58235: 
                   58236:   fi
                   58237: 
                   58238: 
                   58239: 
                   58240:   fi
                   58241: 
                   58242:   fi
                   58243: 
                   58244: 
                   58245:   case sasl2 in
                   58246:   c|c_r|pthread*) ;;
                   58247:   *)
                   58248:       LIBS="-lsasl2 $LIBS"
                   58249:    ;;
                   58250:   esac
                   58251: 
                   58252: 
                   58253: 
                   58254: 
                   58255:   fi
                   58256: 
                   58257: 
                   58258: 
                   58259: $as_echo "#define HAVE_LDAP_SASL 1" >>confdefs.h
                   58260: 
                   58261: 
                   58262: 
                   58263: else
                   58264: 
                   58265:     LDFLAGS=$save_old_LDFLAGS
                   58266:     ext_shared=$save_ext_shared
                   58267:     unset ac_cv_lib_sasl2_sasl_version
                   58268: 
                   58269:     as_fn_error $? "LDAP SASL check failed. Please check config.log for more information." "$LINENO" 5
                   58270: 
                   58271: 
                   58272: fi
                   58273: 
                   58274: 
                   58275:   fi
                   58276: 
                   58277:         ac_fn_c_check_func "$LINENO" "ldap_bind_s" "ac_cv_func_ldap_bind_s"
                   58278: if test "x$ac_cv_func_ldap_bind_s" = xyes; then :
                   58279: 
                   58280: else
                   58281: 
                   58282:     as_fn_error $? "LDAP build check failed. Please check config.log for more information." "$LINENO" 5
                   58283: 
                   58284: fi
                   58285: 
                   58286: 
                   58287:     CPPFLAGS=$_SAVE_CPPFLAGS
                   58288:   LIBS=$_SAVE_LIBS
                   58289: fi
                   58290: 
                   58291: 
                   58292: 
                   58293: 
                   58294: 
                   58295: 
                   58296: 
                   58297: 
                   58298: 
                   58299: 
                   58300: 
                   58301: 
                   58302: 
                   58303: 
                   58304: 
                   58305: 
                   58306: 
                   58307: 
                   58308: 
                   58309: 
                   58310: 
                   58311: 
                   58312: 
                   58313: 
                   58314: php_enable_mbstring=no
                   58315: 
                   58316: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte string support" >&5
                   58317: $as_echo_n "checking whether to enable multibyte string support... " >&6; }
                   58318: # Check whether --enable-mbstring was given.
                   58319: if test "${enable_mbstring+set}" = set; then :
                   58320:   enableval=$enable_mbstring; PHP_MBSTRING=$enableval
                   58321: else
                   58322: 
                   58323:   PHP_MBSTRING=no
                   58324:   test "$PHP_ENABLE_ALL" && PHP_MBSTRING=$PHP_ENABLE_ALL
                   58325: 
                   58326: fi
                   58327: 
                   58328: 
                   58329: 
                   58330: ext_output="yes, shared"
                   58331: ext_shared=yes
                   58332: case $PHP_MBSTRING in
                   58333: shared,*)
                   58334:   PHP_MBSTRING=`echo "$PHP_MBSTRING"|$SED 's/^shared,//'`
                   58335:   ;;
                   58336: shared)
                   58337:   PHP_MBSTRING=yes
                   58338:   ;;
                   58339: no)
                   58340:   ext_output=no
                   58341:   ext_shared=no
                   58342:   ;;
                   58343: *)
                   58344:   ext_output=yes
                   58345:   ext_shared=no
                   58346:   ;;
                   58347: esac
                   58348: 
                   58349: 
                   58350: 
                   58351: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   58352: $as_echo "$ext_output" >&6; }
                   58353: 
                   58354: 
                   58355: 
                   58356: 
                   58357: 
                   58358: php_enable_mbregex=yes
                   58359: 
                   58360: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte regex support" >&5
                   58361: $as_echo_n "checking whether to enable multibyte regex support... " >&6; }
                   58362: # Check whether --enable-mbregex was given.
                   58363: if test "${enable_mbregex+set}" = set; then :
                   58364:   enableval=$enable_mbregex; PHP_MBREGEX=$enableval
                   58365: else
                   58366: 
                   58367:   PHP_MBREGEX=yes
                   58368: 
                   58369: 
                   58370: fi
                   58371: 
                   58372: 
                   58373: ext_output=$PHP_MBREGEX
                   58374: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   58375: $as_echo "$ext_output" >&6; }
                   58376: 
                   58377: 
                   58378: 
                   58379: 
                   58380: 
                   58381: php_enable_mbregex_backtrack=yes
                   58382: 
                   58383: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check multibyte regex backtrack" >&5
                   58384: $as_echo_n "checking whether to check multibyte regex backtrack... " >&6; }
                   58385: # Check whether --enable-mbregex_backtrack was given.
                   58386: if test "${enable_mbregex_backtrack+set}" = set; then :
                   58387:   enableval=$enable_mbregex_backtrack; PHP_MBREGEX_BACKTRACK=$enableval
                   58388: else
                   58389: 
                   58390:   PHP_MBREGEX_BACKTRACK=yes
                   58391: 
                   58392: 
                   58393: fi
                   58394: 
                   58395: 
                   58396: ext_output=$PHP_MBREGEX_BACKTRACK
                   58397: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   58398: $as_echo "$ext_output" >&6; }
                   58399: 
                   58400: 
                   58401: 
                   58402: 
                   58403: 
                   58404: php_with_libmbfl=no
                   58405: 
                   58406: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external libmbfl" >&5
                   58407: $as_echo_n "checking for external libmbfl... " >&6; }
                   58408: 
                   58409: # Check whether --with-libmbfl was given.
                   58410: if test "${with_libmbfl+set}" = set; then :
                   58411:   withval=$with_libmbfl; PHP_LIBMBFL=$withval
                   58412: else
                   58413: 
                   58414:   PHP_LIBMBFL=no
                   58415: 
                   58416: 
                   58417: fi
                   58418: 
                   58419: 
                   58420: ext_output=$PHP_LIBMBFL
                   58421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   58422: $as_echo "$ext_output" >&6; }
                   58423: 
                   58424: 
                   58425: 
                   58426: 
                   58427: 
                   58428: php_with_onig=no
                   58429: 
                   58430: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external oniguruma" >&5
                   58431: $as_echo_n "checking for external oniguruma... " >&6; }
                   58432: 
                   58433: # Check whether --with-onig was given.
                   58434: if test "${with_onig+set}" = set; then :
                   58435:   withval=$with_onig; PHP_ONIG=$withval
                   58436: else
                   58437: 
                   58438:   PHP_ONIG=no
                   58439: 
                   58440: 
                   58441: fi
                   58442: 
                   58443: 
                   58444: ext_output=$PHP_ONIG
                   58445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   58446: $as_echo "$ext_output" >&6; }
                   58447: 
                   58448: 
                   58449: 
                   58450: 
                   58451: if test "$PHP_MBSTRING" != "no"; then
                   58452: 
                   58453: $as_echo "#define HAVE_MBSTRING 1" >>confdefs.h
                   58454: 
                   58455: 
                   58456: 
                   58457:   PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES mbstring.c php_unicode.c mb_gpc.c"
                   58458: 
                   58459: 
                   58460:   if test "$PHP_MBREGEX" != "no"; then
                   58461: 
                   58462:   if test "$PHP_MBREGEX" = "yes"; then
                   58463:     if test "$PHP_ONIG" = "yes" || test "$PHP_ONIG" = "no"; then
                   58464:                         if test "$PHP_MBREGEX_BACKTRACK" != "no"; then
                   58465: 
                   58466: $as_echo "#define USE_COMBINATION_EXPLOSION_CHECK 1" >>confdefs.h
                   58467: 
                   58468:       fi
                   58469: 
                   58470:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
                   58471: $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
                   58472: if ${php_cv_mbstring_stdarg+:} false; then :
                   58473:   $as_echo_n "(cached) " >&6
                   58474: else
                   58475: 
                   58476:         if test "$cross_compiling" = yes; then :
                   58477: 
                   58478:                     case $host_alias in
                   58479:           *netware*)
                   58480:           php_cv_mbstring_stdarg=yes
                   58481:           ;;
                   58482:           *)
                   58483:           php_cv_mbstring_stdarg=no
                   58484:           ;;
                   58485:           esac
                   58486: 
                   58487: else
                   58488:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   58489: /* end confdefs.h.  */
                   58490: 
                   58491: #include <stdarg.h>
                   58492: int foo(int x, ...) {
                   58493:        va_list va;
                   58494:        va_start(va, x);
                   58495:        va_arg(va, int);
                   58496:        va_arg(va, char *);
                   58497:        va_arg(va, double);
                   58498:        return 0;
                   58499: }
                   58500: int main() { return foo(10, "", 3.14); }
                   58501: 
                   58502: _ACEOF
                   58503: if ac_fn_c_try_run "$LINENO"; then :
                   58504:   php_cv_mbstring_stdarg=yes
                   58505: else
                   58506:   php_cv_mbstring_stdarg=no
                   58507: fi
                   58508: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   58509:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   58510: fi
                   58511: 
                   58512: 
                   58513: fi
                   58514: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_mbstring_stdarg" >&5
                   58515: $as_echo "$php_cv_mbstring_stdarg" >&6; }
                   58516: 
                   58517:       for ac_header in stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h stdarg.h
                   58518: do :
                   58519:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   58520: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   58521: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   58522:   cat >>confdefs.h <<_ACEOF
                   58523: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   58524: _ACEOF
                   58525: 
                   58526: fi
                   58527: 
                   58528: done
                   58529: 
                   58530:       # The cast to long int works around a bug in the HP C Compiler
                   58531: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   58532: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   58533: # This bug is HP SR number 8606223364.
                   58534: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   58535: $as_echo_n "checking size of int... " >&6; }
                   58536: if ${ac_cv_sizeof_int+:} false; then :
                   58537:   $as_echo_n "(cached) " >&6
                   58538: else
                   58539:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
                   58540: 
                   58541: else
                   58542:   if test "$ac_cv_type_int" = yes; then
                   58543:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   58544: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   58545: as_fn_error 77 "cannot compute sizeof (int)
                   58546: See \`config.log' for more details" "$LINENO" 5; }
                   58547:    else
                   58548:      ac_cv_sizeof_int=0
                   58549:    fi
                   58550: fi
                   58551: 
                   58552: fi
                   58553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   58554: $as_echo "$ac_cv_sizeof_int" >&6; }
                   58555: 
                   58556: 
                   58557: 
                   58558: cat >>confdefs.h <<_ACEOF
                   58559: #define SIZEOF_INT $ac_cv_sizeof_int
                   58560: _ACEOF
                   58561: 
                   58562: 
                   58563:       # The cast to long int works around a bug in the HP C Compiler
                   58564: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   58565: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   58566: # This bug is HP SR number 8606223364.
                   58567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
                   58568: $as_echo_n "checking size of short... " >&6; }
                   58569: if ${ac_cv_sizeof_short+:} false; then :
                   58570:   $as_echo_n "(cached) " >&6
                   58571: else
                   58572:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
                   58573: 
                   58574: else
                   58575:   if test "$ac_cv_type_short" = yes; then
                   58576:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   58577: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   58578: as_fn_error 77 "cannot compute sizeof (short)
                   58579: See \`config.log' for more details" "$LINENO" 5; }
                   58580:    else
                   58581:      ac_cv_sizeof_short=0
                   58582:    fi
                   58583: fi
                   58584: 
                   58585: fi
                   58586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
                   58587: $as_echo "$ac_cv_sizeof_short" >&6; }
                   58588: 
                   58589: 
                   58590: 
                   58591: cat >>confdefs.h <<_ACEOF
                   58592: #define SIZEOF_SHORT $ac_cv_sizeof_short
                   58593: _ACEOF
                   58594: 
                   58595: 
                   58596:       # The cast to long int works around a bug in the HP C Compiler
                   58597: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   58598: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   58599: # This bug is HP SR number 8606223364.
                   58600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
                   58601: $as_echo_n "checking size of long... " >&6; }
                   58602: if ${ac_cv_sizeof_long+:} false; then :
                   58603:   $as_echo_n "(cached) " >&6
                   58604: else
                   58605:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
                   58606: 
                   58607: else
                   58608:   if test "$ac_cv_type_long" = yes; then
                   58609:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   58610: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   58611: as_fn_error 77 "cannot compute sizeof (long)
                   58612: See \`config.log' for more details" "$LINENO" 5; }
                   58613:    else
                   58614:      ac_cv_sizeof_long=0
                   58615:    fi
                   58616: fi
                   58617: 
                   58618: fi
                   58619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
                   58620: $as_echo "$ac_cv_sizeof_long" >&6; }
                   58621: 
                   58622: 
                   58623: 
                   58624: cat >>confdefs.h <<_ACEOF
                   58625: #define SIZEOF_LONG $ac_cv_sizeof_long
                   58626: _ACEOF
                   58627: 
                   58628: 
                   58629:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   58630: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
                   58631: if ${ac_cv_c_const+:} false; then :
                   58632:   $as_echo_n "(cached) " >&6
                   58633: else
                   58634:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   58635: /* end confdefs.h.  */
                   58636: 
                   58637: int
                   58638: main ()
                   58639: {
1.1.1.2 ! misho    58640: 
1.1       misho    58641: #ifndef __cplusplus
1.1.1.2 ! misho    58642:   /* Ultrix mips cc rejects this sort of thing.  */
1.1       misho    58643:   typedef int charset[2];
1.1.1.2 ! misho    58644:   const charset cs = { 0, 0 };
1.1       misho    58645:   /* SunOS 4.1.1 cc rejects this.  */
                   58646:   char const *const *pcpcc;
                   58647:   char **ppc;
                   58648:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   58649:   struct point {int x, y;};
                   58650:   static struct point const zero = {0,0};
                   58651:   /* AIX XL C 1.02.0.0 rejects this.
                   58652:      It does not let you subtract one const X* pointer from another in
                   58653:      an arm of an if-expression whose if-part is not a constant
                   58654:      expression */
                   58655:   const char *g = "string";
                   58656:   pcpcc = &g + (g ? g-g : 0);
                   58657:   /* HPUX 7.0 cc rejects these. */
                   58658:   ++pcpcc;
                   58659:   ppc = (char**) pcpcc;
                   58660:   pcpcc = (char const *const *) ppc;
1.1.1.2 ! misho    58661:   { /* SCO 3.2v4 cc rejects this sort of thing.  */
        !          58662:     char tx;
        !          58663:     char *t = &tx;
1.1       misho    58664:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   58665: 
                   58666:     *t++ = 0;
                   58667:     if (s) return 0;
                   58668:   }
                   58669:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   58670:     int x[] = {25, 17};
                   58671:     const int *foo = &x[0];
                   58672:     ++foo;
                   58673:   }
                   58674:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   58675:     typedef const int *iptr;
                   58676:     iptr p = 0;
                   58677:     ++p;
                   58678:   }
1.1.1.2 ! misho    58679:   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
1.1       misho    58680:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1.1.1.2 ! misho    58681:     struct s { int j; const int *ap[3]; } bx;
        !          58682:     struct s *b = &bx; b->j = 5;
1.1       misho    58683:   }
                   58684:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   58685:     const int foo = 10;
                   58686:     if (!foo) return 0;
                   58687:   }
                   58688:   return !cs[0] && !zero.x;
                   58689: #endif
                   58690: 
                   58691:   ;
                   58692:   return 0;
                   58693: }
                   58694: _ACEOF
                   58695: if ac_fn_c_try_compile "$LINENO"; then :
                   58696:   ac_cv_c_const=yes
                   58697: else
                   58698:   ac_cv_c_const=no
                   58699: fi
                   58700: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   58701: fi
                   58702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   58703: $as_echo "$ac_cv_c_const" >&6; }
                   58704: if test $ac_cv_c_const = no; then
                   58705: 
                   58706: $as_echo "#define const /**/" >>confdefs.h
                   58707: 
                   58708: fi
                   58709: 
                   58710:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   58711: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
                   58712: if ${ac_cv_header_time+:} false; then :
                   58713:   $as_echo_n "(cached) " >&6
                   58714: else
                   58715:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   58716: /* end confdefs.h.  */
                   58717: #include <sys/types.h>
                   58718: #include <sys/time.h>
                   58719: #include <time.h>
                   58720: 
                   58721: int
                   58722: main ()
                   58723: {
                   58724: if ((struct tm *) 0)
                   58725: return 0;
                   58726:   ;
                   58727:   return 0;
                   58728: }
                   58729: _ACEOF
                   58730: if ac_fn_c_try_compile "$LINENO"; then :
                   58731:   ac_cv_header_time=yes
                   58732: else
                   58733:   ac_cv_header_time=no
                   58734: fi
                   58735: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   58736: fi
                   58737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   58738: $as_echo "$ac_cv_header_time" >&6; }
                   58739: if test $ac_cv_header_time = yes; then
                   58740: 
                   58741: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
                   58742: 
                   58743: fi
                   58744: 
                   58745:       # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
                   58746: # for constant arguments.  Useless!
                   58747: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
                   58748: $as_echo_n "checking for working alloca.h... " >&6; }
                   58749: if ${ac_cv_working_alloca_h+:} false; then :
                   58750:   $as_echo_n "(cached) " >&6
                   58751: else
                   58752:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   58753: /* end confdefs.h.  */
                   58754: #include <alloca.h>
                   58755: int
                   58756: main ()
                   58757: {
                   58758: char *p = (char *) alloca (2 * sizeof (int));
                   58759:                          if (p) return 0;
                   58760:   ;
                   58761:   return 0;
                   58762: }
                   58763: _ACEOF
                   58764: if ac_fn_c_try_link "$LINENO"; then :
                   58765:   ac_cv_working_alloca_h=yes
                   58766: else
                   58767:   ac_cv_working_alloca_h=no
                   58768: fi
                   58769: rm -f core conftest.err conftest.$ac_objext \
                   58770:     conftest$ac_exeext conftest.$ac_ext
                   58771: fi
                   58772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
                   58773: $as_echo "$ac_cv_working_alloca_h" >&6; }
                   58774: if test $ac_cv_working_alloca_h = yes; then
                   58775: 
                   58776: $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
                   58777: 
                   58778: fi
                   58779: 
                   58780: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
                   58781: $as_echo_n "checking for alloca... " >&6; }
                   58782: if ${ac_cv_func_alloca_works+:} false; then :
                   58783:   $as_echo_n "(cached) " >&6
                   58784: else
                   58785:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   58786: /* end confdefs.h.  */
                   58787: #ifdef __GNUC__
                   58788: # define alloca __builtin_alloca
                   58789: #else
                   58790: # ifdef _MSC_VER
                   58791: #  include <malloc.h>
                   58792: #  define alloca _alloca
                   58793: # else
                   58794: #  ifdef HAVE_ALLOCA_H
                   58795: #   include <alloca.h>
                   58796: #  else
                   58797: #   ifdef _AIX
                   58798:  #pragma alloca
                   58799: #   else
                   58800: #    ifndef alloca /* predefined by HP cc +Olibcalls */
                   58801: void *alloca (size_t);
                   58802: #    endif
                   58803: #   endif
                   58804: #  endif
                   58805: # endif
                   58806: #endif
                   58807: 
                   58808: int
                   58809: main ()
                   58810: {
                   58811: char *p = (char *) alloca (1);
                   58812:                                    if (p) return 0;
                   58813:   ;
                   58814:   return 0;
                   58815: }
                   58816: _ACEOF
                   58817: if ac_fn_c_try_link "$LINENO"; then :
                   58818:   ac_cv_func_alloca_works=yes
                   58819: else
                   58820:   ac_cv_func_alloca_works=no
                   58821: fi
                   58822: rm -f core conftest.err conftest.$ac_objext \
                   58823:     conftest$ac_exeext conftest.$ac_ext
                   58824: fi
                   58825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
                   58826: $as_echo "$ac_cv_func_alloca_works" >&6; }
                   58827: 
                   58828: if test $ac_cv_func_alloca_works = yes; then
                   58829: 
                   58830: $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
                   58831: 
                   58832: else
                   58833:   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
                   58834: # that cause trouble.  Some versions do not even contain alloca or
                   58835: # contain a buggy version.  If you still want to use their alloca,
                   58836: # use ar to extract alloca.o from them instead of compiling alloca.c.
                   58837: 
                   58838: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
                   58839: 
                   58840: $as_echo "#define C_ALLOCA 1" >>confdefs.h
                   58841: 
                   58842: 
                   58843: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
                   58844: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
                   58845: if ${ac_cv_os_cray+:} false; then :
                   58846:   $as_echo_n "(cached) " >&6
                   58847: else
                   58848:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   58849: /* end confdefs.h.  */
                   58850: #if defined CRAY && ! defined CRAY2
                   58851: webecray
                   58852: #else
                   58853: wenotbecray
                   58854: #endif
                   58855: 
                   58856: _ACEOF
                   58857: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   58858:   $EGREP "webecray" >/dev/null 2>&1; then :
                   58859:   ac_cv_os_cray=yes
                   58860: else
                   58861:   ac_cv_os_cray=no
                   58862: fi
                   58863: rm -f conftest*
                   58864: 
                   58865: fi
                   58866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
                   58867: $as_echo "$ac_cv_os_cray" >&6; }
                   58868: if test $ac_cv_os_cray = yes; then
                   58869:   for ac_func in _getb67 GETB67 getb67; do
                   58870:     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   58871: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   58872: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   58873: 
                   58874: cat >>confdefs.h <<_ACEOF
                   58875: #define CRAY_STACKSEG_END $ac_func
                   58876: _ACEOF
                   58877: 
                   58878:     break
                   58879: fi
                   58880: 
                   58881:   done
                   58882: fi
                   58883: 
                   58884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
                   58885: $as_echo_n "checking stack direction for C alloca... " >&6; }
                   58886: if ${ac_cv_c_stack_direction+:} false; then :
                   58887:   $as_echo_n "(cached) " >&6
                   58888: else
                   58889:   if test "$cross_compiling" = yes; then :
                   58890:   ac_cv_c_stack_direction=0
                   58891: else
                   58892:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   58893: /* end confdefs.h.  */
                   58894: $ac_includes_default
                   58895: int
1.1.1.2 ! misho    58896: find_stack_direction (int *addr, int depth)
1.1       misho    58897: {
1.1.1.2 ! misho    58898:   int dir, dummy = 0;
        !          58899:   if (! addr)
        !          58900:     addr = &dummy;
        !          58901:   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
        !          58902:   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
        !          58903:   return dir + dummy;
1.1       misho    58904: }
                   58905: 
                   58906: int
1.1.1.2 ! misho    58907: main (int argc, char **argv)
1.1       misho    58908: {
1.1.1.2 ! misho    58909:   return find_stack_direction (0, argc + !argv + 20) < 0;
1.1       misho    58910: }
                   58911: _ACEOF
                   58912: if ac_fn_c_try_run "$LINENO"; then :
                   58913:   ac_cv_c_stack_direction=1
                   58914: else
                   58915:   ac_cv_c_stack_direction=-1
                   58916: fi
                   58917: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   58918:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   58919: fi
                   58920: 
                   58921: fi
                   58922: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
                   58923: $as_echo "$ac_cv_c_stack_direction" >&6; }
                   58924: cat >>confdefs.h <<_ACEOF
                   58925: #define STACK_DIRECTION $ac_cv_c_stack_direction
                   58926: _ACEOF
                   58927: 
                   58928: 
                   58929: fi
                   58930: 
                   58931:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
                   58932: $as_echo_n "checking for working memcmp... " >&6; }
                   58933: if ${ac_cv_func_memcmp_working+:} false; then :
                   58934:   $as_echo_n "(cached) " >&6
                   58935: else
                   58936:   if test "$cross_compiling" = yes; then :
                   58937:   ac_cv_func_memcmp_working=no
                   58938: else
                   58939:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   58940: /* end confdefs.h.  */
                   58941: $ac_includes_default
                   58942: int
                   58943: main ()
                   58944: {
                   58945: 
                   58946:   /* Some versions of memcmp are not 8-bit clean.  */
                   58947:   char c0 = '\100', c1 = '\200', c2 = '\201';
                   58948:   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
                   58949:     return 1;
                   58950: 
                   58951:   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
                   58952:      or more and with at least one buffer not starting on a 4-byte boundary.
                   58953:      William Lewis provided this test program.   */
                   58954:   {
                   58955:     char foo[21];
                   58956:     char bar[21];
                   58957:     int i;
                   58958:     for (i = 0; i < 4; i++)
                   58959:       {
                   58960:        char *a = foo + i;
                   58961:        char *b = bar + i;
                   58962:        strcpy (a, "--------01111111");
                   58963:        strcpy (b, "--------10000000");
                   58964:        if (memcmp (a, b, 16) >= 0)
                   58965:          return 1;
                   58966:       }
                   58967:     return 0;
                   58968:   }
                   58969: 
                   58970:   ;
                   58971:   return 0;
                   58972: }
                   58973: _ACEOF
                   58974: if ac_fn_c_try_run "$LINENO"; then :
                   58975:   ac_cv_func_memcmp_working=yes
                   58976: else
                   58977:   ac_cv_func_memcmp_working=no
                   58978: fi
                   58979: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   58980:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   58981: fi
                   58982: 
                   58983: fi
                   58984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
                   58985: $as_echo "$ac_cv_func_memcmp_working" >&6; }
                   58986: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
                   58987:   *" memcmp.$ac_objext "* ) ;;
                   58988:   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
                   58989:  ;;
                   58990: esac
                   58991: 
                   58992: 
                   58993:       ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
                   58994: if test "x$ac_cv_header_stdarg_h" = xyes; then :
                   58995: 
                   58996: 
                   58997: $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
                   58998: 
                   58999: 
                   59000: fi
                   59001: 
                   59002: 
                   59003: 
                   59004: $as_echo "#define PHP_ONIG_BUNDLED 1" >>confdefs.h
                   59005: 
                   59006: 
                   59007: $as_echo "#define HAVE_ONIG 1" >>confdefs.h
                   59008: 
                   59009: 
                   59010:   PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DNOT_RUBY"
                   59011: 
                   59012: 
                   59013:   PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma"
                   59014: 
                   59015: 
                   59016:   PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma/enc"
                   59017: 
                   59018: 
                   59019:   PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES oniguruma"
                   59020: 
                   59021: 
                   59022:   PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS oniguruma/config.h"
                   59023: 
                   59024: 
                   59025:   PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES
                   59026:         oniguruma/regcomp.c
                   59027:         oniguruma/regerror.c
                   59028:         oniguruma/regexec.c
                   59029:         oniguruma/reggnu.c
                   59030:         oniguruma/regparse.c
                   59031:         oniguruma/regenc.c
                   59032:         oniguruma/regext.c
                   59033:         oniguruma/regsyntax.c
                   59034:         oniguruma/regtrav.c
                   59035:         oniguruma/regversion.c
                   59036:         oniguruma/st.c
                   59037:         oniguruma/enc/unicode.c
                   59038:         oniguruma/enc/ascii.c
                   59039:         oniguruma/enc/utf8.c
                   59040:         oniguruma/enc/euc_jp.c
                   59041:         oniguruma/enc/euc_tw.c
                   59042:         oniguruma/enc/euc_kr.c
                   59043:         oniguruma/enc/sjis.c
                   59044:         oniguruma/enc/iso8859_1.c
                   59045:         oniguruma/enc/iso8859_2.c
                   59046:         oniguruma/enc/iso8859_3.c
                   59047:         oniguruma/enc/iso8859_4.c
                   59048:         oniguruma/enc/iso8859_5.c
                   59049:         oniguruma/enc/iso8859_6.c
                   59050:         oniguruma/enc/iso8859_7.c
                   59051:         oniguruma/enc/iso8859_8.c
                   59052:         oniguruma/enc/iso8859_9.c
                   59053:         oniguruma/enc/iso8859_10.c
                   59054:         oniguruma/enc/iso8859_11.c
                   59055:         oniguruma/enc/iso8859_13.c
                   59056:         oniguruma/enc/iso8859_14.c
                   59057:         oniguruma/enc/iso8859_15.c
                   59058:         oniguruma/enc/iso8859_16.c
                   59059:         oniguruma/enc/koi8.c
                   59060:         oniguruma/enc/koi8_r.c
                   59061:         oniguruma/enc/big5.c
                   59062:         oniguruma/enc/utf16_be.c
                   59063:         oniguruma/enc/utf16_le.c
                   59064:         oniguruma/enc/utf32_be.c
                   59065:         oniguruma/enc/utf32_le.c
                   59066:       "
                   59067: 
                   59068: 
                   59069:   PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS oniguruma/oniguruma.h"
                   59070: 
                   59071:     else
                   59072:                         if test ! -f "$PHP_ONIG/include/oniguruma.h"; then
                   59073:         as_fn_error $? "oniguruma.h not found in $PHP_ONIG/include" "$LINENO" 5
                   59074:       fi
                   59075: 
                   59076:   if test "$PHP_ONIG/include" != "/usr/include"; then
                   59077: 
                   59078:   if test -z "$PHP_ONIG/include" || echo "$PHP_ONIG/include" | grep '^/' >/dev/null ; then
                   59079:     ai_p=$PHP_ONIG/include
                   59080:   else
                   59081: 
                   59082:     ep_dir="`echo $PHP_ONIG/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   59083: 
                   59084:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   59085:     ai_p="$ep_realdir/`basename \"$PHP_ONIG/include\"`"
                   59086:   fi
                   59087: 
                   59088: 
                   59089: 
                   59090:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   59091: 
                   59092:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   59093:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   59094:     eval "INCLUDEPATH$unique=set"
                   59095: 
                   59096:       if test ""; then
                   59097:         INCLUDES="-I$ai_p $INCLUDES"
                   59098:       else
                   59099:         INCLUDES="$INCLUDES -I$ai_p"
                   59100:       fi
                   59101: 
                   59102:   fi
                   59103: 
                   59104:   fi
                   59105: 
                   59106: 
                   59107: 
                   59108:   save_old_LDFLAGS=$LDFLAGS
                   59109:   ac_stuff="
                   59110:         -L$PHP_ONIG/$PHP_LIBDIR
                   59111:       "
                   59112: 
                   59113:   save_ext_shared=$ext_shared
                   59114:   ext_shared=yes
                   59115: 
                   59116:   for ac_i in $ac_stuff; do
                   59117:     case $ac_i in
                   59118:     -pthread)
                   59119:       if test "$ext_shared" = "yes"; then
                   59120:         LDFLAGS="$LDFLAGS -pthread"
                   59121:       else
                   59122: 
                   59123: 
                   59124:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   59125: 
                   59126:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   59127:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   59128:     eval "EXTRA_LDFLAGS$unique=set"
                   59129:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   59130:   fi
                   59131: 
                   59132:       fi
                   59133:     ;;
                   59134:     -l*)
                   59135:       ac_ii=`echo $ac_i|cut -c 3-`
                   59136: 
                   59137: 
                   59138:   case $ac_ii in
                   59139:   c|c_r|pthread*) ;;
                   59140:   *)
                   59141:     if test "$ext_shared" = "yes"; then
                   59142:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   59143:     else
                   59144: 
                   59145: 
                   59146:   case $ac_ii in
                   59147:   c|c_r|pthread*) ;;
                   59148:   *)
                   59149:       LIBS="$LIBS -l$ac_ii"
                   59150:    ;;
                   59151:   esac
                   59152: 
                   59153: 
                   59154:     fi
                   59155:    ;;
                   59156:   esac
                   59157: 
                   59158: 
                   59159:     ;;
                   59160:     -L*)
                   59161:       ac_ii=`echo $ac_i|cut -c 3-`
                   59162: 
                   59163:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   59164: 
                   59165:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   59166:     ai_p=$ac_ii
                   59167:   else
                   59168: 
                   59169:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   59170: 
                   59171:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   59172:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   59173:   fi
                   59174: 
                   59175: 
                   59176:       if test "$ext_shared" = "yes"; then
                   59177:         LDFLAGS="-L$ai_p $LDFLAGS"
                   59178:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   59179:       else
                   59180: 
                   59181: 
                   59182: 
                   59183:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   59184: 
                   59185:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   59186:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   59187:     eval "LIBPATH$unique=set"
                   59188: 
                   59189:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   59190:     LDFLAGS="$LDFLAGS -L$ai_p"
                   59191:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   59192: 
                   59193:   fi
                   59194: 
                   59195: 
                   59196:       fi
                   59197: 
                   59198:   fi
                   59199: 
                   59200:     ;;
                   59201:     esac
                   59202:   done
                   59203: 
                   59204:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for onig_init in -lonig" >&5
                   59205: $as_echo_n "checking for onig_init in -lonig... " >&6; }
                   59206: if ${ac_cv_lib_onig_onig_init+:} false; then :
                   59207:   $as_echo_n "(cached) " >&6
                   59208: else
                   59209:   ac_check_lib_save_LIBS=$LIBS
                   59210: LIBS="-lonig  $LIBS"
                   59211: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   59212: /* end confdefs.h.  */
                   59213: 
                   59214: /* Override any GCC internal prototype to avoid an error.
                   59215:    Use char because int might match the return type of a GCC
                   59216:    builtin and then its argument prototype would still apply.  */
                   59217: #ifdef __cplusplus
                   59218: extern "C"
                   59219: #endif
                   59220: char onig_init ();
                   59221: int
                   59222: main ()
                   59223: {
                   59224: return onig_init ();
                   59225:   ;
                   59226:   return 0;
                   59227: }
                   59228: _ACEOF
                   59229: if ac_fn_c_try_link "$LINENO"; then :
                   59230:   ac_cv_lib_onig_onig_init=yes
                   59231: else
                   59232:   ac_cv_lib_onig_onig_init=no
                   59233: fi
                   59234: rm -f core conftest.err conftest.$ac_objext \
                   59235:     conftest$ac_exeext conftest.$ac_ext
                   59236: LIBS=$ac_check_lib_save_LIBS
                   59237: fi
                   59238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_onig_onig_init" >&5
                   59239: $as_echo "$ac_cv_lib_onig_onig_init" >&6; }
                   59240: if test "x$ac_cv_lib_onig_onig_init" = xyes; then :
                   59241: 
                   59242:     LDFLAGS=$save_old_LDFLAGS
                   59243:     ext_shared=$save_ext_shared
                   59244: 
                   59245: 
                   59246: 
                   59247:   if test "$ext_shared" = "yes"; then
                   59248:     MBSTRING_SHARED_LIBADD="-lonig $MBSTRING_SHARED_LIBADD"
                   59249:     if test -n "$PHP_ONIG/$PHP_LIBDIR"; then
                   59250: 
                   59251:   if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then
                   59252: 
                   59253:   if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   59254:     ai_p=$PHP_ONIG/$PHP_LIBDIR
                   59255:   else
                   59256: 
                   59257:     ep_dir="`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   59258: 
                   59259:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   59260:     ai_p="$ep_realdir/`basename \"$PHP_ONIG/$PHP_LIBDIR\"`"
                   59261:   fi
                   59262: 
                   59263: 
                   59264:       if test "$ext_shared" = "yes"; then
                   59265:         MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD"
                   59266:         test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD"
                   59267:       else
                   59268: 
                   59269: 
                   59270: 
                   59271:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   59272: 
                   59273:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   59274:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   59275:     eval "LIBPATH$unique=set"
                   59276: 
                   59277:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   59278:     LDFLAGS="$LDFLAGS -L$ai_p"
                   59279:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   59280: 
                   59281:   fi
                   59282: 
                   59283: 
                   59284:       fi
                   59285: 
                   59286:   fi
                   59287: 
                   59288:     fi
                   59289:   else
                   59290: 
                   59291: 
                   59292:   if test -n "$PHP_ONIG/$PHP_LIBDIR"; then
                   59293: 
                   59294:   if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then
                   59295: 
                   59296:   if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   59297:     ai_p=$PHP_ONIG/$PHP_LIBDIR
                   59298:   else
                   59299: 
                   59300:     ep_dir="`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   59301: 
                   59302:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   59303:     ai_p="$ep_realdir/`basename \"$PHP_ONIG/$PHP_LIBDIR\"`"
                   59304:   fi
                   59305: 
                   59306: 
                   59307: 
                   59308: 
                   59309: 
                   59310:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   59311: 
                   59312:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   59313:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   59314:     eval "LIBPATH$unique=set"
                   59315: 
                   59316:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   59317:     LDFLAGS="$LDFLAGS -L$ai_p"
                   59318:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   59319: 
                   59320:   fi
                   59321: 
                   59322: 
                   59323: 
                   59324:   fi
                   59325: 
                   59326:   fi
                   59327: 
                   59328: 
                   59329:   case onig in
                   59330:   c|c_r|pthread*) ;;
                   59331:   *)
                   59332:       LIBS="-lonig $LIBS"
                   59333:    ;;
                   59334:   esac
                   59335: 
                   59336: 
                   59337: 
                   59338: 
                   59339:   fi
                   59340: 
                   59341: 
                   59342: 
                   59343: $as_echo "#define HAVE_ONIG 1" >>confdefs.h
                   59344: 
                   59345: 
                   59346: 
                   59347: else
                   59348: 
                   59349:     LDFLAGS=$save_old_LDFLAGS
                   59350:     ext_shared=$save_ext_shared
                   59351:     unset ac_cv_lib_onig_onig_init
                   59352: 
                   59353:         as_fn_error $? "Problem with oniguruma. Please check config.log for more information." "$LINENO" 5
                   59354: 
                   59355: 
                   59356: fi
                   59357: 
                   59358: 
                   59359:       save_old_LDFLAGS=$LDFLAGS
                   59360: 
                   59361:   for ac_i in $MBSTRING_SHARED_LIBADD; do
                   59362:     case $ac_i in
                   59363:     -pthread)
                   59364:       if test "$ext_shared" = "yes"; then
                   59365:         LDFLAGS="$LDFLAGS -pthread"
                   59366:       else
                   59367: 
                   59368: 
                   59369:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   59370: 
                   59371:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   59372:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   59373:     eval "EXTRA_LDFLAGS$unique=set"
                   59374:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   59375:   fi
                   59376: 
                   59377:       fi
                   59378:     ;;
                   59379:     -l*)
                   59380:       ac_ii=`echo $ac_i|cut -c 3-`
                   59381: 
                   59382: 
                   59383:   case $ac_ii in
                   59384:   c|c_r|pthread*) ;;
                   59385:   *)
                   59386:     if test "$ext_shared" = "yes"; then
                   59387:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   59388:     else
                   59389: 
                   59390: 
                   59391:   case $ac_ii in
                   59392:   c|c_r|pthread*) ;;
                   59393:   *)
                   59394:       LIBS="$LIBS -l$ac_ii"
                   59395:    ;;
                   59396:   esac
                   59397: 
                   59398: 
                   59399:     fi
                   59400:    ;;
                   59401:   esac
                   59402: 
                   59403: 
                   59404:     ;;
                   59405:     -L*)
                   59406:       ac_ii=`echo $ac_i|cut -c 3-`
                   59407: 
                   59408:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   59409: 
                   59410:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   59411:     ai_p=$ac_ii
                   59412:   else
                   59413: 
                   59414:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   59415: 
                   59416:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   59417:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   59418:   fi
                   59419: 
                   59420: 
                   59421:       if test "$ext_shared" = "yes"; then
                   59422:         LDFLAGS="-L$ai_p $LDFLAGS"
                   59423:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   59424:       else
                   59425: 
                   59426: 
                   59427: 
                   59428:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   59429: 
                   59430:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   59431:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   59432:     eval "LIBPATH$unique=set"
                   59433: 
                   59434:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   59435:     LDFLAGS="$LDFLAGS -L$ai_p"
                   59436:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   59437: 
                   59438:   fi
                   59439: 
                   59440: 
                   59441:       fi
                   59442: 
                   59443:   fi
                   59444: 
                   59445:     ;;
                   59446:     esac
                   59447:   done
                   59448: 
                   59449:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if oniguruma has an invalid entry for KOI8 encoding" >&5
                   59450: $as_echo_n "checking if oniguruma has an invalid entry for KOI8 encoding... " >&6; }
                   59451:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   59452: /* end confdefs.h.  */
                   59453: 
                   59454: #include <oniguruma.h>
                   59455: 
                   59456: int
                   59457: main ()
                   59458: {
                   59459: 
                   59460: return (int)(ONIG_ENCODING_KOI8 + 1);
                   59461: 
                   59462:   ;
                   59463:   return 0;
                   59464: }
                   59465: _ACEOF
                   59466: if ac_fn_c_try_link "$LINENO"; then :
                   59467: 
                   59468:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   59469: $as_echo "no" >&6; }
                   59470: 
                   59471: else
                   59472: 
                   59473:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   59474: $as_echo "yes" >&6; }
                   59475: 
                   59476: $as_echo "#define PHP_ONIG_BAD_KOI8_ENTRY 1" >>confdefs.h
                   59477: 
                   59478: 
                   59479: fi
                   59480: rm -f core conftest.err conftest.$ac_objext \
                   59481:     conftest$ac_exeext conftest.$ac_ext
                   59482:       LDFLAGS=$save_old_LDFLAGS
                   59483:     fi
                   59484: 
                   59485: 
                   59486:   PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DONIG_ESCAPE_UCHAR_COLLISION=1"
                   59487: 
                   59488: 
                   59489:   PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DUChar=OnigUChar"
                   59490: 
                   59491: 
                   59492: 
                   59493: $as_echo "#define HAVE_MBREGEX 1" >>confdefs.h
                   59494: 
                   59495: 
                   59496: 
                   59497:   PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES php_mbregex.c"
                   59498: 
                   59499: 
                   59500:   PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS php_mbregex.h php_onig_compat.h"
                   59501: 
                   59502:   fi
                   59503: 
                   59504:   fi
                   59505: 
                   59506: 
                   59507:     if test "$PHP_LIBMBFL" = "yes" || test "$PHP_LIBMBFL" = "no"; then
                   59508: 
                   59509:   PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl"
                   59510: 
                   59511: 
                   59512:   PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/mbfl"
                   59513: 
                   59514: 
                   59515:   PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/filters"
                   59516: 
                   59517: 
                   59518:   PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/nls"
                   59519: 
                   59520: 
                   59521:   PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl"
                   59522: 
                   59523: 
                   59524:   PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl/mbfl"
                   59525: 
                   59526: 
                   59527:   PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS libmbfl/config.h"
                   59528: 
                   59529: 
                   59530: 
                   59531:   PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES
                   59532:      libmbfl/filters/html_entities.c
                   59533:      libmbfl/filters/mbfilter_7bit.c
                   59534:      libmbfl/filters/mbfilter_ascii.c
                   59535:      libmbfl/filters/mbfilter_base64.c
                   59536:      libmbfl/filters/mbfilter_big5.c
                   59537:      libmbfl/filters/mbfilter_byte2.c
                   59538:      libmbfl/filters/mbfilter_byte4.c
                   59539:      libmbfl/filters/mbfilter_cp1251.c
                   59540:      libmbfl/filters/mbfilter_cp1252.c
                   59541:      libmbfl/filters/mbfilter_cp1254.c
                   59542:      libmbfl/filters/mbfilter_cp5022x.c
                   59543:      libmbfl/filters/mbfilter_cp51932.c
                   59544:      libmbfl/filters/mbfilter_cp850.c
                   59545:      libmbfl/filters/mbfilter_cp866.c
                   59546:      libmbfl/filters/mbfilter_cp932.c
                   59547:      libmbfl/filters/mbfilter_cp936.c
1.1.1.2 ! misho    59548:      libmbfl/filters/mbfilter_gb18030.c
1.1       misho    59549:      libmbfl/filters/mbfilter_euc_cn.c
                   59550:      libmbfl/filters/mbfilter_euc_jp.c
1.1.1.2 ! misho    59551:      libmbfl/filters/mbfilter_euc_jp_2004.c
1.1       misho    59552:      libmbfl/filters/mbfilter_euc_jp_win.c
                   59553:      libmbfl/filters/mbfilter_euc_kr.c
                   59554:      libmbfl/filters/mbfilter_euc_tw.c
                   59555:      libmbfl/filters/mbfilter_htmlent.c
                   59556:      libmbfl/filters/mbfilter_hz.c
                   59557:      libmbfl/filters/mbfilter_iso2022_jp_ms.c
1.1.1.2 ! misho    59558:      libmbfl/filters/mbfilter_iso2022jp_2004.c
        !          59559:      libmbfl/filters/mbfilter_iso2022jp_mobile.c
1.1       misho    59560:      libmbfl/filters/mbfilter_iso2022_kr.c
                   59561:      libmbfl/filters/mbfilter_iso8859_1.c
                   59562:      libmbfl/filters/mbfilter_iso8859_10.c
                   59563:      libmbfl/filters/mbfilter_iso8859_13.c
                   59564:      libmbfl/filters/mbfilter_iso8859_14.c
                   59565:      libmbfl/filters/mbfilter_iso8859_15.c
                   59566:      libmbfl/filters/mbfilter_iso8859_16.c
                   59567:      libmbfl/filters/mbfilter_iso8859_2.c
                   59568:      libmbfl/filters/mbfilter_iso8859_3.c
                   59569:      libmbfl/filters/mbfilter_iso8859_4.c
                   59570:      libmbfl/filters/mbfilter_iso8859_5.c
                   59571:      libmbfl/filters/mbfilter_iso8859_6.c
                   59572:      libmbfl/filters/mbfilter_iso8859_7.c
                   59573:      libmbfl/filters/mbfilter_iso8859_8.c
                   59574:      libmbfl/filters/mbfilter_iso8859_9.c
                   59575:      libmbfl/filters/mbfilter_jis.c
                   59576:      libmbfl/filters/mbfilter_koi8r.c
                   59577:      libmbfl/filters/mbfilter_armscii8.c
                   59578:      libmbfl/filters/mbfilter_qprint.c
                   59579:      libmbfl/filters/mbfilter_sjis.c
                   59580:      libmbfl/filters/mbfilter_sjis_open.c
1.1.1.2 ! misho    59581:      libmbfl/filters/mbfilter_sjis_mobile.c
        !          59582:      libmbfl/filters/mbfilter_sjis_mac.c
        !          59583:      libmbfl/filters/mbfilter_sjis_2004.c
1.1       misho    59584:      libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c
                   59585:      libmbfl/filters/mbfilter_ucs2.c
                   59586:      libmbfl/filters/mbfilter_ucs4.c
                   59587:      libmbfl/filters/mbfilter_uhc.c
                   59588:      libmbfl/filters/mbfilter_utf16.c
                   59589:      libmbfl/filters/mbfilter_utf32.c
                   59590:      libmbfl/filters/mbfilter_utf7.c
                   59591:      libmbfl/filters/mbfilter_utf7imap.c
                   59592:      libmbfl/filters/mbfilter_utf8.c
1.1.1.2 ! misho    59593:      libmbfl/filters/mbfilter_utf8_mobile.c
1.1       misho    59594:      libmbfl/filters/mbfilter_uuencode.c
                   59595:      libmbfl/filters/mbfilter_koi8u.c
                   59596:      libmbfl/mbfl/mbfilter.c
                   59597:      libmbfl/mbfl/mbfilter_8bit.c
                   59598:      libmbfl/mbfl/mbfilter_pass.c
                   59599:      libmbfl/mbfl/mbfilter_wchar.c
                   59600:      libmbfl/mbfl/mbfl_convert.c
                   59601:      libmbfl/mbfl/mbfl_encoding.c
                   59602:      libmbfl/mbfl/mbfl_filter_output.c
                   59603:      libmbfl/mbfl/mbfl_ident.c
                   59604:      libmbfl/mbfl/mbfl_language.c
                   59605:      libmbfl/mbfl/mbfl_memory_device.c
                   59606:      libmbfl/mbfl/mbfl_string.c
                   59607:      libmbfl/mbfl/mbfl_allocators.c
                   59608:      libmbfl/nls/nls_de.c
                   59609:      libmbfl/nls/nls_en.c
                   59610:      libmbfl/nls/nls_ja.c
                   59611:      libmbfl/nls/nls_kr.c
                   59612:      libmbfl/nls/nls_neutral.c
                   59613:      libmbfl/nls/nls_ru.c
                   59614:      libmbfl/nls/nls_uni.c
                   59615:      libmbfl/nls/nls_zh.c
                   59616:      libmbfl/nls/nls_hy.c
                   59617:      libmbfl/nls/nls_tr.c
                   59618:      libmbfl/nls/nls_ua.c
                   59619:     "
                   59620: 
                   59621: 
                   59622:   PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DHAVE_CONFIG_H"
                   59623: 
                   59624: 
                   59625:   PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfilter_pass.h libmbfl/mbfl/mbfilter_wchar.h libmbfl/mbfl/mbfl_allocators.h libmbfl/mbfl/mbfl_consts.h libmbfl/mbfl/mbfl_convert.h libmbfl/mbfl/mbfl_defs.h libmbfl/mbfl/mbfl_encoding.h libmbfl/mbfl/mbfl_filter_output.h libmbfl/mbfl/mbfl_ident.h libmbfl/mbfl/mbfl_language.h libmbfl/mbfl/mbfl_memory_device.h libmbfl/mbfl/mbfl_string.h"
                   59626: 
                   59627:   else
                   59628:                 for inc in include include/mbfl-1.0 include/mbfl; do
                   59629:       if test -f "$PHP_LIBMBFL/$inc/mbfilter.h"; then
                   59630:         PHP_LIBMBFL_INCLUDE="$inc"
                   59631:         break
                   59632:       fi
                   59633:     done
                   59634: 
                   59635:     if test -z "$PHP_LIBMBFL_INCLUDE"; then
                   59636:       as_fn_error $? "mbfilter.h not found. Please reinstall libmbfl library." "$LINENO" 5
                   59637:     else
                   59638: 
                   59639:   if test "$PHP_LIBMBFL_INCLUDE" != "/usr/include"; then
                   59640: 
                   59641:   if test -z "$PHP_LIBMBFL_INCLUDE" || echo "$PHP_LIBMBFL_INCLUDE" | grep '^/' >/dev/null ; then
                   59642:     ai_p=$PHP_LIBMBFL_INCLUDE
                   59643:   else
                   59644: 
                   59645:     ep_dir="`echo $PHP_LIBMBFL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
                   59646: 
                   59647:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   59648:     ai_p="$ep_realdir/`basename \"$PHP_LIBMBFL_INCLUDE\"`"
                   59649:   fi
                   59650: 
                   59651: 
                   59652: 
                   59653:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   59654: 
                   59655:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   59656:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   59657:     eval "INCLUDEPATH$unique=set"
                   59658: 
                   59659:       if test ""; then
                   59660:         INCLUDES="-I$ai_p $INCLUDES"
                   59661:       else
                   59662:         INCLUDES="$INCLUDES -I$ai_p"
                   59663:       fi
                   59664: 
                   59665:   fi
                   59666: 
                   59667:   fi
                   59668: 
                   59669:     fi
                   59670: 
                   59671: 
                   59672:   save_old_LDFLAGS=$LDFLAGS
                   59673:   ac_stuff="
                   59674:       -L$PHP_LIBMBFL/$PHP_LIBDIR
                   59675:     "
                   59676: 
                   59677:   save_ext_shared=$ext_shared
                   59678:   ext_shared=yes
                   59679: 
                   59680:   for ac_i in $ac_stuff; do
                   59681:     case $ac_i in
                   59682:     -pthread)
                   59683:       if test "$ext_shared" = "yes"; then
                   59684:         LDFLAGS="$LDFLAGS -pthread"
                   59685:       else
                   59686: 
                   59687: 
                   59688:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   59689: 
                   59690:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   59691:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   59692:     eval "EXTRA_LDFLAGS$unique=set"
                   59693:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   59694:   fi
                   59695: 
                   59696:       fi
                   59697:     ;;
                   59698:     -l*)
                   59699:       ac_ii=`echo $ac_i|cut -c 3-`
                   59700: 
                   59701: 
                   59702:   case $ac_ii in
                   59703:   c|c_r|pthread*) ;;
                   59704:   *)
                   59705:     if test "$ext_shared" = "yes"; then
                   59706:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   59707:     else
                   59708: 
                   59709: 
                   59710:   case $ac_ii in
                   59711:   c|c_r|pthread*) ;;
                   59712:   *)
                   59713:       LIBS="$LIBS -l$ac_ii"
                   59714:    ;;
                   59715:   esac
                   59716: 
                   59717: 
                   59718:     fi
                   59719:    ;;
                   59720:   esac
                   59721: 
                   59722: 
                   59723:     ;;
                   59724:     -L*)
                   59725:       ac_ii=`echo $ac_i|cut -c 3-`
                   59726: 
                   59727:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   59728: 
                   59729:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   59730:     ai_p=$ac_ii
                   59731:   else
                   59732: 
                   59733:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   59734: 
                   59735:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   59736:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   59737:   fi
                   59738: 
                   59739: 
                   59740:       if test "$ext_shared" = "yes"; then
                   59741:         LDFLAGS="-L$ai_p $LDFLAGS"
                   59742:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   59743:       else
                   59744: 
                   59745: 
                   59746: 
                   59747:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   59748: 
                   59749:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   59750:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   59751:     eval "LIBPATH$unique=set"
                   59752: 
                   59753:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   59754:     LDFLAGS="$LDFLAGS -L$ai_p"
                   59755:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   59756: 
                   59757:   fi
                   59758: 
                   59759: 
                   59760:       fi
                   59761: 
                   59762:   fi
                   59763: 
                   59764:     ;;
                   59765:     esac
                   59766:   done
                   59767: 
                   59768:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbfl_buffer_converter_new in -lmbfl" >&5
                   59769: $as_echo_n "checking for mbfl_buffer_converter_new in -lmbfl... " >&6; }
                   59770: if ${ac_cv_lib_mbfl_mbfl_buffer_converter_new+:} false; then :
                   59771:   $as_echo_n "(cached) " >&6
                   59772: else
                   59773:   ac_check_lib_save_LIBS=$LIBS
                   59774: LIBS="-lmbfl  $LIBS"
                   59775: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   59776: /* end confdefs.h.  */
                   59777: 
                   59778: /* Override any GCC internal prototype to avoid an error.
                   59779:    Use char because int might match the return type of a GCC
                   59780:    builtin and then its argument prototype would still apply.  */
                   59781: #ifdef __cplusplus
                   59782: extern "C"
                   59783: #endif
                   59784: char mbfl_buffer_converter_new ();
                   59785: int
                   59786: main ()
                   59787: {
                   59788: return mbfl_buffer_converter_new ();
                   59789:   ;
                   59790:   return 0;
                   59791: }
                   59792: _ACEOF
                   59793: if ac_fn_c_try_link "$LINENO"; then :
                   59794:   ac_cv_lib_mbfl_mbfl_buffer_converter_new=yes
                   59795: else
                   59796:   ac_cv_lib_mbfl_mbfl_buffer_converter_new=no
                   59797: fi
                   59798: rm -f core conftest.err conftest.$ac_objext \
                   59799:     conftest$ac_exeext conftest.$ac_ext
                   59800: LIBS=$ac_check_lib_save_LIBS
                   59801: fi
                   59802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&5
                   59803: $as_echo "$ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&6; }
                   59804: if test "x$ac_cv_lib_mbfl_mbfl_buffer_converter_new" = xyes; then :
                   59805: 
                   59806:     LDFLAGS=$save_old_LDFLAGS
                   59807:     ext_shared=$save_ext_shared
                   59808: 
                   59809: 
                   59810: 
                   59811:   if test "$ext_shared" = "yes"; then
                   59812:     MBSTRING_SHARED_LIBADD="-lmbfl $MBSTRING_SHARED_LIBADD"
                   59813:     if test -n "$PHP_LIBMBFL/$PHP_LIBDIR"; then
                   59814: 
                   59815:   if test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/lib"; then
                   59816: 
                   59817:   if test -z "$PHP_LIBMBFL/$PHP_LIBDIR" || echo "$PHP_LIBMBFL/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   59818:     ai_p=$PHP_LIBMBFL/$PHP_LIBDIR
                   59819:   else
                   59820: 
                   59821:     ep_dir="`echo $PHP_LIBMBFL/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   59822: 
                   59823:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   59824:     ai_p="$ep_realdir/`basename \"$PHP_LIBMBFL/$PHP_LIBDIR\"`"
                   59825:   fi
                   59826: 
                   59827: 
                   59828:       if test "$ext_shared" = "yes"; then
                   59829:         MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD"
                   59830:         test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD"
                   59831:       else
                   59832: 
                   59833: 
                   59834: 
                   59835:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   59836: 
                   59837:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   59838:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   59839:     eval "LIBPATH$unique=set"
                   59840: 
                   59841:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   59842:     LDFLAGS="$LDFLAGS -L$ai_p"
                   59843:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   59844: 
                   59845:   fi
                   59846: 
                   59847: 
                   59848:       fi
                   59849: 
                   59850:   fi
                   59851: 
                   59852:     fi
                   59853:   else
                   59854: 
                   59855: 
                   59856:   if test -n "$PHP_LIBMBFL/$PHP_LIBDIR"; then
                   59857: 
                   59858:   if test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/lib"; then
                   59859: 
                   59860:   if test -z "$PHP_LIBMBFL/$PHP_LIBDIR" || echo "$PHP_LIBMBFL/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   59861:     ai_p=$PHP_LIBMBFL/$PHP_LIBDIR
                   59862:   else
                   59863: 
                   59864:     ep_dir="`echo $PHP_LIBMBFL/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   59865: 
                   59866:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   59867:     ai_p="$ep_realdir/`basename \"$PHP_LIBMBFL/$PHP_LIBDIR\"`"
                   59868:   fi
                   59869: 
                   59870: 
                   59871: 
                   59872: 
                   59873: 
                   59874:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   59875: 
                   59876:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   59877:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   59878:     eval "LIBPATH$unique=set"
                   59879: 
                   59880:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   59881:     LDFLAGS="$LDFLAGS -L$ai_p"
                   59882:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   59883: 
                   59884:   fi
                   59885: 
                   59886: 
                   59887: 
                   59888:   fi
                   59889: 
                   59890:   fi
                   59891: 
                   59892: 
                   59893:   case mbfl in
                   59894:   c|c_r|pthread*) ;;
                   59895:   *)
                   59896:       LIBS="-lmbfl $LIBS"
                   59897:    ;;
                   59898:   esac
                   59899: 
                   59900: 
                   59901: 
                   59902: 
                   59903:   fi
                   59904: 
                   59905: 
                   59906: 
                   59907: 
                   59908: else
                   59909: 
                   59910:     LDFLAGS=$save_old_LDFLAGS
                   59911:     ext_shared=$save_ext_shared
                   59912:     unset ac_cv_lib_mbfl_mbfl_buffer_converter_new
                   59913: 
                   59914:       as_fn_error $? "Problem with libmbfl. Please check config.log for more information." "$LINENO" 5
                   59915: 
                   59916: 
                   59917: fi
                   59918: 
                   59919:   fi
                   59920: 
                   59921: 
                   59922: 
                   59923:   ext_builddir=ext/mbstring
                   59924:   ext_srcdir=$abs_srcdir/ext/mbstring
                   59925: 
                   59926:   ac_extra=`echo "$PHP_MBSTRING_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
                   59927: 
                   59928:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   59929:     PHP_MBSTRING_SHARED=no
                   59930: 
                   59931: 
                   59932:   case ext/mbstring in
                   59933:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   59934:   /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   59935:   *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   59936:   esac
                   59937: 
                   59938: 
                   59939: 
                   59940:   b_c_pre=$php_c_pre
                   59941:   b_cxx_pre=$php_cxx_pre
                   59942:   b_c_meta=$php_c_meta
                   59943:   b_cxx_meta=$php_cxx_meta
                   59944:   b_c_post=$php_c_post
                   59945:   b_cxx_post=$php_cxx_post
                   59946:   b_lo=$php_lo
                   59947: 
                   59948: 
                   59949:   old_IFS=$IFS
                   59950:   for ac_src in $PHP_MBSTRING_SOURCES; do
                   59951: 
                   59952:       IFS=.
                   59953:       set $ac_src
                   59954:       ac_obj=$1
                   59955:       IFS=$old_IFS
                   59956: 
                   59957:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   59958: 
                   59959:       case $ac_src in
                   59960:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   59961:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   59962:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   59963:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   59964:       esac
                   59965: 
                   59966:     cat >>Makefile.objects<<EOF
                   59967: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   59968:        $ac_comp
                   59969: EOF
                   59970:   done
                   59971: 
                   59972: 
                   59973:     EXT_STATIC="$EXT_STATIC mbstring"
                   59974:     if test "$ext_shared" != "nocli"; then
                   59975:       EXT_CLI_STATIC="$EXT_CLI_STATIC mbstring"
                   59976:     fi
                   59977:   else
                   59978:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   59979:       PHP_MBSTRING_SHARED=yes
                   59980: 
                   59981:   case ext/mbstring in
                   59982:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   59983:   /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   59984:   *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   59985:   esac
                   59986: 
                   59987: 
                   59988: 
                   59989:   b_c_pre=$shared_c_pre
                   59990:   b_cxx_pre=$shared_cxx_pre
                   59991:   b_c_meta=$shared_c_meta
                   59992:   b_cxx_meta=$shared_cxx_meta
                   59993:   b_c_post=$shared_c_post
                   59994:   b_cxx_post=$shared_cxx_post
                   59995:   b_lo=$shared_lo
                   59996: 
                   59997: 
                   59998:   old_IFS=$IFS
                   59999:   for ac_src in $PHP_MBSTRING_SOURCES; do
                   60000: 
                   60001:       IFS=.
                   60002:       set $ac_src
                   60003:       ac_obj=$1
                   60004:       IFS=$old_IFS
                   60005: 
                   60006:       shared_objects_mbstring="$shared_objects_mbstring $ac_bdir$ac_obj.lo"
                   60007: 
                   60008:       case $ac_src in
                   60009:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60010:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60011:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60012:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   60013:       esac
                   60014: 
                   60015:     cat >>Makefile.objects<<EOF
                   60016: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   60017:        $ac_comp
                   60018: EOF
                   60019:   done
                   60020: 
                   60021:       case $host_alias in
                   60022:         *netware*)
                   60023: 
                   60024:   install_modules="install-modules"
                   60025: 
                   60026:   case $host_alias in
                   60027:     *aix*)
                   60028:       suffix=so
                   60029:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmbstring.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) $(PHPMBSTRING_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmbstring.so '$ext_builddir'/phpmbstring.so'
                   60030:       ;;
                   60031:     *netware*)
                   60032:       suffix=nlm
                   60033:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) -L$(top_builddir)/netware -lphp5lib $(MBSTRING_SHARED_LIBADD)'
                   60034:       ;;
                   60035:     *)
                   60036:       suffix=la
                   60037:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) $(PHPMBSTRING_SHARED_LIBADD)'
                   60038:       ;;
                   60039:   esac
                   60040: 
                   60041:   if test "x" = "xyes"; then
                   60042:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmbstring.$suffix"
                   60043:   else
                   60044:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmbstring.$suffix"
                   60045:   fi
                   60046: 
                   60047:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mbstring"
                   60048: 
                   60049:   cat >>Makefile.objects<<EOF
                   60050: \$(phplibdir)/phpmbstring.$suffix: $ext_builddir/phpmbstring.$suffix
                   60051:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpmbstring.$suffix \$(phplibdir)
                   60052: 
                   60053: $ext_builddir/phpmbstring.$suffix: \$(shared_objects_mbstring) \$(PHPMBSTRING_SHARED_DEPENDENCIES)
                   60054:        $link_cmd
                   60055: 
                   60056: EOF
                   60057: 
                   60058:           ;;
                   60059:         *)
                   60060: 
                   60061:   install_modules="install-modules"
                   60062: 
                   60063:   case $host_alias in
                   60064:     *aix*)
                   60065:       suffix=so
                   60066:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mbstring.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) $(MBSTRING_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mbstring.so '$ext_builddir'/mbstring.so'
                   60067:       ;;
                   60068:     *netware*)
                   60069:       suffix=nlm
                   60070:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) -L$(top_builddir)/netware -lphp5lib $(TRING_SHARED_LIBADD)'
                   60071:       ;;
                   60072:     *)
                   60073:       suffix=la
                   60074:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) $(MBSTRING_SHARED_LIBADD)'
                   60075:       ;;
                   60076:   esac
                   60077: 
                   60078:   if test "x" = "xyes"; then
                   60079:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mbstring.$suffix"
                   60080:   else
                   60081:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/mbstring.$suffix"
                   60082:   fi
                   60083: 
                   60084:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mbstring"
                   60085: 
                   60086:   cat >>Makefile.objects<<EOF
                   60087: \$(phplibdir)/mbstring.$suffix: $ext_builddir/mbstring.$suffix
                   60088:        \$(LIBTOOL) --mode=install cp $ext_builddir/mbstring.$suffix \$(phplibdir)
                   60089: 
                   60090: $ext_builddir/mbstring.$suffix: \$(shared_objects_mbstring) \$(MBSTRING_SHARED_DEPENDENCIES)
                   60091:        $link_cmd
                   60092: 
                   60093: EOF
                   60094: 
                   60095:           ;;
                   60096:       esac
                   60097: 
                   60098: cat >>confdefs.h <<_ACEOF
                   60099: #define COMPILE_DL_MBSTRING 1
                   60100: _ACEOF
                   60101: 
                   60102:     fi
                   60103:   fi
                   60104: 
                   60105:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   60106:     PHP_MBSTRING_SHARED=no
                   60107: 
                   60108: 
                   60109:   case ext/mbstring in
                   60110:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   60111:   /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   60112:   *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   60113:   esac
                   60114: 
                   60115: 
                   60116: 
                   60117:   b_c_pre=$php_c_pre
                   60118:   b_cxx_pre=$php_cxx_pre
                   60119:   b_c_meta=$php_c_meta
                   60120:   b_cxx_meta=$php_cxx_meta
                   60121:   b_c_post=$php_c_post
                   60122:   b_cxx_post=$php_cxx_post
                   60123:   b_lo=$php_lo
                   60124: 
                   60125: 
                   60126:   old_IFS=$IFS
                   60127:   for ac_src in $PHP_MBSTRING_SOURCES; do
                   60128: 
                   60129:       IFS=.
                   60130:       set $ac_src
                   60131:       ac_obj=$1
                   60132:       IFS=$old_IFS
                   60133: 
1.1.1.2 ! misho    60134:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    60135: 
                   60136:       case $ac_src in
                   60137:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60138:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60139:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60140:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   60141:       esac
                   60142: 
                   60143:     cat >>Makefile.objects<<EOF
                   60144: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   60145:        $ac_comp
                   60146: EOF
                   60147:   done
                   60148: 
                   60149: 
                   60150: 
                   60151: 
                   60152:   case ext/mbstring in
                   60153:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   60154:   /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   60155:   *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   60156:   esac
                   60157: 
                   60158: 
                   60159: 
                   60160:   b_c_pre=$php_c_pre
                   60161:   b_cxx_pre=$php_cxx_pre
                   60162:   b_c_meta=$php_c_meta
                   60163:   b_cxx_meta=$php_cxx_meta
                   60164:   b_c_post=$php_c_post
                   60165:   b_cxx_post=$php_cxx_post
                   60166:   b_lo=$php_lo
                   60167: 
                   60168: 
                   60169:   old_IFS=$IFS
                   60170:   for ac_src in $PHP_MBSTRING_SOURCES; do
                   60171: 
                   60172:       IFS=.
                   60173:       set $ac_src
                   60174:       ac_obj=$1
                   60175:       IFS=$old_IFS
                   60176: 
1.1.1.2 ! misho    60177:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    60178: 
                   60179:       case $ac_src in
                   60180:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60181:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60182:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60183:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   60184:       esac
                   60185: 
                   60186:     cat >>Makefile.objects<<EOF
                   60187: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   60188:        $ac_comp
                   60189: EOF
                   60190:   done
                   60191: 
                   60192: 
                   60193: 
                   60194: 
                   60195:   case ext/mbstring in
                   60196:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   60197:   /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   60198:   *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   60199:   esac
                   60200: 
                   60201: 
                   60202: 
                   60203:   b_c_pre=$php_c_pre
                   60204:   b_cxx_pre=$php_cxx_pre
                   60205:   b_c_meta=$php_c_meta
                   60206:   b_cxx_meta=$php_cxx_meta
                   60207:   b_c_post=$php_c_post
                   60208:   b_cxx_post=$php_cxx_post
                   60209:   b_lo=$php_lo
                   60210: 
                   60211: 
                   60212:   old_IFS=$IFS
                   60213:   for ac_src in $PHP_MBSTRING_SOURCES; do
                   60214: 
                   60215:       IFS=.
                   60216:       set $ac_src
                   60217:       ac_obj=$1
                   60218:       IFS=$old_IFS
                   60219: 
1.1.1.2 ! misho    60220:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    60221: 
                   60222:       case $ac_src in
                   60223:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60224:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60225:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60226:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   60227:       esac
                   60228: 
                   60229:     cat >>Makefile.objects<<EOF
                   60230: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   60231:        $ac_comp
                   60232: EOF
                   60233:   done
                   60234: 
                   60235: 
                   60236:     EXT_CLI_STATIC="$EXT_CLI_STATIC mbstring"
                   60237:   fi
                   60238: 
                   60239: 
                   60240:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   60241: 
                   60242: 
                   60243: 
                   60244:   if test "$ext_builddir" = "."; then
                   60245:     PHP_PECL_EXTENSION=mbstring
                   60246: 
                   60247:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   60248: 
                   60249:   fi
                   60250: 
                   60251: 
                   60252:   PHP_VAR_SUBST="$PHP_VAR_SUBST MBSTRING_SHARED_LIBADD"
                   60253: 
                   60254: 
                   60255:   for dir in $PHP_MBSTRING_EXTRA_BUILD_DIRS; do
                   60256: 
                   60257: 
                   60258:     $php_shtool mkdir -p $ext_builddir/$dir
                   60259: 
                   60260: 
                   60261:   done
                   60262: 
                   60263:   for dir in $PHP_MBSTRING_EXTRA_INCLUDES; do
                   60264: 
                   60265:   if test "$ext_srcdir/$dir" != "/usr/include"; then
                   60266: 
                   60267:   if test -z "$ext_srcdir/$dir" || echo "$ext_srcdir/$dir" | grep '^/' >/dev/null ; then
                   60268:     ai_p=$ext_srcdir/$dir
                   60269:   else
                   60270: 
                   60271:     ep_dir="`echo $ext_srcdir/$dir|$SED 's%/*[^/][^/]*/*$%%'`"
                   60272: 
                   60273:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   60274:     ai_p="$ep_realdir/`basename \"$ext_srcdir/$dir\"`"
                   60275:   fi
                   60276: 
                   60277: 
                   60278: 
                   60279:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   60280: 
                   60281:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   60282:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   60283:     eval "INCLUDEPATH$unique=set"
                   60284: 
                   60285:       if test ""; then
                   60286:         INCLUDES="-I$ai_p $INCLUDES"
                   60287:       else
                   60288:         INCLUDES="$INCLUDES -I$ai_p"
                   60289:       fi
                   60290: 
                   60291:   fi
                   60292: 
                   60293:   fi
                   60294: 
                   60295: 
                   60296:   if test "$ext_builddir/$dir" != "/usr/include"; then
                   60297: 
                   60298:   if test -z "$ext_builddir/$dir" || echo "$ext_builddir/$dir" | grep '^/' >/dev/null ; then
                   60299:     ai_p=$ext_builddir/$dir
                   60300:   else
                   60301: 
                   60302:     ep_dir="`echo $ext_builddir/$dir|$SED 's%/*[^/][^/]*/*$%%'`"
                   60303: 
                   60304:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   60305:     ai_p="$ep_realdir/`basename \"$ext_builddir/$dir\"`"
                   60306:   fi
                   60307: 
                   60308: 
                   60309: 
                   60310:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   60311: 
                   60312:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   60313:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   60314:     eval "INCLUDEPATH$unique=set"
                   60315: 
                   60316:       if test ""; then
                   60317:         INCLUDES="-I$ai_p $INCLUDES"
                   60318:       else
                   60319:         INCLUDES="$INCLUDES -I$ai_p"
                   60320:       fi
                   60321: 
                   60322:   fi
                   60323: 
                   60324:   fi
                   60325: 
                   60326:   done
                   60327: 
                   60328:   if test "$ext_shared" = "no"; then
                   60329: 
                   60330: 
                   60331:   case ext/mbstring in
                   60332:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   60333:   /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   60334:   *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   60335:   esac
                   60336: 
                   60337: 
                   60338: 
                   60339:   b_c_pre=$php_c_pre
                   60340:   b_cxx_pre=$php_cxx_pre
                   60341:   b_c_meta=$php_c_meta
                   60342:   b_cxx_meta=$php_cxx_meta
                   60343:   b_c_post=$php_c_post
                   60344:   b_cxx_post=$php_cxx_post
                   60345:   b_lo=$php_lo
                   60346: 
                   60347: 
                   60348:   old_IFS=$IFS
                   60349:   for ac_src in $PHP_MBSTRING_BASE_SOURCES; do
                   60350: 
                   60351:       IFS=.
                   60352:       set $ac_src
                   60353:       ac_obj=$1
                   60354:       IFS=$old_IFS
                   60355: 
                   60356:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   60357: 
                   60358:       case $ac_src in
                   60359:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60360:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60361:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60362:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   60363:       esac
                   60364: 
                   60365:     cat >>Makefile.objects<<EOF
                   60366: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   60367:        $ac_comp
                   60368: EOF
                   60369:   done
                   60370: 
                   60371: 
                   60372:     out="php_config.h"
                   60373:   else
                   60374: 
                   60375:   case ext/mbstring in
                   60376:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   60377:   /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   60378:   *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   60379:   esac
                   60380: 
                   60381: 
                   60382: 
                   60383:   b_c_pre=$shared_c_pre
                   60384:   b_cxx_pre=$shared_cxx_pre
                   60385:   b_c_meta=$shared_c_meta
                   60386:   b_cxx_meta=$shared_cxx_meta
                   60387:   b_c_post=$shared_c_post
                   60388:   b_cxx_post=$shared_cxx_post
                   60389:   b_lo=$shared_lo
                   60390: 
                   60391: 
                   60392:   old_IFS=$IFS
                   60393:   for ac_src in $PHP_MBSTRING_BASE_SOURCES; do
                   60394: 
                   60395:       IFS=.
                   60396:       set $ac_src
                   60397:       ac_obj=$1
                   60398:       IFS=$old_IFS
                   60399: 
                   60400:       shared_objects_mbstring="$shared_objects_mbstring $ac_bdir$ac_obj.lo"
                   60401: 
                   60402:       case $ac_src in
                   60403:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60404:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60405:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   60406:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   60407:       esac
                   60408: 
                   60409:     cat >>Makefile.objects<<EOF
                   60410: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   60411:        $ac_comp
                   60412: EOF
                   60413:   done
                   60414: 
                   60415:     if test -f "$ext_builddir/config.h.in"; then
                   60416:       out="$abs_builddir/config.h"
                   60417:     else
                   60418:       out="php_config.h"
                   60419:     fi
                   60420:   fi
                   60421: 
                   60422:   for cfg in $PHP_MBSTRING_EXTRA_CONFIG_HEADERS; do
                   60423:     cat > $ext_builddir/$cfg <<EOF
                   60424: #include "$out"
                   60425: EOF
                   60426:   done
                   60427: 
                   60428:   PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS mbstring.h"
                   60429: 
                   60430: 
                   60431: 
                   60432:     header_path=ext/mbstring
                   60433:     for header_file in $PHP_MBSTRING_INSTALL_HEADERS; do
                   60434:       hp_hf="$header_path/$header_file"
                   60435: 
                   60436: 
                   60437:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
                   60438: 
                   60439:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   60440:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   60441:     eval "INSTALLHEADERS$unique=set"
                   60442: 
                   60443:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
                   60444: 
                   60445:   fi
                   60446: 
                   60447:     done
                   60448: 
                   60449: 
                   60450: 
                   60451: fi
                   60452: 
                   60453: # vim600: sts=2 sw=2 et
                   60454: 
                   60455: 
                   60456: 
                   60457: 
                   60458: 
                   60459: 
                   60460: php_with_mcrypt=no
                   60461: 
                   60462: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcrypt support" >&5
                   60463: $as_echo_n "checking for mcrypt support... " >&6; }
                   60464: 
                   60465: # Check whether --with-mcrypt was given.
                   60466: if test "${with_mcrypt+set}" = set; then :
                   60467:   withval=$with_mcrypt; PHP_MCRYPT=$withval
                   60468: else
                   60469: 
                   60470:   PHP_MCRYPT=no
                   60471:   test "$PHP_ENABLE_ALL" && PHP_MCRYPT=$PHP_ENABLE_ALL
                   60472: 
                   60473: fi
                   60474: 
                   60475: 
                   60476: 
                   60477: ext_output="yes, shared"
                   60478: ext_shared=yes
                   60479: case $PHP_MCRYPT in
                   60480: shared,*)
                   60481:   PHP_MCRYPT=`echo "$PHP_MCRYPT"|$SED 's/^shared,//'`
                   60482:   ;;
                   60483: shared)
                   60484:   PHP_MCRYPT=yes
                   60485:   ;;
                   60486: no)
                   60487:   ext_output=no
                   60488:   ext_shared=no
                   60489:   ;;
                   60490: *)
                   60491:   ext_output=yes
                   60492:   ext_shared=no
                   60493:   ;;
                   60494: esac
                   60495: 
                   60496: 
                   60497: 
                   60498: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   60499: $as_echo "$ext_output" >&6; }
                   60500: 
                   60501: 
                   60502: 
                   60503: 
                   60504: if test "$PHP_MCRYPT" != "no"; then
                   60505:   for i in $PHP_MCRYPT /usr/local /usr; do
                   60506:     test -f $i/include/mcrypt.h && MCRYPT_DIR=$i && break
                   60507:   done
                   60508: 
                   60509:   if test -z "$MCRYPT_DIR"; then
                   60510:     as_fn_error $? "mcrypt.h not found. Please reinstall libmcrypt." "$LINENO" 5
                   60511:   fi
                   60512: 
                   60513: 
                   60514:   old_CPPFLAGS=$CPPFLAGS
                   60515:   CPPFLAGS=-I$MCRYPT_DIR/include
                   60516:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmcrypt version" >&5
                   60517: $as_echo_n "checking for libmcrypt version... " >&6; }
                   60518:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   60519: /* end confdefs.h.  */
                   60520: 
                   60521: #include <mcrypt.h>
                   60522: #if MCRYPT_API_VERSION >= 20021217
                   60523:   yes
                   60524: #endif
                   60525: 
                   60526: _ACEOF
                   60527: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   60528:   $EGREP "yes" >/dev/null 2>&1; then :
                   60529: 
                   60530:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 2.5.6" >&5
                   60531: $as_echo ">= 2.5.6" >&6; }
                   60532: 
                   60533: else
                   60534: 
                   60535:     as_fn_error $? "libmcrypt version 2.5.6 or greater required." "$LINENO" 5
                   60536: 
                   60537: fi
                   60538: rm -f conftest*
                   60539: 
                   60540:   CPPFLAGS=$old_CPPFLAGS
                   60541: 
                   60542: 
                   60543: 
                   60544:   save_old_LDFLAGS=$LDFLAGS
                   60545:   ac_stuff="
                   60546:     -L$MCRYPT_DIR/$PHP_LIBDIR -lltdl
                   60547:   "
                   60548: 
                   60549:   save_ext_shared=$ext_shared
                   60550:   ext_shared=yes
                   60551: 
                   60552:   for ac_i in $ac_stuff; do
                   60553:     case $ac_i in
                   60554:     -pthread)
                   60555:       if test "$ext_shared" = "yes"; then
                   60556:         LDFLAGS="$LDFLAGS -pthread"
                   60557:       else
                   60558: 
                   60559: 
                   60560:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   60561: 
                   60562:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   60563:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   60564:     eval "EXTRA_LDFLAGS$unique=set"
                   60565:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   60566:   fi
                   60567: 
                   60568:       fi
                   60569:     ;;
                   60570:     -l*)
                   60571:       ac_ii=`echo $ac_i|cut -c 3-`
                   60572: 
                   60573: 
                   60574:   case $ac_ii in
                   60575:   c|c_r|pthread*) ;;
                   60576:   *)
                   60577:     if test "$ext_shared" = "yes"; then
                   60578:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   60579:     else
                   60580: 
                   60581: 
                   60582:   case $ac_ii in
                   60583:   c|c_r|pthread*) ;;
                   60584:   *)
                   60585:       LIBS="$LIBS -l$ac_ii"
                   60586:    ;;
                   60587:   esac
                   60588: 
                   60589: 
                   60590:     fi
                   60591:    ;;
                   60592:   esac
                   60593: 
                   60594: 
                   60595:     ;;
                   60596:     -L*)
                   60597:       ac_ii=`echo $ac_i|cut -c 3-`
                   60598: 
                   60599:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   60600: 
                   60601:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   60602:     ai_p=$ac_ii
                   60603:   else
                   60604: 
                   60605:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   60606: 
                   60607:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   60608:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   60609:   fi
                   60610: 
                   60611: 
                   60612:       if test "$ext_shared" = "yes"; then
                   60613:         LDFLAGS="-L$ai_p $LDFLAGS"
                   60614:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   60615:       else
                   60616: 
                   60617: 
                   60618: 
                   60619:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   60620: 
                   60621:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   60622:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   60623:     eval "LIBPATH$unique=set"
                   60624: 
                   60625:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   60626:     LDFLAGS="$LDFLAGS -L$ai_p"
                   60627:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   60628: 
                   60629:   fi
                   60630: 
                   60631: 
                   60632:       fi
                   60633: 
                   60634:   fi
                   60635: 
                   60636:     ;;
                   60637:     esac
                   60638:   done
                   60639: 
                   60640:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcrypt_module_open in -lmcrypt" >&5
                   60641: $as_echo_n "checking for mcrypt_module_open in -lmcrypt... " >&6; }
                   60642: if ${ac_cv_lib_mcrypt_mcrypt_module_open+:} false; then :
                   60643:   $as_echo_n "(cached) " >&6
                   60644: else
                   60645:   ac_check_lib_save_LIBS=$LIBS
                   60646: LIBS="-lmcrypt  $LIBS"
                   60647: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   60648: /* end confdefs.h.  */
                   60649: 
                   60650: /* Override any GCC internal prototype to avoid an error.
                   60651:    Use char because int might match the return type of a GCC
                   60652:    builtin and then its argument prototype would still apply.  */
                   60653: #ifdef __cplusplus
                   60654: extern "C"
                   60655: #endif
                   60656: char mcrypt_module_open ();
                   60657: int
                   60658: main ()
                   60659: {
                   60660: return mcrypt_module_open ();
                   60661:   ;
                   60662:   return 0;
                   60663: }
                   60664: _ACEOF
                   60665: if ac_fn_c_try_link "$LINENO"; then :
                   60666:   ac_cv_lib_mcrypt_mcrypt_module_open=yes
                   60667: else
                   60668:   ac_cv_lib_mcrypt_mcrypt_module_open=no
                   60669: fi
                   60670: rm -f core conftest.err conftest.$ac_objext \
                   60671:     conftest$ac_exeext conftest.$ac_ext
                   60672: LIBS=$ac_check_lib_save_LIBS
                   60673: fi
                   60674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5
                   60675: $as_echo "$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; }
                   60676: if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = xyes; then :
                   60677: 
                   60678:     LDFLAGS=$save_old_LDFLAGS
                   60679:     ext_shared=$save_ext_shared
                   60680: 
                   60681: 
                   60682: 
                   60683:   case ltdl in
                   60684:   c|c_r|pthread*) ;;
                   60685:   *)
                   60686:     if test "$ext_shared" = "yes"; then
                   60687:         MCRYPT_SHARED_LIBADD="-lltdl $MCRYPT_SHARED_LIBADD"
                   60688:     else
                   60689: 
                   60690: 
                   60691:   case ltdl in
                   60692:   c|c_r|pthread*) ;;
                   60693:   *)
                   60694:       LIBS="-lltdl $LIBS"
                   60695:    ;;
                   60696:   esac
                   60697: 
                   60698: 
                   60699:     fi
                   60700:    ;;
                   60701:   esac
                   60702: 
                   60703: 
                   60704: 
                   60705: $as_echo "#define HAVE_LIBMCRYPT 1" >>confdefs.h
                   60706: 
                   60707: 
                   60708: 
                   60709: else
                   60710: 
                   60711:     LDFLAGS=$save_old_LDFLAGS
                   60712:     ext_shared=$save_ext_shared
                   60713:     unset ac_cv_lib_mcrypt_mcrypt_module_open
                   60714: 
                   60715: 
                   60716:   save_old_LDFLAGS=$LDFLAGS
                   60717:   ac_stuff="
                   60718:       -L$MCRYPT_DIR/$PHP_LIBDIR
                   60719:     "
                   60720: 
                   60721:   save_ext_shared=$ext_shared
                   60722:   ext_shared=yes
                   60723: 
                   60724:   for ac_i in $ac_stuff; do
                   60725:     case $ac_i in
                   60726:     -pthread)
                   60727:       if test "$ext_shared" = "yes"; then
                   60728:         LDFLAGS="$LDFLAGS -pthread"
                   60729:       else
                   60730: 
                   60731: 
                   60732:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   60733: 
                   60734:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   60735:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   60736:     eval "EXTRA_LDFLAGS$unique=set"
                   60737:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   60738:   fi
                   60739: 
                   60740:       fi
                   60741:     ;;
                   60742:     -l*)
                   60743:       ac_ii=`echo $ac_i|cut -c 3-`
                   60744: 
                   60745: 
                   60746:   case $ac_ii in
                   60747:   c|c_r|pthread*) ;;
                   60748:   *)
                   60749:     if test "$ext_shared" = "yes"; then
                   60750:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   60751:     else
                   60752: 
                   60753: 
                   60754:   case $ac_ii in
                   60755:   c|c_r|pthread*) ;;
                   60756:   *)
                   60757:       LIBS="$LIBS -l$ac_ii"
                   60758:    ;;
                   60759:   esac
                   60760: 
                   60761: 
                   60762:     fi
                   60763:    ;;
                   60764:   esac
                   60765: 
                   60766: 
                   60767:     ;;
                   60768:     -L*)
                   60769:       ac_ii=`echo $ac_i|cut -c 3-`
                   60770: 
                   60771:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   60772: 
                   60773:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   60774:     ai_p=$ac_ii
                   60775:   else
                   60776: 
                   60777:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   60778: 
                   60779:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   60780:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   60781:   fi
                   60782: 
                   60783: 
                   60784:       if test "$ext_shared" = "yes"; then
                   60785:         LDFLAGS="-L$ai_p $LDFLAGS"
                   60786:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   60787:       else
                   60788: 
                   60789: 
                   60790: 
                   60791:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   60792: 
                   60793:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   60794:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   60795:     eval "LIBPATH$unique=set"
                   60796: 
                   60797:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   60798:     LDFLAGS="$LDFLAGS -L$ai_p"
                   60799:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   60800: 
                   60801:   fi
                   60802: 
                   60803: 
                   60804:       fi
                   60805: 
                   60806:   fi
                   60807: 
                   60808:     ;;
                   60809:     esac
                   60810:   done
                   60811: 
                   60812:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcrypt_module_open in -lmcrypt" >&5
                   60813: $as_echo_n "checking for mcrypt_module_open in -lmcrypt... " >&6; }
                   60814: if ${ac_cv_lib_mcrypt_mcrypt_module_open+:} false; then :
                   60815:   $as_echo_n "(cached) " >&6
                   60816: else
                   60817:   ac_check_lib_save_LIBS=$LIBS
                   60818: LIBS="-lmcrypt  $LIBS"
                   60819: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   60820: /* end confdefs.h.  */
                   60821: 
                   60822: /* Override any GCC internal prototype to avoid an error.
                   60823:    Use char because int might match the return type of a GCC
                   60824:    builtin and then its argument prototype would still apply.  */
                   60825: #ifdef __cplusplus
                   60826: extern "C"
                   60827: #endif
                   60828: char mcrypt_module_open ();
                   60829: int
                   60830: main ()
                   60831: {
                   60832: return mcrypt_module_open ();
                   60833:   ;
                   60834:   return 0;
                   60835: }
                   60836: _ACEOF
                   60837: if ac_fn_c_try_link "$LINENO"; then :
                   60838:   ac_cv_lib_mcrypt_mcrypt_module_open=yes
                   60839: else
                   60840:   ac_cv_lib_mcrypt_mcrypt_module_open=no
                   60841: fi
                   60842: rm -f core conftest.err conftest.$ac_objext \
                   60843:     conftest$ac_exeext conftest.$ac_ext
                   60844: LIBS=$ac_check_lib_save_LIBS
                   60845: fi
                   60846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5
                   60847: $as_echo "$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; }
                   60848: if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = xyes; then :
                   60849: 
                   60850:     LDFLAGS=$save_old_LDFLAGS
                   60851:     ext_shared=$save_ext_shared
                   60852: 
                   60853: 
                   60854: $as_echo "#define HAVE_LIBMCRYPT 1" >>confdefs.h
                   60855: 
                   60856: 
                   60857: 
                   60858: else
                   60859: 
                   60860:     LDFLAGS=$save_old_LDFLAGS
                   60861:     ext_shared=$save_ext_shared
                   60862:     unset ac_cv_lib_mcrypt_mcrypt_module_open
                   60863: 
                   60864:       as_fn_error $? "Sorry, I was not able to diagnose which libmcrypt version you have installed." "$LINENO" 5
                   60865: 
                   60866: 
                   60867: fi
                   60868: 
                   60869: 
                   60870: 
                   60871: fi
                   60872: 
                   60873: 
                   60874: 
                   60875: 
                   60876:   if test "$ext_shared" = "yes"; then
                   60877:     MCRYPT_SHARED_LIBADD="-lmcrypt $MCRYPT_SHARED_LIBADD"
                   60878:     if test -n "$MCRYPT_DIR/$PHP_LIBDIR"; then
                   60879: 
                   60880:   if test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   60881: 
                   60882:   if test -z "$MCRYPT_DIR/$PHP_LIBDIR" || echo "$MCRYPT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   60883:     ai_p=$MCRYPT_DIR/$PHP_LIBDIR
                   60884:   else
                   60885: 
                   60886:     ep_dir="`echo $MCRYPT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   60887: 
                   60888:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   60889:     ai_p="$ep_realdir/`basename \"$MCRYPT_DIR/$PHP_LIBDIR\"`"
                   60890:   fi
                   60891: 
                   60892: 
                   60893:       if test "$ext_shared" = "yes"; then
                   60894:         MCRYPT_SHARED_LIBADD="-L$ai_p $MCRYPT_SHARED_LIBADD"
                   60895:         test -n "$ld_runpath_switch" && MCRYPT_SHARED_LIBADD="$ld_runpath_switch$ai_p $MCRYPT_SHARED_LIBADD"
                   60896:       else
                   60897: 
                   60898: 
                   60899: 
                   60900:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   60901: 
                   60902:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   60903:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   60904:     eval "LIBPATH$unique=set"
                   60905: 
                   60906:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   60907:     LDFLAGS="$LDFLAGS -L$ai_p"
                   60908:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   60909: 
                   60910:   fi
                   60911: 
                   60912: 
                   60913:       fi
                   60914: 
                   60915:   fi
                   60916: 
                   60917:     fi
                   60918:   else
                   60919: 
                   60920: 
                   60921:   if test -n "$MCRYPT_DIR/$PHP_LIBDIR"; then
                   60922: 
                   60923:   if test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   60924: 
                   60925:   if test -z "$MCRYPT_DIR/$PHP_LIBDIR" || echo "$MCRYPT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   60926:     ai_p=$MCRYPT_DIR/$PHP_LIBDIR
                   60927:   else
                   60928: 
                   60929:     ep_dir="`echo $MCRYPT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   60930: 
                   60931:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   60932:     ai_p="$ep_realdir/`basename \"$MCRYPT_DIR/$PHP_LIBDIR\"`"
                   60933:   fi
                   60934: 
                   60935: 
                   60936: 
                   60937: 
                   60938: 
                   60939:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   60940: 
                   60941:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   60942:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   60943:     eval "LIBPATH$unique=set"
                   60944: 
                   60945:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   60946:     LDFLAGS="$LDFLAGS -L$ai_p"
                   60947:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   60948: 
                   60949:   fi
                   60950: 
                   60951: 
                   60952: 
                   60953:   fi
                   60954: 
                   60955:   fi
                   60956: 
                   60957: 
                   60958:   case mcrypt in
                   60959:   c|c_r|pthread*) ;;
                   60960:   *)
                   60961:       LIBS="-lmcrypt $LIBS"
                   60962:    ;;
                   60963:   esac
                   60964: 
                   60965: 
                   60966: 
                   60967: 
                   60968:   fi
                   60969: 
                   60970: 
                   60971: 
                   60972:   if test "$MCRYPT_DIR/include" != "/usr/include"; then
                   60973: 
                   60974:   if test -z "$MCRYPT_DIR/include" || echo "$MCRYPT_DIR/include" | grep '^/' >/dev/null ; then
                   60975:     ai_p=$MCRYPT_DIR/include
                   60976:   else
                   60977: 
                   60978:     ep_dir="`echo $MCRYPT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   60979: 
                   60980:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   60981:     ai_p="$ep_realdir/`basename \"$MCRYPT_DIR/include\"`"
                   60982:   fi
                   60983: 
                   60984: 
                   60985: 
                   60986:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   60987: 
                   60988:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   60989:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   60990:     eval "INCLUDEPATH$unique=set"
                   60991: 
                   60992:       if test ""; then
                   60993:         INCLUDES="-I$ai_p $INCLUDES"
                   60994:       else
                   60995:         INCLUDES="$INCLUDES -I$ai_p"
                   60996:       fi
                   60997: 
                   60998:   fi
                   60999: 
                   61000:   fi
                   61001: 
                   61002: 
                   61003: 
                   61004:   PHP_VAR_SUBST="$PHP_VAR_SUBST MCRYPT_SHARED_LIBADD"
                   61005: 
                   61006: 
                   61007:   ext_builddir=ext/mcrypt
                   61008:   ext_srcdir=$abs_srcdir/ext/mcrypt
                   61009: 
                   61010:   ac_extra=
                   61011: 
                   61012:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   61013:     PHP_MCRYPT_SHARED=no
                   61014: 
                   61015: 
                   61016:   case ext/mcrypt in
                   61017:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   61018:   /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   61019:   *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   61020:   esac
                   61021: 
                   61022: 
                   61023: 
                   61024:   b_c_pre=$php_c_pre
                   61025:   b_cxx_pre=$php_cxx_pre
                   61026:   b_c_meta=$php_c_meta
                   61027:   b_cxx_meta=$php_cxx_meta
                   61028:   b_c_post=$php_c_post
                   61029:   b_cxx_post=$php_cxx_post
                   61030:   b_lo=$php_lo
                   61031: 
                   61032: 
                   61033:   old_IFS=$IFS
                   61034:   for ac_src in mcrypt.c mcrypt_filter.c; do
                   61035: 
                   61036:       IFS=.
                   61037:       set $ac_src
                   61038:       ac_obj=$1
                   61039:       IFS=$old_IFS
                   61040: 
                   61041:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   61042: 
                   61043:       case $ac_src in
                   61044:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61045:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61046:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61047:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   61048:       esac
                   61049: 
                   61050:     cat >>Makefile.objects<<EOF
                   61051: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   61052:        $ac_comp
                   61053: EOF
                   61054:   done
                   61055: 
                   61056: 
                   61057:     EXT_STATIC="$EXT_STATIC mcrypt"
                   61058:     if test "$ext_shared" != "nocli"; then
                   61059:       EXT_CLI_STATIC="$EXT_CLI_STATIC mcrypt"
                   61060:     fi
                   61061:   else
                   61062:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   61063:       PHP_MCRYPT_SHARED=yes
                   61064: 
                   61065:   case ext/mcrypt in
                   61066:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   61067:   /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   61068:   *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   61069:   esac
                   61070: 
                   61071: 
                   61072: 
                   61073:   b_c_pre=$shared_c_pre
                   61074:   b_cxx_pre=$shared_cxx_pre
                   61075:   b_c_meta=$shared_c_meta
                   61076:   b_cxx_meta=$shared_cxx_meta
                   61077:   b_c_post=$shared_c_post
                   61078:   b_cxx_post=$shared_cxx_post
                   61079:   b_lo=$shared_lo
                   61080: 
                   61081: 
                   61082:   old_IFS=$IFS
                   61083:   for ac_src in mcrypt.c mcrypt_filter.c; do
                   61084: 
                   61085:       IFS=.
                   61086:       set $ac_src
                   61087:       ac_obj=$1
                   61088:       IFS=$old_IFS
                   61089: 
                   61090:       shared_objects_mcrypt="$shared_objects_mcrypt $ac_bdir$ac_obj.lo"
                   61091: 
                   61092:       case $ac_src in
                   61093:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61094:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61095:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61096:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   61097:       esac
                   61098: 
                   61099:     cat >>Makefile.objects<<EOF
                   61100: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   61101:        $ac_comp
                   61102: EOF
                   61103:   done
                   61104: 
                   61105:       case $host_alias in
                   61106:         *netware*)
                   61107: 
                   61108:   install_modules="install-modules"
                   61109: 
                   61110:   case $host_alias in
                   61111:     *aix*)
                   61112:       suffix=so
                   61113:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmcrypt.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) $(PHPMCRYPT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmcrypt.so '$ext_builddir'/phpmcrypt.so'
                   61114:       ;;
                   61115:     *netware*)
                   61116:       suffix=nlm
                   61117:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) -L$(top_builddir)/netware -lphp5lib $(MCRYPT_SHARED_LIBADD)'
                   61118:       ;;
                   61119:     *)
                   61120:       suffix=la
                   61121:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) $(PHPMCRYPT_SHARED_LIBADD)'
                   61122:       ;;
                   61123:   esac
                   61124: 
                   61125:   if test "x" = "xyes"; then
                   61126:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmcrypt.$suffix"
                   61127:   else
                   61128:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmcrypt.$suffix"
                   61129:   fi
                   61130: 
                   61131:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mcrypt"
                   61132: 
                   61133:   cat >>Makefile.objects<<EOF
                   61134: \$(phplibdir)/phpmcrypt.$suffix: $ext_builddir/phpmcrypt.$suffix
                   61135:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpmcrypt.$suffix \$(phplibdir)
                   61136: 
                   61137: $ext_builddir/phpmcrypt.$suffix: \$(shared_objects_mcrypt) \$(PHPMCRYPT_SHARED_DEPENDENCIES)
                   61138:        $link_cmd
                   61139: 
                   61140: EOF
                   61141: 
                   61142:           ;;
                   61143:         *)
                   61144: 
                   61145:   install_modules="install-modules"
                   61146: 
                   61147:   case $host_alias in
                   61148:     *aix*)
                   61149:       suffix=so
                   61150:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mcrypt.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) $(MCRYPT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mcrypt.so '$ext_builddir'/mcrypt.so'
                   61151:       ;;
                   61152:     *netware*)
                   61153:       suffix=nlm
                   61154:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) -L$(top_builddir)/netware -lphp5lib $(YPT_SHARED_LIBADD)'
                   61155:       ;;
                   61156:     *)
                   61157:       suffix=la
                   61158:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) $(MCRYPT_SHARED_LIBADD)'
                   61159:       ;;
                   61160:   esac
                   61161: 
                   61162:   if test "x" = "xyes"; then
                   61163:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mcrypt.$suffix"
                   61164:   else
                   61165:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/mcrypt.$suffix"
                   61166:   fi
                   61167: 
                   61168:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mcrypt"
                   61169: 
                   61170:   cat >>Makefile.objects<<EOF
                   61171: \$(phplibdir)/mcrypt.$suffix: $ext_builddir/mcrypt.$suffix
                   61172:        \$(LIBTOOL) --mode=install cp $ext_builddir/mcrypt.$suffix \$(phplibdir)
                   61173: 
                   61174: $ext_builddir/mcrypt.$suffix: \$(shared_objects_mcrypt) \$(MCRYPT_SHARED_DEPENDENCIES)
                   61175:        $link_cmd
                   61176: 
                   61177: EOF
                   61178: 
                   61179:           ;;
                   61180:       esac
                   61181: 
                   61182: cat >>confdefs.h <<_ACEOF
                   61183: #define COMPILE_DL_MCRYPT 1
                   61184: _ACEOF
                   61185: 
                   61186:     fi
                   61187:   fi
                   61188: 
                   61189:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   61190:     PHP_MCRYPT_SHARED=no
                   61191: 
                   61192: 
                   61193:   case ext/mcrypt in
                   61194:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   61195:   /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   61196:   *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   61197:   esac
                   61198: 
                   61199: 
                   61200: 
                   61201:   b_c_pre=$php_c_pre
                   61202:   b_cxx_pre=$php_cxx_pre
                   61203:   b_c_meta=$php_c_meta
                   61204:   b_cxx_meta=$php_cxx_meta
                   61205:   b_c_post=$php_c_post
                   61206:   b_cxx_post=$php_cxx_post
                   61207:   b_lo=$php_lo
                   61208: 
                   61209: 
                   61210:   old_IFS=$IFS
                   61211:   for ac_src in mcrypt.c mcrypt_filter.c; do
                   61212: 
                   61213:       IFS=.
                   61214:       set $ac_src
                   61215:       ac_obj=$1
                   61216:       IFS=$old_IFS
                   61217: 
1.1.1.2 ! misho    61218:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    61219: 
                   61220:       case $ac_src in
                   61221:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61222:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61223:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61224:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   61225:       esac
                   61226: 
                   61227:     cat >>Makefile.objects<<EOF
                   61228: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   61229:        $ac_comp
                   61230: EOF
                   61231:   done
                   61232: 
                   61233: 
                   61234: 
                   61235: 
                   61236:   case ext/mcrypt in
                   61237:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   61238:   /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   61239:   *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   61240:   esac
                   61241: 
                   61242: 
                   61243: 
                   61244:   b_c_pre=$php_c_pre
                   61245:   b_cxx_pre=$php_cxx_pre
                   61246:   b_c_meta=$php_c_meta
                   61247:   b_cxx_meta=$php_cxx_meta
                   61248:   b_c_post=$php_c_post
                   61249:   b_cxx_post=$php_cxx_post
                   61250:   b_lo=$php_lo
                   61251: 
                   61252: 
                   61253:   old_IFS=$IFS
                   61254:   for ac_src in mcrypt.c mcrypt_filter.c; do
                   61255: 
                   61256:       IFS=.
                   61257:       set $ac_src
                   61258:       ac_obj=$1
                   61259:       IFS=$old_IFS
                   61260: 
1.1.1.2 ! misho    61261:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    61262: 
                   61263:       case $ac_src in
                   61264:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61265:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61266:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61267:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   61268:       esac
                   61269: 
                   61270:     cat >>Makefile.objects<<EOF
                   61271: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   61272:        $ac_comp
                   61273: EOF
                   61274:   done
                   61275: 
                   61276: 
                   61277: 
                   61278: 
                   61279:   case ext/mcrypt in
                   61280:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   61281:   /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   61282:   *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   61283:   esac
                   61284: 
                   61285: 
                   61286: 
                   61287:   b_c_pre=$php_c_pre
                   61288:   b_cxx_pre=$php_cxx_pre
                   61289:   b_c_meta=$php_c_meta
                   61290:   b_cxx_meta=$php_cxx_meta
                   61291:   b_c_post=$php_c_post
                   61292:   b_cxx_post=$php_cxx_post
                   61293:   b_lo=$php_lo
                   61294: 
                   61295: 
                   61296:   old_IFS=$IFS
                   61297:   for ac_src in mcrypt.c mcrypt_filter.c; do
                   61298: 
                   61299:       IFS=.
                   61300:       set $ac_src
                   61301:       ac_obj=$1
                   61302:       IFS=$old_IFS
                   61303: 
1.1.1.2 ! misho    61304:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    61305: 
                   61306:       case $ac_src in
                   61307:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61308:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61309:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61310:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   61311:       esac
                   61312: 
                   61313:     cat >>Makefile.objects<<EOF
                   61314: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   61315:        $ac_comp
                   61316: EOF
                   61317:   done
                   61318: 
                   61319: 
                   61320:     EXT_CLI_STATIC="$EXT_CLI_STATIC mcrypt"
                   61321:   fi
                   61322: 
                   61323: 
                   61324:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   61325: 
                   61326: 
                   61327: 
                   61328:   if test "$ext_builddir" = "."; then
                   61329:     PHP_PECL_EXTENSION=mcrypt
                   61330: 
                   61331:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   61332: 
                   61333:   fi
                   61334: 
                   61335: fi
                   61336: 
                   61337: 
                   61338: 
                   61339: php_with_mssql=no
                   61340: 
                   61341: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSSQL support via FreeTDS" >&5
                   61342: $as_echo_n "checking for MSSQL support via FreeTDS... " >&6; }
                   61343: 
                   61344: # Check whether --with-mssql was given.
                   61345: if test "${with_mssql+set}" = set; then :
                   61346:   withval=$with_mssql; PHP_MSSQL=$withval
                   61347: else
                   61348: 
                   61349:   PHP_MSSQL=no
                   61350:   test "$PHP_ENABLE_ALL" && PHP_MSSQL=$PHP_ENABLE_ALL
                   61351: 
                   61352: fi
                   61353: 
                   61354: 
                   61355: 
                   61356: ext_output="yes, shared"
                   61357: ext_shared=yes
                   61358: case $PHP_MSSQL in
                   61359: shared,*)
                   61360:   PHP_MSSQL=`echo "$PHP_MSSQL"|$SED 's/^shared,//'`
                   61361:   ;;
                   61362: shared)
                   61363:   PHP_MSSQL=yes
                   61364:   ;;
                   61365: no)
                   61366:   ext_output=no
                   61367:   ext_shared=no
                   61368:   ;;
                   61369: *)
                   61370:   ext_output=yes
                   61371:   ext_shared=no
                   61372:   ;;
                   61373: esac
                   61374: 
                   61375: 
                   61376: 
                   61377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   61378: $as_echo "$ext_output" >&6; }
                   61379: 
                   61380: 
                   61381: 
                   61382: 
                   61383: if test "$PHP_MSSQL" != "no"; then
                   61384: 
                   61385:   if test "$PHP_MSSQL" = "yes"; then
                   61386:     for i in /usr/local /usr; do
                   61387:       if test -f $i/include/sybdb.h; then
                   61388:         FREETDS_INSTALLATION_DIR=$i
                   61389:         FREETDS_INCLUDE_DIR=$i/include
                   61390:         break
                   61391:       elif test -f $i/include/freetds/sybdb.h; then
                   61392:         FREETDS_INSTALLATION_DIR=$i
                   61393:         FREETDS_INCLUDE_DIR=$i/include/freetds
                   61394:         break
                   61395:       fi
                   61396:     done
                   61397: 
                   61398:     if test -z "$FREETDS_INSTALLATION_DIR"; then
                   61399:       as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5
                   61400:     fi
                   61401: 
                   61402:   elif test "$PHP_MSSQL" != "no"; then
                   61403: 
                   61404:     if test -f $PHP_MSSQL/include/sybdb.h; then
                   61405:       FREETDS_INSTALLATION_DIR=$PHP_MSSQL
                   61406:       FREETDS_INCLUDE_DIR=$PHP_MSSQL/include
                   61407:     elif test -f $PHP_MSSQL/include/freetds/sybdb.h; then
                   61408:       FREETDS_INSTALLATION_DIR=$PHP_MSSQL
                   61409:       FREETDS_INCLUDE_DIR=$PHP_MSSQL/include/freetds
                   61410:     else
                   61411:       as_fn_error $? "Directory $PHP_MSSQL is not a FreeTDS installation directory" "$LINENO" 5
                   61412:     fi
                   61413:   fi
                   61414: 
                   61415:   if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
                   61416:      as_fn_error $? "Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5
                   61417:   fi
                   61418: 
                   61419: 
                   61420:   if test "$FREETDS_INCLUDE_DIR" != "/usr/include"; then
                   61421: 
                   61422:   if test -z "$FREETDS_INCLUDE_DIR" || echo "$FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then
                   61423:     ai_p=$FREETDS_INCLUDE_DIR
                   61424:   else
                   61425: 
                   61426:     ep_dir="`echo $FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   61427: 
                   61428:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   61429:     ai_p="$ep_realdir/`basename \"$FREETDS_INCLUDE_DIR\"`"
                   61430:   fi
                   61431: 
                   61432: 
                   61433: 
                   61434:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   61435: 
                   61436:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   61437:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   61438:     eval "INCLUDEPATH$unique=set"
                   61439: 
                   61440:       if test ""; then
                   61441:         INCLUDES="-I$ai_p $INCLUDES"
                   61442:       else
                   61443:         INCLUDES="$INCLUDES -I$ai_p"
                   61444:       fi
                   61445: 
                   61446:   fi
                   61447: 
                   61448:   fi
                   61449: 
                   61450: 
                   61451: 
                   61452:   if test "$ext_shared" = "yes"; then
                   61453:     MSSQL_SHARED_LIBADD="-lsybdb $MSSQL_SHARED_LIBADD"
                   61454:     if test -n "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
                   61455: 
                   61456:   if test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   61457: 
                   61458:   if test -z "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   61459:     ai_p=$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
                   61460:   else
                   61461: 
                   61462:     ep_dir="`echo $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   61463: 
                   61464:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   61465:     ai_p="$ep_realdir/`basename \"$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
                   61466:   fi
                   61467: 
                   61468: 
                   61469:       if test "$ext_shared" = "yes"; then
                   61470:         MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD"
                   61471:         test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD"
                   61472:       else
                   61473: 
                   61474: 
                   61475: 
                   61476:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   61477: 
                   61478:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   61479:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   61480:     eval "LIBPATH$unique=set"
                   61481: 
                   61482:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   61483:     LDFLAGS="$LDFLAGS -L$ai_p"
                   61484:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   61485: 
                   61486:   fi
                   61487: 
                   61488: 
                   61489:       fi
                   61490: 
                   61491:   fi
                   61492: 
                   61493:     fi
                   61494:   else
                   61495: 
                   61496: 
                   61497:   if test -n "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
                   61498: 
                   61499:   if test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   61500: 
                   61501:   if test -z "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   61502:     ai_p=$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
                   61503:   else
                   61504: 
                   61505:     ep_dir="`echo $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   61506: 
                   61507:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   61508:     ai_p="$ep_realdir/`basename \"$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
                   61509:   fi
                   61510: 
                   61511: 
                   61512: 
                   61513: 
                   61514: 
                   61515:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   61516: 
                   61517:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   61518:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   61519:     eval "LIBPATH$unique=set"
                   61520: 
                   61521:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   61522:     LDFLAGS="$LDFLAGS -L$ai_p"
                   61523:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   61524: 
                   61525:   fi
                   61526: 
                   61527: 
                   61528: 
                   61529:   fi
                   61530: 
                   61531:   fi
                   61532: 
                   61533: 
                   61534:   case sybdb in
                   61535:   c|c_r|pthread*) ;;
                   61536:   *)
                   61537:       LIBS="-lsybdb $LIBS"
                   61538:    ;;
                   61539:   esac
                   61540: 
                   61541: 
                   61542: 
                   61543: 
                   61544:   fi
                   61545: 
                   61546: 
                   61547: 
                   61548: 
                   61549:   ext_builddir=ext/mssql
                   61550:   ext_srcdir=$abs_srcdir/ext/mssql
                   61551: 
                   61552:   ac_extra=
                   61553: 
                   61554:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   61555:     PHP_MSSQL_SHARED=no
                   61556: 
                   61557: 
                   61558:   case ext/mssql in
                   61559:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   61560:   /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   61561:   *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   61562:   esac
                   61563: 
                   61564: 
                   61565: 
                   61566:   b_c_pre=$php_c_pre
                   61567:   b_cxx_pre=$php_cxx_pre
                   61568:   b_c_meta=$php_c_meta
                   61569:   b_cxx_meta=$php_cxx_meta
                   61570:   b_c_post=$php_c_post
                   61571:   b_cxx_post=$php_cxx_post
                   61572:   b_lo=$php_lo
                   61573: 
                   61574: 
                   61575:   old_IFS=$IFS
                   61576:   for ac_src in php_mssql.c; do
                   61577: 
                   61578:       IFS=.
                   61579:       set $ac_src
                   61580:       ac_obj=$1
                   61581:       IFS=$old_IFS
                   61582: 
                   61583:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   61584: 
                   61585:       case $ac_src in
                   61586:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61587:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61588:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61589:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   61590:       esac
                   61591: 
                   61592:     cat >>Makefile.objects<<EOF
                   61593: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   61594:        $ac_comp
                   61595: EOF
                   61596:   done
                   61597: 
                   61598: 
                   61599:     EXT_STATIC="$EXT_STATIC mssql"
                   61600:     if test "$ext_shared" != "nocli"; then
                   61601:       EXT_CLI_STATIC="$EXT_CLI_STATIC mssql"
                   61602:     fi
                   61603:   else
                   61604:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   61605:       PHP_MSSQL_SHARED=yes
                   61606: 
                   61607:   case ext/mssql in
                   61608:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   61609:   /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   61610:   *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   61611:   esac
                   61612: 
                   61613: 
                   61614: 
                   61615:   b_c_pre=$shared_c_pre
                   61616:   b_cxx_pre=$shared_cxx_pre
                   61617:   b_c_meta=$shared_c_meta
                   61618:   b_cxx_meta=$shared_cxx_meta
                   61619:   b_c_post=$shared_c_post
                   61620:   b_cxx_post=$shared_cxx_post
                   61621:   b_lo=$shared_lo
                   61622: 
                   61623: 
                   61624:   old_IFS=$IFS
                   61625:   for ac_src in php_mssql.c; do
                   61626: 
                   61627:       IFS=.
                   61628:       set $ac_src
                   61629:       ac_obj=$1
                   61630:       IFS=$old_IFS
                   61631: 
                   61632:       shared_objects_mssql="$shared_objects_mssql $ac_bdir$ac_obj.lo"
                   61633: 
                   61634:       case $ac_src in
                   61635:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61636:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61637:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61638:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   61639:       esac
                   61640: 
                   61641:     cat >>Makefile.objects<<EOF
                   61642: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   61643:        $ac_comp
                   61644: EOF
                   61645:   done
                   61646: 
                   61647:       case $host_alias in
                   61648:         *netware*)
                   61649: 
                   61650:   install_modules="install-modules"
                   61651: 
                   61652:   case $host_alias in
                   61653:     *aix*)
                   61654:       suffix=so
                   61655:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmssql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) $(PHPMSSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmssql.so '$ext_builddir'/phpmssql.so'
                   61656:       ;;
                   61657:     *netware*)
                   61658:       suffix=nlm
                   61659:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) -L$(top_builddir)/netware -lphp5lib $(MSSQL_SHARED_LIBADD)'
                   61660:       ;;
                   61661:     *)
                   61662:       suffix=la
                   61663:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) $(PHPMSSQL_SHARED_LIBADD)'
                   61664:       ;;
                   61665:   esac
                   61666: 
                   61667:   if test "x" = "xyes"; then
                   61668:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmssql.$suffix"
                   61669:   else
                   61670:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmssql.$suffix"
                   61671:   fi
                   61672: 
                   61673:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mssql"
                   61674: 
                   61675:   cat >>Makefile.objects<<EOF
                   61676: \$(phplibdir)/phpmssql.$suffix: $ext_builddir/phpmssql.$suffix
                   61677:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpmssql.$suffix \$(phplibdir)
                   61678: 
                   61679: $ext_builddir/phpmssql.$suffix: \$(shared_objects_mssql) \$(PHPMSSQL_SHARED_DEPENDENCIES)
                   61680:        $link_cmd
                   61681: 
                   61682: EOF
                   61683: 
                   61684:           ;;
                   61685:         *)
                   61686: 
                   61687:   install_modules="install-modules"
                   61688: 
                   61689:   case $host_alias in
                   61690:     *aix*)
                   61691:       suffix=so
                   61692:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mssql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) $(MSSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mssql.so '$ext_builddir'/mssql.so'
                   61693:       ;;
                   61694:     *netware*)
                   61695:       suffix=nlm
                   61696:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) -L$(top_builddir)/netware -lphp5lib $(QL_SHARED_LIBADD)'
                   61697:       ;;
                   61698:     *)
                   61699:       suffix=la
                   61700:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) $(MSSQL_SHARED_LIBADD)'
                   61701:       ;;
                   61702:   esac
                   61703: 
                   61704:   if test "x" = "xyes"; then
                   61705:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mssql.$suffix"
                   61706:   else
                   61707:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/mssql.$suffix"
                   61708:   fi
                   61709: 
                   61710:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mssql"
                   61711: 
                   61712:   cat >>Makefile.objects<<EOF
                   61713: \$(phplibdir)/mssql.$suffix: $ext_builddir/mssql.$suffix
                   61714:        \$(LIBTOOL) --mode=install cp $ext_builddir/mssql.$suffix \$(phplibdir)
                   61715: 
                   61716: $ext_builddir/mssql.$suffix: \$(shared_objects_mssql) \$(MSSQL_SHARED_DEPENDENCIES)
                   61717:        $link_cmd
                   61718: 
                   61719: EOF
                   61720: 
                   61721:           ;;
                   61722:       esac
                   61723: 
                   61724: cat >>confdefs.h <<_ACEOF
                   61725: #define COMPILE_DL_MSSQL 1
                   61726: _ACEOF
                   61727: 
                   61728:     fi
                   61729:   fi
                   61730: 
                   61731:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   61732:     PHP_MSSQL_SHARED=no
                   61733: 
                   61734: 
                   61735:   case ext/mssql in
                   61736:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   61737:   /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   61738:   *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   61739:   esac
                   61740: 
                   61741: 
                   61742: 
                   61743:   b_c_pre=$php_c_pre
                   61744:   b_cxx_pre=$php_cxx_pre
                   61745:   b_c_meta=$php_c_meta
                   61746:   b_cxx_meta=$php_cxx_meta
                   61747:   b_c_post=$php_c_post
                   61748:   b_cxx_post=$php_cxx_post
                   61749:   b_lo=$php_lo
                   61750: 
                   61751: 
                   61752:   old_IFS=$IFS
                   61753:   for ac_src in php_mssql.c; do
                   61754: 
                   61755:       IFS=.
                   61756:       set $ac_src
                   61757:       ac_obj=$1
                   61758:       IFS=$old_IFS
                   61759: 
1.1.1.2 ! misho    61760:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    61761: 
                   61762:       case $ac_src in
                   61763:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61764:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61765:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61766:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   61767:       esac
                   61768: 
                   61769:     cat >>Makefile.objects<<EOF
                   61770: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   61771:        $ac_comp
                   61772: EOF
                   61773:   done
                   61774: 
                   61775: 
                   61776: 
                   61777: 
                   61778:   case ext/mssql in
                   61779:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   61780:   /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   61781:   *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   61782:   esac
                   61783: 
                   61784: 
                   61785: 
                   61786:   b_c_pre=$php_c_pre
                   61787:   b_cxx_pre=$php_cxx_pre
                   61788:   b_c_meta=$php_c_meta
                   61789:   b_cxx_meta=$php_cxx_meta
                   61790:   b_c_post=$php_c_post
                   61791:   b_cxx_post=$php_cxx_post
                   61792:   b_lo=$php_lo
                   61793: 
                   61794: 
                   61795:   old_IFS=$IFS
                   61796:   for ac_src in php_mssql.c; do
                   61797: 
                   61798:       IFS=.
                   61799:       set $ac_src
                   61800:       ac_obj=$1
                   61801:       IFS=$old_IFS
                   61802: 
1.1.1.2 ! misho    61803:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    61804: 
                   61805:       case $ac_src in
                   61806:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61807:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61808:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61809:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   61810:       esac
                   61811: 
                   61812:     cat >>Makefile.objects<<EOF
                   61813: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   61814:        $ac_comp
                   61815: EOF
                   61816:   done
                   61817: 
                   61818: 
                   61819: 
                   61820: 
                   61821:   case ext/mssql in
                   61822:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   61823:   /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   61824:   *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   61825:   esac
                   61826: 
                   61827: 
                   61828: 
                   61829:   b_c_pre=$php_c_pre
                   61830:   b_cxx_pre=$php_cxx_pre
                   61831:   b_c_meta=$php_c_meta
                   61832:   b_cxx_meta=$php_cxx_meta
                   61833:   b_c_post=$php_c_post
                   61834:   b_cxx_post=$php_cxx_post
                   61835:   b_lo=$php_lo
                   61836: 
                   61837: 
                   61838:   old_IFS=$IFS
                   61839:   for ac_src in php_mssql.c; do
                   61840: 
                   61841:       IFS=.
                   61842:       set $ac_src
                   61843:       ac_obj=$1
                   61844:       IFS=$old_IFS
                   61845: 
1.1.1.2 ! misho    61846:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    61847: 
                   61848:       case $ac_src in
                   61849:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61850:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61851:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   61852:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   61853:       esac
                   61854: 
                   61855:     cat >>Makefile.objects<<EOF
                   61856: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   61857:        $ac_comp
                   61858: EOF
                   61859:   done
                   61860: 
                   61861: 
                   61862:     EXT_CLI_STATIC="$EXT_CLI_STATIC mssql"
                   61863:   fi
                   61864: 
                   61865: 
                   61866:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   61867: 
                   61868: 
                   61869: 
                   61870:   if test "$ext_builddir" = "."; then
                   61871:     PHP_PECL_EXTENSION=mssql
                   61872: 
                   61873:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   61874: 
                   61875:   fi
                   61876: 
                   61877:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_addr in -ldnet_stub" >&5
                   61878: $as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; }
                   61879: if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then :
                   61880:   $as_echo_n "(cached) " >&6
                   61881: else
                   61882:   ac_check_lib_save_LIBS=$LIBS
                   61883: LIBS="-ldnet_stub  $LIBS"
                   61884: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   61885: /* end confdefs.h.  */
                   61886: 
                   61887: /* Override any GCC internal prototype to avoid an error.
                   61888:    Use char because int might match the return type of a GCC
                   61889:    builtin and then its argument prototype would still apply.  */
                   61890: #ifdef __cplusplus
                   61891: extern "C"
                   61892: #endif
                   61893: char dnet_addr ();
                   61894: int
                   61895: main ()
                   61896: {
                   61897: return dnet_addr ();
                   61898:   ;
                   61899:   return 0;
                   61900: }
                   61901: _ACEOF
                   61902: if ac_fn_c_try_link "$LINENO"; then :
                   61903:   ac_cv_lib_dnet_stub_dnet_addr=yes
                   61904: else
                   61905:   ac_cv_lib_dnet_stub_dnet_addr=no
                   61906: fi
                   61907: rm -f core conftest.err conftest.$ac_objext \
                   61908:     conftest$ac_exeext conftest.$ac_ext
                   61909: LIBS=$ac_check_lib_save_LIBS
                   61910: fi
                   61911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5
                   61912: $as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; }
                   61913: if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then :
                   61914: 
                   61915: 
                   61916:   if test "$ext_shared" = "yes"; then
                   61917:     MSSQL_SHARED_LIBADD="-ldnet_stub $MSSQL_SHARED_LIBADD"
                   61918:     if test -n ""; then
                   61919: 
                   61920:   if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
                   61921: 
                   61922:   if test -z "" || echo "" | grep '^/' >/dev/null ; then
                   61923:     ai_p=
                   61924:   else
                   61925: 
                   61926:     ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
                   61927: 
                   61928:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   61929:     ai_p="$ep_realdir/`basename \"\"`"
                   61930:   fi
                   61931: 
                   61932: 
                   61933:       if test "$ext_shared" = "yes"; then
                   61934:         MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD"
                   61935:         test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD"
                   61936:       else
                   61937: 
                   61938: 
                   61939: 
                   61940:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   61941: 
                   61942:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   61943:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   61944:     eval "LIBPATH$unique=set"
                   61945: 
                   61946:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   61947:     LDFLAGS="$LDFLAGS -L$ai_p"
                   61948:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   61949: 
                   61950:   fi
                   61951: 
                   61952: 
                   61953:       fi
                   61954: 
                   61955:   fi
                   61956: 
                   61957:     fi
                   61958:   else
                   61959: 
                   61960: 
                   61961:   if test -n ""; then
                   61962: 
                   61963:   if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
                   61964: 
                   61965:   if test -z "" || echo "" | grep '^/' >/dev/null ; then
                   61966:     ai_p=
                   61967:   else
                   61968: 
                   61969:     ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
                   61970: 
                   61971:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   61972:     ai_p="$ep_realdir/`basename \"\"`"
                   61973:   fi
                   61974: 
                   61975: 
                   61976: 
                   61977: 
                   61978: 
                   61979:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   61980: 
                   61981:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   61982:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   61983:     eval "LIBPATH$unique=set"
                   61984: 
                   61985:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   61986:     LDFLAGS="$LDFLAGS -L$ai_p"
                   61987:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   61988: 
                   61989:   fi
                   61990: 
                   61991: 
                   61992: 
                   61993:   fi
                   61994: 
                   61995:   fi
                   61996: 
                   61997: 
                   61998:   case dnet_stub in
                   61999:   c|c_r|pthread*) ;;
                   62000:   *)
                   62001:       LIBS="-ldnet_stub $LIBS"
                   62002:    ;;
                   62003:   esac
                   62004: 
                   62005: 
                   62006: 
                   62007: 
                   62008:   fi
                   62009: 
                   62010: 
                   62011: 
                   62012: $as_echo "#define HAVE_LIBDNET_STUB 1" >>confdefs.h
                   62013: 
                   62014: 
                   62015: fi
                   62016: 
                   62017: 
                   62018: $as_echo "#define HAVE_MSSQL 1" >>confdefs.h
                   62019: 
                   62020: 
                   62021: $as_echo "#define HAVE_FREETDS 1" >>confdefs.h
                   62022: 
                   62023: 
                   62024:   PHP_VAR_SUBST="$PHP_VAR_SUBST MSSQL_SHARED_LIBADD"
                   62025: 
                   62026: fi
                   62027: 
                   62028: 
                   62029: 
                   62030: 
                   62031: 
                   62032: 
                   62033: 
                   62034: 
                   62035: php_with_mysql=no
                   62036: 
                   62037: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
                   62038: $as_echo_n "checking for MySQL support... " >&6; }
                   62039: 
                   62040: # Check whether --with-mysql was given.
                   62041: if test "${with_mysql+set}" = set; then :
                   62042:   withval=$with_mysql; PHP_MYSQL=$withval
                   62043: else
                   62044: 
                   62045:   PHP_MYSQL=no
                   62046:   test "$PHP_ENABLE_ALL" && PHP_MYSQL=$PHP_ENABLE_ALL
                   62047: 
                   62048: fi
                   62049: 
                   62050: 
                   62051: 
                   62052: ext_output="yes, shared"
                   62053: ext_shared=yes
                   62054: case $PHP_MYSQL in
                   62055: shared,*)
                   62056:   PHP_MYSQL=`echo "$PHP_MYSQL"|$SED 's/^shared,//'`
                   62057:   ;;
                   62058: shared)
                   62059:   PHP_MYSQL=yes
                   62060:   ;;
                   62061: no)
                   62062:   ext_output=no
                   62063:   ext_shared=no
                   62064:   ;;
                   62065: *)
                   62066:   ext_output=yes
                   62067:   ext_shared=no
                   62068:   ;;
                   62069: esac
                   62070: 
                   62071: 
                   62072: 
                   62073: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   62074: $as_echo "$ext_output" >&6; }
                   62075: 
                   62076: 
                   62077: 
                   62078: 
                   62079: 
                   62080: php_with_mysql_sock=no
                   62081: 
                   62082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for specified location of the MySQL UNIX socket" >&5
                   62083: $as_echo_n "checking for specified location of the MySQL UNIX socket... " >&6; }
                   62084: 
                   62085: # Check whether --with-mysql-sock was given.
                   62086: if test "${with_mysql_sock+set}" = set; then :
                   62087:   withval=$with_mysql_sock; PHP_MYSQL_SOCK=$withval
                   62088: else
                   62089: 
                   62090:   PHP_MYSQL_SOCK=no
                   62091: 
                   62092: 
                   62093: fi
                   62094: 
                   62095: 
                   62096: ext_output=$PHP_MYSQL_SOCK
                   62097: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   62098: $as_echo "$ext_output" >&6; }
                   62099: 
                   62100: 
                   62101: 
                   62102: 
                   62103: if test -z "$PHP_ZLIB_DIR"; then
                   62104: 
                   62105: php_with_zlib_dir=no
                   62106: 
                   62107: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
                   62108: $as_echo_n "checking for the location of libz... " >&6; }
                   62109: 
                   62110: # Check whether --with-zlib-dir was given.
                   62111: if test "${with_zlib_dir+set}" = set; then :
                   62112:   withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
                   62113: else
                   62114: 
                   62115:   PHP_ZLIB_DIR=no
                   62116: 
                   62117: 
                   62118: fi
                   62119: 
                   62120: 
                   62121: ext_output=$PHP_ZLIB_DIR
                   62122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   62123: $as_echo "$ext_output" >&6; }
                   62124: 
                   62125: 
                   62126: 
                   62127: fi
                   62128: 
1.1.1.2 ! misho    62129: if test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL" = "mysqlnd"; then
1.1       misho    62130:     PHP_MYSQLND_ENABLED=yes
                   62131: 
                   62132: elif test "$PHP_MYSQL" != "no"; then
                   62133:   MYSQL_DIR=
                   62134:   MYSQL_INC_DIR=
                   62135: 
1.1.1.2 ! misho    62136:   if test -r $PHP_MYSQL/include/mysql/mysql.h; then
        !          62137:     MYSQL_DIR=$PHP_MYSQL
        !          62138:     MYSQL_INC_DIR=$PHP_MYSQL/include/mysql
        !          62139:     break
        !          62140:   elif test -r $PHP_MYSQL/include/mysql.h; then
        !          62141:     MYSQL_DIR=$PHP_MYSQL
        !          62142:     MYSQL_INC_DIR=$PHP_MYSQL/include
        !          62143:     break
        !          62144:   fi
1.1       misho    62145: 
                   62146:   if test -z "$MYSQL_DIR"; then
                   62147:     as_fn_error $? "Cannot find MySQL header files under $PHP_MYSQL.
                   62148: Note that the MySQL client library is not bundled anymore!" "$LINENO" 5
                   62149:   fi
                   62150: 
                   62151:   if test "$enable_maintainer_zts" = "yes"; then
                   62152:     MYSQL_LIBNAME=mysqlclient_r
                   62153:   else
                   62154:     MYSQL_LIBNAME=mysqlclient
                   62155:   fi
                   62156:   case $host_alias in
                   62157:     *netware*)
                   62158:       MYSQL_LIBNAME=mysql
                   62159:       ;;
                   62160:   esac
                   62161: 
                   62162:     if test -z "$PHP_LIBDIR"; then
                   62163:     PHP_LIBDIR=lib
                   62164:   fi
                   62165: 
                   62166:   for i in $PHP_LIBDIR $PHP_LIBDIR/mysql; do
                   62167: 
                   62168:   str="$MYSQL_DIR/$i/lib$MYSQL_LIBNAME.*"
                   62169:   for j in `echo $str`; do
                   62170:     if test -r $j; then
                   62171:       MYSQL_LIB_DIR=$MYSQL_DIR/$i
                   62172:       break 2
                   62173:     fi
                   62174:   done
                   62175: 
                   62176:   done
                   62177: 
                   62178:   if test -z "$MYSQL_LIB_DIR"; then
                   62179:     as_fn_error $? "Cannot find lib$MYSQL_LIBNAME under $MYSQL_DIR.
                   62180: Note that the MySQL client library is not bundled anymore!" "$LINENO" 5
                   62181:   fi
                   62182: 
                   62183: 
                   62184:   save_old_LDFLAGS=$LDFLAGS
                   62185:   ac_stuff="
                   62186:     -L$MYSQL_LIB_DIR
                   62187:   "
                   62188: 
                   62189:   save_ext_shared=$ext_shared
                   62190:   ext_shared=yes
                   62191: 
                   62192:   for ac_i in $ac_stuff; do
                   62193:     case $ac_i in
                   62194:     -pthread)
                   62195:       if test "$ext_shared" = "yes"; then
                   62196:         LDFLAGS="$LDFLAGS -pthread"
                   62197:       else
                   62198: 
                   62199: 
                   62200:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   62201: 
                   62202:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   62203:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   62204:     eval "EXTRA_LDFLAGS$unique=set"
                   62205:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   62206:   fi
                   62207: 
                   62208:       fi
                   62209:     ;;
                   62210:     -l*)
                   62211:       ac_ii=`echo $ac_i|cut -c 3-`
                   62212: 
                   62213: 
                   62214:   case $ac_ii in
                   62215:   c|c_r|pthread*) ;;
                   62216:   *)
                   62217:     if test "$ext_shared" = "yes"; then
                   62218:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   62219:     else
                   62220: 
                   62221: 
                   62222:   case $ac_ii in
                   62223:   c|c_r|pthread*) ;;
                   62224:   *)
                   62225:       LIBS="$LIBS -l$ac_ii"
                   62226:    ;;
                   62227:   esac
                   62228: 
                   62229: 
                   62230:     fi
                   62231:    ;;
                   62232:   esac
                   62233: 
                   62234: 
                   62235:     ;;
                   62236:     -L*)
                   62237:       ac_ii=`echo $ac_i|cut -c 3-`
                   62238: 
                   62239:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   62240: 
                   62241:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   62242:     ai_p=$ac_ii
                   62243:   else
                   62244: 
                   62245:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   62246: 
                   62247:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   62248:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   62249:   fi
                   62250: 
                   62251: 
                   62252:       if test "$ext_shared" = "yes"; then
                   62253:         LDFLAGS="-L$ai_p $LDFLAGS"
                   62254:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   62255:       else
                   62256: 
                   62257: 
                   62258: 
                   62259:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   62260: 
                   62261:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   62262:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   62263:     eval "LIBPATH$unique=set"
                   62264: 
                   62265:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   62266:     LDFLAGS="$LDFLAGS -L$ai_p"
                   62267:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   62268: 
                   62269:   fi
                   62270: 
                   62271: 
                   62272:       fi
                   62273: 
                   62274:   fi
                   62275: 
                   62276:     ;;
                   62277:     esac
                   62278:   done
                   62279: 
                   62280:   as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_close" | $as_tr_sh`
                   62281: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_close in -l$MYSQL_LIBNAME" >&5
                   62282: $as_echo_n "checking for mysql_close in -l$MYSQL_LIBNAME... " >&6; }
                   62283: if eval \${$as_ac_Lib+:} false; then :
                   62284:   $as_echo_n "(cached) " >&6
                   62285: else
                   62286:   ac_check_lib_save_LIBS=$LIBS
                   62287: LIBS="-l$MYSQL_LIBNAME  $LIBS"
                   62288: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   62289: /* end confdefs.h.  */
                   62290: 
                   62291: /* Override any GCC internal prototype to avoid an error.
                   62292:    Use char because int might match the return type of a GCC
                   62293:    builtin and then its argument prototype would still apply.  */
                   62294: #ifdef __cplusplus
                   62295: extern "C"
                   62296: #endif
                   62297: char mysql_close ();
                   62298: int
                   62299: main ()
                   62300: {
                   62301: return mysql_close ();
                   62302:   ;
                   62303:   return 0;
                   62304: }
                   62305: _ACEOF
                   62306: if ac_fn_c_try_link "$LINENO"; then :
                   62307:   eval "$as_ac_Lib=yes"
                   62308: else
                   62309:   eval "$as_ac_Lib=no"
                   62310: fi
                   62311: rm -f core conftest.err conftest.$ac_objext \
                   62312:     conftest$ac_exeext conftest.$ac_ext
                   62313: LIBS=$ac_check_lib_save_LIBS
                   62314: fi
                   62315: eval ac_res=\$$as_ac_Lib
                   62316:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   62317: $as_echo "$ac_res" >&6; }
                   62318: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   62319: 
                   62320:     LDFLAGS=$save_old_LDFLAGS
                   62321:     ext_shared=$save_ext_shared
                   62322: 
                   62323: 
                   62324: else
                   62325: 
                   62326:     LDFLAGS=$save_old_LDFLAGS
                   62327:     ext_shared=$save_ext_shared
                   62328:     unset ac_cv_lib_$MYSQL_LIBNAME_mysql_close
                   62329: 
                   62330:     if test "$PHP_ZLIB_DIR" != "no"; then
                   62331: 
                   62332: 
                   62333:   if test "$ext_shared" = "yes"; then
                   62334:     MYSQL_SHARED_LIBADD="-lz $MYSQL_SHARED_LIBADD"
                   62335:     if test -n "$PHP_ZLIB_DIR"; then
                   62336: 
                   62337:   if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
                   62338: 
                   62339:   if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
                   62340:     ai_p=$PHP_ZLIB_DIR
                   62341:   else
                   62342: 
                   62343:     ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   62344: 
                   62345:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   62346:     ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
                   62347:   fi
                   62348: 
                   62349: 
                   62350:       if test "$ext_shared" = "yes"; then
                   62351:         MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD"
                   62352:         test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD"
                   62353:       else
                   62354: 
                   62355: 
                   62356: 
                   62357:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   62358: 
                   62359:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   62360:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   62361:     eval "LIBPATH$unique=set"
                   62362: 
                   62363:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   62364:     LDFLAGS="$LDFLAGS -L$ai_p"
                   62365:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   62366: 
                   62367:   fi
                   62368: 
                   62369: 
                   62370:       fi
                   62371: 
                   62372:   fi
                   62373: 
                   62374:     fi
                   62375:   else
                   62376: 
                   62377: 
                   62378:   if test -n "$PHP_ZLIB_DIR"; then
                   62379: 
                   62380:   if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
                   62381: 
                   62382:   if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
                   62383:     ai_p=$PHP_ZLIB_DIR
                   62384:   else
                   62385: 
                   62386:     ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   62387: 
                   62388:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   62389:     ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
                   62390:   fi
                   62391: 
                   62392: 
                   62393: 
                   62394: 
                   62395: 
                   62396:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   62397: 
                   62398:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   62399:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   62400:     eval "LIBPATH$unique=set"
                   62401: 
                   62402:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   62403:     LDFLAGS="$LDFLAGS -L$ai_p"
                   62404:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   62405: 
                   62406:   fi
                   62407: 
                   62408: 
                   62409: 
                   62410:   fi
                   62411: 
                   62412:   fi
                   62413: 
                   62414: 
                   62415:   case z in
                   62416:   c|c_r|pthread*) ;;
                   62417:   *)
                   62418:       LIBS="-lz $LIBS"
                   62419:    ;;
                   62420:   esac
                   62421: 
                   62422: 
                   62423: 
                   62424: 
                   62425:   fi
                   62426: 
                   62427: 
                   62428: 
                   62429:   save_old_LDFLAGS=$LDFLAGS
                   62430:   ac_stuff="
                   62431:         -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$MYSQL_LIB_DIR
                   62432:       "
                   62433: 
                   62434:   save_ext_shared=$ext_shared
                   62435:   ext_shared=yes
                   62436: 
                   62437:   for ac_i in $ac_stuff; do
                   62438:     case $ac_i in
                   62439:     -pthread)
                   62440:       if test "$ext_shared" = "yes"; then
                   62441:         LDFLAGS="$LDFLAGS -pthread"
                   62442:       else
                   62443: 
                   62444: 
                   62445:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   62446: 
                   62447:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   62448:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   62449:     eval "EXTRA_LDFLAGS$unique=set"
                   62450:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   62451:   fi
                   62452: 
                   62453:       fi
                   62454:     ;;
                   62455:     -l*)
                   62456:       ac_ii=`echo $ac_i|cut -c 3-`
                   62457: 
                   62458: 
                   62459:   case $ac_ii in
                   62460:   c|c_r|pthread*) ;;
                   62461:   *)
                   62462:     if test "$ext_shared" = "yes"; then
                   62463:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   62464:     else
                   62465: 
                   62466: 
                   62467:   case $ac_ii in
                   62468:   c|c_r|pthread*) ;;
                   62469:   *)
                   62470:       LIBS="$LIBS -l$ac_ii"
                   62471:    ;;
                   62472:   esac
                   62473: 
                   62474: 
                   62475:     fi
                   62476:    ;;
                   62477:   esac
                   62478: 
                   62479: 
                   62480:     ;;
                   62481:     -L*)
                   62482:       ac_ii=`echo $ac_i|cut -c 3-`
                   62483: 
                   62484:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   62485: 
                   62486:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   62487:     ai_p=$ac_ii
                   62488:   else
                   62489: 
                   62490:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   62491: 
                   62492:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   62493:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   62494:   fi
                   62495: 
                   62496: 
                   62497:       if test "$ext_shared" = "yes"; then
                   62498:         LDFLAGS="-L$ai_p $LDFLAGS"
                   62499:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   62500:       else
                   62501: 
                   62502: 
                   62503: 
                   62504:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   62505: 
                   62506:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   62507:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   62508:     eval "LIBPATH$unique=set"
                   62509: 
                   62510:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   62511:     LDFLAGS="$LDFLAGS -L$ai_p"
                   62512:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   62513: 
                   62514:   fi
                   62515: 
                   62516: 
                   62517:       fi
                   62518: 
                   62519:   fi
                   62520: 
                   62521:     ;;
                   62522:     esac
                   62523:   done
                   62524: 
                   62525:   as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_error" | $as_tr_sh`
                   62526: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_error in -l$MYSQL_LIBNAME" >&5
                   62527: $as_echo_n "checking for mysql_error in -l$MYSQL_LIBNAME... " >&6; }
                   62528: if eval \${$as_ac_Lib+:} false; then :
                   62529:   $as_echo_n "(cached) " >&6
                   62530: else
                   62531:   ac_check_lib_save_LIBS=$LIBS
                   62532: LIBS="-l$MYSQL_LIBNAME  $LIBS"
                   62533: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   62534: /* end confdefs.h.  */
                   62535: 
                   62536: /* Override any GCC internal prototype to avoid an error.
                   62537:    Use char because int might match the return type of a GCC
                   62538:    builtin and then its argument prototype would still apply.  */
                   62539: #ifdef __cplusplus
                   62540: extern "C"
                   62541: #endif
                   62542: char mysql_error ();
                   62543: int
                   62544: main ()
                   62545: {
                   62546: return mysql_error ();
                   62547:   ;
                   62548:   return 0;
                   62549: }
                   62550: _ACEOF
                   62551: if ac_fn_c_try_link "$LINENO"; then :
                   62552:   eval "$as_ac_Lib=yes"
                   62553: else
                   62554:   eval "$as_ac_Lib=no"
                   62555: fi
                   62556: rm -f core conftest.err conftest.$ac_objext \
                   62557:     conftest$ac_exeext conftest.$ac_ext
                   62558: LIBS=$ac_check_lib_save_LIBS
                   62559: fi
                   62560: eval ac_res=\$$as_ac_Lib
                   62561:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   62562: $as_echo "$ac_res" >&6; }
                   62563: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   62564: 
                   62565:     LDFLAGS=$save_old_LDFLAGS
                   62566:     ext_shared=$save_ext_shared
                   62567: 
                   62568: 
                   62569: else
                   62570: 
                   62571:     LDFLAGS=$save_old_LDFLAGS
                   62572:     ext_shared=$save_ext_shared
                   62573:     unset ac_cv_lib_$MYSQL_LIBNAME_mysql_error
                   62574: 
                   62575:         as_fn_error $? "mysql configure failed. Please check config.log for more information." "$LINENO" 5
                   62576: 
                   62577: 
                   62578: fi
                   62579: 
                   62580:       MYSQL_LIBS="-L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz"
                   62581:     else
                   62582: 
                   62583: 
                   62584:   case z in
                   62585:   c|c_r|pthread*) ;;
                   62586:   *)
                   62587:     if test "$ext_shared" = "yes"; then
                   62588:         MYSQL_SHARED_LIBADD="-lz $MYSQL_SHARED_LIBADD"
                   62589:     else
                   62590: 
                   62591: 
                   62592:   case z in
                   62593:   c|c_r|pthread*) ;;
                   62594:   *)
                   62595:       LIBS="-lz $LIBS"
                   62596:    ;;
                   62597:   esac
                   62598: 
                   62599: 
                   62600:     fi
                   62601:    ;;
                   62602:   esac
                   62603: 
                   62604: 
                   62605: 
                   62606:   save_old_LDFLAGS=$LDFLAGS
                   62607:   ac_stuff="
                   62608:         -L$MYSQL_LIB_DIR
                   62609:       "
                   62610: 
                   62611:   save_ext_shared=$ext_shared
                   62612:   ext_shared=yes
                   62613: 
                   62614:   for ac_i in $ac_stuff; do
                   62615:     case $ac_i in
                   62616:     -pthread)
                   62617:       if test "$ext_shared" = "yes"; then
                   62618:         LDFLAGS="$LDFLAGS -pthread"
                   62619:       else
                   62620: 
                   62621: 
                   62622:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   62623: 
                   62624:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   62625:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   62626:     eval "EXTRA_LDFLAGS$unique=set"
                   62627:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   62628:   fi
                   62629: 
                   62630:       fi
                   62631:     ;;
                   62632:     -l*)
                   62633:       ac_ii=`echo $ac_i|cut -c 3-`
                   62634: 
                   62635: 
                   62636:   case $ac_ii in
                   62637:   c|c_r|pthread*) ;;
                   62638:   *)
                   62639:     if test "$ext_shared" = "yes"; then
                   62640:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   62641:     else
                   62642: 
                   62643: 
                   62644:   case $ac_ii in
                   62645:   c|c_r|pthread*) ;;
                   62646:   *)
                   62647:       LIBS="$LIBS -l$ac_ii"
                   62648:    ;;
                   62649:   esac
                   62650: 
                   62651: 
                   62652:     fi
                   62653:    ;;
                   62654:   esac
                   62655: 
                   62656: 
                   62657:     ;;
                   62658:     -L*)
                   62659:       ac_ii=`echo $ac_i|cut -c 3-`
                   62660: 
                   62661:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   62662: 
                   62663:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   62664:     ai_p=$ac_ii
                   62665:   else
                   62666: 
                   62667:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   62668: 
                   62669:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   62670:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   62671:   fi
                   62672: 
                   62673: 
                   62674:       if test "$ext_shared" = "yes"; then
                   62675:         LDFLAGS="-L$ai_p $LDFLAGS"
                   62676:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   62677:       else
                   62678: 
                   62679: 
                   62680: 
                   62681:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   62682: 
                   62683:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   62684:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   62685:     eval "LIBPATH$unique=set"
                   62686: 
                   62687:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   62688:     LDFLAGS="$LDFLAGS -L$ai_p"
                   62689:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   62690: 
                   62691:   fi
                   62692: 
                   62693: 
                   62694:       fi
                   62695: 
                   62696:   fi
                   62697: 
                   62698:     ;;
                   62699:     esac
                   62700:   done
                   62701: 
                   62702:   as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_errno" | $as_tr_sh`
                   62703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_errno in -l$MYSQL_LIBNAME" >&5
                   62704: $as_echo_n "checking for mysql_errno in -l$MYSQL_LIBNAME... " >&6; }
                   62705: if eval \${$as_ac_Lib+:} false; then :
                   62706:   $as_echo_n "(cached) " >&6
                   62707: else
                   62708:   ac_check_lib_save_LIBS=$LIBS
                   62709: LIBS="-l$MYSQL_LIBNAME  $LIBS"
                   62710: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   62711: /* end confdefs.h.  */
                   62712: 
                   62713: /* Override any GCC internal prototype to avoid an error.
                   62714:    Use char because int might match the return type of a GCC
                   62715:    builtin and then its argument prototype would still apply.  */
                   62716: #ifdef __cplusplus
                   62717: extern "C"
                   62718: #endif
                   62719: char mysql_errno ();
                   62720: int
                   62721: main ()
                   62722: {
                   62723: return mysql_errno ();
                   62724:   ;
                   62725:   return 0;
                   62726: }
                   62727: _ACEOF
                   62728: if ac_fn_c_try_link "$LINENO"; then :
                   62729:   eval "$as_ac_Lib=yes"
                   62730: else
                   62731:   eval "$as_ac_Lib=no"
                   62732: fi
                   62733: rm -f core conftest.err conftest.$ac_objext \
                   62734:     conftest$ac_exeext conftest.$ac_ext
                   62735: LIBS=$ac_check_lib_save_LIBS
                   62736: fi
                   62737: eval ac_res=\$$as_ac_Lib
                   62738:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   62739: $as_echo "$ac_res" >&6; }
                   62740: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   62741: 
                   62742:     LDFLAGS=$save_old_LDFLAGS
                   62743:     ext_shared=$save_ext_shared
                   62744: 
                   62745: 
                   62746: else
                   62747: 
                   62748:     LDFLAGS=$save_old_LDFLAGS
                   62749:     ext_shared=$save_ext_shared
                   62750:     unset ac_cv_lib_$MYSQL_LIBNAME_mysql_errno
                   62751: 
                   62752:         as_fn_error $? "Try adding --with-zlib-dir=<DIR>. Please check config.log for more information." "$LINENO" 5
                   62753: 
                   62754: 
                   62755: fi
                   62756: 
                   62757:       MYSQL_LIBS="-lz"
                   62758:     fi
                   62759: 
                   62760: 
                   62761: fi
                   62762: 
                   62763: 
                   62764: 
                   62765: 
                   62766:   if test "$ext_shared" = "yes"; then
                   62767:     MYSQL_SHARED_LIBADD="-l$MYSQL_LIBNAME $MYSQL_SHARED_LIBADD"
                   62768:     if test -n "$MYSQL_LIB_DIR"; then
                   62769: 
                   62770:   if test "$MYSQL_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$MYSQL_LIB_DIR" != "/usr/lib"; then
                   62771: 
                   62772:   if test -z "$MYSQL_LIB_DIR" || echo "$MYSQL_LIB_DIR" | grep '^/' >/dev/null ; then
                   62773:     ai_p=$MYSQL_LIB_DIR
                   62774:   else
                   62775: 
                   62776:     ep_dir="`echo $MYSQL_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   62777: 
                   62778:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   62779:     ai_p="$ep_realdir/`basename \"$MYSQL_LIB_DIR\"`"
                   62780:   fi
                   62781: 
                   62782: 
                   62783:       if test "$ext_shared" = "yes"; then
                   62784:         MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD"
                   62785:         test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD"
                   62786:       else
                   62787: 
                   62788: 
                   62789: 
                   62790:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   62791: 
                   62792:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   62793:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   62794:     eval "LIBPATH$unique=set"
                   62795: 
                   62796:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   62797:     LDFLAGS="$LDFLAGS -L$ai_p"
                   62798:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   62799: 
                   62800:   fi
                   62801: 
                   62802: 
                   62803:       fi
                   62804: 
                   62805:   fi
                   62806: 
                   62807:     fi
                   62808:   else
                   62809: 
                   62810: 
                   62811:   if test -n "$MYSQL_LIB_DIR"; then
                   62812: 
                   62813:   if test "$MYSQL_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$MYSQL_LIB_DIR" != "/usr/lib"; then
                   62814: 
                   62815:   if test -z "$MYSQL_LIB_DIR" || echo "$MYSQL_LIB_DIR" | grep '^/' >/dev/null ; then
                   62816:     ai_p=$MYSQL_LIB_DIR
                   62817:   else
                   62818: 
                   62819:     ep_dir="`echo $MYSQL_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   62820: 
                   62821:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   62822:     ai_p="$ep_realdir/`basename \"$MYSQL_LIB_DIR\"`"
                   62823:   fi
                   62824: 
                   62825: 
                   62826: 
                   62827: 
                   62828: 
                   62829:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   62830: 
                   62831:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   62832:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   62833:     eval "LIBPATH$unique=set"
                   62834: 
                   62835:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   62836:     LDFLAGS="$LDFLAGS -L$ai_p"
                   62837:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   62838: 
                   62839:   fi
                   62840: 
                   62841: 
                   62842: 
                   62843:   fi
                   62844: 
                   62845:   fi
                   62846: 
                   62847: 
                   62848:   case $MYSQL_LIBNAME in
                   62849:   c|c_r|pthread*) ;;
                   62850:   *)
                   62851:       LIBS="-l$MYSQL_LIBNAME $LIBS"
                   62852:    ;;
                   62853:   esac
                   62854: 
                   62855: 
                   62856: 
                   62857: 
                   62858:   fi
                   62859: 
                   62860: 
                   62861: 
                   62862:   if test "$MYSQL_INC_DIR" != "/usr/include"; then
                   62863: 
                   62864:   if test -z "$MYSQL_INC_DIR" || echo "$MYSQL_INC_DIR" | grep '^/' >/dev/null ; then
                   62865:     ai_p=$MYSQL_INC_DIR
                   62866:   else
                   62867: 
                   62868:     ep_dir="`echo $MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   62869: 
                   62870:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   62871:     ai_p="$ep_realdir/`basename \"$MYSQL_INC_DIR\"`"
                   62872:   fi
                   62873: 
                   62874: 
                   62875: 
                   62876:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   62877: 
                   62878:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   62879:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   62880:     eval "INCLUDEPATH$unique=set"
                   62881: 
                   62882:       if test ""; then
                   62883:         INCLUDES="-I$ai_p $INCLUDES"
                   62884:       else
                   62885:         INCLUDES="$INCLUDES -I$ai_p"
                   62886:       fi
                   62887: 
                   62888:   fi
                   62889: 
                   62890:   fi
                   62891: 
                   62892: 
                   62893:   MYSQL_MODULE_TYPE=external
                   62894:   MYSQL_LIBS="-L$MYSQL_LIB_DIR -l$MYSQL_LIBNAME $MYSQL_LIBS"
                   62895:   MYSQL_INCLUDE=-I$MYSQL_INC_DIR
                   62896: 
                   62897: 
                   62898: 
                   62899:   PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_MODULE_TYPE"
                   62900: 
                   62901: 
                   62902: 
                   62903: 
                   62904: 
                   62905:   PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_LIBS"
                   62906: 
                   62907: 
                   62908: 
                   62909: 
                   62910: 
                   62911:   PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_INCLUDE"
                   62912: 
                   62913: 
                   62914: 
                   62915: fi
                   62916: 
                   62917: if test "$PHP_MYSQL" != "no"; then
                   62918:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL UNIX socket location" >&5
                   62919: $as_echo_n "checking for MySQL UNIX socket location... " >&6; }
                   62920:   if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then
                   62921:     MYSQL_SOCK=$PHP_MYSQL_SOCK
                   62922: 
                   62923: cat >>confdefs.h <<_ACEOF
                   62924: #define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK"
                   62925: _ACEOF
                   62926: 
                   62927:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5
                   62928: $as_echo "$MYSQL_SOCK" >&6; }
                   62929:   elif test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL_SOCK" = "yes"; then
                   62930: 
                   62931:   for i in  \
                   62932:     /var/run/mysqld/mysqld.sock \
                   62933:     /var/tmp/mysql.sock \
                   62934:     /var/run/mysql/mysql.sock \
                   62935:     /var/lib/mysql/mysql.sock \
                   62936:     /var/mysql/mysql.sock \
                   62937:     /usr/local/mysql/var/mysql.sock \
                   62938:     /Private/tmp/mysql.sock \
                   62939:     /private/tmp/mysql.sock \
                   62940:     /tmp/mysql.sock \
                   62941:   ; do
                   62942:     if test -r $i; then
                   62943:       MYSQL_SOCK=$i
                   62944:       break 2
                   62945:     fi
                   62946:   done
                   62947: 
                   62948:   if test -n "$MYSQL_SOCK"; then
                   62949: 
                   62950: cat >>confdefs.h <<_ACEOF
                   62951: #define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK"
                   62952: _ACEOF
                   62953: 
                   62954:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5
                   62955: $as_echo "$MYSQL_SOCK" >&6; }
                   62956:   else
                   62957:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   62958: $as_echo "no" >&6; }
                   62959:   fi
                   62960: 
                   62961:   else
                   62962:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   62963: $as_echo "no" >&6; }
                   62964:   fi
                   62965: 
                   62966: 
                   62967: $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
                   62968: 
                   62969: 
                   62970:   ext_builddir=ext/mysql
                   62971:   ext_srcdir=$abs_srcdir/ext/mysql
                   62972: 
                   62973:   ac_extra=
                   62974: 
                   62975:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   62976:     PHP_MYSQL_SHARED=no
                   62977: 
                   62978: 
                   62979:   case ext/mysql in
                   62980:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   62981:   /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   62982:   *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   62983:   esac
                   62984: 
                   62985: 
                   62986: 
                   62987:   b_c_pre=$php_c_pre
                   62988:   b_cxx_pre=$php_cxx_pre
                   62989:   b_c_meta=$php_c_meta
                   62990:   b_cxx_meta=$php_cxx_meta
                   62991:   b_c_post=$php_c_post
                   62992:   b_cxx_post=$php_cxx_post
                   62993:   b_lo=$php_lo
                   62994: 
                   62995: 
                   62996:   old_IFS=$IFS
                   62997:   for ac_src in php_mysql.c; do
                   62998: 
                   62999:       IFS=.
                   63000:       set $ac_src
                   63001:       ac_obj=$1
                   63002:       IFS=$old_IFS
                   63003: 
                   63004:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   63005: 
                   63006:       case $ac_src in
                   63007:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   63008:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   63009:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   63010:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   63011:       esac
                   63012: 
                   63013:     cat >>Makefile.objects<<EOF
                   63014: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   63015:        $ac_comp
                   63016: EOF
                   63017:   done
                   63018: 
                   63019: 
                   63020:     EXT_STATIC="$EXT_STATIC mysql"
                   63021:     if test "$ext_shared" != "nocli"; then
                   63022:       EXT_CLI_STATIC="$EXT_CLI_STATIC mysql"
                   63023:     fi
                   63024:   else
                   63025:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   63026:       PHP_MYSQL_SHARED=yes
                   63027: 
                   63028:   case ext/mysql in
                   63029:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   63030:   /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   63031:   *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   63032:   esac
                   63033: 
                   63034: 
                   63035: 
                   63036:   b_c_pre=$shared_c_pre
                   63037:   b_cxx_pre=$shared_cxx_pre
                   63038:   b_c_meta=$shared_c_meta
                   63039:   b_cxx_meta=$shared_cxx_meta
                   63040:   b_c_post=$shared_c_post
                   63041:   b_cxx_post=$shared_cxx_post
                   63042:   b_lo=$shared_lo
                   63043: 
                   63044: 
                   63045:   old_IFS=$IFS
                   63046:   for ac_src in php_mysql.c; do
                   63047: 
                   63048:       IFS=.
                   63049:       set $ac_src
                   63050:       ac_obj=$1
                   63051:       IFS=$old_IFS
                   63052: 
                   63053:       shared_objects_mysql="$shared_objects_mysql $ac_bdir$ac_obj.lo"
                   63054: 
                   63055:       case $ac_src in
                   63056:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   63057:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   63058:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   63059:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   63060:       esac
                   63061: 
                   63062:     cat >>Makefile.objects<<EOF
                   63063: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   63064:        $ac_comp
                   63065: EOF
                   63066:   done
                   63067: 
                   63068:       case $host_alias in
                   63069:         *netware*)
                   63070: 
                   63071:   install_modules="install-modules"
                   63072: 
                   63073:   case $host_alias in
                   63074:     *aix*)
                   63075:       suffix=so
                   63076:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmysql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) $(PHPMYSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmysql.so '$ext_builddir'/phpmysql.so'
                   63077:       ;;
                   63078:     *netware*)
                   63079:       suffix=nlm
                   63080:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) -L$(top_builddir)/netware -lphp5lib $(MYSQL_SHARED_LIBADD)'
                   63081:       ;;
                   63082:     *)
                   63083:       suffix=la
                   63084:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) $(PHPMYSQL_SHARED_LIBADD)'
                   63085:       ;;
                   63086:   esac
                   63087: 
                   63088:   if test "x" = "xyes"; then
                   63089:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmysql.$suffix"
                   63090:   else
                   63091:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmysql.$suffix"
                   63092:   fi
                   63093: 
                   63094:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysql"
                   63095: 
                   63096:   cat >>Makefile.objects<<EOF
                   63097: \$(phplibdir)/phpmysql.$suffix: $ext_builddir/phpmysql.$suffix
                   63098:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpmysql.$suffix \$(phplibdir)
                   63099: 
                   63100: $ext_builddir/phpmysql.$suffix: \$(shared_objects_mysql) \$(PHPMYSQL_SHARED_DEPENDENCIES)
                   63101:        $link_cmd
                   63102: 
                   63103: EOF
                   63104: 
                   63105:           ;;
                   63106:         *)
                   63107: 
                   63108:   install_modules="install-modules"
                   63109: 
                   63110:   case $host_alias in
                   63111:     *aix*)
                   63112:       suffix=so
                   63113:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mysql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) $(MYSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mysql.so '$ext_builddir'/mysql.so'
                   63114:       ;;
                   63115:     *netware*)
                   63116:       suffix=nlm
                   63117:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) -L$(top_builddir)/netware -lphp5lib $(QL_SHARED_LIBADD)'
                   63118:       ;;
                   63119:     *)
                   63120:       suffix=la
                   63121:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) $(MYSQL_SHARED_LIBADD)'
                   63122:       ;;
                   63123:   esac
                   63124: 
                   63125:   if test "x" = "xyes"; then
                   63126:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysql.$suffix"
                   63127:   else
                   63128:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysql.$suffix"
                   63129:   fi
                   63130: 
                   63131:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysql"
                   63132: 
                   63133:   cat >>Makefile.objects<<EOF
                   63134: \$(phplibdir)/mysql.$suffix: $ext_builddir/mysql.$suffix
                   63135:        \$(LIBTOOL) --mode=install cp $ext_builddir/mysql.$suffix \$(phplibdir)
                   63136: 
                   63137: $ext_builddir/mysql.$suffix: \$(shared_objects_mysql) \$(MYSQL_SHARED_DEPENDENCIES)
                   63138:        $link_cmd
                   63139: 
                   63140: EOF
                   63141: 
                   63142:           ;;
                   63143:       esac
                   63144: 
                   63145: cat >>confdefs.h <<_ACEOF
                   63146: #define COMPILE_DL_MYSQL 1
                   63147: _ACEOF
                   63148: 
                   63149:     fi
                   63150:   fi
                   63151: 
                   63152:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   63153:     PHP_MYSQL_SHARED=no
                   63154: 
                   63155: 
                   63156:   case ext/mysql in
                   63157:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   63158:   /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   63159:   *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   63160:   esac
                   63161: 
                   63162: 
                   63163: 
                   63164:   b_c_pre=$php_c_pre
                   63165:   b_cxx_pre=$php_cxx_pre
                   63166:   b_c_meta=$php_c_meta
                   63167:   b_cxx_meta=$php_cxx_meta
                   63168:   b_c_post=$php_c_post
                   63169:   b_cxx_post=$php_cxx_post
                   63170:   b_lo=$php_lo
                   63171: 
                   63172: 
                   63173:   old_IFS=$IFS
                   63174:   for ac_src in php_mysql.c; do
                   63175: 
                   63176:       IFS=.
                   63177:       set $ac_src
                   63178:       ac_obj=$1
                   63179:       IFS=$old_IFS
                   63180: 
1.1.1.2 ! misho    63181:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    63182: 
                   63183:       case $ac_src in
                   63184:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   63185:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   63186:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   63187:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   63188:       esac
                   63189: 
                   63190:     cat >>Makefile.objects<<EOF
                   63191: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   63192:        $ac_comp
                   63193: EOF
                   63194:   done
                   63195: 
                   63196: 
                   63197: 
                   63198: 
                   63199:   case ext/mysql in
                   63200:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   63201:   /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   63202:   *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   63203:   esac
                   63204: 
                   63205: 
                   63206: 
                   63207:   b_c_pre=$php_c_pre
                   63208:   b_cxx_pre=$php_cxx_pre
                   63209:   b_c_meta=$php_c_meta
                   63210:   b_cxx_meta=$php_cxx_meta
                   63211:   b_c_post=$php_c_post
                   63212:   b_cxx_post=$php_cxx_post
                   63213:   b_lo=$php_lo
                   63214: 
                   63215: 
                   63216:   old_IFS=$IFS
                   63217:   for ac_src in php_mysql.c; do
                   63218: 
                   63219:       IFS=.
                   63220:       set $ac_src
                   63221:       ac_obj=$1
                   63222:       IFS=$old_IFS
                   63223: 
1.1.1.2 ! misho    63224:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    63225: 
                   63226:       case $ac_src in
                   63227:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   63228:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   63229:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   63230:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   63231:       esac
                   63232: 
                   63233:     cat >>Makefile.objects<<EOF
                   63234: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   63235:        $ac_comp
                   63236: EOF
                   63237:   done
                   63238: 
                   63239: 
                   63240: 
                   63241: 
                   63242:   case ext/mysql in
                   63243:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   63244:   /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   63245:   *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   63246:   esac
                   63247: 
                   63248: 
                   63249: 
                   63250:   b_c_pre=$php_c_pre
                   63251:   b_cxx_pre=$php_cxx_pre
                   63252:   b_c_meta=$php_c_meta
                   63253:   b_cxx_meta=$php_cxx_meta
                   63254:   b_c_post=$php_c_post
                   63255:   b_cxx_post=$php_cxx_post
                   63256:   b_lo=$php_lo
                   63257: 
                   63258: 
                   63259:   old_IFS=$IFS
                   63260:   for ac_src in php_mysql.c; do
                   63261: 
                   63262:       IFS=.
                   63263:       set $ac_src
                   63264:       ac_obj=$1
                   63265:       IFS=$old_IFS
                   63266: 
1.1.1.2 ! misho    63267:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    63268: 
                   63269:       case $ac_src in
                   63270:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   63271:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   63272:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   63273:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   63274:       esac
                   63275: 
                   63276:     cat >>Makefile.objects<<EOF
                   63277: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   63278:        $ac_comp
                   63279: EOF
                   63280:   done
                   63281: 
                   63282: 
                   63283:     EXT_CLI_STATIC="$EXT_CLI_STATIC mysql"
                   63284:   fi
                   63285: 
                   63286: 
                   63287:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   63288: 
                   63289: 
                   63290: 
                   63291:   if test "$ext_builddir" = "."; then
                   63292:     PHP_PECL_EXTENSION=mysql
                   63293: 
                   63294:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   63295: 
                   63296:   fi
                   63297: 
                   63298: 
                   63299:   PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_SHARED_LIBADD"
                   63300: 
                   63301: 
1.1.1.2 ! misho    63302:   if test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL" = "mysqlnd"; then
1.1       misho    63303: 
                   63304:   am_i_shared=$PHP_MYSQL_SHARED
                   63305:   is_it_shared=$PHP_MYSQLND_SHARED
                   63306:   is_it_enabled=$PHP_MYSQLND
                   63307:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   63308:     as_fn_error $? "
                   63309: You've configured extension mysql to build statically, but it
                   63310: depends on extension mysqlnd, which you've configured to build shared.
                   63311: You either need to build mysql shared or build mysqlnd statically for the
                   63312: build to be successful.
                   63313: " "$LINENO" 5
                   63314:   fi
                   63315: 
                   63316: 
                   63317: $as_echo "#define MYSQL_USE_MYSQLND 1" >>confdefs.h
                   63318: 
                   63319:   fi
                   63320: fi
                   63321: 
                   63322: 
                   63323: 
                   63324: php_with_mysqli=no
                   63325: 
                   63326: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQLi support" >&5
                   63327: $as_echo_n "checking for MySQLi support... " >&6; }
                   63328: 
                   63329: # Check whether --with-mysqli was given.
                   63330: if test "${with_mysqli+set}" = set; then :
                   63331:   withval=$with_mysqli; PHP_MYSQLI=$withval
                   63332: else
                   63333: 
                   63334:   PHP_MYSQLI=no
                   63335:   test "$PHP_ENABLE_ALL" && PHP_MYSQLI=$PHP_ENABLE_ALL
                   63336: 
                   63337: fi
                   63338: 
                   63339: 
                   63340: 
                   63341: ext_output="yes, shared"
                   63342: ext_shared=yes
                   63343: case $PHP_MYSQLI in
                   63344: shared,*)
                   63345:   PHP_MYSQLI=`echo "$PHP_MYSQLI"|$SED 's/^shared,//'`
                   63346:   ;;
                   63347: shared)
                   63348:   PHP_MYSQLI=yes
                   63349:   ;;
                   63350: no)
                   63351:   ext_output=no
                   63352:   ext_shared=no
                   63353:   ;;
                   63354: *)
                   63355:   ext_output=yes
                   63356:   ext_shared=no
                   63357:   ;;
                   63358: esac
                   63359: 
                   63360: 
                   63361: 
                   63362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   63363: $as_echo "$ext_output" >&6; }
                   63364: 
                   63365: 
                   63366: 
                   63367: 
                   63368: 
                   63369: php_enable_embedded_mysqli=no
                   63370: 
                   63371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable embedded MySQLi support" >&5
                   63372: $as_echo_n "checking whether to enable embedded MySQLi support... " >&6; }
                   63373: # Check whether --enable-embedded_mysqli was given.
                   63374: if test "${enable_embedded_mysqli+set}" = set; then :
                   63375:   enableval=$enable_embedded_mysqli; PHP_EMBEDDED_MYSQLI=$enableval
                   63376: else
                   63377: 
                   63378:   PHP_EMBEDDED_MYSQLI=no
                   63379: 
                   63380: 
                   63381: fi
                   63382: 
                   63383: 
                   63384: ext_output=$PHP_EMBEDDED_MYSQLI
                   63385: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   63386: $as_echo "$ext_output" >&6; }
                   63387: 
                   63388: 
                   63389: 
                   63390: 
1.1.1.2 ! misho    63391: if test "$PHP_MYSQLI" = "yes" || test "$PHP_MYSQLI" = "mysqlnd"; then
1.1       misho    63392:     PHP_MYSQLND_ENABLED=yes
                   63393: 
                   63394: elif test "$PHP_MYSQLI" != "no"; then
                   63395: 
1.1.1.2 ! misho    63396:   MYSQL_CONFIG=$PHP_MYSQLI
1.1       misho    63397: 
                   63398:   MYSQL_LIB_NAME='mysqlclient'
                   63399:   if test "$PHP_EMBEDDED_MYSQLI" = "yes"; then
                   63400: 
                   63401: $as_echo "#define HAVE_EMBEDDED_MYSQLI 1" >>confdefs.h
                   63402: 
                   63403:     MYSQL_LIB_CFG='--libmysqld-libs'
                   63404:         mysqli_extra_sources="mysqli_embedded.c"
                   63405:   elif test "$enable_maintainer_zts" = "yes"; then
                   63406:     MYSQL_LIB_CFG='--libs_r'
                   63407:     MYSQL_LIB_NAME='mysqlclient_r'
                   63408:   else
                   63409:     MYSQL_LIB_CFG='--libs'
                   63410:   fi
                   63411: 
                   63412:   if test -x "$MYSQL_CONFIG" && $MYSQL_CONFIG $MYSQL_LIB_CFG > /dev/null 2>&1; then
                   63413:     MYSQLI_INCLINE=`$MYSQL_CONFIG --cflags | $SED -e "s/'//g"`
                   63414:     MYSQLI_LIBLINE=`$MYSQL_CONFIG $MYSQL_LIB_CFG | $SED -e "s/'//g"`
                   63415:   else
                   63416:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: mysql_config not found" >&5
                   63417: $as_echo "mysql_config not found" >&6; }
                   63418:     as_fn_error $? "Please reinstall the mysql distribution" "$LINENO" 5
                   63419:   fi
                   63420: 
                   63421: 
                   63422:   save_old_LDFLAGS=$LDFLAGS
                   63423:   ac_stuff="
                   63424:     $MYSQLI_LIBLINE
                   63425:   "
                   63426: 
                   63427:   save_ext_shared=$ext_shared
                   63428:   ext_shared=yes
                   63429: 
                   63430:   for ac_i in $ac_stuff; do
                   63431:     case $ac_i in
                   63432:     -pthread)
                   63433:       if test "$ext_shared" = "yes"; then
                   63434:         LDFLAGS="$LDFLAGS -pthread"
                   63435:       else
                   63436: 
                   63437: 
                   63438:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   63439: 
                   63440:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   63441:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   63442:     eval "EXTRA_LDFLAGS$unique=set"
                   63443:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   63444:   fi
                   63445: 
                   63446:       fi
                   63447:     ;;
                   63448:     -l*)
                   63449:       ac_ii=`echo $ac_i|cut -c 3-`
                   63450: 
                   63451: 
                   63452:   case $ac_ii in
                   63453:   c|c_r|pthread*) ;;
                   63454:   *)
                   63455:     if test "$ext_shared" = "yes"; then
                   63456:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   63457:     else
                   63458: 
                   63459: 
                   63460:   case $ac_ii in
                   63461:   c|c_r|pthread*) ;;
                   63462:   *)
                   63463:       LIBS="$LIBS -l$ac_ii"
                   63464:    ;;
                   63465:   esac
                   63466: 
                   63467: 
                   63468:     fi
                   63469:    ;;
                   63470:   esac
                   63471: 
                   63472: 
                   63473:     ;;
                   63474:     -L*)
                   63475:       ac_ii=`echo $ac_i|cut -c 3-`
                   63476: 
                   63477:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   63478: 
                   63479:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   63480:     ai_p=$ac_ii
                   63481:   else
                   63482: 
                   63483:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   63484: 
                   63485:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   63486:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   63487:   fi
                   63488: 
                   63489: 
                   63490:       if test "$ext_shared" = "yes"; then
                   63491:         LDFLAGS="-L$ai_p $LDFLAGS"
                   63492:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   63493:       else
                   63494: 
                   63495: 
                   63496: 
                   63497:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   63498: 
                   63499:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   63500:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   63501:     eval "LIBPATH$unique=set"
                   63502: 
                   63503:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   63504:     LDFLAGS="$LDFLAGS -L$ai_p"
                   63505:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   63506: 
                   63507:   fi
                   63508: 
                   63509: 
                   63510:       fi
                   63511: 
                   63512:   fi
                   63513: 
                   63514:     ;;
                   63515:     esac
                   63516:   done
                   63517: 
                   63518:   as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_server_option" | $as_tr_sh`
                   63519: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_server_option in -l$MYSQL_LIB_NAME" >&5
                   63520: $as_echo_n "checking for mysql_set_server_option in -l$MYSQL_LIB_NAME... " >&6; }
                   63521: if eval \${$as_ac_Lib+:} false; then :
                   63522:   $as_echo_n "(cached) " >&6
                   63523: else
                   63524:   ac_check_lib_save_LIBS=$LIBS
                   63525: LIBS="-l$MYSQL_LIB_NAME  $LIBS"
                   63526: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   63527: /* end confdefs.h.  */
                   63528: 
                   63529: /* Override any GCC internal prototype to avoid an error.
                   63530:    Use char because int might match the return type of a GCC
                   63531:    builtin and then its argument prototype would still apply.  */
                   63532: #ifdef __cplusplus
                   63533: extern "C"
                   63534: #endif
                   63535: char mysql_set_server_option ();
                   63536: int
                   63537: main ()
                   63538: {
                   63539: return mysql_set_server_option ();
                   63540:   ;
                   63541:   return 0;
                   63542: }
                   63543: _ACEOF
                   63544: if ac_fn_c_try_link "$LINENO"; then :
                   63545:   eval "$as_ac_Lib=yes"
                   63546: else
                   63547:   eval "$as_ac_Lib=no"
                   63548: fi
                   63549: rm -f core conftest.err conftest.$ac_objext \
                   63550:     conftest$ac_exeext conftest.$ac_ext
                   63551: LIBS=$ac_check_lib_save_LIBS
                   63552: fi
                   63553: eval ac_res=\$$as_ac_Lib
                   63554:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   63555: $as_echo "$ac_res" >&6; }
                   63556: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   63557: 
                   63558:     LDFLAGS=$save_old_LDFLAGS
                   63559:     ext_shared=$save_ext_shared
                   63560: 
                   63561: 
                   63562:   for ac_i in $MYSQLI_INCLINE; do
                   63563:     case $ac_i in
                   63564:     -I*)
                   63565:       ac_ii=`echo $ac_i|cut -c 3-`
                   63566: 
                   63567:   if test "$ac_ii" != "/usr/include"; then
                   63568: 
                   63569:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   63570:     ai_p=$ac_ii
                   63571:   else
                   63572: 
                   63573:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   63574: 
                   63575:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   63576:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   63577:   fi
                   63578: 
                   63579: 
                   63580: 
                   63581:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   63582: 
                   63583:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   63584:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   63585:     eval "INCLUDEPATH$unique=set"
                   63586: 
                   63587:       if test ""; then
                   63588:         INCLUDES="-I$ai_p $INCLUDES"
                   63589:       else
                   63590:         INCLUDES="$INCLUDES -I$ai_p"
                   63591:       fi
                   63592: 
                   63593:   fi
                   63594: 
                   63595:   fi
                   63596: 
                   63597:     ;;
                   63598:     esac
                   63599:   done
                   63600: 
                   63601: 
                   63602:   for ac_i in $MYSQLI_LIBLINE; do
                   63603:     case $ac_i in
                   63604:     -pthread)
                   63605:       if test "$ext_shared" = "yes"; then
                   63606:         MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -pthread"
                   63607:       else
                   63608: 
                   63609: 
                   63610:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   63611: 
                   63612:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   63613:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   63614:     eval "EXTRA_LDFLAGS$unique=set"
                   63615:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   63616:   fi
                   63617: 
                   63618:       fi
                   63619:     ;;
                   63620:     -l*)
                   63621:       ac_ii=`echo $ac_i|cut -c 3-`
                   63622: 
                   63623: 
                   63624:   case $ac_ii in
                   63625:   c|c_r|pthread*) ;;
                   63626:   *)
                   63627:     if test "$ext_shared" = "yes"; then
                   63628:         MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -l$ac_ii"
                   63629:     else
                   63630: 
                   63631: 
                   63632:   case $ac_ii in
                   63633:   c|c_r|pthread*) ;;
                   63634:   *)
                   63635:       LIBS="$LIBS -l$ac_ii"
                   63636:    ;;
                   63637:   esac
                   63638: 
                   63639: 
                   63640:     fi
                   63641:    ;;
                   63642:   esac
                   63643: 
                   63644: 
                   63645:     ;;
                   63646:     -L*)
                   63647:       ac_ii=`echo $ac_i|cut -c 3-`
                   63648: 
                   63649:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   63650: 
                   63651:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   63652:     ai_p=$ac_ii
                   63653:   else
                   63654: 
                   63655:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   63656: 
                   63657:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   63658:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   63659:   fi
                   63660: 
                   63661: 
                   63662:       if test "$ext_shared" = "yes"; then
                   63663:         MYSQLI_SHARED_LIBADD="-L$ai_p $MYSQLI_SHARED_LIBADD"
                   63664:         test -n "$ld_runpath_switch" && MYSQLI_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLI_SHARED_LIBADD"
                   63665:       else
                   63666: 
                   63667: 
                   63668: 
                   63669:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   63670: 
                   63671:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   63672:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   63673:     eval "LIBPATH$unique=set"
                   63674: 
                   63675:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   63676:     LDFLAGS="$LDFLAGS -L$ai_p"
                   63677:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   63678: 
                   63679:   fi
                   63680: 
                   63681: 
                   63682:       fi
                   63683: 
                   63684:   fi
                   63685: 
                   63686:     ;;
                   63687:     esac
                   63688:   done
                   63689: 
                   63690: 
                   63691: $as_echo "#define HAVE_MYSQLILIB 1" >>confdefs.h
                   63692: 
                   63693: 
                   63694:   save_old_LDFLAGS=$LDFLAGS
                   63695:   ac_stuff="$MYSQLI_LIBLINE"
                   63696: 
                   63697:   save_ext_shared=$ext_shared
                   63698:   ext_shared=yes
                   63699: 
                   63700:   for ac_i in $ac_stuff; do
                   63701:     case $ac_i in
                   63702:     -pthread)
                   63703:       if test "$ext_shared" = "yes"; then
                   63704:         LDFLAGS="$LDFLAGS -pthread"
                   63705:       else
                   63706: 
                   63707: 
                   63708:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   63709: 
                   63710:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   63711:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   63712:     eval "EXTRA_LDFLAGS$unique=set"
                   63713:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   63714:   fi
                   63715: 
                   63716:       fi
                   63717:     ;;
                   63718:     -l*)
                   63719:       ac_ii=`echo $ac_i|cut -c 3-`
                   63720: 
                   63721: 
                   63722:   case $ac_ii in
                   63723:   c|c_r|pthread*) ;;
                   63724:   *)
                   63725:     if test "$ext_shared" = "yes"; then
                   63726:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   63727:     else
                   63728: 
                   63729: 
                   63730:   case $ac_ii in
                   63731:   c|c_r|pthread*) ;;
                   63732:   *)
                   63733:       LIBS="$LIBS -l$ac_ii"
                   63734:    ;;
                   63735:   esac
                   63736: 
                   63737: 
                   63738:     fi
                   63739:    ;;
                   63740:   esac
                   63741: 
                   63742: 
                   63743:     ;;
                   63744:     -L*)
                   63745:       ac_ii=`echo $ac_i|cut -c 3-`
                   63746: 
                   63747:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   63748: 
                   63749:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   63750:     ai_p=$ac_ii
                   63751:   else
                   63752: 
                   63753:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   63754: 
                   63755:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   63756:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   63757:   fi
                   63758: 
                   63759: 
                   63760:       if test "$ext_shared" = "yes"; then
                   63761:         LDFLAGS="-L$ai_p $LDFLAGS"
                   63762:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   63763:       else
                   63764: 
                   63765: 
                   63766: 
                   63767:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   63768: 
                   63769:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   63770:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   63771:     eval "LIBPATH$unique=set"
                   63772: 
                   63773:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   63774:     LDFLAGS="$LDFLAGS -L$ai_p"
                   63775:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   63776: 
                   63777:   fi
                   63778: 
                   63779: 
                   63780:       fi
                   63781: 
                   63782:   fi
                   63783: 
                   63784:     ;;
                   63785:     esac
                   63786:   done
                   63787: 
                   63788:   as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_character_set" | $as_tr_sh`
                   63789: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_character_set in -l$MYSQL_LIB_NAME" >&5
                   63790: $as_echo_n "checking for mysql_set_character_set in -l$MYSQL_LIB_NAME... " >&6; }
                   63791: if eval \${$as_ac_Lib+:} false; then :
                   63792:   $as_echo_n "(cached) " >&6
                   63793: else
                   63794:   ac_check_lib_save_LIBS=$LIBS
                   63795: LIBS="-l$MYSQL_LIB_NAME  $LIBS"
                   63796: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   63797: /* end confdefs.h.  */
                   63798: 
                   63799: /* Override any GCC internal prototype to avoid an error.
                   63800:    Use char because int might match the return type of a GCC
                   63801:    builtin and then its argument prototype would still apply.  */
                   63802: #ifdef __cplusplus
                   63803: extern "C"
                   63804: #endif
                   63805: char mysql_set_character_set ();
                   63806: int
                   63807: main ()
                   63808: {
                   63809: return mysql_set_character_set ();
                   63810:   ;
                   63811:   return 0;
                   63812: }
                   63813: _ACEOF
                   63814: if ac_fn_c_try_link "$LINENO"; then :
                   63815:   eval "$as_ac_Lib=yes"
                   63816: else
                   63817:   eval "$as_ac_Lib=no"
                   63818: fi
                   63819: rm -f core conftest.err conftest.$ac_objext \
                   63820:     conftest$ac_exeext conftest.$ac_ext
                   63821: LIBS=$ac_check_lib_save_LIBS
                   63822: fi
                   63823: eval ac_res=\$$as_ac_Lib
                   63824:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   63825: $as_echo "$ac_res" >&6; }
                   63826: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   63827: 
                   63828:     LDFLAGS=$save_old_LDFLAGS
                   63829:     ext_shared=$save_ext_shared
                   63830: 
                   63831: 
                   63832: else
                   63833: 
                   63834:     LDFLAGS=$save_old_LDFLAGS
                   63835:     ext_shared=$save_ext_shared
                   63836:     unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_character_set
                   63837: 
                   63838:       as_fn_error $? "MySQLI doesn't support versions < 4.1.13 (for MySQL 4.1.x) and < 5.0.7 for (MySQL 5.0.x) anymore. Please update your libraries." "$LINENO" 5
                   63839: 
                   63840: 
                   63841: fi
                   63842: 
                   63843: 
                   63844: 
                   63845: else
                   63846: 
                   63847:     LDFLAGS=$save_old_LDFLAGS
                   63848:     ext_shared=$save_ext_shared
                   63849:     unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_server_option
                   63850: 
                   63851:     as_fn_error $? "wrong mysql library version or lib not found. Check config.log for more information." "$LINENO" 5
                   63852: 
                   63853: 
                   63854: fi
                   63855: 
                   63856: 
                   63857:   save_old_LDFLAGS=$LDFLAGS
                   63858:   ac_stuff="
                   63859:     $MYSQLI_LIBLINE
                   63860:   "
                   63861: 
                   63862:   save_ext_shared=$ext_shared
                   63863:   ext_shared=yes
                   63864: 
                   63865:   for ac_i in $ac_stuff; do
                   63866:     case $ac_i in
                   63867:     -pthread)
                   63868:       if test "$ext_shared" = "yes"; then
                   63869:         LDFLAGS="$LDFLAGS -pthread"
                   63870:       else
                   63871: 
                   63872: 
                   63873:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   63874: 
                   63875:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   63876:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   63877:     eval "EXTRA_LDFLAGS$unique=set"
                   63878:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   63879:   fi
                   63880: 
                   63881:       fi
                   63882:     ;;
                   63883:     -l*)
                   63884:       ac_ii=`echo $ac_i|cut -c 3-`
                   63885: 
                   63886: 
                   63887:   case $ac_ii in
                   63888:   c|c_r|pthread*) ;;
                   63889:   *)
                   63890:     if test "$ext_shared" = "yes"; then
                   63891:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   63892:     else
                   63893: 
                   63894: 
                   63895:   case $ac_ii in
                   63896:   c|c_r|pthread*) ;;
                   63897:   *)
                   63898:       LIBS="$LIBS -l$ac_ii"
                   63899:    ;;
                   63900:   esac
                   63901: 
                   63902: 
                   63903:     fi
                   63904:    ;;
                   63905:   esac
                   63906: 
                   63907: 
                   63908:     ;;
                   63909:     -L*)
                   63910:       ac_ii=`echo $ac_i|cut -c 3-`
                   63911: 
                   63912:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   63913: 
                   63914:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   63915:     ai_p=$ac_ii
                   63916:   else
                   63917: 
                   63918:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   63919: 
                   63920:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   63921:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   63922:   fi
                   63923: 
                   63924: 
                   63925:       if test "$ext_shared" = "yes"; then
                   63926:         LDFLAGS="-L$ai_p $LDFLAGS"
                   63927:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   63928:       else
                   63929: 
                   63930: 
                   63931: 
                   63932:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   63933: 
                   63934:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   63935:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   63936:     eval "LIBPATH$unique=set"
                   63937: 
                   63938:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   63939:     LDFLAGS="$LDFLAGS -L$ai_p"
                   63940:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   63941: 
                   63942:   fi
                   63943: 
                   63944: 
                   63945:       fi
                   63946: 
                   63947:   fi
                   63948: 
                   63949:     ;;
                   63950:     esac
                   63951:   done
                   63952: 
                   63953:   as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_stmt_next_result" | $as_tr_sh`
                   63954: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME" >&5
                   63955: $as_echo_n "checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME... " >&6; }
                   63956: if eval \${$as_ac_Lib+:} false; then :
                   63957:   $as_echo_n "(cached) " >&6
                   63958: else
                   63959:   ac_check_lib_save_LIBS=$LIBS
                   63960: LIBS="-l$MYSQL_LIB_NAME  $LIBS"
                   63961: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   63962: /* end confdefs.h.  */
                   63963: 
                   63964: /* Override any GCC internal prototype to avoid an error.
                   63965:    Use char because int might match the return type of a GCC
                   63966:    builtin and then its argument prototype would still apply.  */
                   63967: #ifdef __cplusplus
                   63968: extern "C"
                   63969: #endif
                   63970: char mysql_stmt_next_result ();
                   63971: int
                   63972: main ()
                   63973: {
                   63974: return mysql_stmt_next_result ();
                   63975:   ;
                   63976:   return 0;
                   63977: }
                   63978: _ACEOF
                   63979: if ac_fn_c_try_link "$LINENO"; then :
                   63980:   eval "$as_ac_Lib=yes"
                   63981: else
                   63982:   eval "$as_ac_Lib=no"
                   63983: fi
                   63984: rm -f core conftest.err conftest.$ac_objext \
                   63985:     conftest$ac_exeext conftest.$ac_ext
                   63986: LIBS=$ac_check_lib_save_LIBS
                   63987: fi
                   63988: eval ac_res=\$$as_ac_Lib
                   63989:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   63990: $as_echo "$ac_res" >&6; }
                   63991: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   63992: 
                   63993:     LDFLAGS=$save_old_LDFLAGS
                   63994:     ext_shared=$save_ext_shared
                   63995: 
                   63996: 
                   63997: $as_echo "#define HAVE_STMT_NEXT_RESULT 1" >>confdefs.h
                   63998: 
                   63999: 
                   64000: 
                   64001: else
                   64002: 
                   64003:     LDFLAGS=$save_old_LDFLAGS
                   64004:     ext_shared=$save_ext_shared
                   64005:     unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_stmt_next_result
                   64006: 
                   64007: 
                   64008: 
                   64009: fi
                   64010: 
                   64011: fi
                   64012: 
                   64013: if test "$PHP_MYSQLI" != "no"; then
                   64014:   mysqli_sources="mysqli.c mysqli_api.c mysqli_prop.c mysqli_nonapi.c \
                   64015:                   mysqli_fe.c mysqli_report.c mysqli_driver.c mysqli_warning.c \
1.1.1.2 ! misho    64016:                   mysqli_exception.c mysqli_result_iterator.c $mysqli_extra_sources"
1.1       misho    64017: 
                   64018:   ext_builddir=ext/mysqli
                   64019:   ext_srcdir=$abs_srcdir/ext/mysqli
                   64020: 
                   64021:   ac_extra=
                   64022: 
                   64023:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   64024:     PHP_MYSQLI_SHARED=no
                   64025: 
                   64026: 
                   64027:   case ext/mysqli in
                   64028:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   64029:   /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   64030:   *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   64031:   esac
                   64032: 
                   64033: 
                   64034: 
                   64035:   b_c_pre=$php_c_pre
                   64036:   b_cxx_pre=$php_cxx_pre
                   64037:   b_c_meta=$php_c_meta
                   64038:   b_cxx_meta=$php_cxx_meta
                   64039:   b_c_post=$php_c_post
                   64040:   b_cxx_post=$php_cxx_post
                   64041:   b_lo=$php_lo
                   64042: 
                   64043: 
                   64044:   old_IFS=$IFS
                   64045:   for ac_src in $mysqli_sources; do
                   64046: 
                   64047:       IFS=.
                   64048:       set $ac_src
                   64049:       ac_obj=$1
                   64050:       IFS=$old_IFS
                   64051: 
                   64052:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   64053: 
                   64054:       case $ac_src in
                   64055:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   64056:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   64057:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   64058:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   64059:       esac
                   64060: 
                   64061:     cat >>Makefile.objects<<EOF
                   64062: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   64063:        $ac_comp
                   64064: EOF
                   64065:   done
                   64066: 
                   64067: 
                   64068:     EXT_STATIC="$EXT_STATIC mysqli"
                   64069:     if test "$ext_shared" != "nocli"; then
                   64070:       EXT_CLI_STATIC="$EXT_CLI_STATIC mysqli"
                   64071:     fi
                   64072:   else
                   64073:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   64074:       PHP_MYSQLI_SHARED=yes
                   64075: 
                   64076:   case ext/mysqli in
                   64077:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   64078:   /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   64079:   *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   64080:   esac
                   64081: 
                   64082: 
                   64083: 
                   64084:   b_c_pre=$shared_c_pre
                   64085:   b_cxx_pre=$shared_cxx_pre
                   64086:   b_c_meta=$shared_c_meta
                   64087:   b_cxx_meta=$shared_cxx_meta
                   64088:   b_c_post=$shared_c_post
                   64089:   b_cxx_post=$shared_cxx_post
                   64090:   b_lo=$shared_lo
                   64091: 
                   64092: 
                   64093:   old_IFS=$IFS
                   64094:   for ac_src in $mysqli_sources; do
                   64095: 
                   64096:       IFS=.
                   64097:       set $ac_src
                   64098:       ac_obj=$1
                   64099:       IFS=$old_IFS
                   64100: 
                   64101:       shared_objects_mysqli="$shared_objects_mysqli $ac_bdir$ac_obj.lo"
                   64102: 
                   64103:       case $ac_src in
                   64104:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   64105:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   64106:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   64107:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   64108:       esac
                   64109: 
                   64110:     cat >>Makefile.objects<<EOF
                   64111: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   64112:        $ac_comp
                   64113: EOF
                   64114:   done
                   64115: 
                   64116:       case $host_alias in
                   64117:         *netware*)
                   64118: 
                   64119:   install_modules="install-modules"
                   64120: 
                   64121:   case $host_alias in
                   64122:     *aix*)
                   64123:       suffix=so
                   64124:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmysqli.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) $(PHPMYSQLI_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmysqli.so '$ext_builddir'/phpmysqli.so'
                   64125:       ;;
                   64126:     *netware*)
                   64127:       suffix=nlm
                   64128:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) -L$(top_builddir)/netware -lphp5lib $(MYSQLI_SHARED_LIBADD)'
                   64129:       ;;
                   64130:     *)
                   64131:       suffix=la
                   64132:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) $(PHPMYSQLI_SHARED_LIBADD)'
                   64133:       ;;
                   64134:   esac
                   64135: 
                   64136:   if test "x" = "xyes"; then
                   64137:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmysqli.$suffix"
                   64138:   else
                   64139:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmysqli.$suffix"
                   64140:   fi
                   64141: 
                   64142:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqli"
                   64143: 
                   64144:   cat >>Makefile.objects<<EOF
                   64145: \$(phplibdir)/phpmysqli.$suffix: $ext_builddir/phpmysqli.$suffix
                   64146:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpmysqli.$suffix \$(phplibdir)
                   64147: 
                   64148: $ext_builddir/phpmysqli.$suffix: \$(shared_objects_mysqli) \$(PHPMYSQLI_SHARED_DEPENDENCIES)
                   64149:        $link_cmd
                   64150: 
                   64151: EOF
                   64152: 
                   64153:           ;;
                   64154:         *)
                   64155: 
                   64156:   install_modules="install-modules"
                   64157: 
                   64158:   case $host_alias in
                   64159:     *aix*)
                   64160:       suffix=so
                   64161:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mysqli.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) $(MYSQLI_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mysqli.so '$ext_builddir'/mysqli.so'
                   64162:       ;;
                   64163:     *netware*)
                   64164:       suffix=nlm
                   64165:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) -L$(top_builddir)/netware -lphp5lib $(QLI_SHARED_LIBADD)'
                   64166:       ;;
                   64167:     *)
                   64168:       suffix=la
                   64169:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) $(MYSQLI_SHARED_LIBADD)'
                   64170:       ;;
                   64171:   esac
                   64172: 
                   64173:   if test "x" = "xyes"; then
                   64174:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysqli.$suffix"
                   64175:   else
                   64176:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysqli.$suffix"
                   64177:   fi
                   64178: 
                   64179:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqli"
                   64180: 
                   64181:   cat >>Makefile.objects<<EOF
                   64182: \$(phplibdir)/mysqli.$suffix: $ext_builddir/mysqli.$suffix
                   64183:        \$(LIBTOOL) --mode=install cp $ext_builddir/mysqli.$suffix \$(phplibdir)
                   64184: 
                   64185: $ext_builddir/mysqli.$suffix: \$(shared_objects_mysqli) \$(MYSQLI_SHARED_DEPENDENCIES)
                   64186:        $link_cmd
                   64187: 
                   64188: EOF
                   64189: 
                   64190:           ;;
                   64191:       esac
                   64192: 
                   64193: cat >>confdefs.h <<_ACEOF
                   64194: #define COMPILE_DL_MYSQLI 1
                   64195: _ACEOF
                   64196: 
                   64197:     fi
                   64198:   fi
                   64199: 
                   64200:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   64201:     PHP_MYSQLI_SHARED=no
                   64202: 
                   64203: 
                   64204:   case ext/mysqli in
                   64205:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   64206:   /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   64207:   *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   64208:   esac
                   64209: 
                   64210: 
                   64211: 
                   64212:   b_c_pre=$php_c_pre
                   64213:   b_cxx_pre=$php_cxx_pre
                   64214:   b_c_meta=$php_c_meta
                   64215:   b_cxx_meta=$php_cxx_meta
                   64216:   b_c_post=$php_c_post
                   64217:   b_cxx_post=$php_cxx_post
                   64218:   b_lo=$php_lo
                   64219: 
                   64220: 
                   64221:   old_IFS=$IFS
                   64222:   for ac_src in $mysqli_sources; do
                   64223: 
                   64224:       IFS=.
                   64225:       set $ac_src
                   64226:       ac_obj=$1
                   64227:       IFS=$old_IFS
                   64228: 
1.1.1.2 ! misho    64229:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    64230: 
                   64231:       case $ac_src in
                   64232:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   64233:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   64234:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   64235:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   64236:       esac
                   64237: 
                   64238:     cat >>Makefile.objects<<EOF
                   64239: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   64240:        $ac_comp
                   64241: EOF
                   64242:   done
                   64243: 
                   64244: 
                   64245: 
                   64246: 
                   64247:   case ext/mysqli in
                   64248:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   64249:   /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   64250:   *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   64251:   esac
                   64252: 
                   64253: 
                   64254: 
                   64255:   b_c_pre=$php_c_pre
                   64256:   b_cxx_pre=$php_cxx_pre
                   64257:   b_c_meta=$php_c_meta
                   64258:   b_cxx_meta=$php_cxx_meta
                   64259:   b_c_post=$php_c_post
                   64260:   b_cxx_post=$php_cxx_post
                   64261:   b_lo=$php_lo
                   64262: 
                   64263: 
                   64264:   old_IFS=$IFS
                   64265:   for ac_src in $mysqli_sources; do
                   64266: 
                   64267:       IFS=.
                   64268:       set $ac_src
                   64269:       ac_obj=$1
                   64270:       IFS=$old_IFS
                   64271: 
1.1.1.2 ! misho    64272:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    64273: 
                   64274:       case $ac_src in
                   64275:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   64276:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   64277:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   64278:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   64279:       esac
                   64280: 
                   64281:     cat >>Makefile.objects<<EOF
                   64282: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   64283:        $ac_comp
                   64284: EOF
                   64285:   done
                   64286: 
                   64287: 
                   64288: 
                   64289: 
                   64290:   case ext/mysqli in
                   64291:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   64292:   /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   64293:   *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   64294:   esac
                   64295: 
                   64296: 
                   64297: 
                   64298:   b_c_pre=$php_c_pre
                   64299:   b_cxx_pre=$php_cxx_pre
                   64300:   b_c_meta=$php_c_meta
                   64301:   b_cxx_meta=$php_cxx_meta
                   64302:   b_c_post=$php_c_post
                   64303:   b_cxx_post=$php_cxx_post
                   64304:   b_lo=$php_lo
                   64305: 
                   64306: 
                   64307:   old_IFS=$IFS
                   64308:   for ac_src in $mysqli_sources; do
                   64309: 
                   64310:       IFS=.
                   64311:       set $ac_src
                   64312:       ac_obj=$1
                   64313:       IFS=$old_IFS
                   64314: 
1.1.1.2 ! misho    64315:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    64316: 
                   64317:       case $ac_src in
                   64318:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   64319:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   64320:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   64321:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   64322:       esac
                   64323: 
                   64324:     cat >>Makefile.objects<<EOF
                   64325: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   64326:        $ac_comp
                   64327: EOF
                   64328:   done
                   64329: 
                   64330: 
                   64331:     EXT_CLI_STATIC="$EXT_CLI_STATIC mysqli"
                   64332:   fi
                   64333: 
                   64334: 
                   64335:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   64336: 
                   64337: 
                   64338: 
                   64339:   if test "$ext_builddir" = "."; then
                   64340:     PHP_PECL_EXTENSION=mysqli
                   64341: 
                   64342:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   64343: 
                   64344:   fi
                   64345: 
                   64346: 
                   64347:   PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQLI_SHARED_LIBADD"
                   64348: 
                   64349: 
                   64350: 
                   64351:     for header_file in ext/mysqli/php_mysqli_structs.h; do
                   64352: 
                   64353: 
                   64354:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
                   64355: 
                   64356:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   64357:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   64358:     eval "INSTALLHEADERS$unique=set"
                   64359: 
                   64360:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
                   64361: 
                   64362:   fi
                   64363: 
                   64364:     done
                   64365: 
                   64366: 
                   64367: 
1.1.1.2 ! misho    64368:   if test "$PHP_MYSQLI" = "yes" || test "$PHP_MYSQLI" = "mysqlnd"; then
1.1       misho    64369: 
                   64370:   am_i_shared=$PHP_MYSQLI_SHARED
                   64371:   is_it_shared=$PHP_MYSQLND_SHARED
                   64372:   is_it_enabled=$PHP_MYSQLND
                   64373:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   64374:     as_fn_error $? "
                   64375: You've configured extension mysqli to build statically, but it
                   64376: depends on extension mysqlnd, which you've configured to build shared.
                   64377: You either need to build mysqli shared or build mysqlnd statically for the
                   64378: build to be successful.
                   64379: " "$LINENO" 5
                   64380:   fi
                   64381: 
                   64382: 
                   64383: $as_echo "#define MYSQLI_USE_MYSQLND 1" >>confdefs.h
                   64384: 
                   64385:   fi
                   64386: fi
                   64387: 
                   64388: 
                   64389: if test -z "$SED"; then
                   64390:   PHP_OCI8_SED="sed";
                   64391: else
                   64392:   PHP_OCI8_SED="$SED";
                   64393: fi
                   64394: 
                   64395: 
                   64396: 
                   64397: 
                   64398: 
                   64399: 
                   64400: 
                   64401: 
                   64402: 
                   64403: 
                   64404: 
                   64405: php_with_oci8=no
                   64406: 
                   64407: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle Database OCI8 support" >&5
                   64408: $as_echo_n "checking for Oracle Database OCI8 support... " >&6; }
                   64409: 
                   64410: # Check whether --with-oci8 was given.
                   64411: if test "${with_oci8+set}" = set; then :
                   64412:   withval=$with_oci8; PHP_OCI8=$withval
                   64413: else
                   64414: 
                   64415:   PHP_OCI8=no
                   64416:   test "$PHP_ENABLE_ALL" && PHP_OCI8=$PHP_ENABLE_ALL
                   64417: 
                   64418: fi
                   64419: 
                   64420: 
                   64421: 
                   64422: ext_output="yes, shared"
                   64423: ext_shared=yes
                   64424: case $PHP_OCI8 in
                   64425: shared,*)
                   64426:   PHP_OCI8=`echo "$PHP_OCI8"|$SED 's/^shared,//'`
                   64427:   ;;
                   64428: shared)
                   64429:   PHP_OCI8=yes
                   64430:   ;;
                   64431: no)
                   64432:   ext_output=no
                   64433:   ext_shared=no
                   64434:   ;;
                   64435: *)
                   64436:   ext_output=yes
                   64437:   ext_shared=no
                   64438:   ;;
                   64439: esac
                   64440: 
                   64441: 
                   64442: 
                   64443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   64444: $as_echo "$ext_output" >&6; }
                   64445: 
                   64446: 
                   64447: 
                   64448: 
                   64449: if test "$PHP_OCI8" != "no"; then
                   64450: 
                   64451:   if test -z "$PHP_OCI8"; then
                   64452:         as_fn_error $? "Empty parameter value passed to --with-oci8" "$LINENO" 5
                   64453:   fi
                   64454: 
                   64455: 
                   64456:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking PHP version" >&5
                   64457: $as_echo_n "checking PHP version... " >&6; }
                   64458: 
                   64459:   tmp_version=$PHP_VERSION
                   64460:   if test -z "$tmp_version"; then
                   64461:     if test -z "$PHP_CONFIG"; then
                   64462:       as_fn_error $? "php-config not found" "$LINENO" 5
                   64463:     fi
                   64464:     php_version=`$PHP_CONFIG --version 2>/dev/null|head -n 1|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'`
                   64465:   else
                   64466:     php_version=`echo "$tmp_version"|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'`
                   64467:   fi
                   64468: 
                   64469:   if test -z "$php_version"; then
                   64470:     as_fn_error $? "failed to detect PHP version, please report" "$LINENO" 5
                   64471:   fi
                   64472: 
                   64473:   ac_IFS=$IFS
                   64474:   IFS="."
                   64475:   set $php_version
                   64476:   IFS=$ac_IFS
                   64477:   oci8_php_version=`expr $1 \* 1000000 + $2 \* 1000 + $3`
                   64478: 
                   64479:   if test "$oci8_php_version" -lt "4003009"; then
                   64480:     as_fn_error $? "You need at least PHP 4.3.9 to be able to use this version of OCI8. PHP $php_version found" "$LINENO" 5
                   64481:   elif test "$oci8_php_version" -ge "6000000"; then
                   64482:     as_fn_error $? "This version of OCI8 is not compatible with PHP 6 or higher" "$LINENO" 5
                   64483:   else
                   64484:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_version, ok" >&5
                   64485: $as_echo "$php_version, ok" >&6; }
                   64486:   fi
                   64487: 
                   64488: 
                   64489:   # The cast to long int works around a bug in the HP C Compiler
                   64490: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   64491: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   64492: # This bug is HP SR number 8606223364.
                   64493: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   64494: $as_echo_n "checking size of long int... " >&6; }
                   64495: if ${ac_cv_sizeof_long_int+:} false; then :
                   64496:   $as_echo_n "(cached) " >&6
                   64497: else
                   64498:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
                   64499: 
                   64500: else
                   64501:   if test "$ac_cv_type_long_int" = yes; then
                   64502:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   64503: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   64504: as_fn_error 77 "cannot compute sizeof (long int)
                   64505: See \`config.log' for more details" "$LINENO" 5; }
                   64506:    else
                   64507:      ac_cv_sizeof_long_int=0
                   64508:    fi
                   64509: fi
                   64510: 
                   64511: fi
                   64512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   64513: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   64514: 
                   64515: 
                   64516: 
                   64517: cat >>confdefs.h <<_ACEOF
                   64518: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
                   64519: _ACEOF
                   64520: 
                   64521: 
                   64522:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking if we're on a 64-bit platform" >&5
                   64523: $as_echo_n "checking checking if we're on a 64-bit platform... " >&6; }
                   64524:   if test "$ac_cv_sizeof_long_int" = "4"; then
                   64525:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   64526: $as_echo "no" >&6; }
                   64527:     PHP_OCI8_OH_LIBDIR=lib32
                   64528:     PHP_OCI8_IC_LIBDIR_SUFFIX=""
                   64529:   else
                   64530:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   64531: $as_echo "yes" >&6; }
                   64532:     PHP_OCI8_OH_LIBDIR=lib
                   64533:     PHP_OCI8_IC_LIBDIR_SUFFIX=64
                   64534:   fi
                   64535: 
                   64536: 
                   64537:   PHP_OCI8_INSTANT_CLIENT="no"
                   64538: 
                   64539:             if test "$PHP_OCI8" = "yes" && test -z "$ORACLE_HOME"; then
                   64540:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&5
                   64541: $as_echo "$as_me: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&2;}
                   64542:     PHP_OCI8=instantclient
                   64543:   fi
                   64544: 
                   64545:   if test "`echo $PHP_OCI8`" = "instantclient"; then
                   64546:     PHP_OCI8_INSTANT_CLIENT="yes"
                   64547:   elif test "`echo $PHP_OCI8 | cut -d, -f2`" = "instantclient"; then
                   64548:     PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f3`"
                   64549:     PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f1,4`"
                   64550:     if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then
                   64551:        PHP_OCI8_INSTANT_CLIENT="yes"
                   64552:     fi
                   64553:     if test -z "$PHP_OCI8"; then
                   64554:        PHP_OCI8=yes
                   64555:     fi
                   64556:   elif test "`echo $PHP_OCI8 | cut -d, -f1`" = "instantclient"; then
                   64557:     PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f2`"
                   64558:     PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f3,4`"
                   64559:     if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then
                   64560:        PHP_OCI8_INSTANT_CLIENT="yes"
                   64561:     fi
                   64562:     if test -z "$PHP_OCI8"; then
                   64563:        PHP_OCI8=yes
                   64564:     fi
                   64565:   fi
                   64566: 
                   64567:   if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then
                   64568: 
                   64569:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle ORACLE_HOME install directory" >&5
                   64570: $as_echo_n "checking Oracle ORACLE_HOME install directory... " >&6; }
                   64571: 
                   64572:     if test "$PHP_OCI8" = "yes"; then
                   64573:       OCI8_DIR=$ORACLE_HOME
                   64574:     else
                   64575:       OCI8_DIR=$PHP_OCI8
                   64576:     fi
                   64577:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_DIR" >&5
                   64578: $as_echo "$OCI8_DIR" >&6; }
                   64579: 
                   64580: 
                   64581:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking ORACLE_HOME library validity" >&5
                   64582: $as_echo_n "checking ORACLE_HOME library validity... " >&6; }
                   64583:   if test ! -d "$OCI8_DIR"; then
                   64584:     as_fn_error $? "${OCI8_DIR} is not a directory" "$LINENO" 5
                   64585:   fi
                   64586:   if test -d "$OCI8_DIR/lib" && test ! -d "$OCI8_DIR/lib32"; then
                   64587:     OCI8_LIB_DIR=lib
                   64588:   elif test ! -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then
                   64589:     OCI8_LIB_DIR=lib32
                   64590:   elif test -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then
                   64591:     OCI8_LIB_DIR=$PHP_OCI8_OH_LIBDIR
                   64592:   else
                   64593:         if test -f "$OCI8_DIR/libociei.$SHLIB_SUFFIX_NAME"; then
                   64594:       as_fn_error $? "Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}" "$LINENO" 5
                   64595:     else
                   64596:       as_fn_error $? "Oracle library directory not found in ${OCI8_DIR}" "$LINENO" 5
                   64597:     fi
                   64598:   fi
                   64599:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_LIB_DIR" >&5
                   64600: $as_echo "$OCI8_LIB_DIR" >&6; }
                   64601: 
                   64602: 
                   64603:     if test -d "$OCI8_DIR/rdbms/public"; then
                   64604: 
                   64605:   if test "$OCI8_DIR/rdbms/public" != "/usr/include"; then
                   64606: 
                   64607:   if test -z "$OCI8_DIR/rdbms/public" || echo "$OCI8_DIR/rdbms/public" | grep '^/' >/dev/null ; then
                   64608:     ai_p=$OCI8_DIR/rdbms/public
                   64609:   else
                   64610: 
                   64611:     ep_dir="`echo $OCI8_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'`"
                   64612: 
                   64613:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   64614:     ai_p="$ep_realdir/`basename \"$OCI8_DIR/rdbms/public\"`"
                   64615:   fi
                   64616: 
                   64617: 
                   64618: 
                   64619:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   64620: 
                   64621:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   64622:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   64623:     eval "INCLUDEPATH$unique=set"
                   64624: 
                   64625:       if test ""; then
                   64626:         INCLUDES="-I$ai_p $INCLUDES"
                   64627:       else
                   64628:         INCLUDES="$INCLUDES -I$ai_p"
                   64629:       fi
                   64630: 
                   64631:   fi
                   64632: 
                   64633:   fi
                   64634: 
                   64635:       OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/public"
                   64636:     fi
                   64637:     if test -d "$OCI8_DIR/rdbms/demo"; then
                   64638: 
                   64639:   if test "$OCI8_DIR/rdbms/demo" != "/usr/include"; then
                   64640: 
                   64641:   if test -z "$OCI8_DIR/rdbms/demo" || echo "$OCI8_DIR/rdbms/demo" | grep '^/' >/dev/null ; then
                   64642:     ai_p=$OCI8_DIR/rdbms/demo
                   64643:   else
                   64644: 
                   64645:     ep_dir="`echo $OCI8_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'`"
                   64646: 
                   64647:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   64648:     ai_p="$ep_realdir/`basename \"$OCI8_DIR/rdbms/demo\"`"
                   64649:   fi
                   64650: 
                   64651: 
                   64652: 
                   64653:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   64654: 
                   64655:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   64656:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   64657:     eval "INCLUDEPATH$unique=set"
                   64658: 
                   64659:       if test ""; then
                   64660:         INCLUDES="-I$ai_p $INCLUDES"
                   64661:       else
                   64662:         INCLUDES="$INCLUDES -I$ai_p"
                   64663:       fi
                   64664: 
                   64665:   fi
                   64666: 
                   64667:   fi
                   64668: 
                   64669:       OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/demo"
                   64670:     fi
                   64671:     if test -d "$OCI8_DIR/network/public"; then
                   64672: 
                   64673:   if test "$OCI8_DIR/network/public" != "/usr/include"; then
                   64674: 
                   64675:   if test -z "$OCI8_DIR/network/public" || echo "$OCI8_DIR/network/public" | grep '^/' >/dev/null ; then
                   64676:     ai_p=$OCI8_DIR/network/public
                   64677:   else
                   64678: 
                   64679:     ep_dir="`echo $OCI8_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'`"
                   64680: 
                   64681:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   64682:     ai_p="$ep_realdir/`basename \"$OCI8_DIR/network/public\"`"
                   64683:   fi
                   64684: 
                   64685: 
                   64686: 
                   64687:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   64688: 
                   64689:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   64690:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   64691:     eval "INCLUDEPATH$unique=set"
                   64692: 
                   64693:       if test ""; then
                   64694:         INCLUDES="-I$ai_p $INCLUDES"
                   64695:       else
                   64696:         INCLUDES="$INCLUDES -I$ai_p"
                   64697:       fi
                   64698: 
                   64699:   fi
                   64700: 
                   64701:   fi
                   64702: 
                   64703:       OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/network/public"
                   64704:     fi
                   64705:     if test -d "$OCI8_DIR/plsql/public"; then
                   64706: 
                   64707:   if test "$OCI8_DIR/plsql/public" != "/usr/include"; then
                   64708: 
                   64709:   if test -z "$OCI8_DIR/plsql/public" || echo "$OCI8_DIR/plsql/public" | grep '^/' >/dev/null ; then
                   64710:     ai_p=$OCI8_DIR/plsql/public
                   64711:   else
                   64712: 
                   64713:     ep_dir="`echo $OCI8_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'`"
                   64714: 
                   64715:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   64716:     ai_p="$ep_realdir/`basename \"$OCI8_DIR/plsql/public\"`"
                   64717:   fi
                   64718: 
                   64719: 
                   64720: 
                   64721:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   64722: 
                   64723:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   64724:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   64725:     eval "INCLUDEPATH$unique=set"
                   64726: 
                   64727:       if test ""; then
                   64728:         INCLUDES="-I$ai_p $INCLUDES"
                   64729:       else
                   64730:         INCLUDES="$INCLUDES -I$ai_p"
                   64731:       fi
                   64732: 
                   64733:   fi
                   64734: 
                   64735:   fi
                   64736: 
                   64737:       OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/plsql/public"
                   64738:     fi
                   64739: 
                   64740:     if test -f "$OCI8_DIR/$OCI8_LIB_DIR/sysliblist"; then
                   64741: 
                   64742:   for ac_i in `cat $OCI8_DIR/$OCI8_LIB_DIR/sysliblist`; do
                   64743:     case $ac_i in
                   64744:     -pthread)
                   64745:       if test "$ext_shared" = "yes"; then
                   64746:         OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
                   64747:       else
                   64748: 
                   64749: 
                   64750:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   64751: 
                   64752:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   64753:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   64754:     eval "EXTRA_LDFLAGS$unique=set"
                   64755:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   64756:   fi
                   64757: 
                   64758:       fi
                   64759:     ;;
                   64760:     -l*)
                   64761:       ac_ii=`echo $ac_i|cut -c 3-`
                   64762: 
                   64763: 
                   64764:   case $ac_ii in
                   64765:   c|c_r|pthread*) ;;
                   64766:   *)
                   64767:     if test "$ext_shared" = "yes"; then
                   64768:         OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii"
                   64769:     else
                   64770: 
                   64771: 
                   64772:   case $ac_ii in
                   64773:   c|c_r|pthread*) ;;
                   64774:   *)
                   64775:       LIBS="$LIBS -l$ac_ii"
                   64776:    ;;
                   64777:   esac
                   64778: 
                   64779: 
                   64780:     fi
                   64781:    ;;
                   64782:   esac
                   64783: 
                   64784: 
                   64785:     ;;
                   64786:     -L*)
                   64787:       ac_ii=`echo $ac_i|cut -c 3-`
                   64788: 
                   64789:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   64790: 
                   64791:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   64792:     ai_p=$ac_ii
                   64793:   else
                   64794: 
                   64795:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   64796: 
                   64797:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   64798:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   64799:   fi
                   64800: 
                   64801: 
                   64802:       if test "$ext_shared" = "yes"; then
                   64803:         OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
                   64804:         test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
                   64805:       else
                   64806: 
                   64807: 
                   64808: 
                   64809:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   64810: 
                   64811:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   64812:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   64813:     eval "LIBPATH$unique=set"
                   64814: 
                   64815:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   64816:     LDFLAGS="$LDFLAGS -L$ai_p"
                   64817:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   64818: 
                   64819:   fi
                   64820: 
                   64821: 
                   64822:       fi
                   64823: 
                   64824:   fi
                   64825: 
                   64826:     ;;
                   64827:     esac
                   64828:   done
                   64829: 
                   64830:     elif test -f "$OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist"; then
                   64831: 
                   64832:   for ac_i in `cat $OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist`; do
                   64833:     case $ac_i in
                   64834:     -pthread)
                   64835:       if test "$ext_shared" = "yes"; then
                   64836:         OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
                   64837:       else
                   64838: 
                   64839: 
                   64840:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   64841: 
                   64842:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   64843:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   64844:     eval "EXTRA_LDFLAGS$unique=set"
                   64845:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   64846:   fi
                   64847: 
                   64848:       fi
                   64849:     ;;
                   64850:     -l*)
                   64851:       ac_ii=`echo $ac_i|cut -c 3-`
                   64852: 
                   64853: 
                   64854:   case $ac_ii in
                   64855:   c|c_r|pthread*) ;;
                   64856:   *)
                   64857:     if test "$ext_shared" = "yes"; then
                   64858:         OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii"
                   64859:     else
                   64860: 
                   64861: 
                   64862:   case $ac_ii in
                   64863:   c|c_r|pthread*) ;;
                   64864:   *)
                   64865:       LIBS="$LIBS -l$ac_ii"
                   64866:    ;;
                   64867:   esac
                   64868: 
                   64869: 
                   64870:     fi
                   64871:    ;;
                   64872:   esac
                   64873: 
                   64874: 
                   64875:     ;;
                   64876:     -L*)
                   64877:       ac_ii=`echo $ac_i|cut -c 3-`
                   64878: 
                   64879:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   64880: 
                   64881:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   64882:     ai_p=$ac_ii
                   64883:   else
                   64884: 
                   64885:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   64886: 
                   64887:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   64888:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   64889:   fi
                   64890: 
                   64891: 
                   64892:       if test "$ext_shared" = "yes"; then
                   64893:         OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
                   64894:         test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
                   64895:       else
                   64896: 
                   64897: 
                   64898: 
                   64899:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   64900: 
                   64901:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   64902:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   64903:     eval "LIBPATH$unique=set"
                   64904: 
                   64905:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   64906:     LDFLAGS="$LDFLAGS -L$ai_p"
                   64907:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   64908: 
                   64909:   fi
                   64910: 
                   64911: 
                   64912:       fi
                   64913: 
                   64914:   fi
                   64915: 
                   64916:     ;;
                   64917:     esac
                   64918:   done
                   64919: 
                   64920:     fi
                   64921: 
                   64922: 
                   64923:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle library version compatibility" >&5
                   64924: $as_echo_n "checking Oracle library version compatibility... " >&6; }
                   64925:   OCI8_LCS_BASE=$OCI8_DIR/$OCI8_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME
                   64926:   OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | tail -1`  # Oracle 10g, 11g etc
                   64927:   if test -s "$OCI8_DIR/orainst/unix.rgs"; then
                   64928:     OCI8_ORACLE_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | $PHP_OCI8_SED 's/  */:/g' | cut -d: -f 6 | cut -c 2-4`
                   64929:     test -z "$OCI8_ORACLE_VERSION" && OCI8_ORACLE_VERSION=7.3
                   64930:   elif test -f "$OCI8_LCS"; then
                   64931:         OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'`
                   64932:   elif test -f $OCI8_LCS_BASE.9.0; then
                   64933:         OCI8_ORACLE_VERSION=9.0
                   64934:   elif test -f $OCI8_LCS_BASE.8.0; then
                   64935:     OCI8_ORACLE_VERSION=8.1
                   64936:   elif test -f $OCI8_LCS_BASE.1.0; then
                   64937:     OCI8_ORACLE_VERSION=8.0
                   64938:   elif test -f $OCI8_DIR/$OCI8_LIB_DIR/libclntsh.a; then
                   64939:     if test -f $OCI8_DIR/$OCI8_LIB_DIR/libcore4.a; then
                   64940:       OCI8_ORACLE_VERSION=8.0
                   64941:     else
                   64942:       OCI8_ORACLE_VERSION=8.1
                   64943:     fi
                   64944:   else
                   64945:     as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found" "$LINENO" 5
                   64946:   fi
                   64947:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5
                   64948: $as_echo "$OCI8_ORACLE_VERSION" >&6; }
                   64949: 
                   64950: 
                   64951:     case $OCI8_ORACLE_VERSION in
                   64952:       7.3|8.0|8.1)
                   64953:        as_fn_error $? "Oracle client libraries < 9.2 are not supported" "$LINENO" 5
                   64954:        ;;
                   64955: 
                   64956:       9.0)
                   64957: 
                   64958:   save_old_LDFLAGS=$LDFLAGS
                   64959:   ac_stuff="
                   64960:          -L$OCI8_DIR/$OCI8_LIB_DIR $OCI8_SHARED_LIBADD
                   64961:        "
                   64962: 
                   64963:   save_ext_shared=$ext_shared
                   64964:   ext_shared=yes
                   64965: 
                   64966:   for ac_i in $ac_stuff; do
                   64967:     case $ac_i in
                   64968:     -pthread)
                   64969:       if test "$ext_shared" = "yes"; then
                   64970:         LDFLAGS="$LDFLAGS -pthread"
                   64971:       else
                   64972: 
                   64973: 
                   64974:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   64975: 
                   64976:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   64977:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   64978:     eval "EXTRA_LDFLAGS$unique=set"
                   64979:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   64980:   fi
                   64981: 
                   64982:       fi
                   64983:     ;;
                   64984:     -l*)
                   64985:       ac_ii=`echo $ac_i|cut -c 3-`
                   64986: 
                   64987: 
                   64988:   case $ac_ii in
                   64989:   c|c_r|pthread*) ;;
                   64990:   *)
                   64991:     if test "$ext_shared" = "yes"; then
                   64992:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   64993:     else
                   64994: 
                   64995: 
                   64996:   case $ac_ii in
                   64997:   c|c_r|pthread*) ;;
                   64998:   *)
                   64999:       LIBS="$LIBS -l$ac_ii"
                   65000:    ;;
                   65001:   esac
                   65002: 
                   65003: 
                   65004:     fi
                   65005:    ;;
                   65006:   esac
                   65007: 
                   65008: 
                   65009:     ;;
                   65010:     -L*)
                   65011:       ac_ii=`echo $ac_i|cut -c 3-`
                   65012: 
                   65013:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   65014: 
                   65015:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   65016:     ai_p=$ac_ii
                   65017:   else
                   65018: 
                   65019:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   65020: 
                   65021:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   65022:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   65023:   fi
                   65024: 
                   65025: 
                   65026:       if test "$ext_shared" = "yes"; then
                   65027:         LDFLAGS="-L$ai_p $LDFLAGS"
                   65028:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   65029:       else
                   65030: 
                   65031: 
                   65032: 
                   65033:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   65034: 
                   65035:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   65036:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   65037:     eval "LIBPATH$unique=set"
                   65038: 
                   65039:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   65040:     LDFLAGS="$LDFLAGS -L$ai_p"
                   65041:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   65042: 
                   65043:   fi
                   65044: 
                   65045: 
                   65046:       fi
                   65047: 
                   65048:   fi
                   65049: 
                   65050:     ;;
                   65051:     esac
                   65052:   done
                   65053: 
                   65054:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5
                   65055: $as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; }
                   65056: if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then :
                   65057:   $as_echo_n "(cached) " >&6
                   65058: else
                   65059:   ac_check_lib_save_LIBS=$LIBS
                   65060: LIBS="-lclntsh  $LIBS"
                   65061: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   65062: /* end confdefs.h.  */
                   65063: 
                   65064: /* Override any GCC internal prototype to avoid an error.
                   65065:    Use char because int might match the return type of a GCC
                   65066:    builtin and then its argument prototype would still apply.  */
                   65067: #ifdef __cplusplus
                   65068: extern "C"
                   65069: #endif
                   65070: char OCIEnvNlsCreate ();
                   65071: int
                   65072: main ()
                   65073: {
                   65074: return OCIEnvNlsCreate ();
                   65075:   ;
                   65076:   return 0;
                   65077: }
                   65078: _ACEOF
                   65079: if ac_fn_c_try_link "$LINENO"; then :
                   65080:   ac_cv_lib_clntsh_OCIEnvNlsCreate=yes
                   65081: else
                   65082:   ac_cv_lib_clntsh_OCIEnvNlsCreate=no
                   65083: fi
                   65084: rm -f core conftest.err conftest.$ac_objext \
                   65085:     conftest$ac_exeext conftest.$ac_ext
                   65086: LIBS=$ac_check_lib_save_LIBS
                   65087: fi
                   65088: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5
                   65089: $as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; }
                   65090: if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then :
                   65091: 
                   65092:     LDFLAGS=$save_old_LDFLAGS
                   65093:     ext_shared=$save_ext_shared
                   65094: 
                   65095:          OCI8_ORACLE_VERSION=9.2
                   65096: 
                   65097: 
                   65098: else
                   65099: 
                   65100:     LDFLAGS=$save_old_LDFLAGS
                   65101:     ext_shared=$save_ext_shared
                   65102:     unset ac_cv_lib_clntsh_OCIEnvNlsCreate
                   65103: 
                   65104:          as_fn_error $? "Oracle client libraries < 9.2 are not supported" "$LINENO" 5
                   65105: 
                   65106: 
                   65107: fi
                   65108: 
                   65109:        ;;
                   65110: 
                   65111:       *)
                   65112: 
                   65113: $as_echo "#define HAVE_OCI_LOB_READ2 1" >>confdefs.h
                   65114: 
                   65115:        ;;
                   65116:     esac
                   65117: 
                   65118: 
                   65119: 
                   65120:   case clntsh in
                   65121:   c|c_r|pthread*) ;;
                   65122:   *)
                   65123:     if test "$ext_shared" = "yes"; then
                   65124:         OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh"
                   65125:     else
                   65126: 
                   65127: 
                   65128:   case clntsh in
                   65129:   c|c_r|pthread*) ;;
                   65130:   *)
                   65131:       LIBS="$LIBS -lclntsh"
                   65132:    ;;
                   65133:   esac
                   65134: 
                   65135: 
                   65136:     fi
                   65137:    ;;
                   65138:   esac
                   65139: 
                   65140: 
                   65141: 
                   65142:   if test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/lib"; then
                   65143: 
                   65144:   if test -z "$OCI8_DIR/$OCI8_LIB_DIR" || echo "$OCI8_DIR/$OCI8_LIB_DIR" | grep '^/' >/dev/null ; then
                   65145:     ai_p=$OCI8_DIR/$OCI8_LIB_DIR
                   65146:   else
                   65147: 
                   65148:     ep_dir="`echo $OCI8_DIR/$OCI8_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   65149: 
                   65150:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   65151:     ai_p="$ep_realdir/`basename \"$OCI8_DIR/$OCI8_LIB_DIR\"`"
                   65152:   fi
                   65153: 
                   65154: 
                   65155:       if test "$ext_shared" = "yes"; then
                   65156:         OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD"
                   65157:         test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD"
                   65158:       else
                   65159: 
                   65160: 
                   65161: 
                   65162:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   65163: 
                   65164:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   65165:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   65166:     eval "LIBPATH$unique=set"
                   65167: 
                   65168:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   65169:     LDFLAGS="$LDFLAGS -L$ai_p"
                   65170:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   65171: 
                   65172:   fi
                   65173: 
                   65174: 
                   65175:       fi
                   65176: 
                   65177:   fi
                   65178: 
                   65179: 
                   65180:   ext_builddir=ext/oci8
                   65181:   ext_srcdir=$abs_srcdir/ext/oci8
                   65182: 
                   65183:   ac_extra=
                   65184: 
                   65185:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   65186:     PHP_OCI8_SHARED=no
                   65187: 
                   65188: 
                   65189:   case ext/oci8 in
                   65190:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   65191:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   65192:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   65193:   esac
                   65194: 
                   65195: 
                   65196: 
                   65197:   b_c_pre=$php_c_pre
                   65198:   b_cxx_pre=$php_cxx_pre
                   65199:   b_c_meta=$php_c_meta
                   65200:   b_cxx_meta=$php_cxx_meta
                   65201:   b_c_post=$php_c_post
                   65202:   b_cxx_post=$php_cxx_post
                   65203:   b_lo=$php_lo
                   65204: 
                   65205: 
                   65206:   old_IFS=$IFS
                   65207:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
                   65208: 
                   65209:       IFS=.
                   65210:       set $ac_src
                   65211:       ac_obj=$1
                   65212:       IFS=$old_IFS
                   65213: 
                   65214:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   65215: 
                   65216:       case $ac_src in
                   65217:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65218:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65219:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65220:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   65221:       esac
                   65222: 
                   65223:     cat >>Makefile.objects<<EOF
                   65224: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   65225:        $ac_comp
                   65226: EOF
                   65227:   done
                   65228: 
                   65229: 
                   65230:     EXT_STATIC="$EXT_STATIC oci8"
                   65231:     if test "$ext_shared" != "nocli"; then
                   65232:       EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
                   65233:     fi
                   65234:   else
                   65235:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   65236:       PHP_OCI8_SHARED=yes
                   65237: 
                   65238:   case ext/oci8 in
                   65239:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   65240:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   65241:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   65242:   esac
                   65243: 
                   65244: 
                   65245: 
                   65246:   b_c_pre=$shared_c_pre
                   65247:   b_cxx_pre=$shared_cxx_pre
                   65248:   b_c_meta=$shared_c_meta
                   65249:   b_cxx_meta=$shared_cxx_meta
                   65250:   b_c_post=$shared_c_post
                   65251:   b_cxx_post=$shared_cxx_post
                   65252:   b_lo=$shared_lo
                   65253: 
                   65254: 
                   65255:   old_IFS=$IFS
                   65256:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
                   65257: 
                   65258:       IFS=.
                   65259:       set $ac_src
                   65260:       ac_obj=$1
                   65261:       IFS=$old_IFS
                   65262: 
                   65263:       shared_objects_oci8="$shared_objects_oci8 $ac_bdir$ac_obj.lo"
                   65264: 
                   65265:       case $ac_src in
                   65266:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65267:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65268:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65269:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   65270:       esac
                   65271: 
                   65272:     cat >>Makefile.objects<<EOF
                   65273: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   65274:        $ac_comp
                   65275: EOF
                   65276:   done
                   65277: 
                   65278:       case $host_alias in
                   65279:         *netware*)
                   65280: 
                   65281:   install_modules="install-modules"
                   65282: 
                   65283:   case $host_alias in
                   65284:     *aix*)
                   65285:       suffix=so
                   65286:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpoci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(PHPOCI8_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpoci8.so '$ext_builddir'/phpoci8.so'
                   65287:       ;;
                   65288:     *netware*)
                   65289:       suffix=nlm
                   65290:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) -L$(top_builddir)/netware -lphp5lib $(OCI8_SHARED_LIBADD)'
                   65291:       ;;
                   65292:     *)
                   65293:       suffix=la
                   65294:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(PHPOCI8_SHARED_LIBADD)'
                   65295:       ;;
                   65296:   esac
                   65297: 
                   65298:   if test "x" = "xyes"; then
                   65299:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpoci8.$suffix"
                   65300:   else
                   65301:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpoci8.$suffix"
                   65302:   fi
                   65303: 
                   65304:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
                   65305: 
                   65306:   cat >>Makefile.objects<<EOF
                   65307: \$(phplibdir)/phpoci8.$suffix: $ext_builddir/phpoci8.$suffix
                   65308:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpoci8.$suffix \$(phplibdir)
                   65309: 
                   65310: $ext_builddir/phpoci8.$suffix: \$(shared_objects_oci8) \$(PHPOCI8_SHARED_DEPENDENCIES)
                   65311:        $link_cmd
                   65312: 
                   65313: EOF
                   65314: 
                   65315:           ;;
                   65316:         *)
                   65317: 
                   65318:   install_modules="install-modules"
                   65319: 
                   65320:   case $host_alias in
                   65321:     *aix*)
                   65322:       suffix=so
                   65323:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/oci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(OCI8_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/oci8.so '$ext_builddir'/oci8.so'
                   65324:       ;;
                   65325:     *netware*)
                   65326:       suffix=nlm
                   65327:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) -L$(top_builddir)/netware -lphp5lib $(8_SHARED_LIBADD)'
                   65328:       ;;
                   65329:     *)
                   65330:       suffix=la
                   65331:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(OCI8_SHARED_LIBADD)'
                   65332:       ;;
                   65333:   esac
                   65334: 
                   65335:   if test "x" = "xyes"; then
                   65336:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/oci8.$suffix"
                   65337:   else
                   65338:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/oci8.$suffix"
                   65339:   fi
                   65340: 
                   65341:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
                   65342: 
                   65343:   cat >>Makefile.objects<<EOF
                   65344: \$(phplibdir)/oci8.$suffix: $ext_builddir/oci8.$suffix
                   65345:        \$(LIBTOOL) --mode=install cp $ext_builddir/oci8.$suffix \$(phplibdir)
                   65346: 
                   65347: $ext_builddir/oci8.$suffix: \$(shared_objects_oci8) \$(OCI8_SHARED_DEPENDENCIES)
                   65348:        $link_cmd
                   65349: 
                   65350: EOF
                   65351: 
                   65352:           ;;
                   65353:       esac
                   65354: 
                   65355: cat >>confdefs.h <<_ACEOF
                   65356: #define COMPILE_DL_OCI8 1
                   65357: _ACEOF
                   65358: 
                   65359:     fi
                   65360:   fi
                   65361: 
                   65362:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   65363:     PHP_OCI8_SHARED=no
                   65364: 
                   65365: 
                   65366:   case ext/oci8 in
                   65367:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   65368:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   65369:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   65370:   esac
                   65371: 
                   65372: 
                   65373: 
                   65374:   b_c_pre=$php_c_pre
                   65375:   b_cxx_pre=$php_cxx_pre
                   65376:   b_c_meta=$php_c_meta
                   65377:   b_cxx_meta=$php_cxx_meta
                   65378:   b_c_post=$php_c_post
                   65379:   b_cxx_post=$php_cxx_post
                   65380:   b_lo=$php_lo
                   65381: 
                   65382: 
                   65383:   old_IFS=$IFS
                   65384:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
                   65385: 
                   65386:       IFS=.
                   65387:       set $ac_src
                   65388:       ac_obj=$1
                   65389:       IFS=$old_IFS
                   65390: 
1.1.1.2 ! misho    65391:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    65392: 
                   65393:       case $ac_src in
                   65394:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65395:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65396:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65397:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   65398:       esac
                   65399: 
                   65400:     cat >>Makefile.objects<<EOF
                   65401: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   65402:        $ac_comp
                   65403: EOF
                   65404:   done
                   65405: 
                   65406: 
                   65407: 
                   65408: 
                   65409:   case ext/oci8 in
                   65410:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   65411:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   65412:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   65413:   esac
                   65414: 
                   65415: 
                   65416: 
                   65417:   b_c_pre=$php_c_pre
                   65418:   b_cxx_pre=$php_cxx_pre
                   65419:   b_c_meta=$php_c_meta
                   65420:   b_cxx_meta=$php_cxx_meta
                   65421:   b_c_post=$php_c_post
                   65422:   b_cxx_post=$php_cxx_post
                   65423:   b_lo=$php_lo
                   65424: 
                   65425: 
                   65426:   old_IFS=$IFS
                   65427:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
                   65428: 
                   65429:       IFS=.
                   65430:       set $ac_src
                   65431:       ac_obj=$1
                   65432:       IFS=$old_IFS
                   65433: 
1.1.1.2 ! misho    65434:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    65435: 
                   65436:       case $ac_src in
                   65437:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65438:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65439:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65440:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   65441:       esac
                   65442: 
                   65443:     cat >>Makefile.objects<<EOF
                   65444: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   65445:        $ac_comp
                   65446: EOF
                   65447:   done
                   65448: 
                   65449: 
                   65450: 
                   65451: 
                   65452:   case ext/oci8 in
                   65453:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   65454:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   65455:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   65456:   esac
                   65457: 
                   65458: 
                   65459: 
                   65460:   b_c_pre=$php_c_pre
                   65461:   b_cxx_pre=$php_cxx_pre
                   65462:   b_c_meta=$php_c_meta
                   65463:   b_cxx_meta=$php_cxx_meta
                   65464:   b_c_post=$php_c_post
                   65465:   b_cxx_post=$php_cxx_post
                   65466:   b_lo=$php_lo
                   65467: 
                   65468: 
                   65469:   old_IFS=$IFS
                   65470:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
                   65471: 
                   65472:       IFS=.
                   65473:       set $ac_src
                   65474:       ac_obj=$1
                   65475:       IFS=$old_IFS
                   65476: 
1.1.1.2 ! misho    65477:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    65478: 
                   65479:       case $ac_src in
                   65480:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65481:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65482:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65483:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   65484:       esac
                   65485: 
                   65486:     cat >>Makefile.objects<<EOF
                   65487: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   65488:        $ac_comp
                   65489: EOF
                   65490:   done
                   65491: 
                   65492: 
                   65493:     EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
                   65494:   fi
                   65495: 
                   65496: 
                   65497:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   65498: 
                   65499: 
                   65500: 
                   65501:   if test "$ext_builddir" = "."; then
                   65502:     PHP_PECL_EXTENSION=oci8
                   65503: 
                   65504:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   65505: 
                   65506:   fi
                   65507: 
                   65508: 
                   65509: $as_echo "#define HAVE_OCI8 1" >>confdefs.h
                   65510: 
                   65511: 
                   65512: 
                   65513: 
                   65514:   PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD"
                   65515: 
                   65516: 
                   65517: 
                   65518: 
                   65519: 
                   65520:   PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR"
                   65521: 
                   65522: 
                   65523: 
                   65524: 
                   65525: 
                   65526:   PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION"
                   65527: 
                   65528: 
                   65529: 
                   65530: 
                   65531: 
                   65532: cat >>confdefs.h <<_ACEOF
                   65533: #define PHP_OCI8_DEF_DIR "$OCI8_DIR"
                   65534: _ACEOF
                   65535: 
                   65536: 
                   65537: cat >>confdefs.h <<_ACEOF
                   65538: #define PHP_OCI8_DEF_SHARED_LIBADD "$OCI8_SHARED_LIBADD"
                   65539: _ACEOF
                   65540: 
                   65541: 
                   65542:   else
                   65543: 
                   65544:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client directory" >&5
                   65545: $as_echo_n "checking Oracle Instant Client directory... " >&6; }
                   65546: 
                   65547:     if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then
                   65548:                                     PHP_OCI8_INSTANT_CLIENT=`ls -d /usr/lib/oracle/*/client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib/libclntsh.* 2> /dev/null | tail -1 | $PHP_OCI8_SED -e 's#/libclntsh[^/]*##'`
                   65549:       if test -z "$PHP_OCI8_INSTANT_CLIENT"; then
                   65550:        as_fn_error $? "Oracle Instant Client directory /usr/lib/oracle/.../client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib libraries not found. Try --with-oci8=instantclient,DIR" "$LINENO" 5
                   65551:       fi
                   65552:     fi
                   65553:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_OCI8_INSTANT_CLIENT" >&5
                   65554: $as_echo "$PHP_OCI8_INSTANT_CLIENT" >&6; }
                   65555: 
                   65556:     OCI8_DIR=$PHP_OCI8_INSTANT_CLIENT
                   65557: 
                   65558:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client SDK header directory" >&5
                   65559: $as_echo_n "checking Oracle Instant Client SDK header directory... " >&6; }
                   65560: 
                   65561:         OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'`
                   65562: 
                   65563:         OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include
                   65564: 
                   65565:         OCISDKMANINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!\(.*\)/lib/*$!\1/include!'`
                   65566: 
                   65567:     if test -f "$OCISDKRPMINC/oci.h"; then
                   65568:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKRPMINC" >&5
                   65569: $as_echo "$OCISDKRPMINC" >&6; }
                   65570: 
                   65571:   if test "$OCISDKRPMINC" != "/usr/include"; then
                   65572: 
                   65573:   if test -z "$OCISDKRPMINC" || echo "$OCISDKRPMINC" | grep '^/' >/dev/null ; then
                   65574:     ai_p=$OCISDKRPMINC
                   65575:   else
                   65576: 
                   65577:     ep_dir="`echo $OCISDKRPMINC|$SED 's%/*[^/][^/]*/*$%%'`"
                   65578: 
                   65579:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   65580:     ai_p="$ep_realdir/`basename \"$OCISDKRPMINC\"`"
                   65581:   fi
                   65582: 
                   65583: 
                   65584: 
                   65585:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   65586: 
                   65587:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   65588:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   65589:     eval "INCLUDEPATH$unique=set"
                   65590: 
                   65591:       if test ""; then
                   65592:         INCLUDES="-I$ai_p $INCLUDES"
                   65593:       else
                   65594:         INCLUDES="$INCLUDES -I$ai_p"
                   65595:       fi
                   65596: 
                   65597:   fi
                   65598: 
                   65599:   fi
                   65600: 
                   65601:       OCI8INCDIR=$OCISDKRPMINC
                   65602:     elif test -f "$OCISDKZIPINC/oci.h"; then
                   65603:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKZIPINC" >&5
                   65604: $as_echo "$OCISDKZIPINC" >&6; }
                   65605: 
                   65606:   if test "$OCISDKZIPINC" != "/usr/include"; then
                   65607: 
                   65608:   if test -z "$OCISDKZIPINC" || echo "$OCISDKZIPINC" | grep '^/' >/dev/null ; then
                   65609:     ai_p=$OCISDKZIPINC
                   65610:   else
                   65611: 
                   65612:     ep_dir="`echo $OCISDKZIPINC|$SED 's%/*[^/][^/]*/*$%%'`"
                   65613: 
                   65614:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   65615:     ai_p="$ep_realdir/`basename \"$OCISDKZIPINC\"`"
                   65616:   fi
                   65617: 
                   65618: 
                   65619: 
                   65620:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   65621: 
                   65622:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   65623:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   65624:     eval "INCLUDEPATH$unique=set"
                   65625: 
                   65626:       if test ""; then
                   65627:         INCLUDES="-I$ai_p $INCLUDES"
                   65628:       else
                   65629:         INCLUDES="$INCLUDES -I$ai_p"
                   65630:       fi
                   65631: 
                   65632:   fi
                   65633: 
                   65634:   fi
                   65635: 
                   65636:       OCI8INCDIR=$OCISDKZIPINC
                   65637:     elif test -f "$OCISDKMANINC/oci.h"; then
                   65638:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKMANINC" >&5
                   65639: $as_echo "$OCISDKMANINC" >&6; }
                   65640: 
                   65641:   if test "$OCISDKMANINC" != "/usr/include"; then
                   65642: 
                   65643:   if test -z "$OCISDKMANINC" || echo "$OCISDKMANINC" | grep '^/' >/dev/null ; then
                   65644:     ai_p=$OCISDKMANINC
                   65645:   else
                   65646: 
                   65647:     ep_dir="`echo $OCISDKMANINC|$SED 's%/*[^/][^/]*/*$%%'`"
                   65648: 
                   65649:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   65650:     ai_p="$ep_realdir/`basename \"$OCISDKMANINC\"`"
                   65651:   fi
                   65652: 
                   65653: 
                   65654: 
                   65655:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   65656: 
                   65657:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   65658:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   65659:     eval "INCLUDEPATH$unique=set"
                   65660: 
                   65661:       if test ""; then
                   65662:         INCLUDES="-I$ai_p $INCLUDES"
                   65663:       else
                   65664:         INCLUDES="$INCLUDES -I$ai_p"
                   65665:       fi
                   65666: 
                   65667:   fi
                   65668: 
                   65669:   fi
                   65670: 
                   65671:       OCI8INCDIR=$OCISDKMANINC
                   65672:     else
                   65673:       as_fn_error $? "Oracle Instant Client SDK header files not found" "$LINENO" 5
                   65674:     fi
                   65675: 
                   65676:     OCISYSLIBLIST=`echo "$OCI8INCDIR" | $PHP_OCI8_SED -e 's!\(.*\)/include$!\1/demo/sysliblist!'`
                   65677:     if test -f "$OCISYSLIBLIST"; then
                   65678: 
                   65679:   for ac_i in `cat $OCISYSLIBLIST`; do
                   65680:     case $ac_i in
                   65681:     -pthread)
                   65682:       if test "$ext_shared" = "yes"; then
                   65683:         OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
                   65684:       else
                   65685: 
                   65686: 
                   65687:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   65688: 
                   65689:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   65690:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   65691:     eval "EXTRA_LDFLAGS$unique=set"
                   65692:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   65693:   fi
                   65694: 
                   65695:       fi
                   65696:     ;;
                   65697:     -l*)
                   65698:       ac_ii=`echo $ac_i|cut -c 3-`
                   65699: 
                   65700: 
                   65701:   case $ac_ii in
                   65702:   c|c_r|pthread*) ;;
                   65703:   *)
                   65704:     if test "$ext_shared" = "yes"; then
                   65705:         OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii"
                   65706:     else
                   65707: 
                   65708: 
                   65709:   case $ac_ii in
                   65710:   c|c_r|pthread*) ;;
                   65711:   *)
                   65712:       LIBS="$LIBS -l$ac_ii"
                   65713:    ;;
                   65714:   esac
                   65715: 
                   65716: 
                   65717:     fi
                   65718:    ;;
                   65719:   esac
                   65720: 
                   65721: 
                   65722:     ;;
                   65723:     -L*)
                   65724:       ac_ii=`echo $ac_i|cut -c 3-`
                   65725: 
                   65726:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   65727: 
                   65728:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   65729:     ai_p=$ac_ii
                   65730:   else
                   65731: 
                   65732:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   65733: 
                   65734:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   65735:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   65736:   fi
                   65737: 
                   65738: 
                   65739:       if test "$ext_shared" = "yes"; then
                   65740:         OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
                   65741:         test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
                   65742:       else
                   65743: 
                   65744: 
                   65745: 
                   65746:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   65747: 
                   65748:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   65749:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   65750:     eval "LIBPATH$unique=set"
                   65751: 
                   65752:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   65753:     LDFLAGS="$LDFLAGS -L$ai_p"
                   65754:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   65755: 
                   65756:   fi
                   65757: 
                   65758: 
                   65759:       fi
                   65760: 
                   65761:   fi
                   65762: 
                   65763:     ;;
                   65764:     esac
                   65765:   done
                   65766: 
                   65767:     fi
                   65768: 
                   65769: 
                   65770:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client library version compatibility" >&5
                   65771: $as_echo_n "checking Oracle Instant Client library version compatibility... " >&6; }
                   65772:   OCI8_LCS_BASE=$PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME
                   65773:   OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | tail -1`  # Oracle 10g, 11g etc
                   65774:   OCI8_NNZ=`ls $PHP_OCI8_INSTANT_CLIENT/libnnz*.$SHLIB_SUFFIX_NAME 2> /dev/null | tail -1`
                   65775:   if test -f "$OCI8_NNZ" && test -f "$OCI8_LCS"; then
                   65776:     if test ! -f "$OCI8_LCS_BASE"; then
                   65777:       as_fn_error $? "Link from $OCI8_LCS_BASE to $OCI8_LCS_BASE.*.1 not found" "$LINENO" 5
                   65778:     fi
                   65779:     OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'`
                   65780:   else
                   65781:     as_fn_error $? "Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found" "$LINENO" 5
                   65782:   fi
                   65783:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5
                   65784: $as_echo "$OCI8_ORACLE_VERSION" >&6; }
                   65785: 
                   65786: 
                   65787: 
                   65788:   case clntsh in
                   65789:   c|c_r|pthread*) ;;
                   65790:   *)
                   65791:     if test "$ext_shared" = "yes"; then
                   65792:         OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh"
                   65793:     else
                   65794: 
                   65795: 
                   65796:   case clntsh in
                   65797:   c|c_r|pthread*) ;;
                   65798:   *)
                   65799:       LIBS="$LIBS -lclntsh"
                   65800:    ;;
                   65801:   esac
                   65802: 
                   65803: 
                   65804:     fi
                   65805:    ;;
                   65806:   esac
                   65807: 
                   65808: 
                   65809: 
                   65810:   if test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/$PHP_LIBDIR" && test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/lib"; then
                   65811: 
                   65812:   if test -z "$PHP_OCI8_INSTANT_CLIENT" || echo "$PHP_OCI8_INSTANT_CLIENT" | grep '^/' >/dev/null ; then
                   65813:     ai_p=$PHP_OCI8_INSTANT_CLIENT
                   65814:   else
                   65815: 
                   65816:     ep_dir="`echo $PHP_OCI8_INSTANT_CLIENT|$SED 's%/*[^/][^/]*/*$%%'`"
                   65817: 
                   65818:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   65819:     ai_p="$ep_realdir/`basename \"$PHP_OCI8_INSTANT_CLIENT\"`"
                   65820:   fi
                   65821: 
                   65822: 
                   65823:       if test "$ext_shared" = "yes"; then
                   65824:         OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD"
                   65825:         test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD"
                   65826:       else
                   65827: 
                   65828: 
                   65829: 
                   65830:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   65831: 
                   65832:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   65833:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   65834:     eval "LIBPATH$unique=set"
                   65835: 
                   65836:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   65837:     LDFLAGS="$LDFLAGS -L$ai_p"
                   65838:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   65839: 
                   65840:   fi
                   65841: 
                   65842: 
                   65843:       fi
                   65844: 
                   65845:   fi
                   65846: 
                   65847: 
                   65848: 
                   65849: $as_echo "#define HAVE_OCI_INSTANT_CLIENT 1" >>confdefs.h
                   65850: 
                   65851: 
                   65852: $as_echo "#define HAVE_OCI_LOB_READ2 1" >>confdefs.h
                   65853: 
                   65854: 
                   65855: 
                   65856:   ext_builddir=ext/oci8
                   65857:   ext_srcdir=$abs_srcdir/ext/oci8
                   65858: 
                   65859:   ac_extra=
                   65860: 
                   65861:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   65862:     PHP_OCI8_SHARED=no
                   65863: 
                   65864: 
                   65865:   case ext/oci8 in
                   65866:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   65867:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   65868:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   65869:   esac
                   65870: 
                   65871: 
                   65872: 
                   65873:   b_c_pre=$php_c_pre
                   65874:   b_cxx_pre=$php_cxx_pre
                   65875:   b_c_meta=$php_c_meta
                   65876:   b_cxx_meta=$php_cxx_meta
                   65877:   b_c_post=$php_c_post
                   65878:   b_cxx_post=$php_cxx_post
                   65879:   b_lo=$php_lo
                   65880: 
                   65881: 
                   65882:   old_IFS=$IFS
                   65883:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
                   65884: 
                   65885:       IFS=.
                   65886:       set $ac_src
                   65887:       ac_obj=$1
                   65888:       IFS=$old_IFS
                   65889: 
                   65890:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   65891: 
                   65892:       case $ac_src in
                   65893:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65894:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65895:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65896:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   65897:       esac
                   65898: 
                   65899:     cat >>Makefile.objects<<EOF
                   65900: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   65901:        $ac_comp
                   65902: EOF
                   65903:   done
                   65904: 
                   65905: 
                   65906:     EXT_STATIC="$EXT_STATIC oci8"
                   65907:     if test "$ext_shared" != "nocli"; then
                   65908:       EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
                   65909:     fi
                   65910:   else
                   65911:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   65912:       PHP_OCI8_SHARED=yes
                   65913: 
                   65914:   case ext/oci8 in
                   65915:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   65916:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   65917:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   65918:   esac
                   65919: 
                   65920: 
                   65921: 
                   65922:   b_c_pre=$shared_c_pre
                   65923:   b_cxx_pre=$shared_cxx_pre
                   65924:   b_c_meta=$shared_c_meta
                   65925:   b_cxx_meta=$shared_cxx_meta
                   65926:   b_c_post=$shared_c_post
                   65927:   b_cxx_post=$shared_cxx_post
                   65928:   b_lo=$shared_lo
                   65929: 
                   65930: 
                   65931:   old_IFS=$IFS
                   65932:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
                   65933: 
                   65934:       IFS=.
                   65935:       set $ac_src
                   65936:       ac_obj=$1
                   65937:       IFS=$old_IFS
                   65938: 
                   65939:       shared_objects_oci8="$shared_objects_oci8 $ac_bdir$ac_obj.lo"
                   65940: 
                   65941:       case $ac_src in
                   65942:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65943:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65944:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   65945:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   65946:       esac
                   65947: 
                   65948:     cat >>Makefile.objects<<EOF
                   65949: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   65950:        $ac_comp
                   65951: EOF
                   65952:   done
                   65953: 
                   65954:       case $host_alias in
                   65955:         *netware*)
                   65956: 
                   65957:   install_modules="install-modules"
                   65958: 
                   65959:   case $host_alias in
                   65960:     *aix*)
                   65961:       suffix=so
                   65962:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpoci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(PHPOCI8_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpoci8.so '$ext_builddir'/phpoci8.so'
                   65963:       ;;
                   65964:     *netware*)
                   65965:       suffix=nlm
                   65966:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) -L$(top_builddir)/netware -lphp5lib $(OCI8_SHARED_LIBADD)'
                   65967:       ;;
                   65968:     *)
                   65969:       suffix=la
                   65970:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(PHPOCI8_SHARED_LIBADD)'
                   65971:       ;;
                   65972:   esac
                   65973: 
                   65974:   if test "x" = "xyes"; then
                   65975:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpoci8.$suffix"
                   65976:   else
                   65977:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpoci8.$suffix"
                   65978:   fi
                   65979: 
                   65980:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
                   65981: 
                   65982:   cat >>Makefile.objects<<EOF
                   65983: \$(phplibdir)/phpoci8.$suffix: $ext_builddir/phpoci8.$suffix
                   65984:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpoci8.$suffix \$(phplibdir)
                   65985: 
                   65986: $ext_builddir/phpoci8.$suffix: \$(shared_objects_oci8) \$(PHPOCI8_SHARED_DEPENDENCIES)
                   65987:        $link_cmd
                   65988: 
                   65989: EOF
                   65990: 
                   65991:           ;;
                   65992:         *)
                   65993: 
                   65994:   install_modules="install-modules"
                   65995: 
                   65996:   case $host_alias in
                   65997:     *aix*)
                   65998:       suffix=so
                   65999:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/oci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(OCI8_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/oci8.so '$ext_builddir'/oci8.so'
                   66000:       ;;
                   66001:     *netware*)
                   66002:       suffix=nlm
                   66003:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) -L$(top_builddir)/netware -lphp5lib $(8_SHARED_LIBADD)'
                   66004:       ;;
                   66005:     *)
                   66006:       suffix=la
                   66007:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(OCI8_SHARED_LIBADD)'
                   66008:       ;;
                   66009:   esac
                   66010: 
                   66011:   if test "x" = "xyes"; then
                   66012:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/oci8.$suffix"
                   66013:   else
                   66014:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/oci8.$suffix"
                   66015:   fi
                   66016: 
                   66017:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
                   66018: 
                   66019:   cat >>Makefile.objects<<EOF
                   66020: \$(phplibdir)/oci8.$suffix: $ext_builddir/oci8.$suffix
                   66021:        \$(LIBTOOL) --mode=install cp $ext_builddir/oci8.$suffix \$(phplibdir)
                   66022: 
                   66023: $ext_builddir/oci8.$suffix: \$(shared_objects_oci8) \$(OCI8_SHARED_DEPENDENCIES)
                   66024:        $link_cmd
                   66025: 
                   66026: EOF
                   66027: 
                   66028:           ;;
                   66029:       esac
                   66030: 
                   66031: cat >>confdefs.h <<_ACEOF
                   66032: #define COMPILE_DL_OCI8 1
                   66033: _ACEOF
                   66034: 
                   66035:     fi
                   66036:   fi
                   66037: 
                   66038:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   66039:     PHP_OCI8_SHARED=no
                   66040: 
                   66041: 
                   66042:   case ext/oci8 in
                   66043:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   66044:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   66045:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   66046:   esac
                   66047: 
                   66048: 
                   66049: 
                   66050:   b_c_pre=$php_c_pre
                   66051:   b_cxx_pre=$php_cxx_pre
                   66052:   b_c_meta=$php_c_meta
                   66053:   b_cxx_meta=$php_cxx_meta
                   66054:   b_c_post=$php_c_post
                   66055:   b_cxx_post=$php_cxx_post
                   66056:   b_lo=$php_lo
                   66057: 
                   66058: 
                   66059:   old_IFS=$IFS
                   66060:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
                   66061: 
                   66062:       IFS=.
                   66063:       set $ac_src
                   66064:       ac_obj=$1
                   66065:       IFS=$old_IFS
                   66066: 
1.1.1.2 ! misho    66067:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    66068: 
                   66069:       case $ac_src in
                   66070:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   66071:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   66072:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   66073:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   66074:       esac
                   66075: 
                   66076:     cat >>Makefile.objects<<EOF
                   66077: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   66078:        $ac_comp
                   66079: EOF
                   66080:   done
                   66081: 
                   66082: 
                   66083: 
                   66084: 
                   66085:   case ext/oci8 in
                   66086:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   66087:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   66088:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   66089:   esac
                   66090: 
                   66091: 
                   66092: 
                   66093:   b_c_pre=$php_c_pre
                   66094:   b_cxx_pre=$php_cxx_pre
                   66095:   b_c_meta=$php_c_meta
                   66096:   b_cxx_meta=$php_cxx_meta
                   66097:   b_c_post=$php_c_post
                   66098:   b_cxx_post=$php_cxx_post
                   66099:   b_lo=$php_lo
                   66100: 
                   66101: 
                   66102:   old_IFS=$IFS
                   66103:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
                   66104: 
                   66105:       IFS=.
                   66106:       set $ac_src
                   66107:       ac_obj=$1
                   66108:       IFS=$old_IFS
                   66109: 
1.1.1.2 ! misho    66110:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    66111: 
                   66112:       case $ac_src in
                   66113:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   66114:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   66115:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   66116:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   66117:       esac
                   66118: 
                   66119:     cat >>Makefile.objects<<EOF
                   66120: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   66121:        $ac_comp
                   66122: EOF
                   66123:   done
                   66124: 
                   66125: 
                   66126: 
                   66127: 
                   66128:   case ext/oci8 in
                   66129:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   66130:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   66131:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   66132:   esac
                   66133: 
                   66134: 
                   66135: 
                   66136:   b_c_pre=$php_c_pre
                   66137:   b_cxx_pre=$php_cxx_pre
                   66138:   b_c_meta=$php_c_meta
                   66139:   b_cxx_meta=$php_cxx_meta
                   66140:   b_c_post=$php_c_post
                   66141:   b_cxx_post=$php_cxx_post
                   66142:   b_lo=$php_lo
                   66143: 
                   66144: 
                   66145:   old_IFS=$IFS
                   66146:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
                   66147: 
                   66148:       IFS=.
                   66149:       set $ac_src
                   66150:       ac_obj=$1
                   66151:       IFS=$old_IFS
                   66152: 
1.1.1.2 ! misho    66153:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    66154: 
                   66155:       case $ac_src in
                   66156:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   66157:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   66158:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   66159:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   66160:       esac
                   66161: 
                   66162:     cat >>Makefile.objects<<EOF
                   66163: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   66164:        $ac_comp
                   66165: EOF
                   66166:   done
                   66167: 
                   66168: 
                   66169:     EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
                   66170:   fi
                   66171: 
                   66172: 
                   66173:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   66174: 
                   66175: 
                   66176: 
                   66177:   if test "$ext_builddir" = "."; then
                   66178:     PHP_PECL_EXTENSION=oci8
                   66179: 
                   66180:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   66181: 
                   66182:   fi
                   66183: 
                   66184: 
                   66185: $as_echo "#define HAVE_OCI8 1" >>confdefs.h
                   66186: 
                   66187: 
                   66188: 
                   66189: 
                   66190:   PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD"
                   66191: 
                   66192: 
                   66193: 
                   66194: 
                   66195: 
                   66196:   PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR"
                   66197: 
                   66198: 
                   66199: 
                   66200: 
                   66201: 
                   66202:   PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION"
                   66203: 
                   66204: 
                   66205: 
                   66206: 
                   66207:   fi
                   66208: fi
                   66209: 
                   66210: 
                   66211: 
                   66212: 
                   66213: 
                   66214: 
                   66215: 
                   66216: 
                   66217: 
                   66218: 
                   66219: 
                   66220: 
                   66221: if test -z "$ODBC_TYPE"; then
                   66222: 
                   66223: php_with_adabas=no
                   66224: 
                   66225: 
                   66226: 
                   66227: # Check whether --with-adabas was given.
                   66228: if test "${with_adabas+set}" = set; then :
                   66229:   withval=$with_adabas; PHP_ADABAS=$withval
                   66230: else
                   66231: 
                   66232:   PHP_ADABAS=no
                   66233:   test "$PHP_ENABLE_ALL" && PHP_ADABAS=$PHP_ENABLE_ALL
                   66234: 
                   66235: fi
                   66236: 
                   66237: 
                   66238: 
                   66239: ext_output="yes, shared"
                   66240: ext_shared=yes
                   66241: case $PHP_ADABAS in
                   66242: shared,*)
                   66243:   PHP_ADABAS=`echo "$PHP_ADABAS"|$SED 's/^shared,//'`
                   66244:   ;;
                   66245: shared)
                   66246:   PHP_ADABAS=yes
                   66247:   ;;
                   66248: no)
                   66249:   ext_output=no
                   66250:   ext_shared=no
                   66251:   ;;
                   66252: *)
                   66253:   ext_output=yes
                   66254:   ext_shared=no
                   66255:   ;;
                   66256: esac
                   66257: 
                   66258: 
                   66259: 
                   66260: 
                   66261: 
                   66262: 
                   66263: 
                   66264: 
                   66265:   if test "$PHP_ADABAS" != "no"; then
                   66266:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Adabas support" >&5
                   66267: $as_echo_n "checking for Adabas support... " >&6; }
                   66268:     if test "$PHP_ADABAS" = "yes"; then
                   66269:       PHP_ADABAS=/usr/local
                   66270:     fi
                   66271: 
                   66272:   if test "$PHP_ADABAS/incl" != "/usr/include"; then
                   66273: 
                   66274:   if test -z "$PHP_ADABAS/incl" || echo "$PHP_ADABAS/incl" | grep '^/' >/dev/null ; then
                   66275:     ai_p=$PHP_ADABAS/incl
                   66276:   else
                   66277: 
                   66278:     ep_dir="`echo $PHP_ADABAS/incl|$SED 's%/*[^/][^/]*/*$%%'`"
                   66279: 
                   66280:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   66281:     ai_p="$ep_realdir/`basename \"$PHP_ADABAS/incl\"`"
                   66282:   fi
                   66283: 
                   66284: 
                   66285: 
                   66286:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   66287: 
                   66288:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   66289:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   66290:     eval "INCLUDEPATH$unique=set"
                   66291: 
                   66292:       if test ""; then
                   66293:         INCLUDES="-I$ai_p $INCLUDES"
                   66294:       else
                   66295:         INCLUDES="$INCLUDES -I$ai_p"
                   66296:       fi
                   66297: 
                   66298:   fi
                   66299: 
                   66300:   fi
                   66301: 
                   66302: 
                   66303:   if test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/lib"; then
                   66304: 
                   66305:   if test -z "$PHP_ADABAS/$PHP_LIBDIR" || echo "$PHP_ADABAS/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   66306:     ai_p=$PHP_ADABAS/$PHP_LIBDIR
                   66307:   else
                   66308: 
                   66309:     ep_dir="`echo $PHP_ADABAS/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   66310: 
                   66311:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   66312:     ai_p="$ep_realdir/`basename \"$PHP_ADABAS/$PHP_LIBDIR\"`"
                   66313:   fi
                   66314: 
                   66315: 
                   66316: 
                   66317: 
                   66318: 
                   66319:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   66320: 
                   66321:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   66322:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   66323:     eval "LIBPATH$unique=set"
                   66324: 
                   66325:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   66326:     LDFLAGS="$LDFLAGS -L$ai_p"
                   66327:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   66328: 
                   66329:   fi
                   66330: 
                   66331: 
                   66332: 
                   66333:   fi
                   66334: 
                   66335:     ODBC_OBJS="$PHP_ADABAS/$PHP_LIBDIR/odbclib.a"
                   66336:     ODBC_LIB="$abs_builddir/ext/odbc/libodbc_adabas.a"
                   66337:     $srcdir/build/shtool mkdir -f -p ext/odbc
                   66338:     rm -f "$ODBC_LIB"
                   66339:     cp "$ODBC_OBJS" "$ODBC_LIB"
                   66340: 
                   66341: 
                   66342:   case sqlptc in
                   66343:   c|c_r|pthread*) ;;
                   66344:   *)
                   66345:       LIBS="-lsqlptc $LIBS"
                   66346:    ;;
                   66347:   esac
                   66348: 
                   66349: 
                   66350: 
                   66351: 
                   66352:   case sqlrte in
                   66353:   c|c_r|pthread*) ;;
                   66354:   *)
                   66355:       LIBS="-lsqlrte $LIBS"
                   66356:    ;;
                   66357:   esac
                   66358: 
                   66359: 
                   66360: 
                   66361: 
                   66362:   if test -n "$abs_builddir/ext/odbc"; then
                   66363: 
                   66364:   if test "$abs_builddir/ext/odbc" != "/usr/$PHP_LIBDIR" && test "$abs_builddir/ext/odbc" != "/usr/lib"; then
                   66365: 
                   66366:   if test -z "$abs_builddir/ext/odbc" || echo "$abs_builddir/ext/odbc" | grep '^/' >/dev/null ; then
                   66367:     ai_p=$abs_builddir/ext/odbc
                   66368:   else
                   66369: 
                   66370:     ep_dir="`echo $abs_builddir/ext/odbc|$SED 's%/*[^/][^/]*/*$%%'`"
                   66371: 
                   66372:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   66373:     ai_p="$ep_realdir/`basename \"$abs_builddir/ext/odbc\"`"
                   66374:   fi
                   66375: 
                   66376: 
                   66377: 
                   66378: 
                   66379: 
                   66380:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   66381: 
                   66382:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   66383:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   66384:     eval "LIBPATH$unique=set"
                   66385: 
                   66386:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   66387:     LDFLAGS="$LDFLAGS -L$ai_p"
                   66388:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   66389: 
                   66390:   fi
                   66391: 
                   66392: 
                   66393: 
                   66394:   fi
                   66395: 
                   66396:   fi
                   66397: 
                   66398: 
                   66399:   case odbc_adabas in
                   66400:   c|c_r|pthread*) ;;
                   66401:   *)
                   66402:       LIBS="-lodbc_adabas $LIBS"
                   66403:    ;;
                   66404:   esac
                   66405: 
                   66406: 
                   66407: 
                   66408: 
                   66409:     ODBC_TYPE=adabas
                   66410:     ODBC_INCDIR=$PHP_ADABAS/incl
                   66411: 
                   66412: if ! test -f "$ODBC_INCDIR/sqlext.h"; then
                   66413:   as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5
                   66414: fi
                   66415: 
                   66416: 
                   66417: $as_echo "#define HAVE_ADABAS 1" >>confdefs.h
                   66418: 
                   66419:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   66420: $as_echo "$ext_output" >&6; }
                   66421:   fi
                   66422: fi
                   66423: 
                   66424: if test -z "$ODBC_TYPE"; then
                   66425: 
                   66426: php_with_sapdb=no
                   66427: 
                   66428: 
                   66429: 
                   66430: # Check whether --with-sapdb was given.
                   66431: if test "${with_sapdb+set}" = set; then :
                   66432:   withval=$with_sapdb; PHP_SAPDB=$withval
                   66433: else
                   66434: 
                   66435:   PHP_SAPDB=no
                   66436:   test "$PHP_ENABLE_ALL" && PHP_SAPDB=$PHP_ENABLE_ALL
                   66437: 
                   66438: fi
                   66439: 
                   66440: 
                   66441: 
                   66442: ext_output="yes, shared"
                   66443: ext_shared=yes
                   66444: case $PHP_SAPDB in
                   66445: shared,*)
                   66446:   PHP_SAPDB=`echo "$PHP_SAPDB"|$SED 's/^shared,//'`
                   66447:   ;;
                   66448: shared)
                   66449:   PHP_SAPDB=yes
                   66450:   ;;
                   66451: no)
                   66452:   ext_output=no
                   66453:   ext_shared=no
                   66454:   ;;
                   66455: *)
                   66456:   ext_output=yes
                   66457:   ext_shared=no
                   66458:   ;;
                   66459: esac
                   66460: 
                   66461: 
                   66462: 
                   66463: 
                   66464: 
                   66465: 
                   66466: 
                   66467: 
                   66468:   if test "$PHP_SAPDB" != "no"; then
                   66469:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SAP DB support" >&5
                   66470: $as_echo_n "checking for SAP DB support... " >&6; }
                   66471:     if test "$PHP_SAPDB" = "yes"; then
                   66472:       PHP_SAPDB=/usr/local
                   66473:     fi
                   66474: 
                   66475:   if test "$PHP_SAPDB/incl" != "/usr/include"; then
                   66476: 
                   66477:   if test -z "$PHP_SAPDB/incl" || echo "$PHP_SAPDB/incl" | grep '^/' >/dev/null ; then
                   66478:     ai_p=$PHP_SAPDB/incl
                   66479:   else
                   66480: 
                   66481:     ep_dir="`echo $PHP_SAPDB/incl|$SED 's%/*[^/][^/]*/*$%%'`"
                   66482: 
                   66483:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   66484:     ai_p="$ep_realdir/`basename \"$PHP_SAPDB/incl\"`"
                   66485:   fi
                   66486: 
                   66487: 
                   66488: 
                   66489:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   66490: 
                   66491:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   66492:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   66493:     eval "INCLUDEPATH$unique=set"
                   66494: 
                   66495:       if test ""; then
                   66496:         INCLUDES="-I$ai_p $INCLUDES"
                   66497:       else
                   66498:         INCLUDES="$INCLUDES -I$ai_p"
                   66499:       fi
                   66500: 
                   66501:   fi
                   66502: 
                   66503:   fi
                   66504: 
                   66505: 
                   66506:   if test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/lib"; then
                   66507: 
                   66508:   if test -z "$PHP_SAPDB/$PHP_LIBDIR" || echo "$PHP_SAPDB/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   66509:     ai_p=$PHP_SAPDB/$PHP_LIBDIR
                   66510:   else
                   66511: 
                   66512:     ep_dir="`echo $PHP_SAPDB/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   66513: 
                   66514:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   66515:     ai_p="$ep_realdir/`basename \"$PHP_SAPDB/$PHP_LIBDIR\"`"
                   66516:   fi
                   66517: 
                   66518: 
                   66519: 
                   66520: 
                   66521: 
                   66522:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   66523: 
                   66524:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   66525:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   66526:     eval "LIBPATH$unique=set"
                   66527: 
                   66528:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   66529:     LDFLAGS="$LDFLAGS -L$ai_p"
                   66530:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   66531: 
                   66532:   fi
                   66533: 
                   66534: 
                   66535: 
                   66536:   fi
                   66537: 
                   66538: 
                   66539: 
                   66540:   case sqlod in
                   66541:   c|c_r|pthread*) ;;
                   66542:   *)
                   66543:       LIBS="-lsqlod $LIBS"
                   66544:    ;;
                   66545:   esac
                   66546: 
                   66547: 
                   66548:     ODBC_TYPE=sapdb
                   66549: 
                   66550: $as_echo "#define HAVE_SAPDB 1" >>confdefs.h
                   66551: 
                   66552:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   66553: $as_echo "$ext_output" >&6; }
                   66554:   fi
                   66555: fi
                   66556: 
                   66557: if test -z "$ODBC_TYPE"; then
                   66558: 
                   66559: php_with_solid=no
                   66560: 
                   66561: 
                   66562: 
                   66563: # Check whether --with-solid was given.
                   66564: if test "${with_solid+set}" = set; then :
                   66565:   withval=$with_solid; PHP_SOLID=$withval
                   66566: else
                   66567: 
                   66568:   PHP_SOLID=no
                   66569:   test "$PHP_ENABLE_ALL" && PHP_SOLID=$PHP_ENABLE_ALL
                   66570: 
                   66571: fi
                   66572: 
                   66573: 
                   66574: 
                   66575: ext_output="yes, shared"
                   66576: ext_shared=yes
                   66577: case $PHP_SOLID in
                   66578: shared,*)
                   66579:   PHP_SOLID=`echo "$PHP_SOLID"|$SED 's/^shared,//'`
                   66580:   ;;
                   66581: shared)
                   66582:   PHP_SOLID=yes
                   66583:   ;;
                   66584: no)
                   66585:   ext_output=no
                   66586:   ext_shared=no
                   66587:   ;;
                   66588: *)
                   66589:   ext_output=yes
                   66590:   ext_shared=no
                   66591:   ;;
                   66592: esac
                   66593: 
                   66594: 
                   66595: 
                   66596: 
                   66597: 
                   66598: 
                   66599: 
                   66600: 
                   66601:   if test "$PHP_SOLID" != "no"; then
                   66602:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solid support" >&5
                   66603: $as_echo_n "checking for Solid support... " >&6; }
                   66604:     if test "$PHP_SOLID" = "yes"; then
                   66605:       PHP_SOLID=/usr/local/solid
                   66606:     fi
                   66607:     ODBC_INCDIR=$PHP_SOLID/include
                   66608:     ODBC_LIBDIR=$PHP_SOLID/$PHP_LIBDIR
                   66609:     ODBC_INCLUDE=-I$ODBC_INCDIR
                   66610:     ODBC_TYPE=solid
                   66611:     if test -f $ODBC_LIBDIR/soc*35.a; then
                   66612: 
                   66613: $as_echo "#define HAVE_SOLID_35 1" >>confdefs.h
                   66614: 
                   66615:     elif test -f $ODBC_LIBDIR/scl*30.a; then
                   66616: 
                   66617: $as_echo "#define HAVE_SOLID_30 1" >>confdefs.h
                   66618: 
                   66619:     elif test -f $ODBC_LIBDIR/scl*23.a; then
                   66620: 
                   66621: $as_echo "#define HAVE_SOLID 1" >>confdefs.h
                   66622: 
                   66623:     fi
                   66624:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   66625: $as_echo "$ext_output" >&6; }
                   66626: 
                   66627:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solid library file" >&5
                   66628: $as_echo_n "checking Solid library file... " >&6; }
                   66629:   ac_solid_uname_r=`uname -r 2>/dev/null`
                   66630:   ac_solid_uname_s=`uname -s 2>/dev/null`
                   66631:   case $ac_solid_uname_s in
                   66632:     AIX) ac_solid_os=a3x;;   # a4x for AIX4/ Solid 2.3/3.0 only
                   66633:     HP-UX) ac_solid_os=h9x;; # h1x for hpux11, h0x for hpux10
                   66634:     IRIX) ac_solid_os=irx;;  # Solid 2.3(?)/ 3.0 only
                   66635:     Linux)
                   66636:       if ldd -v /bin/sh | grep GLIBC > /dev/null; then
                   66637: 
                   66638: $as_echo "#define SS_LINUX 1" >>confdefs.h
                   66639: 
                   66640:         ac_solid_os=l2x
                   66641:       else
                   66642: 
                   66643: $as_echo "#define SS_LINUX 1" >>confdefs.h
                   66644: 
                   66645:         ac_solid_os=lux
                   66646:       fi;;
                   66647:     SunOS)
                   66648:       ac_solid_os=ssx;; # should we deal with SunOS 4?
                   66649:     FreeBSD)
                   66650:       if test `expr $ac_solid_uname_r : '\(.\)'` -gt "2"; then
                   66651: 
                   66652: $as_echo "#define SS_FBX 1" >>confdefs.h
                   66653: 
                   66654:         ac_solid_os=fex
                   66655:       else
                   66656: 
                   66657: $as_echo "#define SS_FBX 1" >>confdefs.h
                   66658: 
                   66659:         ac_solid_os=fbx
                   66660:       fi;;
                   66661:   esac
                   66662: 
                   66663:   if test -f $ODBC_LIBDIR/soc${ac_solid_os}35.a; then
                   66664:     ac_solid_version=35
                   66665:     ac_solid_prefix=soc
                   66666:   elif test -f $ODBC_LIBDIR/scl${ac_solid_os}30.a; then
                   66667:     ac_solid_version=30
                   66668:     ac_solid_prefix=scl
                   66669:   elif test -f $ODBC_LIBDIR/scl${ac_solid_os}23.a; then
                   66670:     ac_solid_version=23
                   66671:     ac_solid_prefix=scl
                   66672:   fi
                   66673: 
                   66674: #
                   66675: # Check for the library files, and setup the ODBC_LIBS path...
                   66676: #
                   66677: if test ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -a \
                   66678:   ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a; then
                   66679:   #
                   66680:   # we have an error and should bail out, as we can't find the libs!
                   66681:   #
                   66682:   echo ""
                   66683:   echo "*********************************************************************"
                   66684:   echo "* Unable to locate $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so or $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a"
                   66685:   echo "* Please correct this by creating the following links and reconfiguring:"
                   66686:   echo "* $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a"
                   66687:   echo "* $ODBC_LIBDIR/${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so"
                   66688:   echo "*********************************************************************"
                   66689: else
                   66690:   ODBC_LFLAGS=-L$ODBC_LIBDIR
                   66691:   ODBC_LIBS=-l${ac_solid_prefix}${ac_solid_os}${ac_solid_version}
                   66692: fi
                   66693: 
                   66694:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5
                   66695: $as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; }
                   66696: 
                   66697:   fi
                   66698: fi
                   66699: 
                   66700: if test -z "$ODBC_TYPE"; then
                   66701: 
                   66702: php_with_ibm_db2=no
                   66703: 
                   66704: 
                   66705: 
                   66706: # Check whether --with-ibm-db2 was given.
                   66707: if test "${with_ibm_db2+set}" = set; then :
                   66708:   withval=$with_ibm_db2; PHP_IBM_DB2=$withval
                   66709: else
                   66710: 
                   66711:   PHP_IBM_DB2=no
                   66712:   test "$PHP_ENABLE_ALL" && PHP_IBM_DB2=$PHP_ENABLE_ALL
                   66713: 
                   66714: fi
                   66715: 
                   66716: 
                   66717: 
                   66718: ext_output="yes, shared"
                   66719: ext_shared=yes
                   66720: case $PHP_IBM_DB2 in
                   66721: shared,*)
                   66722:   PHP_IBM_DB2=`echo "$PHP_IBM_DB2"|$SED 's/^shared,//'`
                   66723:   ;;
                   66724: shared)
                   66725:   PHP_IBM_DB2=yes
                   66726:   ;;
                   66727: no)
                   66728:   ext_output=no
                   66729:   ext_shared=no
                   66730:   ;;
                   66731: *)
                   66732:   ext_output=yes
                   66733:   ext_shared=no
                   66734:   ;;
                   66735: esac
                   66736: 
                   66737: 
                   66738: 
                   66739: 
                   66740: 
                   66741: 
                   66742: 
                   66743: 
                   66744:   if test "$PHP_IBM_DB2" != "no"; then
                   66745:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBM DB2 support" >&5
                   66746: $as_echo_n "checking for IBM DB2 support... " >&6; }
                   66747:     if test "$PHP_IBM_DB2" = "yes"; then
                   66748:       ODBC_INCDIR=/home/db2inst1/sqllib/include
                   66749:       ODBC_LIBDIR=/home/db2inst1/sqllib/lib
                   66750:     else
                   66751:       ODBC_INCDIR=$PHP_IBM_DB2/include
                   66752:       ODBC_LIBDIR=$PHP_IBM_DB2/$PHP_LIBDIR
                   66753:     fi
                   66754: 
                   66755: 
                   66756: if ! test -f "$ODBC_INCDIR/sqlcli1.h"; then
                   66757:   as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlcli1.h' not found!" "$LINENO" 5
                   66758: fi
                   66759: 
                   66760: 
                   66761:     ODBC_INCLUDE=-I$ODBC_INCDIR
                   66762:     ODBC_LFLAGS=-L$ODBC_LIBDIR
                   66763:     ODBC_TYPE=ibm-db2
                   66764:     ODBC_LIBS=-ldb2
                   66765: 
                   66766: 
                   66767:   old_LIBS=$LIBS
                   66768:   LIBS="
                   66769:       $ODBC_LFLAGS $ODBC_LIBS
                   66770:      $LIBS"
                   66771:   if test "$cross_compiling" = yes; then :
                   66772: 
                   66773:     LIBS=$old_LIBS
                   66774: 
                   66775: else
                   66776:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   66777: /* end confdefs.h.  */
                   66778: 
                   66779: 
                   66780:     char SQLExecute();
                   66781:     int main() {
                   66782:       SQLExecute();
                   66783:       return 0;
                   66784:     }
                   66785: 
                   66786: _ACEOF
                   66787: if ac_fn_c_try_run "$LINENO"; then :
                   66788: 
                   66789:     LIBS=$old_LIBS
                   66790: 
                   66791: 
                   66792: $as_echo "#define HAVE_IBMDB2 1" >>confdefs.h
                   66793: 
                   66794:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   66795: $as_echo "$ext_output" >&6; }
                   66796: 
                   66797: 
                   66798: else
                   66799: 
                   66800:     LIBS=$old_LIBS
                   66801: 
                   66802:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   66803: $as_echo "no" >&6; }
                   66804:       as_fn_error $? "
                   66805: build test failed. Please check the config.log for details.
                   66806: You need to source your DB2 environment before running PHP configure:
                   66807: # . \$IBM_DB2/db2profile
                   66808: " "$LINENO" 5
                   66809: 
                   66810: 
                   66811: fi
                   66812: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   66813:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   66814: fi
                   66815: 
                   66816: 
                   66817:   fi
                   66818: fi
                   66819: 
                   66820: if test -z "$ODBC_TYPE"; then
                   66821: 
                   66822: php_with_odbcrouter=no
                   66823: 
                   66824: 
                   66825: 
                   66826: # Check whether --with-ODBCRouter was given.
                   66827: if test "${with_ODBCRouter+set}" = set; then :
                   66828:   withval=$with_ODBCRouter; PHP_ODBCROUTER=$withval
                   66829: else
                   66830: 
                   66831:   PHP_ODBCROUTER=no
                   66832:   test "$PHP_ENABLE_ALL" && PHP_ODBCROUTER=$PHP_ENABLE_ALL
                   66833: 
                   66834: fi
                   66835: 
                   66836: 
                   66837: 
                   66838: ext_output="yes, shared"
                   66839: ext_shared=yes
                   66840: case $PHP_ODBCROUTER in
                   66841: shared,*)
                   66842:   PHP_ODBCROUTER=`echo "$PHP_ODBCROUTER"|$SED 's/^shared,//'`
                   66843:   ;;
                   66844: shared)
                   66845:   PHP_ODBCROUTER=yes
                   66846:   ;;
                   66847: no)
                   66848:   ext_output=no
                   66849:   ext_shared=no
                   66850:   ;;
                   66851: *)
                   66852:   ext_output=yes
                   66853:   ext_shared=no
                   66854:   ;;
                   66855: esac
                   66856: 
                   66857: 
                   66858: 
                   66859: 
                   66860: 
                   66861: 
                   66862: 
                   66863: 
                   66864:   if test "$PHP_ODBCROUTER" != "no"; then
                   66865:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBCRouter.com support" >&5
                   66866: $as_echo_n "checking for ODBCRouter.com support... " >&6; }
                   66867:     if test "$PHP_ODBCROUTER" = "yes"; then
                   66868:       PHP_ODBCROUTER=/usr
                   66869:     fi
                   66870:     ODBC_INCDIR=$PHP_ODBCROUTER/include
                   66871:     ODBC_LIBDIR=$PHP_ODBCROUTER/lib
                   66872:     ODBC_LFLAGS=-L$ODBC_LIBDIR
                   66873:     ODBC_INCLUDE=-I$ODBC_INCDIR
                   66874:     ODBC_LIBS=-lodbcsdk
                   66875:     ODBC_TYPE=ODBCRouter
                   66876: 
                   66877: $as_echo "#define HAVE_ODBC_ROUTER 1" >>confdefs.h
                   66878: 
                   66879:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   66880: $as_echo "$ext_output" >&6; }
                   66881:   fi
                   66882: fi
                   66883: 
                   66884: if test -z "$ODBC_TYPE"; then
                   66885: 
                   66886: php_with_empress=no
                   66887: 
                   66888: 
                   66889: 
                   66890: # Check whether --with-empress was given.
                   66891: if test "${with_empress+set}" = set; then :
                   66892:   withval=$with_empress; PHP_EMPRESS=$withval
                   66893: else
                   66894: 
                   66895:   PHP_EMPRESS=no
                   66896:   test "$PHP_ENABLE_ALL" && PHP_EMPRESS=$PHP_ENABLE_ALL
                   66897: 
                   66898: fi
                   66899: 
                   66900: 
                   66901: 
                   66902: ext_output="yes, shared"
                   66903: ext_shared=yes
                   66904: case $PHP_EMPRESS in
                   66905: shared,*)
                   66906:   PHP_EMPRESS=`echo "$PHP_EMPRESS"|$SED 's/^shared,//'`
                   66907:   ;;
                   66908: shared)
                   66909:   PHP_EMPRESS=yes
                   66910:   ;;
                   66911: no)
                   66912:   ext_output=no
                   66913:   ext_shared=no
                   66914:   ;;
                   66915: *)
                   66916:   ext_output=yes
                   66917:   ext_shared=no
                   66918:   ;;
                   66919: esac
                   66920: 
                   66921: 
                   66922: 
                   66923: 
                   66924: 
                   66925: 
                   66926: 
                   66927: 
                   66928:   if test "$PHP_EMPRESS" != "no"; then
                   66929:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress support" >&5
                   66930: $as_echo_n "checking for Empress support... " >&6; }
                   66931:     if test "$PHP_EMPRESS" = "yes"; then
                   66932:       ODBC_INCDIR=$EMPRESSPATH/include/odbc
                   66933:       ODBC_LIBDIR=$EMPRESSPATH/shlib
                   66934:     else
                   66935:       ODBC_INCDIR=$PHP_EMPRESS/include/odbc
                   66936:       ODBC_LIBDIR=$PHP_EMPRESS/shlib
                   66937:     fi
                   66938:     ODBC_INCLUDE=-I$ODBC_INCDIR
                   66939:     ODBC_LFLAGS=-L$ODBC_LIBDIR
                   66940:     ODBC_TYPE=empress
                   66941: 
                   66942: $as_echo "#define HAVE_EMPRESS 1" >>confdefs.h
                   66943: 
                   66944:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   66945: $as_echo "$ext_output" >&6; }
                   66946: 
                   66947:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress library file" >&5
                   66948: $as_echo_n "checking Empress library file... " >&6; }
                   66949:   ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1`
                   66950:   if test ! -f $ODBC_LIBS; then
                   66951:     ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1`
                   66952:   fi
                   66953:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5
                   66954: $as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; }
                   66955: 
                   66956:   fi
                   66957: fi
                   66958: 
                   66959: if test -z "$ODBC_TYPE"; then
                   66960: 
                   66961: php_with_empress_bcs=no
                   66962: 
                   66963: 
                   66964: 
                   66965: # Check whether --with-empress-bcs was given.
                   66966: if test "${with_empress_bcs+set}" = set; then :
                   66967:   withval=$with_empress_bcs; PHP_EMPRESS_BCS=$withval
                   66968: else
                   66969: 
                   66970:   PHP_EMPRESS_BCS=no
                   66971:   test "$PHP_ENABLE_ALL" && PHP_EMPRESS_BCS=$PHP_ENABLE_ALL
                   66972: 
                   66973: fi
                   66974: 
                   66975: 
                   66976: 
                   66977: ext_output="yes, shared"
                   66978: ext_shared=yes
                   66979: case $PHP_EMPRESS_BCS in
                   66980: shared,*)
                   66981:   PHP_EMPRESS_BCS=`echo "$PHP_EMPRESS_BCS"|$SED 's/^shared,//'`
                   66982:   ;;
                   66983: shared)
                   66984:   PHP_EMPRESS_BCS=yes
                   66985:   ;;
                   66986: no)
                   66987:   ext_output=no
                   66988:   ext_shared=no
                   66989:   ;;
                   66990: *)
                   66991:   ext_output=yes
                   66992:   ext_shared=no
                   66993:   ;;
                   66994: esac
                   66995: 
                   66996: 
                   66997: 
                   66998: 
                   66999: 
                   67000: 
                   67001: 
                   67002: 
                   67003:   if test "$PHP_EMPRESS_BCS" != "no"; then
                   67004:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress local access support" >&5
                   67005: $as_echo_n "checking for Empress local access support... " >&6; }
                   67006:     if test "$PHP_EMPRESS_BCS" = "yes"; then
                   67007:       ODBC_INCDIR=$EMPRESSPATH/include/odbc
                   67008:       ODBC_LIBDIR=$EMPRESSPATH/shlib
                   67009:     else
                   67010:       ODBC_INCDIR=$PHP_EMPRESS_BCS/include/odbc
                   67011:       ODBC_LIBDIR=$PHP_EMPRESS_BCS/shlib
                   67012:     fi
                   67013:     CC="empocc -bcs";export CC;
                   67014:     LD="empocc -bcs";export LD;
                   67015:     ODBC_INCLUDE=-I$ODBC_INCDIR
                   67016:     ODBC_LFLAGS=-L$ODBC_LIBDIR
                   67017:     LIST=`empocc -listlines -bcs -o a a.c`
                   67018: 
                   67019:     NEWLIST=
                   67020:     for I in $LIST
                   67021:     do
                   67022:       case $I in
                   67023:         $EMPRESSPATH/odbccl/lib/* | \
                   67024:         $EMPRESSPATH/rdbms/lib/* | \
                   67025:         $EMPRESSPATH/common/lib/*)
                   67026:               NEWLIST="$NEWLIST $I"
                   67027:               ;;
                   67028:       esac
                   67029:     done
                   67030:     ODBC_LIBS="-lempphpbcs -lms -lmscfg -lbasic -lbasic_os -lnlscstab -lnlsmsgtab -lm -ldl -lcrypt"
                   67031:     ODBC_TYPE=empress-bcs
                   67032: 
                   67033: $as_echo "#define HAVE_EMPRESS 1" >>confdefs.h
                   67034: 
                   67035:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   67036: $as_echo "$ext_output" >&6; }
                   67037: 
                   67038:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress local access library file" >&5
                   67039: $as_echo_n "checking Empress local access library file... " >&6; }
                   67040:   ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1`
                   67041:   if test ! -f $ODBCBCS_LIBS; then
                   67042:     ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1`
                   67043:   fi
                   67044:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&5
                   67045: $as_echo "\`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&6; }
                   67046: 
                   67047:   fi
                   67048: fi
                   67049: 
                   67050: if test -z "$ODBC_TYPE"; then
                   67051: 
                   67052: php_with_birdstep=no
                   67053: 
                   67054: 
                   67055: 
                   67056: # Check whether --with-birdstep was given.
                   67057: if test "${with_birdstep+set}" = set; then :
                   67058:   withval=$with_birdstep; PHP_BIRDSTEP=$withval
                   67059: else
                   67060: 
                   67061:   PHP_BIRDSTEP=no
                   67062:   test "$PHP_ENABLE_ALL" && PHP_BIRDSTEP=$PHP_ENABLE_ALL
                   67063: 
                   67064: fi
                   67065: 
                   67066: 
                   67067: 
                   67068: ext_output="yes, shared"
                   67069: ext_shared=yes
                   67070: case $PHP_BIRDSTEP in
                   67071: shared,*)
                   67072:   PHP_BIRDSTEP=`echo "$PHP_BIRDSTEP"|$SED 's/^shared,//'`
                   67073:   ;;
                   67074: shared)
                   67075:   PHP_BIRDSTEP=yes
                   67076:   ;;
                   67077: no)
                   67078:   ext_output=no
                   67079:   ext_shared=no
                   67080:   ;;
                   67081: *)
                   67082:   ext_output=yes
                   67083:   ext_shared=no
                   67084:   ;;
                   67085: esac
                   67086: 
                   67087: 
                   67088: 
                   67089: 
                   67090: 
                   67091: 
                   67092: 
                   67093: 
                   67094:   if test "$PHP_BIRDSTEP" != "no"; then
                   67095:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Birdstep support" >&5
                   67096: $as_echo_n "checking for Birdstep support... " >&6; }
                   67097:     if test "$PHP_BIRDSTEP" = "yes"; then
                   67098:         ODBC_INCDIR=/usr/local/birdstep/include
                   67099:         ODBC_LIBDIR=/usr/local/birdstep/lib
                   67100:     else
                   67101:         ODBC_INCDIR=$PHP_BIRDSTEP/include
                   67102:         ODBC_LIBDIR=$PHP_BIRDSTEP/$PHP_LIBDIR
                   67103:     fi
                   67104: 
                   67105:     case $host_alias in
                   67106:       *aix*)
                   67107: 
                   67108: $as_echo "#define AIX 1" >>confdefs.h
                   67109: ;;
                   67110:       *hpux*)
                   67111: 
                   67112: $as_echo "#define HPUX 1" >>confdefs.h
                   67113: ;;
                   67114:       *linux*)
                   67115: 
                   67116: $as_echo "#define LINUX 1" >>confdefs.h
                   67117: ;;
                   67118:       *qnx*)
                   67119: 
                   67120: $as_echo "#define NEUTRINO 1" >>confdefs.h
                   67121: ;;
                   67122:       i?86-*-solaris*)
                   67123: 
                   67124: $as_echo "#define ISOLARIS 1" >>confdefs.h
                   67125: ;;
                   67126:       sparc-*-solaris*)
                   67127: 
                   67128: $as_echo "#define SOLARIS 1" >>confdefs.h
                   67129: ;;
                   67130:       *unixware*)
                   67131: 
                   67132: $as_echo "#define UNIXWARE 1" >>confdefs.h
                   67133: ;;
                   67134:     esac
                   67135: 
                   67136:     ODBC_INCLUDE=-I$ODBC_INCDIR
                   67137:     ODBC_TYPE=birdstep
                   67138:     ODBC_LFLAGS=-L$ODBC_LIBDIR
                   67139:     ODBC_LIBS="-lCadm -lCdict -lCenc -lCrdm -lCrpc -lCrdbc -lCrm -lCuapi -lutil"
                   67140: 
                   67141:     if test -f "$ODBC_LIBDIR/libCrdbc32.$SHLIB_SUFFIX_NAME"; then
                   67142:       ODBC_LIBS="-lCrdbc32 -lCadm32 -lCncp32 -lCrm32 -lCsql32 -lCdict32 -lCrdm32 -lCrpc32 -lutil"
                   67143:     elif test -f "$ODBC_LIBDIR/libCrdbc.$SHLIB_SUFFIX_NAME"; then
                   67144:       ODBC_LIBS="-lCrdbc -lCadm -lCncp -lCrm -lCsql -lCdict -lCrdm -lCrpc -lutil"
                   67145:     fi
                   67146: 
                   67147: 
                   67148: $as_echo "#define HAVE_BIRDSTEP 1" >>confdefs.h
                   67149: 
                   67150:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   67151: $as_echo "$ext_output" >&6; }
                   67152:   fi
                   67153: fi
                   67154: 
                   67155: if test -z "$ODBC_TYPE"; then
                   67156: 
                   67157: php_with_custom_odbc=no
                   67158: 
                   67159: 
                   67160: 
                   67161: # Check whether --with-custom-odbc was given.
                   67162: if test "${with_custom_odbc+set}" = set; then :
                   67163:   withval=$with_custom_odbc; PHP_CUSTOM_ODBC=$withval
                   67164: else
                   67165: 
                   67166:   PHP_CUSTOM_ODBC=no
                   67167:   test "$PHP_ENABLE_ALL" && PHP_CUSTOM_ODBC=$PHP_ENABLE_ALL
                   67168: 
                   67169: fi
                   67170: 
                   67171: 
                   67172: 
                   67173: ext_output="yes, shared"
                   67174: ext_shared=yes
                   67175: case $PHP_CUSTOM_ODBC in
                   67176: shared,*)
                   67177:   PHP_CUSTOM_ODBC=`echo "$PHP_CUSTOM_ODBC"|$SED 's/^shared,//'`
                   67178:   ;;
                   67179: shared)
                   67180:   PHP_CUSTOM_ODBC=yes
                   67181:   ;;
                   67182: no)
                   67183:   ext_output=no
                   67184:   ext_shared=no
                   67185:   ;;
                   67186: *)
                   67187:   ext_output=yes
                   67188:   ext_shared=no
                   67189:   ;;
                   67190: esac
                   67191: 
                   67192: 
                   67193: 
                   67194: 
                   67195: 
                   67196: 
                   67197: 
                   67198: 
                   67199:   if test "$PHP_CUSTOM_ODBC" != "no"; then
                   67200:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a custom ODBC support" >&5
                   67201: $as_echo_n "checking for a custom ODBC support... " >&6; }
                   67202:     if test "$PHP_CUSTOM_ODBC" = "yes"; then
                   67203:       PHP_CUSTOM_ODBC=/usr/local
                   67204:     fi
                   67205:     ODBC_INCDIR=$PHP_CUSTOM_ODBC/include
                   67206:     ODBC_LIBDIR=$PHP_CUSTOM_ODBC/$PHP_LIBDIR
                   67207:     ODBC_LFLAGS=-L$ODBC_LIBDIR
                   67208:     ODBC_INCLUDE=-I$ODBC_INCDIR
                   67209:     ODBC_LIBS=$CUSTOM_ODBC_LIBS
                   67210:     ODBC_TYPE=custom-odbc
                   67211: 
                   67212: $as_echo "#define HAVE_CODBC 1" >>confdefs.h
                   67213: 
                   67214:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_ouput" >&5
                   67215: $as_echo "$ext_ouput" >&6; }
                   67216:   fi
                   67217: fi
                   67218: 
                   67219: if test -z "$ODBC_TYPE"; then
                   67220: 
                   67221: php_with_iodbc=no
                   67222: 
                   67223: 
                   67224: 
                   67225: # Check whether --with-iodbc was given.
                   67226: if test "${with_iodbc+set}" = set; then :
                   67227:   withval=$with_iodbc; PHP_IODBC=$withval
                   67228: else
                   67229: 
                   67230:   PHP_IODBC=no
                   67231:   test "$PHP_ENABLE_ALL" && PHP_IODBC=$PHP_ENABLE_ALL
                   67232: 
                   67233: fi
                   67234: 
                   67235: 
                   67236: 
                   67237: ext_output="yes, shared"
                   67238: ext_shared=yes
                   67239: case $PHP_IODBC in
                   67240: shared,*)
                   67241:   PHP_IODBC=`echo "$PHP_IODBC"|$SED 's/^shared,//'`
                   67242:   ;;
                   67243: shared)
                   67244:   PHP_IODBC=yes
                   67245:   ;;
                   67246: no)
                   67247:   ext_output=no
                   67248:   ext_shared=no
                   67249:   ;;
                   67250: *)
                   67251:   ext_output=yes
                   67252:   ext_shared=no
                   67253:   ;;
                   67254: esac
                   67255: 
                   67256: 
                   67257: 
                   67258: 
                   67259: 
                   67260: 
                   67261: 
                   67262: 
                   67263:   if test "$PHP_IODBC" != "no"; then
                   67264:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iODBC support" >&5
                   67265: $as_echo_n "checking for iODBC support... " >&6; }
                   67266:     if test "$PHP_IODBC" = "yes"; then
                   67267:       PHP_IODBC=/usr/local
                   67268:     fi
                   67269: 
                   67270: 
                   67271:   if test -n "$PHP_IODBC/$PHP_LIBDIR"; then
                   67272: 
                   67273:   if test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/lib"; then
                   67274: 
                   67275:   if test -z "$PHP_IODBC/$PHP_LIBDIR" || echo "$PHP_IODBC/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   67276:     ai_p=$PHP_IODBC/$PHP_LIBDIR
                   67277:   else
                   67278: 
                   67279:     ep_dir="`echo $PHP_IODBC/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   67280: 
                   67281:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   67282:     ai_p="$ep_realdir/`basename \"$PHP_IODBC/$PHP_LIBDIR\"`"
                   67283:   fi
                   67284: 
                   67285: 
                   67286: 
                   67287: 
                   67288: 
                   67289:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   67290: 
                   67291:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   67292:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   67293:     eval "LIBPATH$unique=set"
                   67294: 
                   67295:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   67296:     LDFLAGS="$LDFLAGS -L$ai_p"
                   67297:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   67298: 
                   67299:   fi
                   67300: 
                   67301: 
                   67302: 
                   67303:   fi
                   67304: 
                   67305:   fi
                   67306: 
                   67307: 
                   67308:   case iodbc in
                   67309:   c|c_r|pthread*) ;;
                   67310:   *)
                   67311:       LIBS="-liodbc $LIBS"
                   67312:    ;;
                   67313:   esac
                   67314: 
                   67315: 
                   67316: 
                   67317: 
                   67318: 
                   67319:   if test "$PHP_IODBC/include" != "/usr/include"; then
                   67320: 
                   67321:   if test -z "$PHP_IODBC/include" || echo "$PHP_IODBC/include" | grep '^/' >/dev/null ; then
                   67322:     ai_p=$PHP_IODBC/include
                   67323:   else
                   67324: 
                   67325:     ep_dir="`echo $PHP_IODBC/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   67326: 
                   67327:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   67328:     ai_p="$ep_realdir/`basename \"$PHP_IODBC/include\"`"
                   67329:   fi
                   67330: 
                   67331: 
                   67332: 
                   67333:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   67334: 
                   67335:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   67336:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   67337:     eval "INCLUDEPATH$unique=set"
                   67338: 
                   67339:       if test "1"; then
                   67340:         INCLUDES="-I$ai_p $INCLUDES"
                   67341:       else
                   67342:         INCLUDES="$INCLUDES -I$ai_p"
                   67343:       fi
                   67344: 
                   67345:   fi
                   67346: 
                   67347:   fi
                   67348: 
                   67349:     ODBC_TYPE=iodbc
                   67350:     ODBC_INCLUDE=-I$PHP_IODBC/include
                   67351:     ODBC_LFLAGS=-L$PHP_IODBC/$PHP_LIBDIR
                   67352:     ODBC_LIBS=-liodbc
                   67353: 
                   67354: $as_echo "#define HAVE_IODBC 1" >>confdefs.h
                   67355: 
                   67356: 
                   67357: $as_echo "#define HAVE_ODBC2 1" >>confdefs.h
                   67358: 
                   67359:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   67360: $as_echo "$ext_output" >&6; }
                   67361:   fi
                   67362: fi
                   67363: 
                   67364: if test -z "$ODBC_TYPE"; then
                   67365: 
                   67366: php_with_esoob=no
                   67367: 
                   67368: 
                   67369: 
                   67370: # Check whether --with-esoob was given.
                   67371: if test "${with_esoob+set}" = set; then :
                   67372:   withval=$with_esoob; PHP_ESOOB=$withval
                   67373: else
                   67374: 
                   67375:   PHP_ESOOB=no
                   67376:   test "$PHP_ENABLE_ALL" && PHP_ESOOB=$PHP_ENABLE_ALL
                   67377: 
                   67378: fi
                   67379: 
                   67380: 
                   67381: 
                   67382: ext_output="yes, shared"
                   67383: ext_shared=yes
                   67384: case $PHP_ESOOB in
                   67385: shared,*)
                   67386:   PHP_ESOOB=`echo "$PHP_ESOOB"|$SED 's/^shared,//'`
                   67387:   ;;
                   67388: shared)
                   67389:   PHP_ESOOB=yes
                   67390:   ;;
                   67391: no)
                   67392:   ext_output=no
                   67393:   ext_shared=no
                   67394:   ;;
                   67395: *)
                   67396:   ext_output=yes
                   67397:   ext_shared=no
                   67398:   ;;
                   67399: esac
                   67400: 
                   67401: 
                   67402: 
                   67403: 
                   67404: 
                   67405: 
                   67406: 
                   67407: 
                   67408:   if test "$PHP_ESOOB" != "no"; then
                   67409:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Easysoft ODBC-ODBC Bridge support" >&5
                   67410: $as_echo_n "checking for Easysoft ODBC-ODBC Bridge support... " >&6; }
                   67411:     if test "$PHP_ESOOB" = "yes"; then
                   67412:       PHP_ESOOB=/usr/local/easysoft/oob/client
                   67413:     fi
                   67414:     ODBC_INCDIR=$PHP_ESOOB/include
                   67415:     ODBC_LIBDIR=$PHP_ESOOB/$PHP_LIBDIR
                   67416:     ODBC_LFLAGS=-L$ODBC_LIBDIR
                   67417:     ODBC_INCLUDE=-I$ODBC_INCDIR
                   67418:     ODBC_LIBS=-lesoobclient
                   67419:     ODBC_TYPE=esoob
                   67420: 
                   67421: $as_echo "#define HAVE_ESOOB 1" >>confdefs.h
                   67422: 
                   67423:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   67424: $as_echo "$ext_output" >&6; }
                   67425:   fi
                   67426: fi
                   67427: 
                   67428: if test -z "$ODBC_TYPE"; then
                   67429: 
                   67430: php_with_unixodbc=no
                   67431: 
                   67432: 
                   67433: 
                   67434: # Check whether --with-unixODBC was given.
                   67435: if test "${with_unixODBC+set}" = set; then :
                   67436:   withval=$with_unixODBC; PHP_UNIXODBC=$withval
                   67437: else
                   67438: 
                   67439:   PHP_UNIXODBC=no
                   67440:   test "$PHP_ENABLE_ALL" && PHP_UNIXODBC=$PHP_ENABLE_ALL
                   67441: 
                   67442: fi
                   67443: 
                   67444: 
                   67445: 
                   67446: ext_output="yes, shared"
                   67447: ext_shared=yes
                   67448: case $PHP_UNIXODBC in
                   67449: shared,*)
                   67450:   PHP_UNIXODBC=`echo "$PHP_UNIXODBC"|$SED 's/^shared,//'`
                   67451:   ;;
                   67452: shared)
                   67453:   PHP_UNIXODBC=yes
                   67454:   ;;
                   67455: no)
                   67456:   ext_output=no
                   67457:   ext_shared=no
                   67458:   ;;
                   67459: *)
                   67460:   ext_output=yes
                   67461:   ext_shared=no
                   67462:   ;;
                   67463: esac
                   67464: 
                   67465: 
                   67466: 
                   67467: 
                   67468: 
                   67469: 
                   67470: 
                   67471: 
                   67472:   if test "$PHP_UNIXODBC" != "no"; then
                   67473:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unixODBC support" >&5
                   67474: $as_echo_n "checking for unixODBC support... " >&6; }
                   67475:     if test "$PHP_UNIXODBC" = "yes"; then
                   67476:       PHP_UNIXODBC=/usr/local
                   67477:     fi
                   67478:     ODBC_INCDIR=$PHP_UNIXODBC/include
                   67479:     ODBC_LIBDIR=$PHP_UNIXODBC/$PHP_LIBDIR
                   67480:     ODBC_LFLAGS=-L$ODBC_LIBDIR
                   67481:     ODBC_INCLUDE=-I$ODBC_INCDIR
                   67482:     ODBC_LIBS=-lodbc
                   67483:     ODBC_TYPE=unixODBC
                   67484: 
                   67485: if ! test -f "$ODBC_INCDIR/sqlext.h"; then
                   67486:   as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5
                   67487: fi
                   67488: 
                   67489: 
                   67490: $as_echo "#define HAVE_UNIXODBC 1" >>confdefs.h
                   67491: 
                   67492:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   67493: $as_echo "$ext_output" >&6; }
                   67494:   fi
                   67495: fi
                   67496: 
                   67497: if test -z "$ODBC_TYPE"; then
                   67498: 
                   67499: php_with_dbmaker=no
                   67500: 
                   67501: 
                   67502: 
                   67503: # Check whether --with-dbmaker was given.
                   67504: if test "${with_dbmaker+set}" = set; then :
                   67505:   withval=$with_dbmaker; PHP_DBMAKER=$withval
                   67506: else
                   67507: 
                   67508:   PHP_DBMAKER=no
                   67509:   test "$PHP_ENABLE_ALL" && PHP_DBMAKER=$PHP_ENABLE_ALL
                   67510: 
                   67511: fi
                   67512: 
                   67513: 
                   67514: 
                   67515: ext_output="yes, shared"
                   67516: ext_shared=yes
                   67517: case $PHP_DBMAKER in
                   67518: shared,*)
                   67519:   PHP_DBMAKER=`echo "$PHP_DBMAKER"|$SED 's/^shared,//'`
                   67520:   ;;
                   67521: shared)
                   67522:   PHP_DBMAKER=yes
                   67523:   ;;
                   67524: no)
                   67525:   ext_output=no
                   67526:   ext_shared=no
                   67527:   ;;
                   67528: *)
                   67529:   ext_output=yes
                   67530:   ext_shared=no
                   67531:   ;;
                   67532: esac
                   67533: 
                   67534: 
                   67535: 
                   67536: 
                   67537: 
                   67538: 
                   67539: 
                   67540: 
                   67541:   if test "$PHP_DBMAKER" != "no"; then
                   67542:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBMaker support" >&5
                   67543: $as_echo_n "checking for DBMaker support... " >&6; }
                   67544:     if test "$PHP_DBMAKER" = "yes"; then
                   67545:       # find dbmaker's home directory
                   67546:       DBMAKER_HOME=`grep "^dbmaker:" /etc/passwd | $AWK -F: '{print $6}'`
                   67547: 
                   67548:       # check DBMaker version (from 5.0 to 2.0)
                   67549:       DBMAKER_VERSION=5.0
                   67550: 
                   67551:       while test ! -d $DBMAKER_HOME/$DBMAKER_VERSION -a "$DBMAKER_VERSION" != "2.9"; do
                   67552:         DM_VER=`echo $DBMAKER_VERSION | sed -e 's/\.//' | $AWK '{ print $1-1;}'`
                   67553:         MAJOR_V=`echo $DM_VER | $AWK '{ print $1/10; }'  | $AWK -F. '{ print $1; }'`
                   67554:         MINOR_V=`echo $DM_VER | $AWK '{ print $1%10; }'`
                   67555:         DBMAKER_VERSION=$MAJOR_V.$MINOR_V
                   67556:       done
                   67557: 
                   67558:       if test "$DBMAKER_VERSION" = "2.9"; then
                   67559:         PHP_DBMAKER=$DBMAKER_HOME
                   67560:       else
                   67561:         PHP_DBMAKER=$DBMAKER_HOME/$DBMAKER_VERSION
                   67562:       fi
                   67563:     fi
                   67564: 
                   67565:     ODBC_INCDIR=$PHP_DBMAKER/include
                   67566:     ODBC_LIBDIR=$PHP_DBMAKER/$PHP_LIBDIR
                   67567:     ODBC_INCLUDE=-I$ODBC_INCDIR
                   67568:     ODBC_LFLAGS=-L$ODBC_LIBDIR
                   67569:     ODBC_INCLUDE=-I$ODBC_INCDIR
                   67570:     ODBC_LIBS="-ldmapic -lc"
                   67571:     ODBC_TYPE=dbmaker
                   67572: 
                   67573: 
                   67574: $as_echo "#define HAVE_DBMAKER 1" >>confdefs.h
                   67575: 
                   67576: 
                   67577:     if test "$ext_shared" = "yes"; then
                   67578:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (shared)" >&5
                   67579: $as_echo "yes (shared)" >&6; }
                   67580:       ODBC_LIBS="-ldmapic -lc -lm"
                   67581:       ODBC_SHARED="odbc.la"
                   67582:     else
                   67583:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (static)" >&5
                   67584: $as_echo "yes (static)" >&6; }
                   67585: 
                   67586: 
                   67587:   if test -n "$ODBC_LIBDIR"; then
                   67588: 
                   67589:   if test "$ODBC_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ODBC_LIBDIR" != "/usr/lib"; then
                   67590: 
                   67591:   if test -z "$ODBC_LIBDIR" || echo "$ODBC_LIBDIR" | grep '^/' >/dev/null ; then
                   67592:     ai_p=$ODBC_LIBDIR
                   67593:   else
                   67594: 
                   67595:     ep_dir="`echo $ODBC_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   67596: 
                   67597:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   67598:     ai_p="$ep_realdir/`basename \"$ODBC_LIBDIR\"`"
                   67599:   fi
                   67600: 
                   67601: 
                   67602: 
                   67603: 
                   67604: 
                   67605:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   67606: 
                   67607:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   67608:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   67609:     eval "LIBPATH$unique=set"
                   67610: 
                   67611:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   67612:     LDFLAGS="$LDFLAGS -L$ai_p"
                   67613:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   67614: 
                   67615:   fi
                   67616: 
                   67617: 
                   67618: 
                   67619:   fi
                   67620: 
                   67621:   fi
                   67622: 
                   67623: 
                   67624:   case dmapic in
                   67625:   c|c_r|pthread*) ;;
                   67626:   *)
                   67627:       LIBS="-ldmapic $LIBS"
                   67628:    ;;
                   67629:   esac
                   67630: 
                   67631: 
                   67632: 
                   67633: 
                   67634: 
                   67635:   if test "$ODBC_INCDIR" != "/usr/include"; then
                   67636: 
                   67637:   if test -z "$ODBC_INCDIR" || echo "$ODBC_INCDIR" | grep '^/' >/dev/null ; then
                   67638:     ai_p=$ODBC_INCDIR
                   67639:   else
                   67640: 
                   67641:     ep_dir="`echo $ODBC_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   67642: 
                   67643:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   67644:     ai_p="$ep_realdir/`basename \"$ODBC_INCDIR\"`"
                   67645:   fi
                   67646: 
                   67647: 
                   67648: 
                   67649:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   67650: 
                   67651:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   67652:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   67653:     eval "INCLUDEPATH$unique=set"
                   67654: 
                   67655:       if test ""; then
                   67656:         INCLUDES="-I$ai_p $INCLUDES"
                   67657:       else
                   67658:         INCLUDES="$INCLUDES -I$ai_p"
                   67659:       fi
                   67660: 
                   67661:   fi
                   67662: 
                   67663:   fi
                   67664: 
                   67665:       ODBC_STATIC="libphpext_odbc.la"
                   67666:     fi
                   67667:   fi
                   67668: fi
                   67669: 
                   67670: if test -n "$ODBC_TYPE"; then
                   67671:   if test "$ODBC_TYPE" != "dbmaker"; then
                   67672: 
                   67673:   for ac_i in $ODBC_LFLAGS $ODBC_LIBS; do
                   67674:     case $ac_i in
                   67675:     -pthread)
                   67676:       if test "$ext_shared" = "yes"; then
                   67677:         ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -pthread"
                   67678:       else
                   67679: 
                   67680: 
                   67681:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   67682: 
                   67683:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   67684:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   67685:     eval "EXTRA_LDFLAGS$unique=set"
                   67686:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   67687:   fi
                   67688: 
                   67689:       fi
                   67690:     ;;
                   67691:     -l*)
                   67692:       ac_ii=`echo $ac_i|cut -c 3-`
                   67693: 
                   67694: 
                   67695:   case $ac_ii in
                   67696:   c|c_r|pthread*) ;;
                   67697:   *)
                   67698:     if test "$ext_shared" = "yes"; then
                   67699:         ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -l$ac_ii"
                   67700:     else
                   67701: 
                   67702: 
                   67703:   case $ac_ii in
                   67704:   c|c_r|pthread*) ;;
                   67705:   *)
                   67706:       LIBS="$LIBS -l$ac_ii"
                   67707:    ;;
                   67708:   esac
                   67709: 
                   67710: 
                   67711:     fi
                   67712:    ;;
                   67713:   esac
                   67714: 
                   67715: 
                   67716:     ;;
                   67717:     -L*)
                   67718:       ac_ii=`echo $ac_i|cut -c 3-`
                   67719: 
                   67720:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   67721: 
                   67722:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   67723:     ai_p=$ac_ii
                   67724:   else
                   67725: 
                   67726:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   67727: 
                   67728:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   67729:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   67730:   fi
                   67731: 
                   67732: 
                   67733:       if test "$ext_shared" = "yes"; then
                   67734:         ODBC_SHARED_LIBADD="-L$ai_p $ODBC_SHARED_LIBADD"
                   67735:         test -n "$ld_runpath_switch" && ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $ODBC_SHARED_LIBADD"
                   67736:       else
                   67737: 
                   67738: 
                   67739: 
                   67740:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   67741: 
                   67742:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   67743:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   67744:     eval "LIBPATH$unique=set"
                   67745: 
                   67746:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   67747:     LDFLAGS="$LDFLAGS -L$ai_p"
                   67748:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   67749: 
                   67750:   fi
                   67751: 
                   67752: 
                   67753:       fi
                   67754: 
                   67755:   fi
                   67756: 
                   67757:     ;;
                   67758:     esac
                   67759:   done
                   67760: 
                   67761:     if test "$ODBC_TYPE" != "birdstep" && test "$ODBC_TYPE" != "solid"; then
                   67762: 
                   67763: $as_echo "#define HAVE_SQLDATASOURCES 1" >>confdefs.h
                   67764: 
                   67765:     fi
                   67766:   fi
                   67767: 
                   67768: 
                   67769: $as_echo "#define HAVE_UODBC 1" >>confdefs.h
                   67770: 
                   67771: 
                   67772:   PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_SHARED_LIBADD"
                   67773: 
                   67774: 
                   67775:   PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCDIR"
                   67776: 
                   67777: 
                   67778:   PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBDIR"
                   67779: 
                   67780: 
                   67781: 
                   67782:   PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCLUDE"
                   67783: 
                   67784: 
                   67785: 
                   67786: 
                   67787: 
                   67788:   PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBS"
                   67789: 
                   67790: 
                   67791: 
                   67792: 
                   67793: 
                   67794:   PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LFLAGS"
                   67795: 
                   67796: 
                   67797: 
                   67798: 
                   67799: 
                   67800:   PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_TYPE"
                   67801: 
                   67802: 
                   67803: 
                   67804: 
                   67805: 
                   67806:   ext_builddir=ext/odbc
                   67807:   ext_srcdir=$abs_srcdir/ext/odbc
                   67808: 
                   67809:   ac_extra=`echo "$ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
                   67810: 
                   67811:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   67812:     PHP_ODBC_SHARED=no
                   67813: 
                   67814: 
                   67815:   case ext/odbc in
                   67816:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   67817:   /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   67818:   *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   67819:   esac
                   67820: 
                   67821: 
                   67822: 
                   67823:   b_c_pre=$php_c_pre
                   67824:   b_cxx_pre=$php_cxx_pre
                   67825:   b_c_meta=$php_c_meta
                   67826:   b_cxx_meta=$php_cxx_meta
                   67827:   b_c_post=$php_c_post
                   67828:   b_cxx_post=$php_cxx_post
                   67829:   b_lo=$php_lo
                   67830: 
                   67831: 
                   67832:   old_IFS=$IFS
                   67833:   for ac_src in php_odbc.c; do
                   67834: 
                   67835:       IFS=.
                   67836:       set $ac_src
                   67837:       ac_obj=$1
                   67838:       IFS=$old_IFS
                   67839: 
                   67840:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   67841: 
                   67842:       case $ac_src in
                   67843:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   67844:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   67845:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   67846:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   67847:       esac
                   67848: 
                   67849:     cat >>Makefile.objects<<EOF
                   67850: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   67851:        $ac_comp
                   67852: EOF
                   67853:   done
                   67854: 
                   67855: 
                   67856:     EXT_STATIC="$EXT_STATIC odbc"
                   67857:     if test "$ext_shared" != "nocli"; then
                   67858:       EXT_CLI_STATIC="$EXT_CLI_STATIC odbc"
                   67859:     fi
                   67860:   else
                   67861:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   67862:       PHP_ODBC_SHARED=yes
                   67863: 
                   67864:   case ext/odbc in
                   67865:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   67866:   /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   67867:   *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   67868:   esac
                   67869: 
                   67870: 
                   67871: 
                   67872:   b_c_pre=$shared_c_pre
                   67873:   b_cxx_pre=$shared_cxx_pre
                   67874:   b_c_meta=$shared_c_meta
                   67875:   b_cxx_meta=$shared_cxx_meta
                   67876:   b_c_post=$shared_c_post
                   67877:   b_cxx_post=$shared_cxx_post
                   67878:   b_lo=$shared_lo
                   67879: 
                   67880: 
                   67881:   old_IFS=$IFS
                   67882:   for ac_src in php_odbc.c; do
                   67883: 
                   67884:       IFS=.
                   67885:       set $ac_src
                   67886:       ac_obj=$1
                   67887:       IFS=$old_IFS
                   67888: 
                   67889:       shared_objects_odbc="$shared_objects_odbc $ac_bdir$ac_obj.lo"
                   67890: 
                   67891:       case $ac_src in
                   67892:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   67893:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   67894:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   67895:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   67896:       esac
                   67897: 
                   67898:     cat >>Makefile.objects<<EOF
                   67899: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   67900:        $ac_comp
                   67901: EOF
                   67902:   done
                   67903: 
                   67904:       case $host_alias in
                   67905:         *netware*)
                   67906: 
                   67907:   install_modules="install-modules"
                   67908: 
                   67909:   case $host_alias in
                   67910:     *aix*)
                   67911:       suffix=so
                   67912:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpodbc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) $(PHPODBC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpodbc.so '$ext_builddir'/phpodbc.so'
                   67913:       ;;
                   67914:     *netware*)
                   67915:       suffix=nlm
                   67916:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) -L$(top_builddir)/netware -lphp5lib $(ODBC_SHARED_LIBADD)'
                   67917:       ;;
                   67918:     *)
                   67919:       suffix=la
                   67920:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) $(PHPODBC_SHARED_LIBADD)'
                   67921:       ;;
                   67922:   esac
                   67923: 
                   67924:   if test "x" = "xyes"; then
                   67925:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpodbc.$suffix"
                   67926:   else
                   67927:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpodbc.$suffix"
                   67928:   fi
                   67929: 
                   67930:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_odbc"
                   67931: 
                   67932:   cat >>Makefile.objects<<EOF
                   67933: \$(phplibdir)/phpodbc.$suffix: $ext_builddir/phpodbc.$suffix
                   67934:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpodbc.$suffix \$(phplibdir)
                   67935: 
                   67936: $ext_builddir/phpodbc.$suffix: \$(shared_objects_odbc) \$(PHPODBC_SHARED_DEPENDENCIES)
                   67937:        $link_cmd
                   67938: 
                   67939: EOF
                   67940: 
                   67941:           ;;
                   67942:         *)
                   67943: 
                   67944:   install_modules="install-modules"
                   67945: 
                   67946:   case $host_alias in
                   67947:     *aix*)
                   67948:       suffix=so
                   67949:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/odbc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) $(ODBC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/odbc.so '$ext_builddir'/odbc.so'
                   67950:       ;;
                   67951:     *netware*)
                   67952:       suffix=nlm
                   67953:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) -L$(top_builddir)/netware -lphp5lib $(C_SHARED_LIBADD)'
                   67954:       ;;
                   67955:     *)
                   67956:       suffix=la
                   67957:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) $(ODBC_SHARED_LIBADD)'
                   67958:       ;;
                   67959:   esac
                   67960: 
                   67961:   if test "x" = "xyes"; then
                   67962:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/odbc.$suffix"
                   67963:   else
                   67964:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/odbc.$suffix"
                   67965:   fi
                   67966: 
                   67967:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_odbc"
                   67968: 
                   67969:   cat >>Makefile.objects<<EOF
                   67970: \$(phplibdir)/odbc.$suffix: $ext_builddir/odbc.$suffix
                   67971:        \$(LIBTOOL) --mode=install cp $ext_builddir/odbc.$suffix \$(phplibdir)
                   67972: 
                   67973: $ext_builddir/odbc.$suffix: \$(shared_objects_odbc) \$(ODBC_SHARED_DEPENDENCIES)
                   67974:        $link_cmd
                   67975: 
                   67976: EOF
                   67977: 
                   67978:           ;;
                   67979:       esac
                   67980: 
                   67981: cat >>confdefs.h <<_ACEOF
                   67982: #define COMPILE_DL_ODBC 1
                   67983: _ACEOF
                   67984: 
                   67985:     fi
                   67986:   fi
                   67987: 
                   67988:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   67989:     PHP_ODBC_SHARED=no
                   67990: 
                   67991: 
                   67992:   case ext/odbc in
                   67993:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   67994:   /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   67995:   *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   67996:   esac
                   67997: 
                   67998: 
                   67999: 
                   68000:   b_c_pre=$php_c_pre
                   68001:   b_cxx_pre=$php_cxx_pre
                   68002:   b_c_meta=$php_c_meta
                   68003:   b_cxx_meta=$php_cxx_meta
                   68004:   b_c_post=$php_c_post
                   68005:   b_cxx_post=$php_cxx_post
                   68006:   b_lo=$php_lo
                   68007: 
                   68008: 
                   68009:   old_IFS=$IFS
                   68010:   for ac_src in php_odbc.c; do
                   68011: 
                   68012:       IFS=.
                   68013:       set $ac_src
                   68014:       ac_obj=$1
                   68015:       IFS=$old_IFS
                   68016: 
1.1.1.2 ! misho    68017:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    68018: 
                   68019:       case $ac_src in
                   68020:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68021:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68022:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68023:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   68024:       esac
                   68025: 
                   68026:     cat >>Makefile.objects<<EOF
                   68027: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   68028:        $ac_comp
                   68029: EOF
                   68030:   done
                   68031: 
                   68032: 
                   68033: 
                   68034: 
                   68035:   case ext/odbc in
                   68036:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   68037:   /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   68038:   *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   68039:   esac
                   68040: 
                   68041: 
                   68042: 
                   68043:   b_c_pre=$php_c_pre
                   68044:   b_cxx_pre=$php_cxx_pre
                   68045:   b_c_meta=$php_c_meta
                   68046:   b_cxx_meta=$php_cxx_meta
                   68047:   b_c_post=$php_c_post
                   68048:   b_cxx_post=$php_cxx_post
                   68049:   b_lo=$php_lo
                   68050: 
                   68051: 
                   68052:   old_IFS=$IFS
                   68053:   for ac_src in php_odbc.c; do
                   68054: 
                   68055:       IFS=.
                   68056:       set $ac_src
                   68057:       ac_obj=$1
                   68058:       IFS=$old_IFS
                   68059: 
1.1.1.2 ! misho    68060:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    68061: 
                   68062:       case $ac_src in
                   68063:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68064:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68065:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68066:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   68067:       esac
                   68068: 
                   68069:     cat >>Makefile.objects<<EOF
                   68070: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   68071:        $ac_comp
                   68072: EOF
                   68073:   done
                   68074: 
                   68075: 
                   68076: 
                   68077: 
                   68078:   case ext/odbc in
                   68079:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   68080:   /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   68081:   *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   68082:   esac
                   68083: 
                   68084: 
                   68085: 
                   68086:   b_c_pre=$php_c_pre
                   68087:   b_cxx_pre=$php_cxx_pre
                   68088:   b_c_meta=$php_c_meta
                   68089:   b_cxx_meta=$php_cxx_meta
                   68090:   b_c_post=$php_c_post
                   68091:   b_cxx_post=$php_cxx_post
                   68092:   b_lo=$php_lo
                   68093: 
                   68094: 
                   68095:   old_IFS=$IFS
                   68096:   for ac_src in php_odbc.c; do
                   68097: 
                   68098:       IFS=.
                   68099:       set $ac_src
                   68100:       ac_obj=$1
                   68101:       IFS=$old_IFS
                   68102: 
1.1.1.2 ! misho    68103:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    68104: 
                   68105:       case $ac_src in
                   68106:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68107:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68108:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68109:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   68110:       esac
                   68111: 
                   68112:     cat >>Makefile.objects<<EOF
                   68113: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   68114:        $ac_comp
                   68115: EOF
                   68116:   done
                   68117: 
                   68118: 
                   68119:     EXT_CLI_STATIC="$EXT_CLI_STATIC odbc"
                   68120:   fi
                   68121: 
                   68122: 
                   68123:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   68124: 
                   68125: 
                   68126: 
                   68127:   if test "$ext_builddir" = "."; then
                   68128:     PHP_PECL_EXTENSION=odbc
                   68129: 
                   68130:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   68131: 
                   68132:   fi
                   68133: 
                   68134: fi
                   68135: 
                   68136: 
                   68137: 
                   68138: php_enable_pcntl=no
                   68139: 
                   68140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pcntl support" >&5
                   68141: $as_echo_n "checking whether to enable pcntl support... " >&6; }
                   68142: # Check whether --enable-pcntl was given.
                   68143: if test "${enable_pcntl+set}" = set; then :
                   68144:   enableval=$enable_pcntl; PHP_PCNTL=$enableval
                   68145: else
                   68146: 
                   68147:   PHP_PCNTL=no
                   68148:   test "$PHP_ENABLE_ALL" && PHP_PCNTL=$PHP_ENABLE_ALL
                   68149: 
                   68150: fi
                   68151: 
                   68152: 
                   68153: 
                   68154: ext_output="yes, shared"
                   68155: ext_shared=yes
                   68156: case $PHP_PCNTL in
                   68157: shared,*)
                   68158:   PHP_PCNTL=`echo "$PHP_PCNTL"|$SED 's/^shared,//'`
                   68159:   ;;
                   68160: shared)
                   68161:   PHP_PCNTL=yes
                   68162:   ;;
                   68163: no)
                   68164:   ext_output=no
                   68165:   ext_shared=no
                   68166:   ;;
                   68167: *)
                   68168:   ext_output=yes
                   68169:   ext_shared=no
                   68170:   ;;
                   68171: esac
                   68172: 
                   68173: 
                   68174: 
                   68175: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   68176: $as_echo "$ext_output" >&6; }
                   68177: 
                   68178: 
                   68179: 
                   68180: 
                   68181: if test "$PHP_PCNTL" != "no"; then
                   68182:   for ac_func in fork
                   68183: do :
                   68184:   ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
                   68185: if test "x$ac_cv_func_fork" = xyes; then :
                   68186:   cat >>confdefs.h <<_ACEOF
                   68187: #define HAVE_FORK 1
                   68188: _ACEOF
                   68189: 
                   68190: $as_echo "#define HAVE_FORK 1" >>confdefs.h
                   68191: 
                   68192: else
                   68193:    as_fn_error $? "pcntl: fork() not supported by this platform" "$LINENO" 5
                   68194: fi
                   68195: done
                   68196: 
                   68197:   for ac_func in waitpid
                   68198: do :
                   68199:   ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
                   68200: if test "x$ac_cv_func_waitpid" = xyes; then :
                   68201:   cat >>confdefs.h <<_ACEOF
                   68202: #define HAVE_WAITPID 1
                   68203: _ACEOF
                   68204: 
                   68205: $as_echo "#define HAVE_WAITPID 1" >>confdefs.h
                   68206: 
                   68207: else
                   68208:    as_fn_error $? "pcntl: waitpid() not supported by this platform" "$LINENO" 5
                   68209: fi
                   68210: done
                   68211: 
                   68212:   for ac_func in sigaction
                   68213: do :
                   68214:   ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
                   68215: if test "x$ac_cv_func_sigaction" = xyes; then :
                   68216:   cat >>confdefs.h <<_ACEOF
                   68217: #define HAVE_SIGACTION 1
                   68218: _ACEOF
                   68219: 
                   68220: $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
                   68221: 
                   68222: else
                   68223:    as_fn_error $? "pcntl: sigaction() not supported by this platform" "$LINENO" 5
                   68224: fi
                   68225: done
                   68226: 
                   68227:   for ac_func in getpriority setpriority wait3 sigprocmask sigwaitinfo sigtimedwait
                   68228: do :
                   68229:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   68230: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   68231: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   68232:   cat >>confdefs.h <<_ACEOF
                   68233: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   68234: _ACEOF
                   68235: 
                   68236: fi
                   68237: done
                   68238: 
                   68239: 
                   68240:   ext_builddir=ext/pcntl
                   68241:   ext_srcdir=$abs_srcdir/ext/pcntl
                   68242: 
                   68243:   ac_extra=
                   68244: 
                   68245:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then
                   68246:     PHP_PCNTL_SHARED=no
                   68247: 
                   68248: 
                   68249:   case ext/pcntl in
                   68250:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   68251:   /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   68252:   *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   68253:   esac
                   68254: 
                   68255: 
                   68256: 
                   68257:   b_c_pre=$php_c_pre
                   68258:   b_cxx_pre=$php_cxx_pre
                   68259:   b_c_meta=$php_c_meta
                   68260:   b_cxx_meta=$php_cxx_meta
                   68261:   b_c_post=$php_c_post
                   68262:   b_cxx_post=$php_cxx_post
                   68263:   b_lo=$php_lo
                   68264: 
                   68265: 
                   68266:   old_IFS=$IFS
                   68267:   for ac_src in pcntl.c php_signal.c; do
                   68268: 
                   68269:       IFS=.
                   68270:       set $ac_src
                   68271:       ac_obj=$1
                   68272:       IFS=$old_IFS
                   68273: 
                   68274:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   68275: 
                   68276:       case $ac_src in
                   68277:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68278:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68279:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68280:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   68281:       esac
                   68282: 
                   68283:     cat >>Makefile.objects<<EOF
                   68284: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   68285:        $ac_comp
                   68286: EOF
                   68287:   done
                   68288: 
                   68289: 
                   68290:     EXT_STATIC="$EXT_STATIC pcntl"
                   68291:     if test "$ext_shared" != "nocli"; then
                   68292:       EXT_CLI_STATIC="$EXT_CLI_STATIC pcntl"
                   68293:     fi
                   68294:   else
                   68295:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   68296:       PHP_PCNTL_SHARED=yes
                   68297: 
                   68298:   case ext/pcntl in
                   68299:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   68300:   /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   68301:   *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   68302:   esac
                   68303: 
                   68304: 
                   68305: 
                   68306:   b_c_pre=$shared_c_pre
                   68307:   b_cxx_pre=$shared_cxx_pre
                   68308:   b_c_meta=$shared_c_meta
                   68309:   b_cxx_meta=$shared_cxx_meta
                   68310:   b_c_post=$shared_c_post
                   68311:   b_cxx_post=$shared_cxx_post
                   68312:   b_lo=$shared_lo
                   68313: 
                   68314: 
                   68315:   old_IFS=$IFS
                   68316:   for ac_src in pcntl.c php_signal.c; do
                   68317: 
                   68318:       IFS=.
                   68319:       set $ac_src
                   68320:       ac_obj=$1
                   68321:       IFS=$old_IFS
                   68322: 
                   68323:       shared_objects_pcntl="$shared_objects_pcntl $ac_bdir$ac_obj.lo"
                   68324: 
                   68325:       case $ac_src in
                   68326:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68327:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68328:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68329:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   68330:       esac
                   68331: 
                   68332:     cat >>Makefile.objects<<EOF
                   68333: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   68334:        $ac_comp
                   68335: EOF
                   68336:   done
                   68337: 
                   68338:       case $host_alias in
                   68339:         *netware*)
                   68340: 
                   68341:   install_modules="install-modules"
                   68342: 
                   68343:   case $host_alias in
                   68344:     *aix*)
                   68345:       suffix=so
                   68346:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppcntl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) $(PHPPCNTL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppcntl.so '$ext_builddir'/phppcntl.so'
                   68347:       ;;
                   68348:     *netware*)
                   68349:       suffix=nlm
                   68350:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) -L$(top_builddir)/netware -lphp5lib $(PCNTL_SHARED_LIBADD)'
                   68351:       ;;
                   68352:     *)
                   68353:       suffix=la
                   68354:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) $(PHPPCNTL_SHARED_LIBADD)'
                   68355:       ;;
                   68356:   esac
                   68357: 
                   68358:   if test "x" = "xyes"; then
                   68359:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppcntl.$suffix"
                   68360:   else
                   68361:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppcntl.$suffix"
                   68362:   fi
                   68363: 
                   68364:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcntl"
                   68365: 
                   68366:   cat >>Makefile.objects<<EOF
                   68367: \$(phplibdir)/phppcntl.$suffix: $ext_builddir/phppcntl.$suffix
                   68368:        \$(LIBTOOL) --mode=install cp $ext_builddir/phppcntl.$suffix \$(phplibdir)
                   68369: 
                   68370: $ext_builddir/phppcntl.$suffix: \$(shared_objects_pcntl) \$(PHPPCNTL_SHARED_DEPENDENCIES)
                   68371:        $link_cmd
                   68372: 
                   68373: EOF
                   68374: 
                   68375:           ;;
                   68376:         *)
                   68377: 
                   68378:   install_modules="install-modules"
                   68379: 
                   68380:   case $host_alias in
                   68381:     *aix*)
                   68382:       suffix=so
                   68383:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pcntl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) $(PCNTL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pcntl.so '$ext_builddir'/pcntl.so'
                   68384:       ;;
                   68385:     *netware*)
                   68386:       suffix=nlm
                   68387:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) -L$(top_builddir)/netware -lphp5lib $(TL_SHARED_LIBADD)'
                   68388:       ;;
                   68389:     *)
                   68390:       suffix=la
                   68391:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) $(PCNTL_SHARED_LIBADD)'
                   68392:       ;;
                   68393:   esac
                   68394: 
                   68395:   if test "x" = "xyes"; then
                   68396:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcntl.$suffix"
                   68397:   else
                   68398:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcntl.$suffix"
                   68399:   fi
                   68400: 
                   68401:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcntl"
                   68402: 
                   68403:   cat >>Makefile.objects<<EOF
                   68404: \$(phplibdir)/pcntl.$suffix: $ext_builddir/pcntl.$suffix
                   68405:        \$(LIBTOOL) --mode=install cp $ext_builddir/pcntl.$suffix \$(phplibdir)
                   68406: 
                   68407: $ext_builddir/pcntl.$suffix: \$(shared_objects_pcntl) \$(PCNTL_SHARED_DEPENDENCIES)
                   68408:        $link_cmd
                   68409: 
                   68410: EOF
                   68411: 
                   68412:           ;;
                   68413:       esac
                   68414: 
                   68415: cat >>confdefs.h <<_ACEOF
                   68416: #define COMPILE_DL_PCNTL 1
                   68417: _ACEOF
                   68418: 
                   68419:     fi
                   68420:   fi
                   68421: 
                   68422:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then
                   68423:     PHP_PCNTL_SHARED=no
                   68424: 
                   68425: 
                   68426:   case ext/pcntl in
                   68427:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   68428:   /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   68429:   *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   68430:   esac
                   68431: 
                   68432: 
                   68433: 
                   68434:   b_c_pre=$php_c_pre
                   68435:   b_cxx_pre=$php_cxx_pre
                   68436:   b_c_meta=$php_c_meta
                   68437:   b_cxx_meta=$php_cxx_meta
                   68438:   b_c_post=$php_c_post
                   68439:   b_cxx_post=$php_cxx_post
                   68440:   b_lo=$php_lo
                   68441: 
                   68442: 
                   68443:   old_IFS=$IFS
                   68444:   for ac_src in pcntl.c php_signal.c; do
                   68445: 
                   68446:       IFS=.
                   68447:       set $ac_src
                   68448:       ac_obj=$1
                   68449:       IFS=$old_IFS
                   68450: 
1.1.1.2 ! misho    68451:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    68452: 
                   68453:       case $ac_src in
                   68454:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68455:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68456:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68457:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   68458:       esac
                   68459: 
                   68460:     cat >>Makefile.objects<<EOF
                   68461: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   68462:        $ac_comp
                   68463: EOF
                   68464:   done
                   68465: 
                   68466: 
                   68467: 
                   68468: 
                   68469:   case ext/pcntl in
                   68470:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   68471:   /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   68472:   *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   68473:   esac
                   68474: 
                   68475: 
                   68476: 
                   68477:   b_c_pre=$php_c_pre
                   68478:   b_cxx_pre=$php_cxx_pre
                   68479:   b_c_meta=$php_c_meta
                   68480:   b_cxx_meta=$php_cxx_meta
                   68481:   b_c_post=$php_c_post
                   68482:   b_cxx_post=$php_cxx_post
                   68483:   b_lo=$php_lo
                   68484: 
                   68485: 
                   68486:   old_IFS=$IFS
                   68487:   for ac_src in pcntl.c php_signal.c; do
                   68488: 
                   68489:       IFS=.
                   68490:       set $ac_src
                   68491:       ac_obj=$1
                   68492:       IFS=$old_IFS
                   68493: 
1.1.1.2 ! misho    68494:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    68495: 
                   68496:       case $ac_src in
                   68497:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68498:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68499:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68500:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   68501:       esac
                   68502: 
                   68503:     cat >>Makefile.objects<<EOF
                   68504: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   68505:        $ac_comp
                   68506: EOF
                   68507:   done
                   68508: 
                   68509: 
                   68510: 
                   68511: 
                   68512:   case ext/pcntl in
                   68513:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   68514:   /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   68515:   *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   68516:   esac
                   68517: 
                   68518: 
                   68519: 
                   68520:   b_c_pre=$php_c_pre
                   68521:   b_cxx_pre=$php_cxx_pre
                   68522:   b_c_meta=$php_c_meta
                   68523:   b_cxx_meta=$php_cxx_meta
                   68524:   b_c_post=$php_c_post
                   68525:   b_cxx_post=$php_cxx_post
                   68526:   b_lo=$php_lo
                   68527: 
                   68528: 
                   68529:   old_IFS=$IFS
                   68530:   for ac_src in pcntl.c php_signal.c; do
                   68531: 
                   68532:       IFS=.
                   68533:       set $ac_src
                   68534:       ac_obj=$1
                   68535:       IFS=$old_IFS
                   68536: 
1.1.1.2 ! misho    68537:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    68538: 
                   68539:       case $ac_src in
                   68540:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68541:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68542:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68543:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   68544:       esac
                   68545: 
                   68546:     cat >>Makefile.objects<<EOF
                   68547: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   68548:        $ac_comp
                   68549: EOF
                   68550:   done
                   68551: 
                   68552: 
                   68553:     EXT_CLI_STATIC="$EXT_CLI_STATIC pcntl"
                   68554:   fi
                   68555: 
                   68556: 
                   68557:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   68558: 
                   68559: 
                   68560: 
                   68561:   if test "$ext_builddir" = "."; then
                   68562:     PHP_PECL_EXTENSION=pcntl
                   68563: 
                   68564:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   68565: 
                   68566:   fi
                   68567: 
                   68568: fi
                   68569: 
                   68570: 
                   68571: 
                   68572: 
                   68573: 
                   68574: php_enable_pdo=yes
                   68575: 
                   68576: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PDO support" >&5
                   68577: $as_echo_n "checking whether to enable PDO support... " >&6; }
                   68578: # Check whether --enable-pdo was given.
                   68579: if test "${enable_pdo+set}" = set; then :
                   68580:   enableval=$enable_pdo; PHP_PDO=$enableval
                   68581: else
                   68582: 
                   68583:   PHP_PDO=yes
                   68584:   test "$PHP_ENABLE_ALL" && PHP_PDO=$PHP_ENABLE_ALL
                   68585: 
                   68586: fi
                   68587: 
                   68588: 
                   68589: 
                   68590: ext_output="yes, shared"
                   68591: ext_shared=yes
                   68592: case $PHP_PDO in
                   68593: shared,*)
                   68594:   PHP_PDO=`echo "$PHP_PDO"|$SED 's/^shared,//'`
                   68595:   ;;
                   68596: shared)
                   68597:   PHP_PDO=yes
                   68598:   ;;
                   68599: no)
                   68600:   ext_output=no
                   68601:   ext_shared=no
                   68602:   ;;
                   68603: *)
                   68604:   ext_output=yes
                   68605:   ext_shared=no
                   68606:   ;;
                   68607: esac
                   68608: 
                   68609: 
                   68610: 
                   68611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   68612: $as_echo "$ext_output" >&6; }
                   68613: 
                   68614: 
                   68615: 
                   68616: 
                   68617: if test "$PHP_PDO" != "no"; then
                   68618: 
                   68619:     PHP_PDO=yes
                   68620: 
                   68621: 
                   68622:   pdo_running_under_pear=0
                   68623:   case `pwd` in
                   68624:     /var/tmp/pear-build-*)
                   68625:       pdo_running_under_pear=1
                   68626:       ;;
                   68627:   esac
                   68628: 
                   68629:   if test "$pdo_running_under_pear$PHP_PEAR_VERSION" = "1"; then
                   68630:     # we're running in an environment that smells like pear,
                   68631:     # and the PHP_PEAR_VERSION env var is not set.  That implies
                   68632:     # that we're running under a slightly broken pear installer
                   68633:     as_fn_error $? "
                   68634: PDO requires that you upgrade your PEAR installer tools. Please
                   68635: do so now by running:
                   68636: 
                   68637:   % sudo pear upgrade pear
                   68638: 
                   68639: or by manually downloading and installing PEAR version 1.3.5 or higher.
                   68640: 
                   68641: Once you've upgraded, please re-try your PDO install.
                   68642:     " "$LINENO" 5
                   68643:   fi
                   68644: 
                   68645: 
                   68646:   if test "$ext_shared" = "yes" ; then
                   68647:     case $host_alias in
                   68648:       *darwin*)
                   68649:           as_fn_error $? "
                   68650: Due to the way that loadable modules work on OSX/Darwin, you need to
                   68651: compile the PDO package statically into the PHP core.
                   68652: 
                   68653: Please follow the instructions at: http://netevil.org/node.php?nid=202
                   68654: for more detail on this issue.
                   68655:           " "$LINENO" 5
                   68656:         ext_shared=no
                   68657:         ;;
                   68658:     esac
                   68659:   fi
                   68660: 
                   68661:   ext_builddir=ext/pdo
                   68662:   ext_srcdir=$abs_srcdir/ext/pdo
                   68663: 
                   68664:   ac_extra=
                   68665: 
                   68666:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   68667:     PHP_PDO_SHARED=no
                   68668: 
                   68669: 
                   68670:   case ext/pdo in
                   68671:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   68672:   /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   68673:   *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   68674:   esac
                   68675: 
                   68676: 
                   68677: 
                   68678:   b_c_pre=$php_c_pre
                   68679:   b_cxx_pre=$php_cxx_pre
                   68680:   b_c_meta=$php_c_meta
                   68681:   b_cxx_meta=$php_cxx_meta
                   68682:   b_c_post=$php_c_post
                   68683:   b_cxx_post=$php_cxx_post
                   68684:   b_lo=$php_lo
                   68685: 
                   68686: 
                   68687:   old_IFS=$IFS
                   68688:   for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
                   68689: 
                   68690:       IFS=.
                   68691:       set $ac_src
                   68692:       ac_obj=$1
                   68693:       IFS=$old_IFS
                   68694: 
                   68695:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   68696: 
                   68697:       case $ac_src in
                   68698:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68699:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68700:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68701:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   68702:       esac
                   68703: 
                   68704:     cat >>Makefile.objects<<EOF
                   68705: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   68706:        $ac_comp
                   68707: EOF
                   68708:   done
                   68709: 
                   68710: 
                   68711:     EXT_STATIC="$EXT_STATIC pdo"
                   68712:     if test "$ext_shared" != "nocli"; then
                   68713:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo"
                   68714:     fi
                   68715:   else
                   68716:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   68717:       PHP_PDO_SHARED=yes
                   68718: 
                   68719:   case ext/pdo in
                   68720:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   68721:   /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   68722:   *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   68723:   esac
                   68724: 
                   68725: 
                   68726: 
                   68727:   b_c_pre=$shared_c_pre
                   68728:   b_cxx_pre=$shared_cxx_pre
                   68729:   b_c_meta=$shared_c_meta
                   68730:   b_cxx_meta=$shared_cxx_meta
                   68731:   b_c_post=$shared_c_post
                   68732:   b_cxx_post=$shared_cxx_post
                   68733:   b_lo=$shared_lo
                   68734: 
                   68735: 
                   68736:   old_IFS=$IFS
                   68737:   for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
                   68738: 
                   68739:       IFS=.
                   68740:       set $ac_src
                   68741:       ac_obj=$1
                   68742:       IFS=$old_IFS
                   68743: 
                   68744:       shared_objects_pdo="$shared_objects_pdo $ac_bdir$ac_obj.lo"
                   68745: 
                   68746:       case $ac_src in
                   68747:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68748:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68749:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68750:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   68751:       esac
                   68752: 
                   68753:     cat >>Makefile.objects<<EOF
                   68754: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   68755:        $ac_comp
                   68756: EOF
                   68757:   done
                   68758: 
                   68759:       case $host_alias in
                   68760:         *netware*)
                   68761: 
                   68762:   install_modules="install-modules"
                   68763: 
                   68764:   case $host_alias in
                   68765:     *aix*)
                   68766:       suffix=so
                   68767:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) $(PHPPDO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo.so '$ext_builddir'/phppdo.so'
                   68768:       ;;
                   68769:     *netware*)
                   68770:       suffix=nlm
                   68771:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) -L$(top_builddir)/netware -lphp5lib $(PDO_SHARED_LIBADD)'
                   68772:       ;;
                   68773:     *)
                   68774:       suffix=la
                   68775:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) $(PHPPDO_SHARED_LIBADD)'
                   68776:       ;;
                   68777:   esac
                   68778: 
                   68779:   if test "x" = "xyes"; then
                   68780:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo.$suffix"
                   68781:   else
                   68782:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo.$suffix"
                   68783:   fi
                   68784: 
                   68785:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo"
                   68786: 
                   68787:   cat >>Makefile.objects<<EOF
                   68788: \$(phplibdir)/phppdo.$suffix: $ext_builddir/phppdo.$suffix
                   68789:        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo.$suffix \$(phplibdir)
                   68790: 
                   68791: $ext_builddir/phppdo.$suffix: \$(shared_objects_pdo) \$(PHPPDO_SHARED_DEPENDENCIES)
                   68792:        $link_cmd
                   68793: 
                   68794: EOF
                   68795: 
                   68796:           ;;
                   68797:         *)
                   68798: 
                   68799:   install_modules="install-modules"
                   68800: 
                   68801:   case $host_alias in
                   68802:     *aix*)
                   68803:       suffix=so
                   68804:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) $(PDO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo.so '$ext_builddir'/pdo.so'
                   68805:       ;;
                   68806:     *netware*)
                   68807:       suffix=nlm
                   68808:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
                   68809:       ;;
                   68810:     *)
                   68811:       suffix=la
                   68812:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) $(PDO_SHARED_LIBADD)'
                   68813:       ;;
                   68814:   esac
                   68815: 
                   68816:   if test "x" = "xyes"; then
                   68817:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo.$suffix"
                   68818:   else
                   68819:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo.$suffix"
                   68820:   fi
                   68821: 
                   68822:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo"
                   68823: 
                   68824:   cat >>Makefile.objects<<EOF
                   68825: \$(phplibdir)/pdo.$suffix: $ext_builddir/pdo.$suffix
                   68826:        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo.$suffix \$(phplibdir)
                   68827: 
                   68828: $ext_builddir/pdo.$suffix: \$(shared_objects_pdo) \$(PDO_SHARED_DEPENDENCIES)
                   68829:        $link_cmd
                   68830: 
                   68831: EOF
                   68832: 
                   68833:           ;;
                   68834:       esac
                   68835: 
                   68836: cat >>confdefs.h <<_ACEOF
                   68837: #define COMPILE_DL_PDO 1
                   68838: _ACEOF
                   68839: 
                   68840:     fi
                   68841:   fi
                   68842: 
                   68843:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   68844:     PHP_PDO_SHARED=no
                   68845: 
                   68846: 
                   68847:   case ext/pdo in
                   68848:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   68849:   /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   68850:   *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   68851:   esac
                   68852: 
                   68853: 
                   68854: 
                   68855:   b_c_pre=$php_c_pre
                   68856:   b_cxx_pre=$php_cxx_pre
                   68857:   b_c_meta=$php_c_meta
                   68858:   b_cxx_meta=$php_cxx_meta
                   68859:   b_c_post=$php_c_post
                   68860:   b_cxx_post=$php_cxx_post
                   68861:   b_lo=$php_lo
                   68862: 
                   68863: 
                   68864:   old_IFS=$IFS
                   68865:   for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
                   68866: 
                   68867:       IFS=.
                   68868:       set $ac_src
                   68869:       ac_obj=$1
                   68870:       IFS=$old_IFS
                   68871: 
1.1.1.2 ! misho    68872:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    68873: 
                   68874:       case $ac_src in
                   68875:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68876:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68877:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68878:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   68879:       esac
                   68880: 
                   68881:     cat >>Makefile.objects<<EOF
                   68882: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   68883:        $ac_comp
                   68884: EOF
                   68885:   done
                   68886: 
                   68887: 
                   68888: 
                   68889: 
                   68890:   case ext/pdo in
                   68891:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   68892:   /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   68893:   *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   68894:   esac
                   68895: 
                   68896: 
                   68897: 
                   68898:   b_c_pre=$php_c_pre
                   68899:   b_cxx_pre=$php_cxx_pre
                   68900:   b_c_meta=$php_c_meta
                   68901:   b_cxx_meta=$php_cxx_meta
                   68902:   b_c_post=$php_c_post
                   68903:   b_cxx_post=$php_cxx_post
                   68904:   b_lo=$php_lo
                   68905: 
                   68906: 
                   68907:   old_IFS=$IFS
                   68908:   for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
                   68909: 
                   68910:       IFS=.
                   68911:       set $ac_src
                   68912:       ac_obj=$1
                   68913:       IFS=$old_IFS
                   68914: 
1.1.1.2 ! misho    68915:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    68916: 
                   68917:       case $ac_src in
                   68918:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68919:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68920:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68921:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   68922:       esac
                   68923: 
                   68924:     cat >>Makefile.objects<<EOF
                   68925: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   68926:        $ac_comp
                   68927: EOF
                   68928:   done
                   68929: 
                   68930: 
                   68931: 
                   68932: 
                   68933:   case ext/pdo in
                   68934:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   68935:   /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   68936:   *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   68937:   esac
                   68938: 
                   68939: 
                   68940: 
                   68941:   b_c_pre=$php_c_pre
                   68942:   b_cxx_pre=$php_cxx_pre
                   68943:   b_c_meta=$php_c_meta
                   68944:   b_cxx_meta=$php_cxx_meta
                   68945:   b_c_post=$php_c_post
                   68946:   b_cxx_post=$php_cxx_post
                   68947:   b_lo=$php_lo
                   68948: 
                   68949: 
                   68950:   old_IFS=$IFS
                   68951:   for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
                   68952: 
                   68953:       IFS=.
                   68954:       set $ac_src
                   68955:       ac_obj=$1
                   68956:       IFS=$old_IFS
                   68957: 
1.1.1.2 ! misho    68958:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    68959: 
                   68960:       case $ac_src in
                   68961:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68962:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68963:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   68964:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   68965:       esac
                   68966: 
                   68967:     cat >>Makefile.objects<<EOF
                   68968: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   68969:        $ac_comp
                   68970: EOF
                   68971:   done
                   68972: 
                   68973: 
                   68974:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo"
                   68975:   fi
                   68976: 
                   68977: 
                   68978:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   68979: 
                   68980: 
                   68981: 
                   68982:   if test "$ext_builddir" = "."; then
                   68983:     PHP_PECL_EXTENSION=pdo
                   68984: 
                   68985:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   68986: 
                   68987:   fi
                   68988: 
                   68989: 
                   68990: 
                   68991:   am_i_shared=$PHP_PDO_SHARED
                   68992:   is_it_shared=$PHP_SPL_SHARED
                   68993:   is_it_enabled=$PHP_SPL
                   68994:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   68995:     as_fn_error $? "
                   68996: You've configured extension pdo to build statically, but it
                   68997: depends on extension spl, which you've configured to build shared.
                   68998: You either need to build pdo shared or build spl statically for the
                   68999: build to be successful.
                   69000: " "$LINENO" 5
                   69001:   fi
                   69002: 
                   69003: 
                   69004: 
                   69005: 
                   69006: 
                   69007: 
                   69008:     header_path=ext/pdo
                   69009:     for header_file in php_pdo.h php_pdo_driver.h; do
                   69010:       hp_hf="$header_path/$header_file"
                   69011: 
                   69012: 
                   69013:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
                   69014: 
                   69015:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   69016:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   69017:     eval "INSTALLHEADERS$unique=set"
                   69018: 
                   69019:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
                   69020: 
                   69021:   fi
                   69022: 
                   69023:     done
                   69024: 
                   69025: 
                   69026: 
                   69027: 
                   69028: 
                   69029:   src=$ext_srcdir/Makefile.frag
                   69030:   ac_srcdir=$ext_srcdir
                   69031:   ac_builddir=$ext_builddir
                   69032:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
                   69033: 
                   69034: fi
                   69035: 
                   69036: 
                   69037: 
                   69038: 
                   69039: php_with_pdo_dblib=no
                   69040: 
                   69041: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO_DBLIB support via FreeTDS" >&5
                   69042: $as_echo_n "checking for PDO_DBLIB support via FreeTDS... " >&6; }
                   69043: 
                   69044: # Check whether --with-pdo-dblib was given.
                   69045: if test "${with_pdo_dblib+set}" = set; then :
                   69046:   withval=$with_pdo_dblib; PHP_PDO_DBLIB=$withval
                   69047: else
                   69048: 
                   69049:   PHP_PDO_DBLIB=no
                   69050:   test "$PHP_ENABLE_ALL" && PHP_PDO_DBLIB=$PHP_ENABLE_ALL
                   69051: 
                   69052: fi
                   69053: 
                   69054: 
                   69055: 
                   69056: ext_output="yes, shared"
                   69057: ext_shared=yes
                   69058: case $PHP_PDO_DBLIB in
                   69059: shared,*)
                   69060:   PHP_PDO_DBLIB=`echo "$PHP_PDO_DBLIB"|$SED 's/^shared,//'`
                   69061:   ;;
                   69062: shared)
                   69063:   PHP_PDO_DBLIB=yes
                   69064:   ;;
                   69065: no)
                   69066:   ext_output=no
                   69067:   ext_shared=no
                   69068:   ;;
                   69069: *)
                   69070:   ext_output=yes
                   69071:   ext_shared=no
                   69072:   ;;
                   69073: esac
                   69074: 
                   69075: 
                   69076: 
                   69077: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   69078: $as_echo "$ext_output" >&6; }
                   69079: 
                   69080: 
                   69081: 
                   69082: 
                   69083: if test "$PHP_PDO_DBLIB" != "no"; then
                   69084: 
                   69085:   if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
                   69086:     as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
                   69087:   fi
                   69088: 
                   69089:   if test "$PHP_PDO_DBLIB" = "yes"; then
                   69090: 
                   69091:     for i in /usr/local /usr; do
                   69092:       if test -f $i/include/sybdb.h; then
                   69093:         PDO_FREETDS_INSTALLATION_DIR=$i
                   69094:         PDO_FREETDS_INCLUDE_DIR=$i/include
                   69095:         break
                   69096:       elif test -f $i/include/freetds/sybdb.h; then
                   69097:         PDO_FREETDS_INSTALLATION_DIR=$i
                   69098:         PDO_FREETDS_INCLUDE_DIR=$i/include/freetds
                   69099:         break;
                   69100:       fi
                   69101:     done
                   69102: 
                   69103:     if test -z "$PDO_FREETDS_INSTALLATION_DIR"; then
                   69104:       as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5
                   69105:     fi
                   69106: 
                   69107:   elif test "$PHP_PDO_DBLIB" != "no"; then
                   69108: 
                   69109:     if test -f $PHP_PDO_DBLIB/include/sybdb.h; then
                   69110:       PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
                   69111:       PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include
                   69112:     elif test -f $PHP_PDO_DBLIB/include/freetds/sybdb.h; then
                   69113:       PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
                   69114:       PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds
                   69115:     else
                   69116:       as_fn_error $? "Directory $PHP_PDO_DBLIB is not a FreeTDS installation directory" "$LINENO" 5
                   69117:     fi
                   69118:   fi
                   69119: 
                   69120:   if test "x$PHP_LIBDIR" = "x" ; then
                   69121:     PHP_LIBDIR=lib
                   69122:   fi
                   69123: 
                   69124:   if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
                   69125:      as_fn_error $? "Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5
                   69126:   fi
                   69127: 
                   69128: 
                   69129:   if test "$PDO_FREETDS_INCLUDE_DIR" != "/usr/include"; then
                   69130: 
                   69131:   if test -z "$PDO_FREETDS_INCLUDE_DIR" || echo "$PDO_FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then
                   69132:     ai_p=$PDO_FREETDS_INCLUDE_DIR
                   69133:   else
                   69134: 
                   69135:     ep_dir="`echo $PDO_FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   69136: 
                   69137:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   69138:     ai_p="$ep_realdir/`basename \"$PDO_FREETDS_INCLUDE_DIR\"`"
                   69139:   fi
                   69140: 
                   69141: 
                   69142: 
                   69143:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   69144: 
                   69145:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   69146:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   69147:     eval "INCLUDEPATH$unique=set"
                   69148: 
                   69149:       if test ""; then
                   69150:         INCLUDES="-I$ai_p $INCLUDES"
                   69151:       else
                   69152:         INCLUDES="$INCLUDES -I$ai_p"
                   69153:       fi
                   69154: 
                   69155:   fi
                   69156: 
                   69157:   fi
                   69158: 
                   69159: 
                   69160: 
                   69161:   if test "$ext_shared" = "yes"; then
                   69162:     PDO_DBLIB_SHARED_LIBADD="-lsybdb $PDO_DBLIB_SHARED_LIBADD"
                   69163:     if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
                   69164: 
                   69165:   if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   69166: 
                   69167:   if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   69168:     ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
                   69169:   else
                   69170: 
                   69171:     ep_dir="`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   69172: 
                   69173:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   69174:     ai_p="$ep_realdir/`basename \"$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
                   69175:   fi
                   69176: 
                   69177: 
                   69178:       if test "$ext_shared" = "yes"; then
                   69179:         PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD"
                   69180:         test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD"
                   69181:       else
                   69182: 
                   69183: 
                   69184: 
                   69185:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   69186: 
                   69187:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   69188:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   69189:     eval "LIBPATH$unique=set"
                   69190: 
                   69191:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   69192:     LDFLAGS="$LDFLAGS -L$ai_p"
                   69193:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   69194: 
                   69195:   fi
                   69196: 
                   69197: 
                   69198:       fi
                   69199: 
                   69200:   fi
                   69201: 
                   69202:     fi
                   69203:   else
                   69204: 
                   69205: 
                   69206:   if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
                   69207: 
                   69208:   if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   69209: 
                   69210:   if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   69211:     ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
                   69212:   else
                   69213: 
                   69214:     ep_dir="`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   69215: 
                   69216:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   69217:     ai_p="$ep_realdir/`basename \"$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
                   69218:   fi
                   69219: 
                   69220: 
                   69221: 
                   69222: 
                   69223: 
                   69224:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   69225: 
                   69226:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   69227:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   69228:     eval "LIBPATH$unique=set"
                   69229: 
                   69230:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   69231:     LDFLAGS="$LDFLAGS -L$ai_p"
                   69232:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   69233: 
                   69234:   fi
                   69235: 
                   69236: 
                   69237: 
                   69238:   fi
                   69239: 
                   69240:   fi
                   69241: 
                   69242: 
                   69243:   case sybdb in
                   69244:   c|c_r|pthread*) ;;
                   69245:   *)
                   69246:       LIBS="-lsybdb $LIBS"
                   69247:    ;;
                   69248:   esac
                   69249: 
                   69250: 
                   69251: 
                   69252: 
                   69253:   fi
                   69254: 
                   69255: 
                   69256: 
                   69257: 
                   69258: 
                   69259:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
                   69260: $as_echo_n "checking for PDO includes... " >&6; }
1.1.1.2 ! misho    69261: if ${pdo_cv_inc_path+:} false; then :
1.1       misho    69262:   $as_echo_n "(cached) " >&6
                   69263: else
                   69264: 
                   69265:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
                   69266: $as_echo_n "checking for PDO includes... " >&6; }
                   69267:     if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    69268:       pdo_cv_inc_path=$abs_srcdir/ext
1.1       misho    69269:     elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    69270:       pdo_cv_inc_path=$abs_srcdir/ext
1.1       misho    69271:     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    69272:       pdo_cv_inc_path=$prefix/include/php/ext
1.1       misho    69273:     fi
                   69274: 
                   69275: fi
1.1.1.2 ! misho    69276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
        !          69277: $as_echo "$pdo_cv_inc_path" >&6; }
        !          69278:   if test -n "$pdo_cv_inc_path"; then
1.1       misho    69279: :
                   69280:   else
                   69281: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
                   69282:   fi
                   69283: 
                   69284: 
                   69285: 
                   69286:   PDO_DBLIB_DEFS="-DPDO_DBLIB_FLAVOUR=\\\"freetds\\\""
                   69287: 
                   69288:   ext_builddir=ext/pdo_dblib
                   69289:   ext_srcdir=$abs_srcdir/ext/pdo_dblib
                   69290: 
1.1.1.2 ! misho    69291:   ac_extra=`echo "-I$pdo_cv_inc_path $PDO_DBLIB_DEFS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1       misho    69292: 
                   69293:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   69294:     PHP_PDO_DBLIB_SHARED=no
                   69295: 
                   69296: 
                   69297:   case ext/pdo_dblib in
                   69298:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   69299:   /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   69300:   *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   69301:   esac
                   69302: 
                   69303: 
                   69304: 
                   69305:   b_c_pre=$php_c_pre
                   69306:   b_cxx_pre=$php_cxx_pre
                   69307:   b_c_meta=$php_c_meta
                   69308:   b_cxx_meta=$php_cxx_meta
                   69309:   b_c_post=$php_c_post
                   69310:   b_cxx_post=$php_cxx_post
                   69311:   b_lo=$php_lo
                   69312: 
                   69313: 
                   69314:   old_IFS=$IFS
                   69315:   for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
                   69316: 
                   69317:       IFS=.
                   69318:       set $ac_src
                   69319:       ac_obj=$1
                   69320:       IFS=$old_IFS
                   69321: 
                   69322:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   69323: 
                   69324:       case $ac_src in
                   69325:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   69326:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   69327:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   69328:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   69329:       esac
                   69330: 
                   69331:     cat >>Makefile.objects<<EOF
                   69332: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   69333:        $ac_comp
                   69334: EOF
                   69335:   done
                   69336: 
                   69337: 
                   69338:     EXT_STATIC="$EXT_STATIC pdo_dblib"
                   69339:     if test "$ext_shared" != "nocli"; then
                   69340:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_dblib"
                   69341:     fi
                   69342:   else
                   69343:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   69344:       PHP_PDO_DBLIB_SHARED=yes
                   69345: 
                   69346:   case ext/pdo_dblib in
                   69347:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   69348:   /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   69349:   *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   69350:   esac
                   69351: 
                   69352: 
                   69353: 
                   69354:   b_c_pre=$shared_c_pre
                   69355:   b_cxx_pre=$shared_cxx_pre
                   69356:   b_c_meta=$shared_c_meta
                   69357:   b_cxx_meta=$shared_cxx_meta
                   69358:   b_c_post=$shared_c_post
                   69359:   b_cxx_post=$shared_cxx_post
                   69360:   b_lo=$shared_lo
                   69361: 
                   69362: 
                   69363:   old_IFS=$IFS
                   69364:   for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
                   69365: 
                   69366:       IFS=.
                   69367:       set $ac_src
                   69368:       ac_obj=$1
                   69369:       IFS=$old_IFS
                   69370: 
                   69371:       shared_objects_pdo_dblib="$shared_objects_pdo_dblib $ac_bdir$ac_obj.lo"
                   69372: 
                   69373:       case $ac_src in
                   69374:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   69375:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   69376:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   69377:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   69378:       esac
                   69379: 
                   69380:     cat >>Makefile.objects<<EOF
                   69381: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   69382:        $ac_comp
                   69383: EOF
                   69384:   done
                   69385: 
                   69386:       case $host_alias in
                   69387:         *netware*)
                   69388: 
                   69389:   install_modules="install-modules"
                   69390: 
                   69391:   case $host_alias in
                   69392:     *aix*)
                   69393:       suffix=so
                   69394:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_dblib.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) $(PHPPDO_DBLIB_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_dblib.so '$ext_builddir'/phppdo_dblib.so'
                   69395:       ;;
                   69396:     *netware*)
                   69397:       suffix=nlm
                   69398:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) -L$(top_builddir)/netware -lphp5lib $(PDO_DBLIB_SHARED_LIBADD)'
                   69399:       ;;
                   69400:     *)
                   69401:       suffix=la
                   69402:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) $(PHPPDO_DBLIB_SHARED_LIBADD)'
                   69403:       ;;
                   69404:   esac
                   69405: 
                   69406:   if test "x" = "xyes"; then
                   69407:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_dblib.$suffix"
                   69408:   else
                   69409:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_dblib.$suffix"
                   69410:   fi
                   69411: 
                   69412:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_dblib"
                   69413: 
                   69414:   cat >>Makefile.objects<<EOF
                   69415: \$(phplibdir)/phppdo_dblib.$suffix: $ext_builddir/phppdo_dblib.$suffix
                   69416:        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_dblib.$suffix \$(phplibdir)
                   69417: 
                   69418: $ext_builddir/phppdo_dblib.$suffix: \$(shared_objects_pdo_dblib) \$(PHPPDO_DBLIB_SHARED_DEPENDENCIES)
                   69419:        $link_cmd
                   69420: 
                   69421: EOF
                   69422: 
                   69423:           ;;
                   69424:         *)
                   69425: 
                   69426:   install_modules="install-modules"
                   69427: 
                   69428:   case $host_alias in
                   69429:     *aix*)
                   69430:       suffix=so
                   69431:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_dblib.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) $(PDO_DBLIB_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_dblib.so '$ext_builddir'/pdo_dblib.so'
                   69432:       ;;
                   69433:     *netware*)
                   69434:       suffix=nlm
                   69435:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) -L$(top_builddir)/netware -lphp5lib $(_DBLIB_SHARED_LIBADD)'
                   69436:       ;;
                   69437:     *)
                   69438:       suffix=la
                   69439:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) $(PDO_DBLIB_SHARED_LIBADD)'
                   69440:       ;;
                   69441:   esac
                   69442: 
                   69443:   if test "x" = "xyes"; then
                   69444:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_dblib.$suffix"
                   69445:   else
                   69446:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_dblib.$suffix"
                   69447:   fi
                   69448: 
                   69449:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_dblib"
                   69450: 
                   69451:   cat >>Makefile.objects<<EOF
                   69452: \$(phplibdir)/pdo_dblib.$suffix: $ext_builddir/pdo_dblib.$suffix
                   69453:        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_dblib.$suffix \$(phplibdir)
                   69454: 
                   69455: $ext_builddir/pdo_dblib.$suffix: \$(shared_objects_pdo_dblib) \$(PDO_DBLIB_SHARED_DEPENDENCIES)
                   69456:        $link_cmd
                   69457: 
                   69458: EOF
                   69459: 
                   69460:           ;;
                   69461:       esac
                   69462: 
                   69463: cat >>confdefs.h <<_ACEOF
                   69464: #define COMPILE_DL_PDO_DBLIB 1
                   69465: _ACEOF
                   69466: 
                   69467:     fi
                   69468:   fi
                   69469: 
                   69470:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   69471:     PHP_PDO_DBLIB_SHARED=no
                   69472: 
                   69473: 
                   69474:   case ext/pdo_dblib in
                   69475:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   69476:   /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   69477:   *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   69478:   esac
                   69479: 
                   69480: 
                   69481: 
                   69482:   b_c_pre=$php_c_pre
                   69483:   b_cxx_pre=$php_cxx_pre
                   69484:   b_c_meta=$php_c_meta
                   69485:   b_cxx_meta=$php_cxx_meta
                   69486:   b_c_post=$php_c_post
                   69487:   b_cxx_post=$php_cxx_post
                   69488:   b_lo=$php_lo
                   69489: 
                   69490: 
                   69491:   old_IFS=$IFS
                   69492:   for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
                   69493: 
                   69494:       IFS=.
                   69495:       set $ac_src
                   69496:       ac_obj=$1
                   69497:       IFS=$old_IFS
                   69498: 
1.1.1.2 ! misho    69499:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    69500: 
                   69501:       case $ac_src in
                   69502:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   69503:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   69504:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   69505:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   69506:       esac
                   69507: 
                   69508:     cat >>Makefile.objects<<EOF
                   69509: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   69510:        $ac_comp
                   69511: EOF
                   69512:   done
                   69513: 
                   69514: 
                   69515: 
                   69516: 
                   69517:   case ext/pdo_dblib in
                   69518:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   69519:   /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   69520:   *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   69521:   esac
                   69522: 
                   69523: 
                   69524: 
                   69525:   b_c_pre=$php_c_pre
                   69526:   b_cxx_pre=$php_cxx_pre
                   69527:   b_c_meta=$php_c_meta
                   69528:   b_cxx_meta=$php_cxx_meta
                   69529:   b_c_post=$php_c_post
                   69530:   b_cxx_post=$php_cxx_post
                   69531:   b_lo=$php_lo
                   69532: 
                   69533: 
                   69534:   old_IFS=$IFS
                   69535:   for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
                   69536: 
                   69537:       IFS=.
                   69538:       set $ac_src
                   69539:       ac_obj=$1
                   69540:       IFS=$old_IFS
                   69541: 
1.1.1.2 ! misho    69542:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    69543: 
                   69544:       case $ac_src in
                   69545:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   69546:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   69547:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   69548:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   69549:       esac
                   69550: 
                   69551:     cat >>Makefile.objects<<EOF
                   69552: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   69553:        $ac_comp
                   69554: EOF
                   69555:   done
                   69556: 
                   69557: 
                   69558: 
                   69559: 
                   69560:   case ext/pdo_dblib in
                   69561:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   69562:   /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   69563:   *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   69564:   esac
                   69565: 
                   69566: 
                   69567: 
                   69568:   b_c_pre=$php_c_pre
                   69569:   b_cxx_pre=$php_cxx_pre
                   69570:   b_c_meta=$php_c_meta
                   69571:   b_cxx_meta=$php_cxx_meta
                   69572:   b_c_post=$php_c_post
                   69573:   b_cxx_post=$php_cxx_post
                   69574:   b_lo=$php_lo
                   69575: 
                   69576: 
                   69577:   old_IFS=$IFS
                   69578:   for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
                   69579: 
                   69580:       IFS=.
                   69581:       set $ac_src
                   69582:       ac_obj=$1
                   69583:       IFS=$old_IFS
                   69584: 
1.1.1.2 ! misho    69585:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    69586: 
                   69587:       case $ac_src in
                   69588:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   69589:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   69590:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   69591:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   69592:       esac
                   69593: 
                   69594:     cat >>Makefile.objects<<EOF
                   69595: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   69596:        $ac_comp
                   69597: EOF
                   69598:   done
                   69599: 
                   69600: 
                   69601:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_dblib"
                   69602:   fi
                   69603: 
                   69604: 
                   69605:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   69606: 
                   69607: 
                   69608: 
                   69609:   if test "$ext_builddir" = "."; then
                   69610:     PHP_PECL_EXTENSION=pdo_dblib
                   69611: 
                   69612:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   69613: 
                   69614:   fi
                   69615: 
                   69616:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_addr in -ldnet_stub" >&5
                   69617: $as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; }
                   69618: if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then :
                   69619:   $as_echo_n "(cached) " >&6
                   69620: else
                   69621:   ac_check_lib_save_LIBS=$LIBS
                   69622: LIBS="-ldnet_stub  $LIBS"
                   69623: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   69624: /* end confdefs.h.  */
                   69625: 
                   69626: /* Override any GCC internal prototype to avoid an error.
                   69627:    Use char because int might match the return type of a GCC
                   69628:    builtin and then its argument prototype would still apply.  */
                   69629: #ifdef __cplusplus
                   69630: extern "C"
                   69631: #endif
                   69632: char dnet_addr ();
                   69633: int
                   69634: main ()
                   69635: {
                   69636: return dnet_addr ();
                   69637:   ;
                   69638:   return 0;
                   69639: }
                   69640: _ACEOF
                   69641: if ac_fn_c_try_link "$LINENO"; then :
                   69642:   ac_cv_lib_dnet_stub_dnet_addr=yes
                   69643: else
                   69644:   ac_cv_lib_dnet_stub_dnet_addr=no
                   69645: fi
                   69646: rm -f core conftest.err conftest.$ac_objext \
                   69647:     conftest$ac_exeext conftest.$ac_ext
                   69648: LIBS=$ac_check_lib_save_LIBS
                   69649: fi
                   69650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5
                   69651: $as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; }
                   69652: if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then :
                   69653: 
                   69654: 
                   69655:   if test "$ext_shared" = "yes"; then
                   69656:     PDO_DBLIB_SHARED_LIBADD="-ldnet_stub $PDO_DBLIB_SHARED_LIBADD"
                   69657:     if test -n ""; then
                   69658: 
                   69659:   if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
                   69660: 
                   69661:   if test -z "" || echo "" | grep '^/' >/dev/null ; then
                   69662:     ai_p=
                   69663:   else
                   69664: 
                   69665:     ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
                   69666: 
                   69667:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   69668:     ai_p="$ep_realdir/`basename \"\"`"
                   69669:   fi
                   69670: 
                   69671: 
                   69672:       if test "$ext_shared" = "yes"; then
                   69673:         PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD"
                   69674:         test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD"
                   69675:       else
                   69676: 
                   69677: 
                   69678: 
                   69679:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   69680: 
                   69681:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   69682:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   69683:     eval "LIBPATH$unique=set"
                   69684: 
                   69685:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   69686:     LDFLAGS="$LDFLAGS -L$ai_p"
                   69687:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   69688: 
                   69689:   fi
                   69690: 
                   69691: 
                   69692:       fi
                   69693: 
                   69694:   fi
                   69695: 
                   69696:     fi
                   69697:   else
                   69698: 
                   69699: 
                   69700:   if test -n ""; then
                   69701: 
                   69702:   if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
                   69703: 
                   69704:   if test -z "" || echo "" | grep '^/' >/dev/null ; then
                   69705:     ai_p=
                   69706:   else
                   69707: 
                   69708:     ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
                   69709: 
                   69710:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   69711:     ai_p="$ep_realdir/`basename \"\"`"
                   69712:   fi
                   69713: 
                   69714: 
                   69715: 
                   69716: 
                   69717: 
                   69718:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   69719: 
                   69720:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   69721:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   69722:     eval "LIBPATH$unique=set"
                   69723: 
                   69724:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   69725:     LDFLAGS="$LDFLAGS -L$ai_p"
                   69726:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   69727: 
                   69728:   fi
                   69729: 
                   69730: 
                   69731: 
                   69732:   fi
                   69733: 
                   69734:   fi
                   69735: 
                   69736: 
                   69737:   case dnet_stub in
                   69738:   c|c_r|pthread*) ;;
                   69739:   *)
                   69740:       LIBS="-ldnet_stub $LIBS"
                   69741:    ;;
                   69742:   esac
                   69743: 
                   69744: 
                   69745: 
                   69746: 
                   69747:   fi
                   69748: 
                   69749: 
                   69750: 
                   69751: $as_echo "#define HAVE_LIBDNET_STUB 1" >>confdefs.h
                   69752: 
                   69753: 
                   69754: fi
                   69755: 
                   69756: 
                   69757: $as_echo "#define HAVE_PDO_DBLIB 1" >>confdefs.h
                   69758: 
                   69759: 
                   69760: $as_echo "#define HAVE_FREETDS 1" >>confdefs.h
                   69761: 
                   69762: 
                   69763:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_DBLIB_SHARED_LIBADD"
                   69764: 
                   69765: 
                   69766: 
                   69767: 
                   69768:   am_i_shared=$PHP_PDO_DBLIB_SHARED
                   69769:   is_it_shared=$PHP_PDO_SHARED
                   69770:   is_it_enabled=$PHP_PDO
                   69771:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   69772:     as_fn_error $? "
                   69773: You've configured extension pdo_dblib to build statically, but it
                   69774: depends on extension pdo, which you've configured to build shared.
                   69775: You either need to build pdo_dblib shared or build pdo statically for the
                   69776: build to be successful.
                   69777: " "$LINENO" 5
                   69778:   fi
                   69779: 
                   69780: 
                   69781: fi
                   69782: 
                   69783: 
                   69784: 
                   69785: php_with_pdo_firebird=no
                   69786: 
                   69787: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Firebird support for PDO" >&5
                   69788: $as_echo_n "checking for Firebird support for PDO... " >&6; }
                   69789: 
                   69790: # Check whether --with-pdo-firebird was given.
                   69791: if test "${with_pdo_firebird+set}" = set; then :
                   69792:   withval=$with_pdo_firebird; PHP_PDO_FIREBIRD=$withval
                   69793: else
                   69794: 
                   69795:   PHP_PDO_FIREBIRD=no
                   69796:   test "$PHP_ENABLE_ALL" && PHP_PDO_FIREBIRD=$PHP_ENABLE_ALL
                   69797: 
                   69798: fi
                   69799: 
                   69800: 
                   69801: 
                   69802: ext_output="yes, shared"
                   69803: ext_shared=yes
                   69804: case $PHP_PDO_FIREBIRD in
                   69805: shared,*)
                   69806:   PHP_PDO_FIREBIRD=`echo "$PHP_PDO_FIREBIRD"|$SED 's/^shared,//'`
                   69807:   ;;
                   69808: shared)
                   69809:   PHP_PDO_FIREBIRD=yes
                   69810:   ;;
                   69811: no)
                   69812:   ext_output=no
                   69813:   ext_shared=no
                   69814:   ;;
                   69815: *)
                   69816:   ext_output=yes
                   69817:   ext_shared=no
                   69818:   ;;
                   69819: esac
                   69820: 
                   69821: 
                   69822: 
                   69823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   69824: $as_echo "$ext_output" >&6; }
                   69825: 
                   69826: 
                   69827: 
                   69828: 
                   69829: if test "$PHP_PDO_FIREBIRD" != "no"; then
                   69830: 
                   69831:   if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
                   69832:     as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
                   69833:   fi
                   69834: 
                   69835:   if test "$PHP_PDO_FIREBIRD" = "yes"; then
                   69836:     FIREBIRD_INCDIR=
                   69837:     FIREBIRD_LIBDIR=
                   69838:     FIREBIRD_LIBDIR_FLAG=
                   69839:   else
                   69840:     FIREBIRD_INCDIR=$PHP_PDO_FIREBIRD/include
                   69841:     FIREBIRD_LIBDIR=$PHP_PDO_FIREBIRD/$PHP_LIBDIR
                   69842:     FIREBIRD_LIBDIR_FLAG=-L$FIREBIRD_LIBDIR
                   69843:   fi
                   69844: 
                   69845: 
                   69846:   save_old_LDFLAGS=$LDFLAGS
                   69847:   ac_stuff="
                   69848:     $FIREBIRD_LIBDIR_FLAG
                   69849:   "
                   69850: 
                   69851:   save_ext_shared=$ext_shared
                   69852:   ext_shared=yes
                   69853: 
                   69854:   for ac_i in $ac_stuff; do
                   69855:     case $ac_i in
                   69856:     -pthread)
                   69857:       if test "$ext_shared" = "yes"; then
                   69858:         LDFLAGS="$LDFLAGS -pthread"
                   69859:       else
                   69860: 
                   69861: 
                   69862:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   69863: 
                   69864:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   69865:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   69866:     eval "EXTRA_LDFLAGS$unique=set"
                   69867:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   69868:   fi
                   69869: 
                   69870:       fi
                   69871:     ;;
                   69872:     -l*)
                   69873:       ac_ii=`echo $ac_i|cut -c 3-`
                   69874: 
                   69875: 
                   69876:   case $ac_ii in
                   69877:   c|c_r|pthread*) ;;
                   69878:   *)
                   69879:     if test "$ext_shared" = "yes"; then
                   69880:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   69881:     else
                   69882: 
                   69883: 
                   69884:   case $ac_ii in
                   69885:   c|c_r|pthread*) ;;
                   69886:   *)
                   69887:       LIBS="$LIBS -l$ac_ii"
                   69888:    ;;
                   69889:   esac
                   69890: 
                   69891: 
                   69892:     fi
                   69893:    ;;
                   69894:   esac
                   69895: 
                   69896: 
                   69897:     ;;
                   69898:     -L*)
                   69899:       ac_ii=`echo $ac_i|cut -c 3-`
                   69900: 
                   69901:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   69902: 
                   69903:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   69904:     ai_p=$ac_ii
                   69905:   else
                   69906: 
                   69907:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   69908: 
                   69909:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   69910:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   69911:   fi
                   69912: 
                   69913: 
                   69914:       if test "$ext_shared" = "yes"; then
                   69915:         LDFLAGS="-L$ai_p $LDFLAGS"
                   69916:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   69917:       else
                   69918: 
                   69919: 
                   69920: 
                   69921:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   69922: 
                   69923:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   69924:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   69925:     eval "LIBPATH$unique=set"
                   69926: 
                   69927:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   69928:     LDFLAGS="$LDFLAGS -L$ai_p"
                   69929:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   69930: 
                   69931:   fi
                   69932: 
                   69933: 
                   69934:       fi
                   69935: 
                   69936:   fi
                   69937: 
                   69938:     ;;
                   69939:     esac
                   69940:   done
                   69941: 
                   69942:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5
                   69943: $as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; }
                   69944: if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then :
                   69945:   $as_echo_n "(cached) " >&6
                   69946: else
                   69947:   ac_check_lib_save_LIBS=$LIBS
                   69948: LIBS="-lfbclient  $LIBS"
                   69949: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   69950: /* end confdefs.h.  */
                   69951: 
                   69952: /* Override any GCC internal prototype to avoid an error.
                   69953:    Use char because int might match the return type of a GCC
                   69954:    builtin and then its argument prototype would still apply.  */
                   69955: #ifdef __cplusplus
                   69956: extern "C"
                   69957: #endif
                   69958: char isc_detach_database ();
                   69959: int
                   69960: main ()
                   69961: {
                   69962: return isc_detach_database ();
                   69963:   ;
                   69964:   return 0;
                   69965: }
                   69966: _ACEOF
                   69967: if ac_fn_c_try_link "$LINENO"; then :
                   69968:   ac_cv_lib_fbclient_isc_detach_database=yes
                   69969: else
                   69970:   ac_cv_lib_fbclient_isc_detach_database=no
                   69971: fi
                   69972: rm -f core conftest.err conftest.$ac_objext \
                   69973:     conftest$ac_exeext conftest.$ac_ext
                   69974: LIBS=$ac_check_lib_save_LIBS
                   69975: fi
                   69976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5
                   69977: $as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; }
                   69978: if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then :
                   69979: 
                   69980:     LDFLAGS=$save_old_LDFLAGS
                   69981:     ext_shared=$save_ext_shared
                   69982: 
                   69983:     FIREBIRD_LIBNAME=fbclient
                   69984: 
                   69985: 
                   69986: else
                   69987: 
                   69988:     LDFLAGS=$save_old_LDFLAGS
                   69989:     ext_shared=$save_ext_shared
                   69990:     unset ac_cv_lib_fbclient_isc_detach_database
                   69991: 
                   69992: 
                   69993:   save_old_LDFLAGS=$LDFLAGS
                   69994:   ac_stuff="
                   69995:       $FIREBIRD_LIBDIR_FLAG
                   69996:     "
                   69997: 
                   69998:   save_ext_shared=$ext_shared
                   69999:   ext_shared=yes
                   70000: 
                   70001:   for ac_i in $ac_stuff; do
                   70002:     case $ac_i in
                   70003:     -pthread)
                   70004:       if test "$ext_shared" = "yes"; then
                   70005:         LDFLAGS="$LDFLAGS -pthread"
                   70006:       else
                   70007: 
                   70008: 
                   70009:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   70010: 
                   70011:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   70012:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   70013:     eval "EXTRA_LDFLAGS$unique=set"
                   70014:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   70015:   fi
                   70016: 
                   70017:       fi
                   70018:     ;;
                   70019:     -l*)
                   70020:       ac_ii=`echo $ac_i|cut -c 3-`
                   70021: 
                   70022: 
                   70023:   case $ac_ii in
                   70024:   c|c_r|pthread*) ;;
                   70025:   *)
                   70026:     if test "$ext_shared" = "yes"; then
                   70027:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   70028:     else
                   70029: 
                   70030: 
                   70031:   case $ac_ii in
                   70032:   c|c_r|pthread*) ;;
                   70033:   *)
                   70034:       LIBS="$LIBS -l$ac_ii"
                   70035:    ;;
                   70036:   esac
                   70037: 
                   70038: 
                   70039:     fi
                   70040:    ;;
                   70041:   esac
                   70042: 
                   70043: 
                   70044:     ;;
                   70045:     -L*)
                   70046:       ac_ii=`echo $ac_i|cut -c 3-`
                   70047: 
                   70048:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   70049: 
                   70050:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   70051:     ai_p=$ac_ii
                   70052:   else
                   70053: 
                   70054:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   70055: 
                   70056:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   70057:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   70058:   fi
                   70059: 
                   70060: 
                   70061:       if test "$ext_shared" = "yes"; then
                   70062:         LDFLAGS="-L$ai_p $LDFLAGS"
                   70063:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   70064:       else
                   70065: 
                   70066: 
                   70067: 
                   70068:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   70069: 
                   70070:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   70071:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   70072:     eval "LIBPATH$unique=set"
                   70073: 
                   70074:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   70075:     LDFLAGS="$LDFLAGS -L$ai_p"
                   70076:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   70077: 
                   70078:   fi
                   70079: 
                   70080: 
                   70081:       fi
                   70082: 
                   70083:   fi
                   70084: 
                   70085:     ;;
                   70086:     esac
                   70087:   done
                   70088: 
                   70089:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5
                   70090: $as_echo_n "checking for isc_detach_database in -lgds... " >&6; }
                   70091: if ${ac_cv_lib_gds_isc_detach_database+:} false; then :
                   70092:   $as_echo_n "(cached) " >&6
                   70093: else
                   70094:   ac_check_lib_save_LIBS=$LIBS
                   70095: LIBS="-lgds  $LIBS"
                   70096: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   70097: /* end confdefs.h.  */
                   70098: 
                   70099: /* Override any GCC internal prototype to avoid an error.
                   70100:    Use char because int might match the return type of a GCC
                   70101:    builtin and then its argument prototype would still apply.  */
                   70102: #ifdef __cplusplus
                   70103: extern "C"
                   70104: #endif
                   70105: char isc_detach_database ();
                   70106: int
                   70107: main ()
                   70108: {
                   70109: return isc_detach_database ();
                   70110:   ;
                   70111:   return 0;
                   70112: }
                   70113: _ACEOF
                   70114: if ac_fn_c_try_link "$LINENO"; then :
                   70115:   ac_cv_lib_gds_isc_detach_database=yes
                   70116: else
                   70117:   ac_cv_lib_gds_isc_detach_database=no
                   70118: fi
                   70119: rm -f core conftest.err conftest.$ac_objext \
                   70120:     conftest$ac_exeext conftest.$ac_ext
                   70121: LIBS=$ac_check_lib_save_LIBS
                   70122: fi
                   70123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5
                   70124: $as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; }
                   70125: if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then :
                   70126: 
                   70127:     LDFLAGS=$save_old_LDFLAGS
                   70128:     ext_shared=$save_ext_shared
                   70129: 
                   70130:       FIREBIRD_LIBNAME=gds
                   70131: 
                   70132: 
                   70133: else
                   70134: 
                   70135:     LDFLAGS=$save_old_LDFLAGS
                   70136:     ext_shared=$save_ext_shared
                   70137:     unset ac_cv_lib_gds_isc_detach_database
                   70138: 
                   70139: 
                   70140:   save_old_LDFLAGS=$LDFLAGS
                   70141:   ac_stuff="
                   70142:         $FIREBIRD_LIBDIR_FLAG
                   70143:       "
                   70144: 
                   70145:   save_ext_shared=$ext_shared
                   70146:   ext_shared=yes
                   70147: 
                   70148:   for ac_i in $ac_stuff; do
                   70149:     case $ac_i in
                   70150:     -pthread)
                   70151:       if test "$ext_shared" = "yes"; then
                   70152:         LDFLAGS="$LDFLAGS -pthread"
                   70153:       else
                   70154: 
                   70155: 
                   70156:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   70157: 
                   70158:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   70159:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   70160:     eval "EXTRA_LDFLAGS$unique=set"
                   70161:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   70162:   fi
                   70163: 
                   70164:       fi
                   70165:     ;;
                   70166:     -l*)
                   70167:       ac_ii=`echo $ac_i|cut -c 3-`
                   70168: 
                   70169: 
                   70170:   case $ac_ii in
                   70171:   c|c_r|pthread*) ;;
                   70172:   *)
                   70173:     if test "$ext_shared" = "yes"; then
                   70174:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   70175:     else
                   70176: 
                   70177: 
                   70178:   case $ac_ii in
                   70179:   c|c_r|pthread*) ;;
                   70180:   *)
                   70181:       LIBS="$LIBS -l$ac_ii"
                   70182:    ;;
                   70183:   esac
                   70184: 
                   70185: 
                   70186:     fi
                   70187:    ;;
                   70188:   esac
                   70189: 
                   70190: 
                   70191:     ;;
                   70192:     -L*)
                   70193:       ac_ii=`echo $ac_i|cut -c 3-`
                   70194: 
                   70195:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   70196: 
                   70197:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   70198:     ai_p=$ac_ii
                   70199:   else
                   70200: 
                   70201:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   70202: 
                   70203:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   70204:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   70205:   fi
                   70206: 
                   70207: 
                   70208:       if test "$ext_shared" = "yes"; then
                   70209:         LDFLAGS="-L$ai_p $LDFLAGS"
                   70210:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   70211:       else
                   70212: 
                   70213: 
                   70214: 
                   70215:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   70216: 
                   70217:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   70218:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   70219:     eval "LIBPATH$unique=set"
                   70220: 
                   70221:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   70222:     LDFLAGS="$LDFLAGS -L$ai_p"
                   70223:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   70224: 
                   70225:   fi
                   70226: 
                   70227: 
                   70228:       fi
                   70229: 
                   70230:   fi
                   70231: 
                   70232:     ;;
                   70233:     esac
                   70234:   done
                   70235: 
                   70236:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5
                   70237: $as_echo_n "checking for isc_detach_database in -lib_util... " >&6; }
                   70238: if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then :
                   70239:   $as_echo_n "(cached) " >&6
                   70240: else
                   70241:   ac_check_lib_save_LIBS=$LIBS
                   70242: LIBS="-lib_util  $LIBS"
                   70243: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   70244: /* end confdefs.h.  */
                   70245: 
                   70246: /* Override any GCC internal prototype to avoid an error.
                   70247:    Use char because int might match the return type of a GCC
                   70248:    builtin and then its argument prototype would still apply.  */
                   70249: #ifdef __cplusplus
                   70250: extern "C"
                   70251: #endif
                   70252: char isc_detach_database ();
                   70253: int
                   70254: main ()
                   70255: {
                   70256: return isc_detach_database ();
                   70257:   ;
                   70258:   return 0;
                   70259: }
                   70260: _ACEOF
                   70261: if ac_fn_c_try_link "$LINENO"; then :
                   70262:   ac_cv_lib_ib_util_isc_detach_database=yes
                   70263: else
                   70264:   ac_cv_lib_ib_util_isc_detach_database=no
                   70265: fi
                   70266: rm -f core conftest.err conftest.$ac_objext \
                   70267:     conftest$ac_exeext conftest.$ac_ext
                   70268: LIBS=$ac_check_lib_save_LIBS
                   70269: fi
                   70270: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5
                   70271: $as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; }
                   70272: if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then :
                   70273: 
                   70274:     LDFLAGS=$save_old_LDFLAGS
                   70275:     ext_shared=$save_ext_shared
                   70276: 
                   70277:         FIREBIRD_LIBNAME=ib_util
                   70278: 
                   70279: 
                   70280: else
                   70281: 
                   70282:     LDFLAGS=$save_old_LDFLAGS
                   70283:     ext_shared=$save_ext_shared
                   70284:     unset ac_cv_lib_ib_util_isc_detach_database
                   70285: 
                   70286:         as_fn_error $? "libfbclient, libgds or libib_util not found! Check config.log for more information." "$LINENO" 5
                   70287: 
                   70288: 
                   70289: fi
                   70290: 
                   70291: 
                   70292: 
                   70293: fi
                   70294: 
                   70295: 
                   70296: 
                   70297: fi
                   70298: 
                   70299: 
                   70300: 
                   70301:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
                   70302: $as_echo_n "checking for PDO includes... " >&6; }
1.1.1.2 ! misho    70303: if ${pdo_cv_inc_path+:} false; then :
1.1       misho    70304:   $as_echo_n "(cached) " >&6
                   70305: else
                   70306: 
                   70307:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
                   70308: $as_echo_n "checking for PDO includes... " >&6; }
                   70309:     if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    70310:       pdo_cv_inc_path=$abs_srcdir/ext
1.1       misho    70311:     elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    70312:       pdo_cv_inc_path=$abs_srcdir/ext
1.1       misho    70313:     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    70314:       pdo_cv_inc_path=$prefix/include/php/ext
1.1       misho    70315:     fi
                   70316: 
                   70317: fi
1.1.1.2 ! misho    70318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
        !          70319: $as_echo "$pdo_cv_inc_path" >&6; }
        !          70320:   if test -n "$pdo_cv_inc_path"; then
1.1       misho    70321: :
                   70322:   else
                   70323: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
                   70324:   fi
                   70325: 
                   70326: 
                   70327: 
                   70328: 
                   70329:   if test "$ext_shared" = "yes"; then
                   70330:     PDO_FIREBIRD_SHARED_LIBADD="-l$FIREBIRD_LIBNAME $PDO_FIREBIRD_SHARED_LIBADD"
                   70331:     if test -n "$FIREBIRD_LIBDIR"; then
                   70332: 
                   70333:   if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then
                   70334: 
                   70335:   if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then
                   70336:     ai_p=$FIREBIRD_LIBDIR
                   70337:   else
                   70338: 
                   70339:     ep_dir="`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   70340: 
                   70341:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   70342:     ai_p="$ep_realdir/`basename \"$FIREBIRD_LIBDIR\"`"
                   70343:   fi
                   70344: 
                   70345: 
                   70346:       if test "$ext_shared" = "yes"; then
                   70347:         PDO_FIREBIRD_SHARED_LIBADD="-L$ai_p $PDO_FIREBIRD_SHARED_LIBADD"
                   70348:         test -n "$ld_runpath_switch" && PDO_FIREBIRD_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_FIREBIRD_SHARED_LIBADD"
                   70349:       else
                   70350: 
                   70351: 
                   70352: 
                   70353:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   70354: 
                   70355:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   70356:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   70357:     eval "LIBPATH$unique=set"
                   70358: 
                   70359:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   70360:     LDFLAGS="$LDFLAGS -L$ai_p"
                   70361:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   70362: 
                   70363:   fi
                   70364: 
                   70365: 
                   70366:       fi
                   70367: 
                   70368:   fi
                   70369: 
                   70370:     fi
                   70371:   else
                   70372: 
                   70373: 
                   70374:   if test -n "$FIREBIRD_LIBDIR"; then
                   70375: 
                   70376:   if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then
                   70377: 
                   70378:   if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then
                   70379:     ai_p=$FIREBIRD_LIBDIR
                   70380:   else
                   70381: 
                   70382:     ep_dir="`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   70383: 
                   70384:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   70385:     ai_p="$ep_realdir/`basename \"$FIREBIRD_LIBDIR\"`"
                   70386:   fi
                   70387: 
                   70388: 
                   70389: 
                   70390: 
                   70391: 
                   70392:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   70393: 
                   70394:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   70395:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   70396:     eval "LIBPATH$unique=set"
                   70397: 
                   70398:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   70399:     LDFLAGS="$LDFLAGS -L$ai_p"
                   70400:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   70401: 
                   70402:   fi
                   70403: 
                   70404: 
                   70405: 
                   70406:   fi
                   70407: 
                   70408:   fi
                   70409: 
                   70410: 
                   70411:   case $FIREBIRD_LIBNAME in
                   70412:   c|c_r|pthread*) ;;
                   70413:   *)
                   70414:       LIBS="-l$FIREBIRD_LIBNAME $LIBS"
                   70415:    ;;
                   70416:   esac
                   70417: 
                   70418: 
                   70419: 
                   70420: 
                   70421:   fi
                   70422: 
                   70423: 
                   70424: 
                   70425:   if test "$FIREBIRD_INCDIR" != "/usr/include"; then
                   70426: 
                   70427:   if test -z "$FIREBIRD_INCDIR" || echo "$FIREBIRD_INCDIR" | grep '^/' >/dev/null ; then
                   70428:     ai_p=$FIREBIRD_INCDIR
                   70429:   else
                   70430: 
                   70431:     ep_dir="`echo $FIREBIRD_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   70432: 
                   70433:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   70434:     ai_p="$ep_realdir/`basename \"$FIREBIRD_INCDIR\"`"
                   70435:   fi
                   70436: 
                   70437: 
                   70438: 
                   70439:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   70440: 
                   70441:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   70442:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   70443:     eval "INCLUDEPATH$unique=set"
                   70444: 
                   70445:       if test ""; then
                   70446:         INCLUDES="-I$ai_p $INCLUDES"
                   70447:       else
                   70448:         INCLUDES="$INCLUDES -I$ai_p"
                   70449:       fi
                   70450: 
                   70451:   fi
                   70452: 
                   70453:   fi
                   70454: 
                   70455: 
                   70456: $as_echo "#define HAVE_PDO_FIREBIRD 1" >>confdefs.h
                   70457: 
                   70458: 
                   70459:   ext_builddir=ext/pdo_firebird
                   70460:   ext_srcdir=$abs_srcdir/ext/pdo_firebird
                   70461: 
1.1.1.2 ! misho    70462:   ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1       misho    70463: 
                   70464:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   70465:     PHP_PDO_FIREBIRD_SHARED=no
                   70466: 
                   70467: 
                   70468:   case ext/pdo_firebird in
                   70469:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   70470:   /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   70471:   *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   70472:   esac
                   70473: 
                   70474: 
                   70475: 
                   70476:   b_c_pre=$php_c_pre
                   70477:   b_cxx_pre=$php_cxx_pre
                   70478:   b_c_meta=$php_c_meta
                   70479:   b_cxx_meta=$php_cxx_meta
                   70480:   b_c_post=$php_c_post
                   70481:   b_cxx_post=$php_cxx_post
                   70482:   b_lo=$php_lo
                   70483: 
                   70484: 
                   70485:   old_IFS=$IFS
                   70486:   for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
                   70487: 
                   70488:       IFS=.
                   70489:       set $ac_src
                   70490:       ac_obj=$1
                   70491:       IFS=$old_IFS
                   70492: 
                   70493:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   70494: 
                   70495:       case $ac_src in
                   70496:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   70497:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   70498:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   70499:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   70500:       esac
                   70501: 
                   70502:     cat >>Makefile.objects<<EOF
                   70503: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   70504:        $ac_comp
                   70505: EOF
                   70506:   done
                   70507: 
                   70508: 
                   70509:     EXT_STATIC="$EXT_STATIC pdo_firebird"
                   70510:     if test "$ext_shared" != "nocli"; then
                   70511:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_firebird"
                   70512:     fi
                   70513:   else
                   70514:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   70515:       PHP_PDO_FIREBIRD_SHARED=yes
                   70516: 
                   70517:   case ext/pdo_firebird in
                   70518:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   70519:   /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   70520:   *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   70521:   esac
                   70522: 
                   70523: 
                   70524: 
                   70525:   b_c_pre=$shared_c_pre
                   70526:   b_cxx_pre=$shared_cxx_pre
                   70527:   b_c_meta=$shared_c_meta
                   70528:   b_cxx_meta=$shared_cxx_meta
                   70529:   b_c_post=$shared_c_post
                   70530:   b_cxx_post=$shared_cxx_post
                   70531:   b_lo=$shared_lo
                   70532: 
                   70533: 
                   70534:   old_IFS=$IFS
                   70535:   for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
                   70536: 
                   70537:       IFS=.
                   70538:       set $ac_src
                   70539:       ac_obj=$1
                   70540:       IFS=$old_IFS
                   70541: 
                   70542:       shared_objects_pdo_firebird="$shared_objects_pdo_firebird $ac_bdir$ac_obj.lo"
                   70543: 
                   70544:       case $ac_src in
                   70545:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   70546:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   70547:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   70548:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   70549:       esac
                   70550: 
                   70551:     cat >>Makefile.objects<<EOF
                   70552: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   70553:        $ac_comp
                   70554: EOF
                   70555:   done
                   70556: 
                   70557:       case $host_alias in
                   70558:         *netware*)
                   70559: 
                   70560:   install_modules="install-modules"
                   70561: 
                   70562:   case $host_alias in
                   70563:     *aix*)
                   70564:       suffix=so
                   70565:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_firebird.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) $(PHPPDO_FIREBIRD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_firebird.so '$ext_builddir'/phppdo_firebird.so'
                   70566:       ;;
                   70567:     *netware*)
                   70568:       suffix=nlm
                   70569:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) -L$(top_builddir)/netware -lphp5lib $(PDO_FIREBIRD_SHARED_LIBADD)'
                   70570:       ;;
                   70571:     *)
                   70572:       suffix=la
                   70573:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) $(PHPPDO_FIREBIRD_SHARED_LIBADD)'
                   70574:       ;;
                   70575:   esac
                   70576: 
                   70577:   if test "x" = "xyes"; then
                   70578:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_firebird.$suffix"
                   70579:   else
                   70580:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_firebird.$suffix"
                   70581:   fi
                   70582: 
                   70583:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_firebird"
                   70584: 
                   70585:   cat >>Makefile.objects<<EOF
                   70586: \$(phplibdir)/phppdo_firebird.$suffix: $ext_builddir/phppdo_firebird.$suffix
                   70587:        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_firebird.$suffix \$(phplibdir)
                   70588: 
                   70589: $ext_builddir/phppdo_firebird.$suffix: \$(shared_objects_pdo_firebird) \$(PHPPDO_FIREBIRD_SHARED_DEPENDENCIES)
                   70590:        $link_cmd
                   70591: 
                   70592: EOF
                   70593: 
                   70594:           ;;
                   70595:         *)
                   70596: 
                   70597:   install_modules="install-modules"
                   70598: 
                   70599:   case $host_alias in
                   70600:     *aix*)
                   70601:       suffix=so
                   70602:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_firebird.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) $(PDO_FIREBIRD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_firebird.so '$ext_builddir'/pdo_firebird.so'
                   70603:       ;;
                   70604:     *netware*)
                   70605:       suffix=nlm
                   70606:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) -L$(top_builddir)/netware -lphp5lib $(_FIREBIRD_SHARED_LIBADD)'
                   70607:       ;;
                   70608:     *)
                   70609:       suffix=la
                   70610:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) $(PDO_FIREBIRD_SHARED_LIBADD)'
                   70611:       ;;
                   70612:   esac
                   70613: 
                   70614:   if test "x" = "xyes"; then
                   70615:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_firebird.$suffix"
                   70616:   else
                   70617:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_firebird.$suffix"
                   70618:   fi
                   70619: 
                   70620:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_firebird"
                   70621: 
                   70622:   cat >>Makefile.objects<<EOF
                   70623: \$(phplibdir)/pdo_firebird.$suffix: $ext_builddir/pdo_firebird.$suffix
                   70624:        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_firebird.$suffix \$(phplibdir)
                   70625: 
                   70626: $ext_builddir/pdo_firebird.$suffix: \$(shared_objects_pdo_firebird) \$(PDO_FIREBIRD_SHARED_DEPENDENCIES)
                   70627:        $link_cmd
                   70628: 
                   70629: EOF
                   70630: 
                   70631:           ;;
                   70632:       esac
                   70633: 
                   70634: cat >>confdefs.h <<_ACEOF
                   70635: #define COMPILE_DL_PDO_FIREBIRD 1
                   70636: _ACEOF
                   70637: 
                   70638:     fi
                   70639:   fi
                   70640: 
                   70641:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   70642:     PHP_PDO_FIREBIRD_SHARED=no
                   70643: 
                   70644: 
                   70645:   case ext/pdo_firebird in
                   70646:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   70647:   /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   70648:   *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   70649:   esac
                   70650: 
                   70651: 
                   70652: 
                   70653:   b_c_pre=$php_c_pre
                   70654:   b_cxx_pre=$php_cxx_pre
                   70655:   b_c_meta=$php_c_meta
                   70656:   b_cxx_meta=$php_cxx_meta
                   70657:   b_c_post=$php_c_post
                   70658:   b_cxx_post=$php_cxx_post
                   70659:   b_lo=$php_lo
                   70660: 
                   70661: 
                   70662:   old_IFS=$IFS
                   70663:   for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
                   70664: 
                   70665:       IFS=.
                   70666:       set $ac_src
                   70667:       ac_obj=$1
                   70668:       IFS=$old_IFS
                   70669: 
1.1.1.2 ! misho    70670:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    70671: 
                   70672:       case $ac_src in
                   70673:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   70674:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   70675:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   70676:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   70677:       esac
                   70678: 
                   70679:     cat >>Makefile.objects<<EOF
                   70680: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   70681:        $ac_comp
                   70682: EOF
                   70683:   done
                   70684: 
                   70685: 
                   70686: 
                   70687: 
                   70688:   case ext/pdo_firebird in
                   70689:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   70690:   /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   70691:   *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   70692:   esac
                   70693: 
                   70694: 
                   70695: 
                   70696:   b_c_pre=$php_c_pre
                   70697:   b_cxx_pre=$php_cxx_pre
                   70698:   b_c_meta=$php_c_meta
                   70699:   b_cxx_meta=$php_cxx_meta
                   70700:   b_c_post=$php_c_post
                   70701:   b_cxx_post=$php_cxx_post
                   70702:   b_lo=$php_lo
                   70703: 
                   70704: 
                   70705:   old_IFS=$IFS
                   70706:   for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
                   70707: 
                   70708:       IFS=.
                   70709:       set $ac_src
                   70710:       ac_obj=$1
                   70711:       IFS=$old_IFS
                   70712: 
1.1.1.2 ! misho    70713:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    70714: 
                   70715:       case $ac_src in
                   70716:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   70717:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   70718:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   70719:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   70720:       esac
                   70721: 
                   70722:     cat >>Makefile.objects<<EOF
                   70723: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   70724:        $ac_comp
                   70725: EOF
                   70726:   done
                   70727: 
                   70728: 
                   70729: 
                   70730: 
                   70731:   case ext/pdo_firebird in
                   70732:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   70733:   /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   70734:   *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   70735:   esac
                   70736: 
                   70737: 
                   70738: 
                   70739:   b_c_pre=$php_c_pre
                   70740:   b_cxx_pre=$php_cxx_pre
                   70741:   b_c_meta=$php_c_meta
                   70742:   b_cxx_meta=$php_cxx_meta
                   70743:   b_c_post=$php_c_post
                   70744:   b_cxx_post=$php_cxx_post
                   70745:   b_lo=$php_lo
                   70746: 
                   70747: 
                   70748:   old_IFS=$IFS
                   70749:   for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
                   70750: 
                   70751:       IFS=.
                   70752:       set $ac_src
                   70753:       ac_obj=$1
                   70754:       IFS=$old_IFS
                   70755: 
1.1.1.2 ! misho    70756:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    70757: 
                   70758:       case $ac_src in
                   70759:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   70760:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   70761:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   70762:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   70763:       esac
                   70764: 
                   70765:     cat >>Makefile.objects<<EOF
                   70766: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   70767:        $ac_comp
                   70768: EOF
                   70769:   done
                   70770: 
                   70771: 
                   70772:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_firebird"
                   70773:   fi
                   70774: 
                   70775: 
                   70776:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   70777: 
                   70778: 
                   70779: 
                   70780:   if test "$ext_builddir" = "."; then
                   70781:     PHP_PECL_EXTENSION=pdo_firebird
                   70782: 
                   70783:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   70784: 
                   70785:   fi
                   70786: 
                   70787: 
                   70788:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_FIREBIRD_SHARED_LIBADD"
                   70789: 
                   70790: 
                   70791:   am_i_shared=$PHP_PDO_FIREBIRD_SHARED
                   70792:   is_it_shared=$PHP_PDO_SHARED
                   70793:   is_it_enabled=$PHP_PDO
                   70794:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   70795:     as_fn_error $? "
                   70796: You've configured extension pdo_firebird to build statically, but it
                   70797: depends on extension pdo, which you've configured to build shared.
                   70798: You either need to build pdo_firebird shared or build pdo statically for the
                   70799: build to be successful.
                   70800: " "$LINENO" 5
                   70801:   fi
                   70802: 
                   70803: fi
                   70804: 
                   70805: 
                   70806: 
                   70807: php_with_pdo_mysql=no
                   70808: 
                   70809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support for PDO" >&5
                   70810: $as_echo_n "checking for MySQL support for PDO... " >&6; }
                   70811: 
                   70812: # Check whether --with-pdo-mysql was given.
                   70813: if test "${with_pdo_mysql+set}" = set; then :
                   70814:   withval=$with_pdo_mysql; PHP_PDO_MYSQL=$withval
                   70815: else
                   70816: 
                   70817:   PHP_PDO_MYSQL=no
                   70818:   test "$PHP_ENABLE_ALL" && PHP_PDO_MYSQL=$PHP_ENABLE_ALL
                   70819: 
                   70820: fi
                   70821: 
                   70822: 
                   70823: 
                   70824: ext_output="yes, shared"
                   70825: ext_shared=yes
                   70826: case $PHP_PDO_MYSQL in
                   70827: shared,*)
                   70828:   PHP_PDO_MYSQL=`echo "$PHP_PDO_MYSQL"|$SED 's/^shared,//'`
                   70829:   ;;
                   70830: shared)
                   70831:   PHP_PDO_MYSQL=yes
                   70832:   ;;
                   70833: no)
                   70834:   ext_output=no
                   70835:   ext_shared=no
                   70836:   ;;
                   70837: *)
                   70838:   ext_output=yes
                   70839:   ext_shared=no
                   70840:   ;;
                   70841: esac
                   70842: 
                   70843: 
                   70844: 
                   70845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   70846: $as_echo "$ext_output" >&6; }
                   70847: 
                   70848: 
                   70849: 
                   70850: 
                   70851: if test -z "$PHP_ZLIB_DIR"; then
                   70852: 
                   70853: php_with_zlib_dir=no
                   70854: 
                   70855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
                   70856: $as_echo_n "checking for the location of libz... " >&6; }
                   70857: 
                   70858: # Check whether --with-zlib-dir was given.
                   70859: if test "${with_zlib_dir+set}" = set; then :
                   70860:   withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
                   70861: else
                   70862: 
                   70863:   PHP_ZLIB_DIR=no
                   70864: 
                   70865: 
                   70866: fi
                   70867: 
                   70868: 
                   70869: ext_output=$PHP_ZLIB_DIR
                   70870: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   70871: $as_echo "$ext_output" >&6; }
                   70872: 
                   70873: 
                   70874: 
                   70875: fi
                   70876: 
                   70877: if test "$PHP_PDO_MYSQL" != "no"; then
                   70878: 
                   70879:   if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
                   70880:     as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
                   70881:   fi
                   70882: 
                   70883: 
                   70884: 
1.1.1.2 ! misho    70885:   if test "$PHP_PDO_MYSQL" != "yes" && test "$PHP_PDO_MYSQL" != "mysqlnd"; then
        !          70886:     if test -f $PHP_PDO_MYSQL && test -x $PHP_PDO_MYSQL ; then
        !          70887:       PDO_MYSQL_CONFIG=$PHP_PDO_MYSQL
        !          70888:     else
        !          70889:       if test -d "$PHP_PDO_MYSQL" ; then
        !          70890:         if test -x "$PHP_PDO_MYSQL/bin/mysql_config" ; then
        !          70891:           PDO_MYSQL_CONFIG="$PHP_PDO_MYSQL/bin/mysql_config"
        !          70892:         else
        !          70893:           PDO_MYSQL_DIR="$PHP_PDO_MYSQL"
        !          70894:         fi
1.1       misho    70895:       fi
                   70896:     fi
                   70897:   fi
                   70898: 
1.1.1.2 ! misho    70899:   if test "$PHP_PDO_MYSQL" = "yes" || test "$PHP_PDO_MYSQL" = "mysqlnd"; then
1.1       misho    70900:         PHP_MYSQLND_ENABLED=yes
                   70901: 
                   70902: $as_echo "#define PDO_USE_MYSQLND 1" >>confdefs.h
                   70903: 
                   70904:   else
                   70905: 
                   70906: $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
                   70907: 
                   70908: 
                   70909:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_config" >&5
                   70910: $as_echo_n "checking for mysql_config... " >&6; }
                   70911:     if test -n "$PDO_MYSQL_CONFIG"; then
                   70912:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_MYSQL_CONFIG" >&5
                   70913: $as_echo "$PDO_MYSQL_CONFIG" >&6; }
                   70914:       if test "x$SED" = "x"; then
                   70915:         # Extract the first word of "sed", so it can be a program name with args.
                   70916: set dummy sed; ac_word=$2
                   70917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   70918: $as_echo_n "checking for $ac_word... " >&6; }
                   70919: if ${ac_cv_path_SED+:} false; then :
                   70920:   $as_echo_n "(cached) " >&6
                   70921: else
                   70922:   case $SED in
                   70923:   [\\/]* | ?:[\\/]*)
                   70924:   ac_cv_path_SED="$SED" # Let the user override the test with a path.
                   70925:   ;;
                   70926:   *)
                   70927:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   70928: for as_dir in $PATH
                   70929: do
                   70930:   IFS=$as_save_IFS
                   70931:   test -z "$as_dir" && as_dir=.
                   70932:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    70933:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    70934:     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
                   70935:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   70936:     break 2
                   70937:   fi
                   70938: done
                   70939:   done
                   70940: IFS=$as_save_IFS
                   70941: 
                   70942:   ;;
                   70943: esac
                   70944: fi
                   70945: SED=$ac_cv_path_SED
                   70946: if test -n "$SED"; then
                   70947:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   70948: $as_echo "$SED" >&6; }
                   70949: else
                   70950:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   70951: $as_echo "no" >&6; }
                   70952: fi
                   70953: 
                   70954: 
                   70955:       fi
                   70956:       if test "$enable_maintainer_zts" = "yes"; then
                   70957:         PDO_MYSQL_LIBNAME=mysqlclient_r
                   70958:         PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs_r | $SED -e "s/'//g"`
                   70959:       else
                   70960:         PDO_MYSQL_LIBNAME=mysqlclient
                   70961:         PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs | $SED -e "s/'//g"`
                   70962:       fi
                   70963:       PDO_MYSQL_INCLUDE=`$PDO_MYSQL_CONFIG --cflags | $SED -e "s/'//g"`
                   70964:     elif test -n "$PDO_MYSQL_DIR"; then
                   70965:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   70966: $as_echo "not found" >&6; }
                   70967:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql install under $PDO_MYSQL_DIR" >&5
                   70968: $as_echo_n "checking for mysql install under $PDO_MYSQL_DIR... " >&6; }
                   70969:       if test -r $PDO_MYSQL_DIR/include/mysql; then
                   70970:         PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include/mysql
                   70971:       else
                   70972:         PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include
                   70973:       fi
                   70974:       if test -r $PDO_MYSQL_DIR/$PHP_LIBDIR/mysql; then
                   70975:         PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR/mysql
                   70976:       else
                   70977:         PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR
                   70978:       fi
                   70979: 
                   70980:       if test -r "$PDO_MYSQL_LIB_DIR"; then
                   70981:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs under $PDO_MYSQL_LIB_DIR; seems promising" >&5
                   70982: $as_echo "libs under $PDO_MYSQL_LIB_DIR; seems promising" >&6; }
                   70983:       else
                   70984:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not find it" >&5
                   70985: $as_echo "can not find it" >&6; }
                   70986:         as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5
                   70987:       fi
                   70988: 
                   70989: 
                   70990:   if test "$PDO_MYSQL_INC_DIR" != "/usr/include"; then
                   70991: 
                   70992:   if test -z "$PDO_MYSQL_INC_DIR" || echo "$PDO_MYSQL_INC_DIR" | grep '^/' >/dev/null ; then
                   70993:     ai_p=$PDO_MYSQL_INC_DIR
                   70994:   else
                   70995: 
                   70996:     ep_dir="`echo $PDO_MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   70997: 
                   70998:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   70999:     ai_p="$ep_realdir/`basename \"$PDO_MYSQL_INC_DIR\"`"
                   71000:   fi
                   71001: 
                   71002: 
                   71003: 
                   71004:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   71005: 
                   71006:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   71007:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   71008:     eval "INCLUDEPATH$unique=set"
                   71009: 
                   71010:       if test ""; then
                   71011:         INCLUDES="-I$ai_p $INCLUDES"
                   71012:       else
                   71013:         INCLUDES="$INCLUDES -I$ai_p"
                   71014:       fi
                   71015: 
                   71016:   fi
                   71017: 
                   71018:   fi
                   71019: 
                   71020:       PDO_MYSQL_INCLUDE=-I$PDO_MYSQL_INC_DIR
                   71021:     else
                   71022:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   71023: $as_echo "not found" >&6; }
                   71024:       as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5
                   71025:     fi
                   71026: 
                   71027: 
                   71028:   save_old_LDFLAGS=$LDFLAGS
                   71029:   ac_stuff="
                   71030:       $PDO_MYSQL_LIBS
                   71031:     "
                   71032: 
                   71033:   save_ext_shared=$ext_shared
                   71034:   ext_shared=yes
                   71035: 
                   71036:   for ac_i in $ac_stuff; do
                   71037:     case $ac_i in
                   71038:     -pthread)
                   71039:       if test "$ext_shared" = "yes"; then
                   71040:         LDFLAGS="$LDFLAGS -pthread"
                   71041:       else
                   71042: 
                   71043: 
                   71044:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   71045: 
                   71046:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   71047:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   71048:     eval "EXTRA_LDFLAGS$unique=set"
                   71049:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   71050:   fi
                   71051: 
                   71052:       fi
                   71053:     ;;
                   71054:     -l*)
                   71055:       ac_ii=`echo $ac_i|cut -c 3-`
                   71056: 
                   71057: 
                   71058:   case $ac_ii in
                   71059:   c|c_r|pthread*) ;;
                   71060:   *)
                   71061:     if test "$ext_shared" = "yes"; then
                   71062:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   71063:     else
                   71064: 
                   71065: 
                   71066:   case $ac_ii in
                   71067:   c|c_r|pthread*) ;;
                   71068:   *)
                   71069:       LIBS="$LIBS -l$ac_ii"
                   71070:    ;;
                   71071:   esac
                   71072: 
                   71073: 
                   71074:     fi
                   71075:    ;;
                   71076:   esac
                   71077: 
                   71078: 
                   71079:     ;;
                   71080:     -L*)
                   71081:       ac_ii=`echo $ac_i|cut -c 3-`
                   71082: 
                   71083:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   71084: 
                   71085:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   71086:     ai_p=$ac_ii
                   71087:   else
                   71088: 
                   71089:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   71090: 
                   71091:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   71092:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   71093:   fi
                   71094: 
                   71095: 
                   71096:       if test "$ext_shared" = "yes"; then
                   71097:         LDFLAGS="-L$ai_p $LDFLAGS"
                   71098:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   71099:       else
                   71100: 
                   71101: 
                   71102: 
                   71103:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   71104: 
                   71105:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   71106:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   71107:     eval "LIBPATH$unique=set"
                   71108: 
                   71109:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   71110:     LDFLAGS="$LDFLAGS -L$ai_p"
                   71111:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   71112: 
                   71113:   fi
                   71114: 
                   71115: 
                   71116:       fi
                   71117: 
                   71118:   fi
                   71119: 
                   71120:     ;;
                   71121:     esac
                   71122:   done
                   71123: 
1.1.1.2 ! misho    71124:   as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh`
        !          71125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5
        !          71126: $as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; }
1.1       misho    71127: if eval \${$as_ac_Lib+:} false; then :
                   71128:   $as_echo_n "(cached) " >&6
                   71129: else
                   71130:   ac_check_lib_save_LIBS=$LIBS
                   71131: LIBS="-l$PDO_MYSQL_LIBNAME  $LIBS"
                   71132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   71133: /* end confdefs.h.  */
                   71134: 
                   71135: /* Override any GCC internal prototype to avoid an error.
                   71136:    Use char because int might match the return type of a GCC
                   71137:    builtin and then its argument prototype would still apply.  */
                   71138: #ifdef __cplusplus
                   71139: extern "C"
                   71140: #endif
1.1.1.2 ! misho    71141: char mysql_commit ();
1.1       misho    71142: int
                   71143: main ()
                   71144: {
1.1.1.2 ! misho    71145: return mysql_commit ();
1.1       misho    71146:   ;
                   71147:   return 0;
                   71148: }
                   71149: _ACEOF
                   71150: if ac_fn_c_try_link "$LINENO"; then :
                   71151:   eval "$as_ac_Lib=yes"
                   71152: else
                   71153:   eval "$as_ac_Lib=no"
                   71154: fi
                   71155: rm -f core conftest.err conftest.$ac_objext \
                   71156:     conftest$ac_exeext conftest.$ac_ext
                   71157: LIBS=$ac_check_lib_save_LIBS
                   71158: fi
                   71159: eval ac_res=\$$as_ac_Lib
                   71160:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   71161: $as_echo "$ac_res" >&6; }
                   71162: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   71163: 
                   71164:     LDFLAGS=$save_old_LDFLAGS
                   71165:     ext_shared=$save_ext_shared
                   71166: 
                   71167: 
                   71168:   for ac_i in $PDO_MYSQL_INCLUDE; do
                   71169:     case $ac_i in
                   71170:     -I*)
                   71171:       ac_ii=`echo $ac_i|cut -c 3-`
                   71172: 
                   71173:   if test "$ac_ii" != "/usr/include"; then
                   71174: 
                   71175:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   71176:     ai_p=$ac_ii
                   71177:   else
                   71178: 
                   71179:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   71180: 
                   71181:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   71182:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   71183:   fi
                   71184: 
                   71185: 
                   71186: 
                   71187:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   71188: 
                   71189:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   71190:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   71191:     eval "INCLUDEPATH$unique=set"
                   71192: 
                   71193:       if test ""; then
                   71194:         INCLUDES="-I$ai_p $INCLUDES"
                   71195:       else
                   71196:         INCLUDES="$INCLUDES -I$ai_p"
                   71197:       fi
                   71198: 
                   71199:   fi
                   71200: 
                   71201:   fi
                   71202: 
                   71203:     ;;
                   71204:     esac
                   71205:   done
                   71206: 
                   71207: 
                   71208:   for ac_i in $PDO_MYSQL_LIBS; do
                   71209:     case $ac_i in
                   71210:     -pthread)
                   71211:       if test "$ext_shared" = "yes"; then
                   71212:         PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread"
                   71213:       else
                   71214: 
                   71215: 
                   71216:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   71217: 
                   71218:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   71219:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   71220:     eval "EXTRA_LDFLAGS$unique=set"
                   71221:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   71222:   fi
                   71223: 
                   71224:       fi
                   71225:     ;;
                   71226:     -l*)
                   71227:       ac_ii=`echo $ac_i|cut -c 3-`
                   71228: 
                   71229: 
                   71230:   case $ac_ii in
                   71231:   c|c_r|pthread*) ;;
                   71232:   *)
                   71233:     if test "$ext_shared" = "yes"; then
                   71234:         PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii"
                   71235:     else
                   71236: 
                   71237: 
                   71238:   case $ac_ii in
                   71239:   c|c_r|pthread*) ;;
                   71240:   *)
                   71241:       LIBS="$LIBS -l$ac_ii"
                   71242:    ;;
                   71243:   esac
                   71244: 
                   71245: 
                   71246:     fi
                   71247:    ;;
                   71248:   esac
                   71249: 
                   71250: 
                   71251:     ;;
                   71252:     -L*)
                   71253:       ac_ii=`echo $ac_i|cut -c 3-`
                   71254: 
                   71255:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   71256: 
                   71257:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   71258:     ai_p=$ac_ii
                   71259:   else
                   71260: 
                   71261:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   71262: 
                   71263:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   71264:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   71265:   fi
                   71266: 
                   71267: 
                   71268:       if test "$ext_shared" = "yes"; then
                   71269:         PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
                   71270:         test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
                   71271:       else
                   71272: 
                   71273: 
                   71274: 
                   71275:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   71276: 
                   71277:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   71278:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   71279:     eval "LIBPATH$unique=set"
                   71280: 
                   71281:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   71282:     LDFLAGS="$LDFLAGS -L$ai_p"
                   71283:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   71284: 
                   71285:   fi
                   71286: 
                   71287: 
                   71288:       fi
                   71289: 
                   71290:   fi
                   71291: 
                   71292:     ;;
                   71293:     esac
                   71294:   done
                   71295: 
                   71296: 
                   71297: 
                   71298: else
                   71299: 
                   71300:     LDFLAGS=$save_old_LDFLAGS
                   71301:     ext_shared=$save_ext_shared
1.1.1.2 ! misho    71302:     unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit
1.1       misho    71303: 
                   71304:       if test "$PHP_ZLIB_DIR" != "no"; then
                   71305: 
                   71306: 
                   71307:   if test "$ext_shared" = "yes"; then
                   71308:     PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD"
                   71309:     if test -n "$PHP_ZLIB_DIR"; then
                   71310: 
                   71311:   if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
                   71312: 
                   71313:   if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
                   71314:     ai_p=$PHP_ZLIB_DIR
                   71315:   else
                   71316: 
                   71317:     ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   71318: 
                   71319:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   71320:     ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
                   71321:   fi
                   71322: 
                   71323: 
                   71324:       if test "$ext_shared" = "yes"; then
                   71325:         PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
                   71326:         test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
                   71327:       else
                   71328: 
                   71329: 
                   71330: 
                   71331:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   71332: 
                   71333:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   71334:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   71335:     eval "LIBPATH$unique=set"
                   71336: 
                   71337:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   71338:     LDFLAGS="$LDFLAGS -L$ai_p"
                   71339:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   71340: 
                   71341:   fi
                   71342: 
                   71343: 
                   71344:       fi
                   71345: 
                   71346:   fi
                   71347: 
                   71348:     fi
                   71349:   else
                   71350: 
                   71351: 
                   71352:   if test -n "$PHP_ZLIB_DIR"; then
                   71353: 
                   71354:   if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
                   71355: 
                   71356:   if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
                   71357:     ai_p=$PHP_ZLIB_DIR
                   71358:   else
                   71359: 
                   71360:     ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   71361: 
                   71362:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   71363:     ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
                   71364:   fi
                   71365: 
                   71366: 
                   71367: 
                   71368: 
                   71369: 
                   71370:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   71371: 
                   71372:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   71373:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   71374:     eval "LIBPATH$unique=set"
                   71375: 
                   71376:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   71377:     LDFLAGS="$LDFLAGS -L$ai_p"
                   71378:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   71379: 
                   71380:   fi
                   71381: 
                   71382: 
                   71383: 
                   71384:   fi
                   71385: 
                   71386:   fi
                   71387: 
                   71388: 
                   71389:   case z in
                   71390:   c|c_r|pthread*) ;;
                   71391:   *)
                   71392:       LIBS="-lz $LIBS"
                   71393:    ;;
                   71394:   esac
                   71395: 
                   71396: 
                   71397: 
                   71398: 
                   71399:   fi
                   71400: 
                   71401: 
                   71402: 
                   71403:   save_old_LDFLAGS=$LDFLAGS
                   71404:   ac_stuff="
                   71405:           -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$PDO_MYSQL_LIB_DIR
                   71406:         "
                   71407: 
                   71408:   save_ext_shared=$ext_shared
                   71409:   ext_shared=yes
                   71410: 
                   71411:   for ac_i in $ac_stuff; do
                   71412:     case $ac_i in
                   71413:     -pthread)
                   71414:       if test "$ext_shared" = "yes"; then
                   71415:         LDFLAGS="$LDFLAGS -pthread"
                   71416:       else
                   71417: 
                   71418: 
                   71419:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   71420: 
                   71421:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   71422:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   71423:     eval "EXTRA_LDFLAGS$unique=set"
                   71424:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   71425:   fi
                   71426: 
                   71427:       fi
                   71428:     ;;
                   71429:     -l*)
                   71430:       ac_ii=`echo $ac_i|cut -c 3-`
                   71431: 
                   71432: 
                   71433:   case $ac_ii in
                   71434:   c|c_r|pthread*) ;;
                   71435:   *)
                   71436:     if test "$ext_shared" = "yes"; then
                   71437:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   71438:     else
                   71439: 
                   71440: 
                   71441:   case $ac_ii in
                   71442:   c|c_r|pthread*) ;;
                   71443:   *)
                   71444:       LIBS="$LIBS -l$ac_ii"
                   71445:    ;;
                   71446:   esac
                   71447: 
                   71448: 
                   71449:     fi
                   71450:    ;;
                   71451:   esac
                   71452: 
                   71453: 
                   71454:     ;;
                   71455:     -L*)
                   71456:       ac_ii=`echo $ac_i|cut -c 3-`
                   71457: 
                   71458:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   71459: 
                   71460:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   71461:     ai_p=$ac_ii
                   71462:   else
                   71463: 
                   71464:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   71465: 
                   71466:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   71467:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   71468:   fi
                   71469: 
                   71470: 
                   71471:       if test "$ext_shared" = "yes"; then
                   71472:         LDFLAGS="-L$ai_p $LDFLAGS"
                   71473:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   71474:       else
                   71475: 
                   71476: 
                   71477: 
                   71478:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   71479: 
                   71480:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   71481:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   71482:     eval "LIBPATH$unique=set"
                   71483: 
                   71484:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   71485:     LDFLAGS="$LDFLAGS -L$ai_p"
                   71486:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   71487: 
                   71488:   fi
                   71489: 
                   71490: 
                   71491:       fi
                   71492: 
                   71493:   fi
                   71494: 
                   71495:     ;;
                   71496:     esac
                   71497:   done
                   71498: 
1.1.1.2 ! misho    71499:   as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh`
        !          71500: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5
        !          71501: $as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; }
1.1       misho    71502: if eval \${$as_ac_Lib+:} false; then :
                   71503:   $as_echo_n "(cached) " >&6
                   71504: else
                   71505:   ac_check_lib_save_LIBS=$LIBS
                   71506: LIBS="-l$PDO_MYSQL_LIBNAME  $LIBS"
                   71507: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   71508: /* end confdefs.h.  */
                   71509: 
                   71510: /* Override any GCC internal prototype to avoid an error.
                   71511:    Use char because int might match the return type of a GCC
                   71512:    builtin and then its argument prototype would still apply.  */
                   71513: #ifdef __cplusplus
                   71514: extern "C"
                   71515: #endif
1.1.1.2 ! misho    71516: char mysql_commit ();
1.1       misho    71517: int
                   71518: main ()
                   71519: {
1.1.1.2 ! misho    71520: return mysql_commit ();
1.1       misho    71521:   ;
                   71522:   return 0;
                   71523: }
                   71524: _ACEOF
                   71525: if ac_fn_c_try_link "$LINENO"; then :
                   71526:   eval "$as_ac_Lib=yes"
                   71527: else
                   71528:   eval "$as_ac_Lib=no"
                   71529: fi
                   71530: rm -f core conftest.err conftest.$ac_objext \
                   71531:     conftest$ac_exeext conftest.$ac_ext
                   71532: LIBS=$ac_check_lib_save_LIBS
                   71533: fi
                   71534: eval ac_res=\$$as_ac_Lib
                   71535:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   71536: $as_echo "$ac_res" >&6; }
                   71537: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   71538: 
                   71539:     LDFLAGS=$save_old_LDFLAGS
                   71540:     ext_shared=$save_ext_shared
                   71541: 
                   71542: 
                   71543: else
                   71544: 
                   71545:     LDFLAGS=$save_old_LDFLAGS
                   71546:     ext_shared=$save_ext_shared
1.1.1.2 ! misho    71547:     unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit
1.1       misho    71548: 
1.1.1.2 ! misho    71549:           as_fn_error $? "PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information." "$LINENO" 5
1.1       misho    71550: 
                   71551: 
                   71552: fi
                   71553: 
                   71554:         PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz"
                   71555:       else
                   71556: 
                   71557: 
                   71558:   case z in
                   71559:   c|c_r|pthread*) ;;
                   71560:   *)
                   71561:     if test "$ext_shared" = "yes"; then
                   71562:         PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD"
                   71563:     else
                   71564: 
                   71565: 
                   71566:   case z in
                   71567:   c|c_r|pthread*) ;;
                   71568:   *)
                   71569:       LIBS="-lz $LIBS"
                   71570:    ;;
                   71571:   esac
                   71572: 
                   71573: 
                   71574:     fi
                   71575:    ;;
                   71576:   esac
                   71577: 
                   71578: 
                   71579: 
                   71580:   save_old_LDFLAGS=$LDFLAGS
                   71581:   ac_stuff="
                   71582:           -L$PDO_MYSQL_LIB_DIR
                   71583:         "
                   71584: 
                   71585:   save_ext_shared=$ext_shared
                   71586:   ext_shared=yes
                   71587: 
                   71588:   for ac_i in $ac_stuff; do
                   71589:     case $ac_i in
                   71590:     -pthread)
                   71591:       if test "$ext_shared" = "yes"; then
                   71592:         LDFLAGS="$LDFLAGS -pthread"
                   71593:       else
                   71594: 
                   71595: 
                   71596:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   71597: 
                   71598:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   71599:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   71600:     eval "EXTRA_LDFLAGS$unique=set"
                   71601:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   71602:   fi
                   71603: 
                   71604:       fi
                   71605:     ;;
                   71606:     -l*)
                   71607:       ac_ii=`echo $ac_i|cut -c 3-`
                   71608: 
                   71609: 
                   71610:   case $ac_ii in
                   71611:   c|c_r|pthread*) ;;
                   71612:   *)
                   71613:     if test "$ext_shared" = "yes"; then
                   71614:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   71615:     else
                   71616: 
                   71617: 
                   71618:   case $ac_ii in
                   71619:   c|c_r|pthread*) ;;
                   71620:   *)
                   71621:       LIBS="$LIBS -l$ac_ii"
                   71622:    ;;
                   71623:   esac
                   71624: 
                   71625: 
                   71626:     fi
                   71627:    ;;
                   71628:   esac
                   71629: 
                   71630: 
                   71631:     ;;
                   71632:     -L*)
                   71633:       ac_ii=`echo $ac_i|cut -c 3-`
                   71634: 
                   71635:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   71636: 
                   71637:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   71638:     ai_p=$ac_ii
                   71639:   else
                   71640: 
                   71641:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   71642: 
                   71643:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   71644:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   71645:   fi
                   71646: 
                   71647: 
                   71648:       if test "$ext_shared" = "yes"; then
                   71649:         LDFLAGS="-L$ai_p $LDFLAGS"
                   71650:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   71651:       else
                   71652: 
                   71653: 
                   71654: 
                   71655:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   71656: 
                   71657:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   71658:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   71659:     eval "LIBPATH$unique=set"
                   71660: 
                   71661:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   71662:     LDFLAGS="$LDFLAGS -L$ai_p"
                   71663:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   71664: 
                   71665:   fi
                   71666: 
                   71667: 
                   71668:       fi
                   71669: 
                   71670:   fi
                   71671: 
                   71672:     ;;
                   71673:     esac
                   71674:   done
                   71675: 
                   71676:   as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_query" | $as_tr_sh`
                   71677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -l$PDO_MYSQL_LIBNAME" >&5
                   71678: $as_echo_n "checking for mysql_query in -l$PDO_MYSQL_LIBNAME... " >&6; }
                   71679: if eval \${$as_ac_Lib+:} false; then :
                   71680:   $as_echo_n "(cached) " >&6
                   71681: else
                   71682:   ac_check_lib_save_LIBS=$LIBS
                   71683: LIBS="-l$PDO_MYSQL_LIBNAME  $LIBS"
                   71684: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   71685: /* end confdefs.h.  */
                   71686: 
                   71687: /* Override any GCC internal prototype to avoid an error.
                   71688:    Use char because int might match the return type of a GCC
                   71689:    builtin and then its argument prototype would still apply.  */
                   71690: #ifdef __cplusplus
                   71691: extern "C"
                   71692: #endif
                   71693: char mysql_query ();
                   71694: int
                   71695: main ()
                   71696: {
                   71697: return mysql_query ();
                   71698:   ;
                   71699:   return 0;
                   71700: }
                   71701: _ACEOF
                   71702: if ac_fn_c_try_link "$LINENO"; then :
                   71703:   eval "$as_ac_Lib=yes"
                   71704: else
                   71705:   eval "$as_ac_Lib=no"
                   71706: fi
                   71707: rm -f core conftest.err conftest.$ac_objext \
                   71708:     conftest$ac_exeext conftest.$ac_ext
                   71709: LIBS=$ac_check_lib_save_LIBS
                   71710: fi
                   71711: eval ac_res=\$$as_ac_Lib
                   71712:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   71713: $as_echo "$ac_res" >&6; }
                   71714: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   71715: 
                   71716:     LDFLAGS=$save_old_LDFLAGS
                   71717:     ext_shared=$save_ext_shared
                   71718: 
                   71719: 
                   71720: else
                   71721: 
                   71722:     LDFLAGS=$save_old_LDFLAGS
                   71723:     ext_shared=$save_ext_shared
                   71724:     unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_query
                   71725: 
                   71726:           as_fn_error $? "Try adding --with-zlib-dir=<DIR>. Please check config.log for more information." "$LINENO" 5
                   71727: 
                   71728: 
                   71729: fi
                   71730: 
                   71731:         PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -lz"
                   71732:       fi
                   71733: 
                   71734: 
                   71735:   for ac_i in $PDO_MYSQL_INCLUDE; do
                   71736:     case $ac_i in
                   71737:     -I*)
                   71738:       ac_ii=`echo $ac_i|cut -c 3-`
                   71739: 
                   71740:   if test "$ac_ii" != "/usr/include"; then
                   71741: 
                   71742:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   71743:     ai_p=$ac_ii
                   71744:   else
                   71745: 
                   71746:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   71747: 
                   71748:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   71749:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   71750:   fi
                   71751: 
                   71752: 
                   71753: 
                   71754:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   71755: 
                   71756:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   71757:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   71758:     eval "INCLUDEPATH$unique=set"
                   71759: 
                   71760:       if test ""; then
                   71761:         INCLUDES="-I$ai_p $INCLUDES"
                   71762:       else
                   71763:         INCLUDES="$INCLUDES -I$ai_p"
                   71764:       fi
                   71765: 
                   71766:   fi
                   71767: 
                   71768:   fi
                   71769: 
                   71770:     ;;
                   71771:     esac
                   71772:   done
                   71773: 
                   71774: 
                   71775:   for ac_i in $PDO_MYSQL_LIBS; do
                   71776:     case $ac_i in
                   71777:     -pthread)
                   71778:       if test "$ext_shared" = "yes"; then
                   71779:         PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread"
                   71780:       else
                   71781: 
                   71782: 
                   71783:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   71784: 
                   71785:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   71786:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   71787:     eval "EXTRA_LDFLAGS$unique=set"
                   71788:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   71789:   fi
                   71790: 
                   71791:       fi
                   71792:     ;;
                   71793:     -l*)
                   71794:       ac_ii=`echo $ac_i|cut -c 3-`
                   71795: 
                   71796: 
                   71797:   case $ac_ii in
                   71798:   c|c_r|pthread*) ;;
                   71799:   *)
                   71800:     if test "$ext_shared" = "yes"; then
                   71801:         PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii"
                   71802:     else
                   71803: 
                   71804: 
                   71805:   case $ac_ii in
                   71806:   c|c_r|pthread*) ;;
                   71807:   *)
                   71808:       LIBS="$LIBS -l$ac_ii"
                   71809:    ;;
                   71810:   esac
                   71811: 
                   71812: 
                   71813:     fi
                   71814:    ;;
                   71815:   esac
                   71816: 
                   71817: 
                   71818:     ;;
                   71819:     -L*)
                   71820:       ac_ii=`echo $ac_i|cut -c 3-`
                   71821: 
                   71822:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   71823: 
                   71824:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   71825:     ai_p=$ac_ii
                   71826:   else
                   71827: 
                   71828:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   71829: 
                   71830:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   71831:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   71832:   fi
                   71833: 
                   71834: 
                   71835:       if test "$ext_shared" = "yes"; then
                   71836:         PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
                   71837:         test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
                   71838:       else
                   71839: 
                   71840: 
                   71841: 
                   71842:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   71843: 
                   71844:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   71845:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   71846:     eval "LIBPATH$unique=set"
                   71847: 
                   71848:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   71849:     LDFLAGS="$LDFLAGS -L$ai_p"
                   71850:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   71851: 
                   71852:   fi
                   71853: 
                   71854: 
                   71855:       fi
                   71856: 
                   71857:   fi
                   71858: 
                   71859:     ;;
                   71860:     esac
                   71861:   done
                   71862: 
                   71863: 
                   71864: 
                   71865: fi
                   71866: 
                   71867:   fi
                   71868: 
                   71869: 
                   71870: 
                   71871:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
                   71872: $as_echo_n "checking for PDO includes... " >&6; }
1.1.1.2 ! misho    71873: if ${pdo_cv_inc_path+:} false; then :
1.1       misho    71874:   $as_echo_n "(cached) " >&6
                   71875: else
                   71876: 
                   71877:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
                   71878: $as_echo_n "checking for PDO includes... " >&6; }
                   71879:     if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    71880:       pdo_cv_inc_path=$abs_srcdir/ext
1.1       misho    71881:     elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    71882:       pdo_cv_inc_path=$abs_srcdir/ext
1.1       misho    71883:     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    71884:       pdo_cv_inc_path=$prefix/include/php/ext
1.1       misho    71885:     fi
                   71886: 
                   71887: fi
1.1.1.2 ! misho    71888: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
        !          71889: $as_echo "$pdo_cv_inc_path" >&6; }
        !          71890:   if test -n "$pdo_cv_inc_path"; then
1.1       misho    71891: :
                   71892:   else
                   71893: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
                   71894:   fi
                   71895: 
                   71896: 
                   71897: 
                   71898:   if test -n "$PDO_MYSQL_CONFIG"; then
                   71899:     PDO_MYSQL_SOCKET=`$PDO_MYSQL_CONFIG --socket`
                   71900: 
                   71901: cat >>confdefs.h <<_ACEOF
                   71902: #define PDO_MYSQL_UNIX_ADDR "$PDO_MYSQL_SOCKET"
                   71903: _ACEOF
                   71904: 
                   71905:   fi
                   71906: 
                   71907: 
                   71908:   ext_builddir=ext/pdo_mysql
                   71909:   ext_srcdir=$abs_srcdir/ext/pdo_mysql
                   71910: 
1.1.1.2 ! misho    71911:   ac_extra=`echo "-I$pdo_cv_inc_path -I"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1       misho    71912: 
                   71913:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   71914:     PHP_PDO_MYSQL_SHARED=no
                   71915: 
                   71916: 
                   71917:   case ext/pdo_mysql in
                   71918:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   71919:   /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   71920:   *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   71921:   esac
                   71922: 
                   71923: 
                   71924: 
                   71925:   b_c_pre=$php_c_pre
                   71926:   b_cxx_pre=$php_cxx_pre
                   71927:   b_c_meta=$php_c_meta
                   71928:   b_cxx_meta=$php_cxx_meta
                   71929:   b_c_post=$php_c_post
                   71930:   b_cxx_post=$php_cxx_post
                   71931:   b_lo=$php_lo
                   71932: 
                   71933: 
                   71934:   old_IFS=$IFS
                   71935:   for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
                   71936: 
                   71937:       IFS=.
                   71938:       set $ac_src
                   71939:       ac_obj=$1
                   71940:       IFS=$old_IFS
                   71941: 
                   71942:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   71943: 
                   71944:       case $ac_src in
                   71945:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   71946:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   71947:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   71948:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   71949:       esac
                   71950: 
                   71951:     cat >>Makefile.objects<<EOF
                   71952: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   71953:        $ac_comp
                   71954: EOF
                   71955:   done
                   71956: 
                   71957: 
                   71958:     EXT_STATIC="$EXT_STATIC pdo_mysql"
                   71959:     if test "$ext_shared" != "nocli"; then
                   71960:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_mysql"
                   71961:     fi
                   71962:   else
                   71963:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   71964:       PHP_PDO_MYSQL_SHARED=yes
                   71965: 
                   71966:   case ext/pdo_mysql in
                   71967:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   71968:   /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   71969:   *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   71970:   esac
                   71971: 
                   71972: 
                   71973: 
                   71974:   b_c_pre=$shared_c_pre
                   71975:   b_cxx_pre=$shared_cxx_pre
                   71976:   b_c_meta=$shared_c_meta
                   71977:   b_cxx_meta=$shared_cxx_meta
                   71978:   b_c_post=$shared_c_post
                   71979:   b_cxx_post=$shared_cxx_post
                   71980:   b_lo=$shared_lo
                   71981: 
                   71982: 
                   71983:   old_IFS=$IFS
                   71984:   for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
                   71985: 
                   71986:       IFS=.
                   71987:       set $ac_src
                   71988:       ac_obj=$1
                   71989:       IFS=$old_IFS
                   71990: 
                   71991:       shared_objects_pdo_mysql="$shared_objects_pdo_mysql $ac_bdir$ac_obj.lo"
                   71992: 
                   71993:       case $ac_src in
                   71994:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   71995:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   71996:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   71997:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   71998:       esac
                   71999: 
                   72000:     cat >>Makefile.objects<<EOF
                   72001: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   72002:        $ac_comp
                   72003: EOF
                   72004:   done
                   72005: 
                   72006:       case $host_alias in
                   72007:         *netware*)
                   72008: 
                   72009:   install_modules="install-modules"
                   72010: 
                   72011:   case $host_alias in
                   72012:     *aix*)
                   72013:       suffix=so
                   72014:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_mysql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) $(PHPPDO_MYSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_mysql.so '$ext_builddir'/phppdo_mysql.so'
                   72015:       ;;
                   72016:     *netware*)
                   72017:       suffix=nlm
                   72018:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) -L$(top_builddir)/netware -lphp5lib $(PDO_MYSQL_SHARED_LIBADD)'
                   72019:       ;;
                   72020:     *)
                   72021:       suffix=la
                   72022:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) $(PHPPDO_MYSQL_SHARED_LIBADD)'
                   72023:       ;;
                   72024:   esac
                   72025: 
                   72026:   if test "x" = "xyes"; then
                   72027:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_mysql.$suffix"
                   72028:   else
                   72029:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_mysql.$suffix"
                   72030:   fi
                   72031: 
                   72032:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_mysql"
                   72033: 
                   72034:   cat >>Makefile.objects<<EOF
                   72035: \$(phplibdir)/phppdo_mysql.$suffix: $ext_builddir/phppdo_mysql.$suffix
                   72036:        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_mysql.$suffix \$(phplibdir)
                   72037: 
                   72038: $ext_builddir/phppdo_mysql.$suffix: \$(shared_objects_pdo_mysql) \$(PHPPDO_MYSQL_SHARED_DEPENDENCIES)
                   72039:        $link_cmd
                   72040: 
                   72041: EOF
                   72042: 
                   72043:           ;;
                   72044:         *)
                   72045: 
                   72046:   install_modules="install-modules"
                   72047: 
                   72048:   case $host_alias in
                   72049:     *aix*)
                   72050:       suffix=so
                   72051:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_mysql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) $(PDO_MYSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_mysql.so '$ext_builddir'/pdo_mysql.so'
                   72052:       ;;
                   72053:     *netware*)
                   72054:       suffix=nlm
                   72055:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) -L$(top_builddir)/netware -lphp5lib $(_MYSQL_SHARED_LIBADD)'
                   72056:       ;;
                   72057:     *)
                   72058:       suffix=la
                   72059:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) $(PDO_MYSQL_SHARED_LIBADD)'
                   72060:       ;;
                   72061:   esac
                   72062: 
                   72063:   if test "x" = "xyes"; then
                   72064:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_mysql.$suffix"
                   72065:   else
                   72066:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_mysql.$suffix"
                   72067:   fi
                   72068: 
                   72069:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_mysql"
                   72070: 
                   72071:   cat >>Makefile.objects<<EOF
                   72072: \$(phplibdir)/pdo_mysql.$suffix: $ext_builddir/pdo_mysql.$suffix
                   72073:        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_mysql.$suffix \$(phplibdir)
                   72074: 
                   72075: $ext_builddir/pdo_mysql.$suffix: \$(shared_objects_pdo_mysql) \$(PDO_MYSQL_SHARED_DEPENDENCIES)
                   72076:        $link_cmd
                   72077: 
                   72078: EOF
                   72079: 
                   72080:           ;;
                   72081:       esac
                   72082: 
                   72083: cat >>confdefs.h <<_ACEOF
                   72084: #define COMPILE_DL_PDO_MYSQL 1
                   72085: _ACEOF
                   72086: 
                   72087:     fi
                   72088:   fi
                   72089: 
                   72090:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   72091:     PHP_PDO_MYSQL_SHARED=no
                   72092: 
                   72093: 
                   72094:   case ext/pdo_mysql in
                   72095:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   72096:   /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   72097:   *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   72098:   esac
                   72099: 
                   72100: 
                   72101: 
                   72102:   b_c_pre=$php_c_pre
                   72103:   b_cxx_pre=$php_cxx_pre
                   72104:   b_c_meta=$php_c_meta
                   72105:   b_cxx_meta=$php_cxx_meta
                   72106:   b_c_post=$php_c_post
                   72107:   b_cxx_post=$php_cxx_post
                   72108:   b_lo=$php_lo
                   72109: 
                   72110: 
                   72111:   old_IFS=$IFS
                   72112:   for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
                   72113: 
                   72114:       IFS=.
                   72115:       set $ac_src
                   72116:       ac_obj=$1
                   72117:       IFS=$old_IFS
                   72118: 
1.1.1.2 ! misho    72119:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    72120: 
                   72121:       case $ac_src in
                   72122:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   72123:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   72124:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   72125:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   72126:       esac
                   72127: 
                   72128:     cat >>Makefile.objects<<EOF
                   72129: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   72130:        $ac_comp
                   72131: EOF
                   72132:   done
                   72133: 
                   72134: 
                   72135: 
                   72136: 
                   72137:   case ext/pdo_mysql in
                   72138:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   72139:   /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   72140:   *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   72141:   esac
                   72142: 
                   72143: 
                   72144: 
                   72145:   b_c_pre=$php_c_pre
                   72146:   b_cxx_pre=$php_cxx_pre
                   72147:   b_c_meta=$php_c_meta
                   72148:   b_cxx_meta=$php_cxx_meta
                   72149:   b_c_post=$php_c_post
                   72150:   b_cxx_post=$php_cxx_post
                   72151:   b_lo=$php_lo
                   72152: 
                   72153: 
                   72154:   old_IFS=$IFS
                   72155:   for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
                   72156: 
                   72157:       IFS=.
                   72158:       set $ac_src
                   72159:       ac_obj=$1
                   72160:       IFS=$old_IFS
                   72161: 
1.1.1.2 ! misho    72162:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    72163: 
                   72164:       case $ac_src in
                   72165:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   72166:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   72167:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   72168:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   72169:       esac
                   72170: 
                   72171:     cat >>Makefile.objects<<EOF
                   72172: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   72173:        $ac_comp
                   72174: EOF
                   72175:   done
                   72176: 
                   72177: 
                   72178: 
                   72179: 
                   72180:   case ext/pdo_mysql in
                   72181:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   72182:   /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   72183:   *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   72184:   esac
                   72185: 
                   72186: 
                   72187: 
                   72188:   b_c_pre=$php_c_pre
                   72189:   b_cxx_pre=$php_cxx_pre
                   72190:   b_c_meta=$php_c_meta
                   72191:   b_cxx_meta=$php_cxx_meta
                   72192:   b_c_post=$php_c_post
                   72193:   b_cxx_post=$php_cxx_post
                   72194:   b_lo=$php_lo
                   72195: 
                   72196: 
                   72197:   old_IFS=$IFS
                   72198:   for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
                   72199: 
                   72200:       IFS=.
                   72201:       set $ac_src
                   72202:       ac_obj=$1
                   72203:       IFS=$old_IFS
                   72204: 
1.1.1.2 ! misho    72205:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    72206: 
                   72207:       case $ac_src in
                   72208:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   72209:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   72210:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   72211:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   72212:       esac
                   72213: 
                   72214:     cat >>Makefile.objects<<EOF
                   72215: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   72216:        $ac_comp
                   72217: EOF
                   72218:   done
                   72219: 
                   72220: 
                   72221:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_mysql"
                   72222:   fi
                   72223: 
                   72224: 
                   72225:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   72226: 
                   72227: 
                   72228: 
                   72229:   if test "$ext_builddir" = "."; then
                   72230:     PHP_PECL_EXTENSION=pdo_mysql
                   72231: 
                   72232:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   72233: 
                   72234:   fi
                   72235: 
                   72236: 
                   72237: 
                   72238:   am_i_shared=$PHP_PDO_MYSQL_SHARED
                   72239:   is_it_shared=$PHP_PDO_SHARED
                   72240:   is_it_enabled=$PHP_PDO
                   72241:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   72242:     as_fn_error $? "
                   72243: You've configured extension pdo_mysql to build statically, but it
                   72244: depends on extension pdo, which you've configured to build shared.
                   72245: You either need to build pdo_mysql shared or build pdo statically for the
                   72246: build to be successful.
                   72247: " "$LINENO" 5
                   72248:   fi
                   72249: 
                   72250:     if test "$PHP_MYSQL" = "mysqlnd"; then
                   72251: 
                   72252:   am_i_shared=$PHP_PDO_MYSQL_SHARED
                   72253:   is_it_shared=$PHP_MYSQLND_SHARED
                   72254:   is_it_enabled=$PHP_MYSQLND
                   72255:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   72256:     as_fn_error $? "
                   72257: You've configured extension pdo_mysql to build statically, but it
                   72258: depends on extension mysqlnd, which you've configured to build shared.
                   72259: You either need to build pdo_mysql shared or build mysqlnd statically for the
                   72260: build to be successful.
                   72261: " "$LINENO" 5
                   72262:   fi
                   72263: 
                   72264:     fi
                   72265: 
                   72266:   PDO_MYSQL_MODULE_TYPE=external
                   72267: 
                   72268: 
                   72269:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_MYSQL_SHARED_LIBADD"
                   72270: 
                   72271: 
                   72272: 
                   72273:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_MYSQL_MODULE_TYPE"
                   72274: 
                   72275: 
                   72276: 
                   72277: fi
                   72278: 
                   72279: 
                   72280: SUPPORTED_LIB_VERS="9.0 10.1 11.1"  # This caters for all Oracle 9.x, 10.x and 11.1 installs
                   72281: 
                   72282: 
                   72283: 
                   72284: 
                   72285: 
                   72286: php_with_pdo_oci=no
                   72287: 
                   72288: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle OCI support for PDO" >&5
                   72289: $as_echo_n "checking Oracle OCI support for PDO... " >&6; }
                   72290: 
                   72291: # Check whether --with-pdo-oci was given.
                   72292: if test "${with_pdo_oci+set}" = set; then :
                   72293:   withval=$with_pdo_oci; PHP_PDO_OCI=$withval
                   72294: else
                   72295: 
                   72296:   PHP_PDO_OCI=no
                   72297:   test "$PHP_ENABLE_ALL" && PHP_PDO_OCI=$PHP_ENABLE_ALL
                   72298: 
                   72299: fi
                   72300: 
                   72301: 
                   72302: 
                   72303: ext_output="yes, shared"
                   72304: ext_shared=yes
                   72305: case $PHP_PDO_OCI in
                   72306: shared,*)
                   72307:   PHP_PDO_OCI=`echo "$PHP_PDO_OCI"|$SED 's/^shared,//'`
                   72308:   ;;
                   72309: shared)
                   72310:   PHP_PDO_OCI=yes
                   72311:   ;;
                   72312: no)
                   72313:   ext_output=no
                   72314:   ext_shared=no
                   72315:   ;;
                   72316: *)
                   72317:   ext_output=yes
                   72318:   ext_shared=no
                   72319:   ;;
                   72320: esac
                   72321: 
                   72322: 
                   72323: 
                   72324: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   72325: $as_echo "$ext_output" >&6; }
                   72326: 
                   72327: 
                   72328: 
                   72329: 
                   72330: if test "$PHP_PDO_OCI" != "no"; then
                   72331: 
                   72332:   if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
                   72333:     as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
                   72334:   fi
                   72335: 
                   72336:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Install-Dir" >&5
                   72337: $as_echo_n "checking Oracle Install-Dir... " >&6; }
                   72338:   if test "$PHP_PDO_OCI" = "yes" || test -z "$PHP_PDO_OCI"; then
                   72339:     PDO_OCI_DIR=$ORACLE_HOME
                   72340:   else
                   72341:     PDO_OCI_DIR=$PHP_PDO_OCI
                   72342:   fi
                   72343:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_PDO_OCI" >&5
                   72344: $as_echo "$PHP_PDO_OCI" >&6; }
                   72345: 
                   72346:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if that is sane" >&5
                   72347: $as_echo_n "checking if that is sane... " >&6; }
                   72348:   if test -z "$PDO_OCI_DIR"; then
                   72349:     as_fn_error $? "
                   72350: You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_HOME.
                   72351: " "$LINENO" 5
                   72352:   else
                   72353:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   72354: $as_echo "yes" >&6; }
                   72355:   fi
                   72356: 
                   72357:   if test "instantclient" = "`echo $PDO_OCI_DIR | cut -d, -f1`" ; then
                   72358:     # The cast to long int works around a bug in the HP C Compiler
                   72359: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   72360: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   72361: # This bug is HP SR number 8606223364.
                   72362: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   72363: $as_echo_n "checking size of long int... " >&6; }
                   72364: if ${ac_cv_sizeof_long_int+:} false; then :
                   72365:   $as_echo_n "(cached) " >&6
                   72366: else
                   72367:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
                   72368: 
                   72369: else
                   72370:   if test "$ac_cv_type_long_int" = yes; then
                   72371:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   72372: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   72373: as_fn_error 77 "cannot compute sizeof (long int)
                   72374: See \`config.log' for more details" "$LINENO" 5; }
                   72375:    else
                   72376:      ac_cv_sizeof_long_int=0
                   72377:    fi
                   72378: fi
                   72379: 
                   72380: fi
                   72381: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   72382: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   72383: 
                   72384: 
                   72385: 
                   72386: cat >>confdefs.h <<_ACEOF
                   72387: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
                   72388: _ACEOF
                   72389: 
                   72390: 
                   72391:     if test "$ac_cv_sizeof_long_int" = "4" ; then
                   72392:       PDO_OCI_CLIENT_DIR="client"
                   72393:     else
                   72394:       PDO_OCI_CLIENT_DIR="client64"
                   72395:     fi
                   72396:     PDO_OCI_IC_PREFIX="`echo $PDO_OCI_DIR | cut -d, -f2`"
                   72397:     PDO_OCI_IC_VERS="`echo $PDO_OCI_DIR | cut -d, -f3`"
                   72398:     if test -n "$PDO_OCI_IC_VERS"; then
                   72399:       PDO_OCI_IC_MAJ_VER="`echo $PDO_OCI_IC_VERS | cut -d. -f1`"
                   72400:       if test "$PDO_OCI_IC_MAJ_VER" -ge 11; then
                   72401:         # From 11.1.0.7 the RPM path only has an X.Y component
                   72402:         PDO_OCI_IC_VERS="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`"
                   72403:       fi
                   72404:     fi
                   72405:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oci.h" >&5
                   72406: $as_echo_n "checking for oci.h... " >&6; }
                   72407:     if test -f $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/oci.h ; then
                   72408: 
                   72409:   if test "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" != "/usr/include"; then
                   72410: 
                   72411:   if test -z "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" || echo "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" | grep '^/' >/dev/null ; then
                   72412:     ai_p=$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR
                   72413:   else
                   72414: 
                   72415:     ep_dir="`echo $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   72416: 
                   72417:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   72418:     ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR\"`"
                   72419:   fi
                   72420: 
                   72421: 
                   72422: 
                   72423:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   72424: 
                   72425:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   72426:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   72427:     eval "INCLUDEPATH$unique=set"
                   72428: 
                   72429:       if test ""; then
                   72430:         INCLUDES="-I$ai_p $INCLUDES"
                   72431:       else
                   72432:         INCLUDES="$INCLUDES -I$ai_p"
                   72433:       fi
                   72434: 
                   72435:   fi
                   72436: 
                   72437:   fi
                   72438: 
                   72439:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" >&5
                   72440: $as_echo "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" >&6; }
                   72441:     elif test -f $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include/oci.h ; then
                   72442: 
                   72443:   if test "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" != "/usr/include"; then
                   72444: 
                   72445:   if test -z "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" || echo "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" | grep '^/' >/dev/null ; then
                   72446:     ai_p=$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include
                   72447:   else
                   72448: 
                   72449:     ep_dir="`echo $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   72450: 
                   72451:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   72452:     ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include\"`"
                   72453:   fi
                   72454: 
                   72455: 
                   72456: 
                   72457:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   72458: 
                   72459:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   72460:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   72461:     eval "INCLUDEPATH$unique=set"
                   72462: 
                   72463:       if test ""; then
                   72464:         INCLUDES="-I$ai_p $INCLUDES"
                   72465:       else
                   72466:         INCLUDES="$INCLUDES -I$ai_p"
                   72467:       fi
                   72468: 
                   72469:   fi
                   72470: 
                   72471:   fi
                   72472: 
                   72473:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" >&5
                   72474: $as_echo "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" >&6; }
                   72475:     elif test -f $PDO_OCI_IC_PREFIX/sdk/include/oci.h ; then
                   72476: 
                   72477:   if test "$PDO_OCI_IC_PREFIX/sdk/include" != "/usr/include"; then
                   72478: 
                   72479:   if test -z "$PDO_OCI_IC_PREFIX/sdk/include" || echo "$PDO_OCI_IC_PREFIX/sdk/include" | grep '^/' >/dev/null ; then
                   72480:     ai_p=$PDO_OCI_IC_PREFIX/sdk/include
                   72481:   else
                   72482: 
                   72483:     ep_dir="`echo $PDO_OCI_IC_PREFIX/sdk/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   72484: 
                   72485:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   72486:     ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/sdk/include\"`"
                   72487:   fi
                   72488: 
                   72489: 
                   72490: 
                   72491:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   72492: 
                   72493:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   72494:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   72495:     eval "INCLUDEPATH$unique=set"
                   72496: 
                   72497:       if test ""; then
                   72498:         INCLUDES="-I$ai_p $INCLUDES"
                   72499:       else
                   72500:         INCLUDES="$INCLUDES -I$ai_p"
                   72501:       fi
                   72502: 
                   72503:   fi
                   72504: 
                   72505:   fi
                   72506: 
                   72507:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/sdk/include" >&5
                   72508: $as_echo "$PDO_OCI_IC_PREFIX/sdk/include" >&6; }
                   72509:     elif test -f $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include/oci.h ; then
                   72510: 
                   72511:   if test "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" != "/usr/include"; then
                   72512: 
                   72513:   if test -z "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" || echo "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" | grep '^/' >/dev/null ; then
                   72514:     ai_p=$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include
                   72515:   else
                   72516: 
                   72517:     ep_dir="`echo $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   72518: 
                   72519:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   72520:     ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include\"`"
                   72521:   fi
                   72522: 
                   72523: 
                   72524: 
                   72525:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   72526: 
                   72527:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   72528:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   72529:     eval "INCLUDEPATH$unique=set"
                   72530: 
                   72531:       if test ""; then
                   72532:         INCLUDES="-I$ai_p $INCLUDES"
                   72533:       else
                   72534:         INCLUDES="$INCLUDES -I$ai_p"
                   72535:       fi
                   72536: 
                   72537:   fi
                   72538: 
                   72539:   fi
                   72540: 
                   72541:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&5
                   72542: $as_echo "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&6; }
                   72543:     else
                   72544:       as_fn_error $? "I'm too dumb to figure out where the include dir is in your Instant Client install" "$LINENO" 5
                   72545:     fi
                   72546:     if test -f "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then
                   72547:     PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib"
                   72548:     elif test -f "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then
                   72549:       PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib"
                   72550:     elif test -f "$PDO_OCI_IC_PREFIX/libclntsh.$SHLIB_SUFFIX_NAME" ; then
                   72551:       PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX"
                   72552:     else
                   72553:       as_fn_error $? "I'm too dumb to figure out where the libraries are in your Instant Client install" "$LINENO" 5
                   72554:     fi
                   72555:     PDO_OCI_VERSION="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`"
                   72556:   else
                   72557: 
                   72558:   # The cast to long int works around a bug in the HP C Compiler
                   72559: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   72560: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   72561: # This bug is HP SR number 8606223364.
                   72562: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   72563: $as_echo_n "checking size of long int... " >&6; }
                   72564: if ${ac_cv_sizeof_long_int+:} false; then :
                   72565:   $as_echo_n "(cached) " >&6
                   72566: else
                   72567:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
                   72568: 
                   72569: else
                   72570:   if test "$ac_cv_type_long_int" = yes; then
                   72571:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   72572: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   72573: as_fn_error 77 "cannot compute sizeof (long int)
                   72574: See \`config.log' for more details" "$LINENO" 5; }
                   72575:    else
                   72576:      ac_cv_sizeof_long_int=0
                   72577:    fi
                   72578: fi
                   72579: 
                   72580: fi
                   72581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   72582: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   72583: 
                   72584: 
                   72585: 
                   72586: cat >>confdefs.h <<_ACEOF
                   72587: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
                   72588: _ACEOF
                   72589: 
                   72590: 
                   72591:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're on a 64-bit platform" >&5
                   72592: $as_echo_n "checking if we're on a 64-bit platform... " >&6; }
                   72593:   if test "$ac_cv_sizeof_long_int" = "4" ; then
                   72594:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   72595: $as_echo "no" >&6; }
                   72596:     TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32"
                   72597:   else
                   72598:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   72599: $as_echo "yes" >&6; }
                   72600:     TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib"
                   72601:   fi
                   72602: 
                   72603:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking OCI8 libraries dir" >&5
                   72604: $as_echo_n "checking OCI8 libraries dir... " >&6; }
                   72605:   if test -d "$PDO_OCI_DIR/lib" && test ! -d "$PDO_OCI_DIR/lib32"; then
                   72606:     PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib"
                   72607:   elif test ! -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then
                   72608:     PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32"
                   72609:   elif test -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then
                   72610:     PDO_OCI_LIB_DIR=$TMP_PDO_OCI_LIB_DIR
                   72611:   else
                   72612:     as_fn_error $? "Oracle required OCI8 libraries not found" "$LINENO" 5
                   72613:   fi
                   72614:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_LIB_DIR" >&5
                   72615: $as_echo "$PDO_OCI_LIB_DIR" >&6; }
                   72616: 
                   72617: 
                   72618:     if test -d "$PDO_OCI_DIR/rdbms/public"; then
                   72619: 
                   72620:   if test "$PDO_OCI_DIR/rdbms/public" != "/usr/include"; then
                   72621: 
                   72622:   if test -z "$PDO_OCI_DIR/rdbms/public" || echo "$PDO_OCI_DIR/rdbms/public" | grep '^/' >/dev/null ; then
                   72623:     ai_p=$PDO_OCI_DIR/rdbms/public
                   72624:   else
                   72625: 
                   72626:     ep_dir="`echo $PDO_OCI_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'`"
                   72627: 
                   72628:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   72629:     ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/rdbms/public\"`"
                   72630:   fi
                   72631: 
                   72632: 
                   72633: 
                   72634:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   72635: 
                   72636:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   72637:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   72638:     eval "INCLUDEPATH$unique=set"
                   72639: 
                   72640:       if test ""; then
                   72641:         INCLUDES="-I$ai_p $INCLUDES"
                   72642:       else
                   72643:         INCLUDES="$INCLUDES -I$ai_p"
                   72644:       fi
                   72645: 
                   72646:   fi
                   72647: 
                   72648:   fi
                   72649: 
                   72650:       PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/public"
                   72651:     fi
                   72652:     if test -d "$PDO_OCI_DIR/rdbms/demo"; then
                   72653: 
                   72654:   if test "$PDO_OCI_DIR/rdbms/demo" != "/usr/include"; then
                   72655: 
                   72656:   if test -z "$PDO_OCI_DIR/rdbms/demo" || echo "$PDO_OCI_DIR/rdbms/demo" | grep '^/' >/dev/null ; then
                   72657:     ai_p=$PDO_OCI_DIR/rdbms/demo
                   72658:   else
                   72659: 
                   72660:     ep_dir="`echo $PDO_OCI_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'`"
                   72661: 
                   72662:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   72663:     ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/rdbms/demo\"`"
                   72664:   fi
                   72665: 
                   72666: 
                   72667: 
                   72668:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   72669: 
                   72670:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   72671:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   72672:     eval "INCLUDEPATH$unique=set"
                   72673: 
                   72674:       if test ""; then
                   72675:         INCLUDES="-I$ai_p $INCLUDES"
                   72676:       else
                   72677:         INCLUDES="$INCLUDES -I$ai_p"
                   72678:       fi
                   72679: 
                   72680:   fi
                   72681: 
                   72682:   fi
                   72683: 
                   72684:       PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/demo"
                   72685:     fi
                   72686:     if test -d "$PDO_OCI_DIR/network/public"; then
                   72687: 
                   72688:   if test "$PDO_OCI_DIR/network/public" != "/usr/include"; then
                   72689: 
                   72690:   if test -z "$PDO_OCI_DIR/network/public" || echo "$PDO_OCI_DIR/network/public" | grep '^/' >/dev/null ; then
                   72691:     ai_p=$PDO_OCI_DIR/network/public
                   72692:   else
                   72693: 
                   72694:     ep_dir="`echo $PDO_OCI_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'`"
                   72695: 
                   72696:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   72697:     ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/network/public\"`"
                   72698:   fi
                   72699: 
                   72700: 
                   72701: 
                   72702:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   72703: 
                   72704:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   72705:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   72706:     eval "INCLUDEPATH$unique=set"
                   72707: 
                   72708:       if test ""; then
                   72709:         INCLUDES="-I$ai_p $INCLUDES"
                   72710:       else
                   72711:         INCLUDES="$INCLUDES -I$ai_p"
                   72712:       fi
                   72713: 
                   72714:   fi
                   72715: 
                   72716:   fi
                   72717: 
                   72718:       PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/network/public"
                   72719:     fi
                   72720:     if test -d "$PDO_OCI_DIR/plsql/public"; then
                   72721: 
                   72722:   if test "$PDO_OCI_DIR/plsql/public" != "/usr/include"; then
                   72723: 
                   72724:   if test -z "$PDO_OCI_DIR/plsql/public" || echo "$PDO_OCI_DIR/plsql/public" | grep '^/' >/dev/null ; then
                   72725:     ai_p=$PDO_OCI_DIR/plsql/public
                   72726:   else
                   72727: 
                   72728:     ep_dir="`echo $PDO_OCI_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'`"
                   72729: 
                   72730:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   72731:     ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/plsql/public\"`"
                   72732:   fi
                   72733: 
                   72734: 
                   72735: 
                   72736:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   72737: 
                   72738:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   72739:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   72740:     eval "INCLUDEPATH$unique=set"
                   72741: 
                   72742:       if test ""; then
                   72743:         INCLUDES="-I$ai_p $INCLUDES"
                   72744:       else
                   72745:         INCLUDES="$INCLUDES -I$ai_p"
                   72746:       fi
                   72747: 
                   72748:   fi
                   72749: 
                   72750:   fi
                   72751: 
                   72752:       PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/plsql/public"
                   72753:     fi
                   72754:     if test -d "$PDO_OCI_DIR/include"; then
                   72755: 
                   72756:   if test "$PDO_OCI_DIR/include" != "/usr/include"; then
                   72757: 
                   72758:   if test -z "$PDO_OCI_DIR/include" || echo "$PDO_OCI_DIR/include" | grep '^/' >/dev/null ; then
                   72759:     ai_p=$PDO_OCI_DIR/include
                   72760:   else
                   72761: 
                   72762:     ep_dir="`echo $PDO_OCI_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   72763: 
                   72764:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   72765:     ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/include\"`"
                   72766:   fi
                   72767: 
                   72768: 
                   72769: 
                   72770:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   72771: 
                   72772:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   72773:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   72774:     eval "INCLUDEPATH$unique=set"
                   72775: 
                   72776:       if test ""; then
                   72777:         INCLUDES="-I$ai_p $INCLUDES"
                   72778:       else
                   72779:         INCLUDES="$INCLUDES -I$ai_p"
                   72780:       fi
                   72781: 
                   72782:   fi
                   72783: 
                   72784:   fi
                   72785: 
                   72786:       PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/include"
                   72787:     fi
                   72788: 
                   72789:     if test -f "$PDO_OCI_LIB_DIR/sysliblist"; then
                   72790: 
                   72791:   for ac_i in `cat $PDO_OCI_LIB_DIR/sysliblist`; do
                   72792:     case $ac_i in
                   72793:     -pthread)
                   72794:       if test "$ext_shared" = "yes"; then
                   72795:         PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread"
                   72796:       else
                   72797: 
                   72798: 
                   72799:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   72800: 
                   72801:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   72802:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   72803:     eval "EXTRA_LDFLAGS$unique=set"
                   72804:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   72805:   fi
                   72806: 
                   72807:       fi
                   72808:     ;;
                   72809:     -l*)
                   72810:       ac_ii=`echo $ac_i|cut -c 3-`
                   72811: 
                   72812: 
                   72813:   case $ac_ii in
                   72814:   c|c_r|pthread*) ;;
                   72815:   *)
                   72816:     if test "$ext_shared" = "yes"; then
                   72817:         PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii"
                   72818:     else
                   72819: 
                   72820: 
                   72821:   case $ac_ii in
                   72822:   c|c_r|pthread*) ;;
                   72823:   *)
                   72824:       LIBS="$LIBS -l$ac_ii"
                   72825:    ;;
                   72826:   esac
                   72827: 
                   72828: 
                   72829:     fi
                   72830:    ;;
                   72831:   esac
                   72832: 
                   72833: 
                   72834:     ;;
                   72835:     -L*)
                   72836:       ac_ii=`echo $ac_i|cut -c 3-`
                   72837: 
                   72838:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   72839: 
                   72840:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   72841:     ai_p=$ac_ii
                   72842:   else
                   72843: 
                   72844:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   72845: 
                   72846:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   72847:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   72848:   fi
                   72849: 
                   72850: 
                   72851:       if test "$ext_shared" = "yes"; then
                   72852:         PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB"
                   72853:         test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB"
                   72854:       else
                   72855: 
                   72856: 
                   72857: 
                   72858:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   72859: 
                   72860:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   72861:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   72862:     eval "LIBPATH$unique=set"
                   72863: 
                   72864:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   72865:     LDFLAGS="$LDFLAGS -L$ai_p"
                   72866:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   72867: 
                   72868:   fi
                   72869: 
                   72870: 
                   72871:       fi
                   72872: 
                   72873:   fi
                   72874: 
                   72875:     ;;
                   72876:     esac
                   72877:   done
                   72878: 
                   72879:     elif test -f "$PDO_OCI_DIR/rdbms/lib/sysliblist"; then
                   72880: 
                   72881:   for ac_i in `cat $PDO_OCI_DIR/rdbms/lib/sysliblist`; do
                   72882:     case $ac_i in
                   72883:     -pthread)
                   72884:       if test "$ext_shared" = "yes"; then
                   72885:         PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread"
                   72886:       else
                   72887: 
                   72888: 
                   72889:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   72890: 
                   72891:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   72892:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   72893:     eval "EXTRA_LDFLAGS$unique=set"
                   72894:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   72895:   fi
                   72896: 
                   72897:       fi
                   72898:     ;;
                   72899:     -l*)
                   72900:       ac_ii=`echo $ac_i|cut -c 3-`
                   72901: 
                   72902: 
                   72903:   case $ac_ii in
                   72904:   c|c_r|pthread*) ;;
                   72905:   *)
                   72906:     if test "$ext_shared" = "yes"; then
                   72907:         PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii"
                   72908:     else
                   72909: 
                   72910: 
                   72911:   case $ac_ii in
                   72912:   c|c_r|pthread*) ;;
                   72913:   *)
                   72914:       LIBS="$LIBS -l$ac_ii"
                   72915:    ;;
                   72916:   esac
                   72917: 
                   72918: 
                   72919:     fi
                   72920:    ;;
                   72921:   esac
                   72922: 
                   72923: 
                   72924:     ;;
                   72925:     -L*)
                   72926:       ac_ii=`echo $ac_i|cut -c 3-`
                   72927: 
                   72928:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   72929: 
                   72930:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   72931:     ai_p=$ac_ii
                   72932:   else
                   72933: 
                   72934:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   72935: 
                   72936:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   72937:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   72938:   fi
                   72939: 
                   72940: 
                   72941:       if test "$ext_shared" = "yes"; then
                   72942:         PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB"
                   72943:         test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB"
                   72944:       else
                   72945: 
                   72946: 
                   72947: 
                   72948:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   72949: 
                   72950:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   72951:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   72952:     eval "LIBPATH$unique=set"
                   72953: 
                   72954:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   72955:     LDFLAGS="$LDFLAGS -L$ai_p"
                   72956:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   72957: 
                   72958:   fi
                   72959: 
                   72960: 
                   72961:       fi
                   72962: 
                   72963:   fi
                   72964: 
                   72965:     ;;
                   72966:     esac
                   72967:   done
                   72968: 
                   72969:     fi
                   72970: 
                   72971:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle version" >&5
                   72972: $as_echo_n "checking Oracle version... " >&6; }
                   72973:   for OCI_VER in $SUPPORTED_LIB_VERS; do
                   72974:     if test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.$OCI_VER; then
                   72975:       PDO_OCI_VERSION="$OCI_VER"
                   72976:     fi
                   72977:   done
                   72978:   if test -z "$PDO_OCI_VERSION"; then
                   72979:     as_fn_error $? "Oracle required OCI8 libraries not found under $PDO_OCI_DIR" "$LINENO" 5
                   72980:   fi
                   72981:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5
                   72982: $as_echo "$PDO_OCI_VERSION" >&6; }
                   72983: 
                   72984:   fi
                   72985: 
                   72986:   case $PDO_OCI_VERSION in
                   72987:     9.0|10.1|10.2|11.1|11.2)
                   72988: 
                   72989: 
                   72990:   case clntsh in
                   72991:   c|c_r|pthread*) ;;
                   72992:   *)
                   72993:     if test "$ext_shared" = "yes"; then
                   72994:         PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -lclntsh"
                   72995:     else
                   72996: 
                   72997: 
                   72998:   case clntsh in
                   72999:   c|c_r|pthread*) ;;
                   73000:   *)
                   73001:       LIBS="$LIBS -lclntsh"
                   73002:    ;;
                   73003:   esac
                   73004: 
                   73005: 
                   73006:     fi
                   73007:    ;;
                   73008:   esac
                   73009: 
                   73010: 
                   73011:       ;;
                   73012: 
                   73013:     *)
                   73014:       as_fn_error $? "Unsupported Oracle version $PDO_OCI_VERSION" "$LINENO" 5
                   73015:       ;;
                   73016:   esac
                   73017: 
                   73018: 
                   73019:   if test "$PDO_OCI_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PDO_OCI_LIB_DIR" != "/usr/lib"; then
                   73020: 
                   73021:   if test -z "$PDO_OCI_LIB_DIR" || echo "$PDO_OCI_LIB_DIR" | grep '^/' >/dev/null ; then
                   73022:     ai_p=$PDO_OCI_LIB_DIR
                   73023:   else
                   73024: 
                   73025:     ep_dir="`echo $PDO_OCI_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   73026: 
                   73027:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   73028:     ai_p="$ep_realdir/`basename \"$PDO_OCI_LIB_DIR\"`"
                   73029:   fi
                   73030: 
                   73031: 
                   73032:       if test "$ext_shared" = "yes"; then
                   73033:         PDO_OCI_SHARED_LIBADD="-L$ai_p $PDO_OCI_SHARED_LIBADD"
                   73034:         test -n "$ld_runpath_switch" && PDO_OCI_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_OCI_SHARED_LIBADD"
                   73035:       else
                   73036: 
                   73037: 
                   73038: 
                   73039:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   73040: 
                   73041:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   73042:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   73043:     eval "LIBPATH$unique=set"
                   73044: 
                   73045:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   73046:     LDFLAGS="$LDFLAGS -L$ai_p"
                   73047:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   73048: 
                   73049:   fi
                   73050: 
                   73051: 
                   73052:       fi
                   73053: 
                   73054:   fi
                   73055: 
                   73056: 
                   73057: 
                   73058:   save_old_LDFLAGS=$LDFLAGS
                   73059:   ac_stuff="
                   73060:     -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
                   73061:   "
                   73062: 
                   73063:   save_ext_shared=$ext_shared
                   73064:   ext_shared=yes
                   73065: 
                   73066:   for ac_i in $ac_stuff; do
                   73067:     case $ac_i in
                   73068:     -pthread)
                   73069:       if test "$ext_shared" = "yes"; then
                   73070:         LDFLAGS="$LDFLAGS -pthread"
                   73071:       else
                   73072: 
                   73073: 
                   73074:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   73075: 
                   73076:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   73077:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   73078:     eval "EXTRA_LDFLAGS$unique=set"
                   73079:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   73080:   fi
                   73081: 
                   73082:       fi
                   73083:     ;;
                   73084:     -l*)
                   73085:       ac_ii=`echo $ac_i|cut -c 3-`
                   73086: 
                   73087: 
                   73088:   case $ac_ii in
                   73089:   c|c_r|pthread*) ;;
                   73090:   *)
                   73091:     if test "$ext_shared" = "yes"; then
                   73092:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   73093:     else
                   73094: 
                   73095: 
                   73096:   case $ac_ii in
                   73097:   c|c_r|pthread*) ;;
                   73098:   *)
                   73099:       LIBS="$LIBS -l$ac_ii"
                   73100:    ;;
                   73101:   esac
                   73102: 
                   73103: 
                   73104:     fi
                   73105:    ;;
                   73106:   esac
                   73107: 
                   73108: 
                   73109:     ;;
                   73110:     -L*)
                   73111:       ac_ii=`echo $ac_i|cut -c 3-`
                   73112: 
                   73113:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   73114: 
                   73115:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   73116:     ai_p=$ac_ii
                   73117:   else
                   73118: 
                   73119:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   73120: 
                   73121:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   73122:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   73123:   fi
                   73124: 
                   73125: 
                   73126:       if test "$ext_shared" = "yes"; then
                   73127:         LDFLAGS="-L$ai_p $LDFLAGS"
                   73128:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   73129:       else
                   73130: 
                   73131: 
                   73132: 
                   73133:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   73134: 
                   73135:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   73136:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   73137:     eval "LIBPATH$unique=set"
                   73138: 
                   73139:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   73140:     LDFLAGS="$LDFLAGS -L$ai_p"
                   73141:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   73142: 
                   73143:   fi
                   73144: 
                   73145: 
                   73146:       fi
                   73147: 
                   73148:   fi
                   73149: 
                   73150:     ;;
                   73151:     esac
                   73152:   done
                   73153: 
                   73154:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5
                   73155: $as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; }
                   73156: if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then :
                   73157:   $as_echo_n "(cached) " >&6
                   73158: else
                   73159:   ac_check_lib_save_LIBS=$LIBS
                   73160: LIBS="-lclntsh  $LIBS"
                   73161: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   73162: /* end confdefs.h.  */
                   73163: 
                   73164: /* Override any GCC internal prototype to avoid an error.
                   73165:    Use char because int might match the return type of a GCC
                   73166:    builtin and then its argument prototype would still apply.  */
                   73167: #ifdef __cplusplus
                   73168: extern "C"
                   73169: #endif
                   73170: char OCIEnvCreate ();
                   73171: int
                   73172: main ()
                   73173: {
                   73174: return OCIEnvCreate ();
                   73175:   ;
                   73176:   return 0;
                   73177: }
                   73178: _ACEOF
                   73179: if ac_fn_c_try_link "$LINENO"; then :
                   73180:   ac_cv_lib_clntsh_OCIEnvCreate=yes
                   73181: else
                   73182:   ac_cv_lib_clntsh_OCIEnvCreate=no
                   73183: fi
                   73184: rm -f core conftest.err conftest.$ac_objext \
                   73185:     conftest$ac_exeext conftest.$ac_ext
                   73186: LIBS=$ac_check_lib_save_LIBS
                   73187: fi
                   73188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5
                   73189: $as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; }
                   73190: if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then :
                   73191: 
                   73192:     LDFLAGS=$save_old_LDFLAGS
                   73193:     ext_shared=$save_ext_shared
                   73194: 
                   73195: 
                   73196: $as_echo "#define HAVE_OCIENVCREATE 1" >>confdefs.h
                   73197: 
                   73198: 
                   73199: 
                   73200: else
                   73201: 
                   73202:     LDFLAGS=$save_old_LDFLAGS
                   73203:     ext_shared=$save_ext_shared
                   73204:     unset ac_cv_lib_clntsh_OCIEnvCreate
                   73205: 
                   73206: 
                   73207: fi
                   73208: 
                   73209: 
                   73210: 
                   73211:   save_old_LDFLAGS=$LDFLAGS
                   73212:   ac_stuff="
                   73213:     -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
                   73214:   "
                   73215: 
                   73216:   save_ext_shared=$ext_shared
                   73217:   ext_shared=yes
                   73218: 
                   73219:   for ac_i in $ac_stuff; do
                   73220:     case $ac_i in
                   73221:     -pthread)
                   73222:       if test "$ext_shared" = "yes"; then
                   73223:         LDFLAGS="$LDFLAGS -pthread"
                   73224:       else
                   73225: 
                   73226: 
                   73227:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   73228: 
                   73229:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   73230:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   73231:     eval "EXTRA_LDFLAGS$unique=set"
                   73232:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   73233:   fi
                   73234: 
                   73235:       fi
                   73236:     ;;
                   73237:     -l*)
                   73238:       ac_ii=`echo $ac_i|cut -c 3-`
                   73239: 
                   73240: 
                   73241:   case $ac_ii in
                   73242:   c|c_r|pthread*) ;;
                   73243:   *)
                   73244:     if test "$ext_shared" = "yes"; then
                   73245:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   73246:     else
                   73247: 
                   73248: 
                   73249:   case $ac_ii in
                   73250:   c|c_r|pthread*) ;;
                   73251:   *)
                   73252:       LIBS="$LIBS -l$ac_ii"
                   73253:    ;;
                   73254:   esac
                   73255: 
                   73256: 
                   73257:     fi
                   73258:    ;;
                   73259:   esac
                   73260: 
                   73261: 
                   73262:     ;;
                   73263:     -L*)
                   73264:       ac_ii=`echo $ac_i|cut -c 3-`
                   73265: 
                   73266:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   73267: 
                   73268:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   73269:     ai_p=$ac_ii
                   73270:   else
                   73271: 
                   73272:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   73273: 
                   73274:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   73275:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   73276:   fi
                   73277: 
                   73278: 
                   73279:       if test "$ext_shared" = "yes"; then
                   73280:         LDFLAGS="-L$ai_p $LDFLAGS"
                   73281:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   73282:       else
                   73283: 
                   73284: 
                   73285: 
                   73286:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   73287: 
                   73288:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   73289:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   73290:     eval "LIBPATH$unique=set"
                   73291: 
                   73292:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   73293:     LDFLAGS="$LDFLAGS -L$ai_p"
                   73294:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   73295: 
                   73296:   fi
                   73297: 
                   73298: 
                   73299:       fi
                   73300: 
                   73301:   fi
                   73302: 
                   73303:     ;;
                   73304:     esac
                   73305:   done
                   73306: 
                   73307:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5
                   73308: $as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; }
                   73309: if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then :
                   73310:   $as_echo_n "(cached) " >&6
                   73311: else
                   73312:   ac_check_lib_save_LIBS=$LIBS
                   73313: LIBS="-lclntsh  $LIBS"
                   73314: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   73315: /* end confdefs.h.  */
                   73316: 
                   73317: /* Override any GCC internal prototype to avoid an error.
                   73318:    Use char because int might match the return type of a GCC
                   73319:    builtin and then its argument prototype would still apply.  */
                   73320: #ifdef __cplusplus
                   73321: extern "C"
                   73322: #endif
                   73323: char OCIEnvNlsCreate ();
                   73324: int
                   73325: main ()
                   73326: {
                   73327: return OCIEnvNlsCreate ();
                   73328:   ;
                   73329:   return 0;
                   73330: }
                   73331: _ACEOF
                   73332: if ac_fn_c_try_link "$LINENO"; then :
                   73333:   ac_cv_lib_clntsh_OCIEnvNlsCreate=yes
                   73334: else
                   73335:   ac_cv_lib_clntsh_OCIEnvNlsCreate=no
                   73336: fi
                   73337: rm -f core conftest.err conftest.$ac_objext \
                   73338:     conftest$ac_exeext conftest.$ac_ext
                   73339: LIBS=$ac_check_lib_save_LIBS
                   73340: fi
                   73341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5
                   73342: $as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; }
                   73343: if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then :
                   73344: 
                   73345:     LDFLAGS=$save_old_LDFLAGS
                   73346:     ext_shared=$save_ext_shared
                   73347: 
                   73348: 
                   73349: $as_echo "#define HAVE_OCIENVNLSCREATE 1" >>confdefs.h
                   73350: 
                   73351: 
                   73352: 
                   73353: else
                   73354: 
                   73355:     LDFLAGS=$save_old_LDFLAGS
                   73356:     ext_shared=$save_ext_shared
                   73357:     unset ac_cv_lib_clntsh_OCIEnvNlsCreate
                   73358: 
                   73359: 
                   73360: fi
                   73361: 
                   73362: 
                   73363: 
                   73364:   save_old_LDFLAGS=$LDFLAGS
                   73365:   ac_stuff="
                   73366:     -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
                   73367:   "
                   73368: 
                   73369:   save_ext_shared=$ext_shared
                   73370:   ext_shared=yes
                   73371: 
                   73372:   for ac_i in $ac_stuff; do
                   73373:     case $ac_i in
                   73374:     -pthread)
                   73375:       if test "$ext_shared" = "yes"; then
                   73376:         LDFLAGS="$LDFLAGS -pthread"
                   73377:       else
                   73378: 
                   73379: 
                   73380:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   73381: 
                   73382:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   73383:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   73384:     eval "EXTRA_LDFLAGS$unique=set"
                   73385:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   73386:   fi
                   73387: 
                   73388:       fi
                   73389:     ;;
                   73390:     -l*)
                   73391:       ac_ii=`echo $ac_i|cut -c 3-`
                   73392: 
                   73393: 
                   73394:   case $ac_ii in
                   73395:   c|c_r|pthread*) ;;
                   73396:   *)
                   73397:     if test "$ext_shared" = "yes"; then
                   73398:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   73399:     else
                   73400: 
                   73401: 
                   73402:   case $ac_ii in
                   73403:   c|c_r|pthread*) ;;
                   73404:   *)
                   73405:       LIBS="$LIBS -l$ac_ii"
                   73406:    ;;
                   73407:   esac
                   73408: 
                   73409: 
                   73410:     fi
                   73411:    ;;
                   73412:   esac
                   73413: 
                   73414: 
                   73415:     ;;
                   73416:     -L*)
                   73417:       ac_ii=`echo $ac_i|cut -c 3-`
                   73418: 
                   73419:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   73420: 
                   73421:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   73422:     ai_p=$ac_ii
                   73423:   else
                   73424: 
                   73425:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   73426: 
                   73427:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   73428:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   73429:   fi
                   73430: 
                   73431: 
                   73432:       if test "$ext_shared" = "yes"; then
                   73433:         LDFLAGS="-L$ai_p $LDFLAGS"
                   73434:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   73435:       else
                   73436: 
                   73437: 
                   73438: 
                   73439:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   73440: 
                   73441:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   73442:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   73443:     eval "LIBPATH$unique=set"
                   73444: 
                   73445:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   73446:     LDFLAGS="$LDFLAGS -L$ai_p"
                   73447:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   73448: 
                   73449:   fi
                   73450: 
                   73451: 
                   73452:       fi
                   73453: 
                   73454:   fi
                   73455: 
                   73456:     ;;
                   73457:     esac
                   73458:   done
                   73459: 
                   73460:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobIsTemporary in -lclntsh" >&5
                   73461: $as_echo_n "checking for OCILobIsTemporary in -lclntsh... " >&6; }
                   73462: if ${ac_cv_lib_clntsh_OCILobIsTemporary+:} false; then :
                   73463:   $as_echo_n "(cached) " >&6
                   73464: else
                   73465:   ac_check_lib_save_LIBS=$LIBS
                   73466: LIBS="-lclntsh  $LIBS"
                   73467: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   73468: /* end confdefs.h.  */
                   73469: 
                   73470: /* Override any GCC internal prototype to avoid an error.
                   73471:    Use char because int might match the return type of a GCC
                   73472:    builtin and then its argument prototype would still apply.  */
                   73473: #ifdef __cplusplus
                   73474: extern "C"
                   73475: #endif
                   73476: char OCILobIsTemporary ();
                   73477: int
                   73478: main ()
                   73479: {
                   73480: return OCILobIsTemporary ();
                   73481:   ;
                   73482:   return 0;
                   73483: }
                   73484: _ACEOF
                   73485: if ac_fn_c_try_link "$LINENO"; then :
                   73486:   ac_cv_lib_clntsh_OCILobIsTemporary=yes
                   73487: else
                   73488:   ac_cv_lib_clntsh_OCILobIsTemporary=no
                   73489: fi
                   73490: rm -f core conftest.err conftest.$ac_objext \
                   73491:     conftest$ac_exeext conftest.$ac_ext
                   73492: LIBS=$ac_check_lib_save_LIBS
                   73493: fi
                   73494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCILobIsTemporary" >&5
                   73495: $as_echo "$ac_cv_lib_clntsh_OCILobIsTemporary" >&6; }
                   73496: if test "x$ac_cv_lib_clntsh_OCILobIsTemporary" = xyes; then :
                   73497: 
                   73498:     LDFLAGS=$save_old_LDFLAGS
                   73499:     ext_shared=$save_ext_shared
                   73500: 
                   73501: 
                   73502: $as_echo "#define HAVE_OCILOBISTEMPORARY 1" >>confdefs.h
                   73503: 
                   73504: 
                   73505: 
                   73506: else
                   73507: 
                   73508:     LDFLAGS=$save_old_LDFLAGS
                   73509:     ext_shared=$save_ext_shared
                   73510:     unset ac_cv_lib_clntsh_OCILobIsTemporary
                   73511: 
                   73512: 
                   73513:   save_old_LDFLAGS=$LDFLAGS
                   73514:   ac_stuff="
                   73515:       -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
                   73516:     "
                   73517: 
                   73518:   save_ext_shared=$ext_shared
                   73519:   ext_shared=yes
                   73520: 
                   73521:   for ac_i in $ac_stuff; do
                   73522:     case $ac_i in
                   73523:     -pthread)
                   73524:       if test "$ext_shared" = "yes"; then
                   73525:         LDFLAGS="$LDFLAGS -pthread"
                   73526:       else
                   73527: 
                   73528: 
                   73529:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   73530: 
                   73531:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   73532:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   73533:     eval "EXTRA_LDFLAGS$unique=set"
                   73534:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   73535:   fi
                   73536: 
                   73537:       fi
                   73538:     ;;
                   73539:     -l*)
                   73540:       ac_ii=`echo $ac_i|cut -c 3-`
                   73541: 
                   73542: 
                   73543:   case $ac_ii in
                   73544:   c|c_r|pthread*) ;;
                   73545:   *)
                   73546:     if test "$ext_shared" = "yes"; then
                   73547:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   73548:     else
                   73549: 
                   73550: 
                   73551:   case $ac_ii in
                   73552:   c|c_r|pthread*) ;;
                   73553:   *)
                   73554:       LIBS="$LIBS -l$ac_ii"
                   73555:    ;;
                   73556:   esac
                   73557: 
                   73558: 
                   73559:     fi
                   73560:    ;;
                   73561:   esac
                   73562: 
                   73563: 
                   73564:     ;;
                   73565:     -L*)
                   73566:       ac_ii=`echo $ac_i|cut -c 3-`
                   73567: 
                   73568:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   73569: 
                   73570:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   73571:     ai_p=$ac_ii
                   73572:   else
                   73573: 
                   73574:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   73575: 
                   73576:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   73577:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   73578:   fi
                   73579: 
                   73580: 
                   73581:       if test "$ext_shared" = "yes"; then
                   73582:         LDFLAGS="-L$ai_p $LDFLAGS"
                   73583:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   73584:       else
                   73585: 
                   73586: 
                   73587: 
                   73588:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   73589: 
                   73590:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   73591:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   73592:     eval "LIBPATH$unique=set"
                   73593: 
                   73594:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   73595:     LDFLAGS="$LDFLAGS -L$ai_p"
                   73596:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   73597: 
                   73598:   fi
                   73599: 
                   73600: 
                   73601:       fi
                   73602: 
                   73603:   fi
                   73604: 
                   73605:     ;;
                   73606:     esac
                   73607:   done
                   73608: 
                   73609:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobIsTemporary in -locijdbc8" >&5
                   73610: $as_echo_n "checking for OCILobIsTemporary in -locijdbc8... " >&6; }
                   73611: if ${ac_cv_lib_ocijdbc8_OCILobIsTemporary+:} false; then :
                   73612:   $as_echo_n "(cached) " >&6
                   73613: else
                   73614:   ac_check_lib_save_LIBS=$LIBS
                   73615: LIBS="-locijdbc8  $LIBS"
                   73616: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   73617: /* end confdefs.h.  */
                   73618: 
                   73619: /* Override any GCC internal prototype to avoid an error.
                   73620:    Use char because int might match the return type of a GCC
                   73621:    builtin and then its argument prototype would still apply.  */
                   73622: #ifdef __cplusplus
                   73623: extern "C"
                   73624: #endif
                   73625: char OCILobIsTemporary ();
                   73626: int
                   73627: main ()
                   73628: {
                   73629: return OCILobIsTemporary ();
                   73630:   ;
                   73631:   return 0;
                   73632: }
                   73633: _ACEOF
                   73634: if ac_fn_c_try_link "$LINENO"; then :
                   73635:   ac_cv_lib_ocijdbc8_OCILobIsTemporary=yes
                   73636: else
                   73637:   ac_cv_lib_ocijdbc8_OCILobIsTemporary=no
                   73638: fi
                   73639: rm -f core conftest.err conftest.$ac_objext \
                   73640:     conftest$ac_exeext conftest.$ac_ext
                   73641: LIBS=$ac_check_lib_save_LIBS
                   73642: fi
                   73643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&5
                   73644: $as_echo "$ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&6; }
                   73645: if test "x$ac_cv_lib_ocijdbc8_OCILobIsTemporary" = xyes; then :
                   73646: 
                   73647:     LDFLAGS=$save_old_LDFLAGS
                   73648:     ext_shared=$save_ext_shared
                   73649: 
                   73650: 
                   73651: 
                   73652:   case ocijdbc8 in
                   73653:   c|c_r|pthread*) ;;
                   73654:   *)
                   73655:     if test "$ext_shared" = "yes"; then
                   73656:         PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -locijdbc8"
                   73657:     else
                   73658: 
                   73659: 
                   73660:   case ocijdbc8 in
                   73661:   c|c_r|pthread*) ;;
                   73662:   *)
                   73663:       LIBS="$LIBS -locijdbc8"
                   73664:    ;;
                   73665:   esac
                   73666: 
                   73667: 
                   73668:     fi
                   73669:    ;;
                   73670:   esac
                   73671: 
                   73672: 
                   73673: 
                   73674: $as_echo "#define HAVE_OCILOBISTEMPORARY 1" >>confdefs.h
                   73675: 
                   73676: 
                   73677: 
                   73678: else
                   73679: 
                   73680:     LDFLAGS=$save_old_LDFLAGS
                   73681:     ext_shared=$save_ext_shared
                   73682:     unset ac_cv_lib_ocijdbc8_OCILobIsTemporary
                   73683: 
                   73684: 
                   73685: fi
                   73686: 
                   73687: 
                   73688: 
                   73689: fi
                   73690: 
                   73691: 
                   73692: 
                   73693:   save_old_LDFLAGS=$LDFLAGS
                   73694:   ac_stuff="
                   73695:     -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
                   73696:   "
                   73697: 
                   73698:   save_ext_shared=$ext_shared
                   73699:   ext_shared=yes
                   73700: 
                   73701:   for ac_i in $ac_stuff; do
                   73702:     case $ac_i in
                   73703:     -pthread)
                   73704:       if test "$ext_shared" = "yes"; then
                   73705:         LDFLAGS="$LDFLAGS -pthread"
                   73706:       else
                   73707: 
                   73708: 
                   73709:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   73710: 
                   73711:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   73712:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   73713:     eval "EXTRA_LDFLAGS$unique=set"
                   73714:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   73715:   fi
                   73716: 
                   73717:       fi
                   73718:     ;;
                   73719:     -l*)
                   73720:       ac_ii=`echo $ac_i|cut -c 3-`
                   73721: 
                   73722: 
                   73723:   case $ac_ii in
                   73724:   c|c_r|pthread*) ;;
                   73725:   *)
                   73726:     if test "$ext_shared" = "yes"; then
                   73727:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   73728:     else
                   73729: 
                   73730: 
                   73731:   case $ac_ii in
                   73732:   c|c_r|pthread*) ;;
                   73733:   *)
                   73734:       LIBS="$LIBS -l$ac_ii"
                   73735:    ;;
                   73736:   esac
                   73737: 
                   73738: 
                   73739:     fi
                   73740:    ;;
                   73741:   esac
                   73742: 
                   73743: 
                   73744:     ;;
                   73745:     -L*)
                   73746:       ac_ii=`echo $ac_i|cut -c 3-`
                   73747: 
                   73748:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   73749: 
                   73750:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   73751:     ai_p=$ac_ii
                   73752:   else
                   73753: 
                   73754:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   73755: 
                   73756:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   73757:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   73758:   fi
                   73759: 
                   73760: 
                   73761:       if test "$ext_shared" = "yes"; then
                   73762:         LDFLAGS="-L$ai_p $LDFLAGS"
                   73763:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   73764:       else
                   73765: 
                   73766: 
                   73767: 
                   73768:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   73769: 
                   73770:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   73771:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   73772:     eval "LIBPATH$unique=set"
                   73773: 
                   73774:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   73775:     LDFLAGS="$LDFLAGS -L$ai_p"
                   73776:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   73777: 
                   73778:   fi
                   73779: 
                   73780: 
                   73781:       fi
                   73782: 
                   73783:   fi
                   73784: 
                   73785:     ;;
                   73786:     esac
                   73787:   done
                   73788: 
                   73789:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCICollAssign in -lclntsh" >&5
                   73790: $as_echo_n "checking for OCICollAssign in -lclntsh... " >&6; }
                   73791: if ${ac_cv_lib_clntsh_OCICollAssign+:} false; then :
                   73792:   $as_echo_n "(cached) " >&6
                   73793: else
                   73794:   ac_check_lib_save_LIBS=$LIBS
                   73795: LIBS="-lclntsh  $LIBS"
                   73796: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   73797: /* end confdefs.h.  */
                   73798: 
                   73799: /* Override any GCC internal prototype to avoid an error.
                   73800:    Use char because int might match the return type of a GCC
                   73801:    builtin and then its argument prototype would still apply.  */
                   73802: #ifdef __cplusplus
                   73803: extern "C"
                   73804: #endif
                   73805: char OCICollAssign ();
                   73806: int
                   73807: main ()
                   73808: {
                   73809: return OCICollAssign ();
                   73810:   ;
                   73811:   return 0;
                   73812: }
                   73813: _ACEOF
                   73814: if ac_fn_c_try_link "$LINENO"; then :
                   73815:   ac_cv_lib_clntsh_OCICollAssign=yes
                   73816: else
                   73817:   ac_cv_lib_clntsh_OCICollAssign=no
                   73818: fi
                   73819: rm -f core conftest.err conftest.$ac_objext \
                   73820:     conftest$ac_exeext conftest.$ac_ext
                   73821: LIBS=$ac_check_lib_save_LIBS
                   73822: fi
                   73823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCICollAssign" >&5
                   73824: $as_echo "$ac_cv_lib_clntsh_OCICollAssign" >&6; }
                   73825: if test "x$ac_cv_lib_clntsh_OCICollAssign" = xyes; then :
                   73826: 
                   73827:     LDFLAGS=$save_old_LDFLAGS
                   73828:     ext_shared=$save_ext_shared
                   73829: 
                   73830: 
                   73831: $as_echo "#define HAVE_OCICOLLASSIGN 1" >>confdefs.h
                   73832: 
                   73833: 
                   73834: 
                   73835: else
                   73836: 
                   73837:     LDFLAGS=$save_old_LDFLAGS
                   73838:     ext_shared=$save_ext_shared
                   73839:     unset ac_cv_lib_clntsh_OCICollAssign
                   73840: 
                   73841: 
                   73842: fi
                   73843: 
                   73844: 
                   73845: 
                   73846:   save_old_LDFLAGS=$LDFLAGS
                   73847:   ac_stuff="
                   73848:     -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
                   73849:   "
                   73850: 
                   73851:   save_ext_shared=$ext_shared
                   73852:   ext_shared=yes
                   73853: 
                   73854:   for ac_i in $ac_stuff; do
                   73855:     case $ac_i in
                   73856:     -pthread)
                   73857:       if test "$ext_shared" = "yes"; then
                   73858:         LDFLAGS="$LDFLAGS -pthread"
                   73859:       else
                   73860: 
                   73861: 
                   73862:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   73863: 
                   73864:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   73865:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   73866:     eval "EXTRA_LDFLAGS$unique=set"
                   73867:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   73868:   fi
                   73869: 
                   73870:       fi
                   73871:     ;;
                   73872:     -l*)
                   73873:       ac_ii=`echo $ac_i|cut -c 3-`
                   73874: 
                   73875: 
                   73876:   case $ac_ii in
                   73877:   c|c_r|pthread*) ;;
                   73878:   *)
                   73879:     if test "$ext_shared" = "yes"; then
                   73880:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   73881:     else
                   73882: 
                   73883: 
                   73884:   case $ac_ii in
                   73885:   c|c_r|pthread*) ;;
                   73886:   *)
                   73887:       LIBS="$LIBS -l$ac_ii"
                   73888:    ;;
                   73889:   esac
                   73890: 
                   73891: 
                   73892:     fi
                   73893:    ;;
                   73894:   esac
                   73895: 
                   73896: 
                   73897:     ;;
                   73898:     -L*)
                   73899:       ac_ii=`echo $ac_i|cut -c 3-`
                   73900: 
                   73901:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   73902: 
                   73903:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   73904:     ai_p=$ac_ii
                   73905:   else
                   73906: 
                   73907:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   73908: 
                   73909:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   73910:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   73911:   fi
                   73912: 
                   73913: 
                   73914:       if test "$ext_shared" = "yes"; then
                   73915:         LDFLAGS="-L$ai_p $LDFLAGS"
                   73916:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   73917:       else
                   73918: 
                   73919: 
                   73920: 
                   73921:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   73922: 
                   73923:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   73924:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   73925:     eval "LIBPATH$unique=set"
                   73926: 
                   73927:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   73928:     LDFLAGS="$LDFLAGS -L$ai_p"
                   73929:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   73930: 
                   73931:   fi
                   73932: 
                   73933: 
                   73934:       fi
                   73935: 
                   73936:   fi
                   73937: 
                   73938:     ;;
                   73939:     esac
                   73940:   done
                   73941: 
                   73942:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIStmtFetch2 in -lclntsh" >&5
                   73943: $as_echo_n "checking for OCIStmtFetch2 in -lclntsh... " >&6; }
                   73944: if ${ac_cv_lib_clntsh_OCIStmtFetch2+:} false; then :
                   73945:   $as_echo_n "(cached) " >&6
                   73946: else
                   73947:   ac_check_lib_save_LIBS=$LIBS
                   73948: LIBS="-lclntsh  $LIBS"
                   73949: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   73950: /* end confdefs.h.  */
                   73951: 
                   73952: /* Override any GCC internal prototype to avoid an error.
                   73953:    Use char because int might match the return type of a GCC
                   73954:    builtin and then its argument prototype would still apply.  */
                   73955: #ifdef __cplusplus
                   73956: extern "C"
                   73957: #endif
                   73958: char OCIStmtFetch2 ();
                   73959: int
                   73960: main ()
                   73961: {
                   73962: return OCIStmtFetch2 ();
                   73963:   ;
                   73964:   return 0;
                   73965: }
                   73966: _ACEOF
                   73967: if ac_fn_c_try_link "$LINENO"; then :
                   73968:   ac_cv_lib_clntsh_OCIStmtFetch2=yes
                   73969: else
                   73970:   ac_cv_lib_clntsh_OCIStmtFetch2=no
                   73971: fi
                   73972: rm -f core conftest.err conftest.$ac_objext \
                   73973:     conftest$ac_exeext conftest.$ac_ext
                   73974: LIBS=$ac_check_lib_save_LIBS
                   73975: fi
                   73976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIStmtFetch2" >&5
                   73977: $as_echo "$ac_cv_lib_clntsh_OCIStmtFetch2" >&6; }
                   73978: if test "x$ac_cv_lib_clntsh_OCIStmtFetch2" = xyes; then :
                   73979: 
                   73980:     LDFLAGS=$save_old_LDFLAGS
                   73981:     ext_shared=$save_ext_shared
                   73982: 
                   73983: 
                   73984: $as_echo "#define HAVE_OCISTMTFETCH2 1" >>confdefs.h
                   73985: 
                   73986: 
                   73987: 
                   73988: else
                   73989: 
                   73990:     LDFLAGS=$save_old_LDFLAGS
                   73991:     ext_shared=$save_ext_shared
                   73992:     unset ac_cv_lib_clntsh_OCIStmtFetch2
                   73993: 
                   73994: 
                   73995: fi
                   73996: 
                   73997: 
                   73998: 
                   73999: 
                   74000:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
                   74001: $as_echo_n "checking for PDO includes... " >&6; }
1.1.1.2 ! misho    74002: if ${pdo_cv_inc_path+:} false; then :
1.1       misho    74003:   $as_echo_n "(cached) " >&6
                   74004: else
                   74005: 
                   74006:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
                   74007: $as_echo_n "checking for PDO includes... " >&6; }
                   74008:     if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    74009:       pdo_cv_inc_path=$abs_srcdir/ext
1.1       misho    74010:     elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    74011:       pdo_cv_inc_path=$abs_srcdir/ext
1.1       misho    74012:     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    74013:       pdo_cv_inc_path=$prefix/include/php/ext
1.1       misho    74014:     fi
                   74015: 
                   74016: fi
1.1.1.2 ! misho    74017: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
        !          74018: $as_echo "$pdo_cv_inc_path" >&6; }
        !          74019:   if test -n "$pdo_cv_inc_path"; then
1.1       misho    74020: :
                   74021:   else
                   74022: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
                   74023:   fi
                   74024: 
                   74025: 
                   74026: 
                   74027: 
                   74028:   ext_builddir=ext/pdo_oci
                   74029:   ext_srcdir=$abs_srcdir/ext/pdo_oci
                   74030: 
1.1.1.2 ! misho    74031:   ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1       misho    74032: 
                   74033:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   74034:     PHP_PDO_OCI_SHARED=no
                   74035: 
                   74036: 
                   74037:   case ext/pdo_oci in
                   74038:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   74039:   /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   74040:   *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   74041:   esac
                   74042: 
                   74043: 
                   74044: 
                   74045:   b_c_pre=$php_c_pre
                   74046:   b_cxx_pre=$php_cxx_pre
                   74047:   b_c_meta=$php_c_meta
                   74048:   b_cxx_meta=$php_cxx_meta
                   74049:   b_c_post=$php_c_post
                   74050:   b_cxx_post=$php_cxx_post
                   74051:   b_lo=$php_lo
                   74052: 
                   74053: 
                   74054:   old_IFS=$IFS
                   74055:   for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
                   74056: 
                   74057:       IFS=.
                   74058:       set $ac_src
                   74059:       ac_obj=$1
                   74060:       IFS=$old_IFS
                   74061: 
                   74062:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   74063: 
                   74064:       case $ac_src in
                   74065:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   74066:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   74067:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   74068:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   74069:       esac
                   74070: 
                   74071:     cat >>Makefile.objects<<EOF
                   74072: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   74073:        $ac_comp
                   74074: EOF
                   74075:   done
                   74076: 
                   74077: 
                   74078:     EXT_STATIC="$EXT_STATIC pdo_oci"
                   74079:     if test "$ext_shared" != "nocli"; then
                   74080:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_oci"
                   74081:     fi
                   74082:   else
                   74083:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   74084:       PHP_PDO_OCI_SHARED=yes
                   74085: 
                   74086:   case ext/pdo_oci in
                   74087:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   74088:   /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   74089:   *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   74090:   esac
                   74091: 
                   74092: 
                   74093: 
                   74094:   b_c_pre=$shared_c_pre
                   74095:   b_cxx_pre=$shared_cxx_pre
                   74096:   b_c_meta=$shared_c_meta
                   74097:   b_cxx_meta=$shared_cxx_meta
                   74098:   b_c_post=$shared_c_post
                   74099:   b_cxx_post=$shared_cxx_post
                   74100:   b_lo=$shared_lo
                   74101: 
                   74102: 
                   74103:   old_IFS=$IFS
                   74104:   for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
                   74105: 
                   74106:       IFS=.
                   74107:       set $ac_src
                   74108:       ac_obj=$1
                   74109:       IFS=$old_IFS
                   74110: 
                   74111:       shared_objects_pdo_oci="$shared_objects_pdo_oci $ac_bdir$ac_obj.lo"
                   74112: 
                   74113:       case $ac_src in
                   74114:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   74115:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   74116:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   74117:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   74118:       esac
                   74119: 
                   74120:     cat >>Makefile.objects<<EOF
                   74121: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   74122:        $ac_comp
                   74123: EOF
                   74124:   done
                   74125: 
                   74126:       case $host_alias in
                   74127:         *netware*)
                   74128: 
                   74129:   install_modules="install-modules"
                   74130: 
                   74131:   case $host_alias in
                   74132:     *aix*)
                   74133:       suffix=so
                   74134:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_oci.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) $(PHPPDO_OCI_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_oci.so '$ext_builddir'/phppdo_oci.so'
                   74135:       ;;
                   74136:     *netware*)
                   74137:       suffix=nlm
                   74138:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) -L$(top_builddir)/netware -lphp5lib $(PDO_OCI_SHARED_LIBADD)'
                   74139:       ;;
                   74140:     *)
                   74141:       suffix=la
                   74142:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) $(PHPPDO_OCI_SHARED_LIBADD)'
                   74143:       ;;
                   74144:   esac
                   74145: 
                   74146:   if test "x" = "xyes"; then
                   74147:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_oci.$suffix"
                   74148:   else
                   74149:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_oci.$suffix"
                   74150:   fi
                   74151: 
                   74152:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_oci"
                   74153: 
                   74154:   cat >>Makefile.objects<<EOF
                   74155: \$(phplibdir)/phppdo_oci.$suffix: $ext_builddir/phppdo_oci.$suffix
                   74156:        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_oci.$suffix \$(phplibdir)
                   74157: 
                   74158: $ext_builddir/phppdo_oci.$suffix: \$(shared_objects_pdo_oci) \$(PHPPDO_OCI_SHARED_DEPENDENCIES)
                   74159:        $link_cmd
                   74160: 
                   74161: EOF
                   74162: 
                   74163:           ;;
                   74164:         *)
                   74165: 
                   74166:   install_modules="install-modules"
                   74167: 
                   74168:   case $host_alias in
                   74169:     *aix*)
                   74170:       suffix=so
                   74171:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_oci.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) $(PDO_OCI_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_oci.so '$ext_builddir'/pdo_oci.so'
                   74172:       ;;
                   74173:     *netware*)
                   74174:       suffix=nlm
                   74175:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) -L$(top_builddir)/netware -lphp5lib $(_OCI_SHARED_LIBADD)'
                   74176:       ;;
                   74177:     *)
                   74178:       suffix=la
                   74179:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) $(PDO_OCI_SHARED_LIBADD)'
                   74180:       ;;
                   74181:   esac
                   74182: 
                   74183:   if test "x" = "xyes"; then
                   74184:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_oci.$suffix"
                   74185:   else
                   74186:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_oci.$suffix"
                   74187:   fi
                   74188: 
                   74189:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_oci"
                   74190: 
                   74191:   cat >>Makefile.objects<<EOF
                   74192: \$(phplibdir)/pdo_oci.$suffix: $ext_builddir/pdo_oci.$suffix
                   74193:        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_oci.$suffix \$(phplibdir)
                   74194: 
                   74195: $ext_builddir/pdo_oci.$suffix: \$(shared_objects_pdo_oci) \$(PDO_OCI_SHARED_DEPENDENCIES)
                   74196:        $link_cmd
                   74197: 
                   74198: EOF
                   74199: 
                   74200:           ;;
                   74201:       esac
                   74202: 
                   74203: cat >>confdefs.h <<_ACEOF
                   74204: #define COMPILE_DL_PDO_OCI 1
                   74205: _ACEOF
                   74206: 
                   74207:     fi
                   74208:   fi
                   74209: 
                   74210:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   74211:     PHP_PDO_OCI_SHARED=no
                   74212: 
                   74213: 
                   74214:   case ext/pdo_oci in
                   74215:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   74216:   /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   74217:   *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   74218:   esac
                   74219: 
                   74220: 
                   74221: 
                   74222:   b_c_pre=$php_c_pre
                   74223:   b_cxx_pre=$php_cxx_pre
                   74224:   b_c_meta=$php_c_meta
                   74225:   b_cxx_meta=$php_cxx_meta
                   74226:   b_c_post=$php_c_post
                   74227:   b_cxx_post=$php_cxx_post
                   74228:   b_lo=$php_lo
                   74229: 
                   74230: 
                   74231:   old_IFS=$IFS
                   74232:   for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
                   74233: 
                   74234:       IFS=.
                   74235:       set $ac_src
                   74236:       ac_obj=$1
                   74237:       IFS=$old_IFS
                   74238: 
1.1.1.2 ! misho    74239:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    74240: 
                   74241:       case $ac_src in
                   74242:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   74243:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   74244:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   74245:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   74246:       esac
                   74247: 
                   74248:     cat >>Makefile.objects<<EOF
                   74249: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   74250:        $ac_comp
                   74251: EOF
                   74252:   done
                   74253: 
                   74254: 
                   74255: 
                   74256: 
                   74257:   case ext/pdo_oci in
                   74258:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   74259:   /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   74260:   *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   74261:   esac
                   74262: 
                   74263: 
                   74264: 
                   74265:   b_c_pre=$php_c_pre
                   74266:   b_cxx_pre=$php_cxx_pre
                   74267:   b_c_meta=$php_c_meta
                   74268:   b_cxx_meta=$php_cxx_meta
                   74269:   b_c_post=$php_c_post
                   74270:   b_cxx_post=$php_cxx_post
                   74271:   b_lo=$php_lo
                   74272: 
                   74273: 
                   74274:   old_IFS=$IFS
                   74275:   for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
                   74276: 
                   74277:       IFS=.
                   74278:       set $ac_src
                   74279:       ac_obj=$1
                   74280:       IFS=$old_IFS
                   74281: 
1.1.1.2 ! misho    74282:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    74283: 
                   74284:       case $ac_src in
                   74285:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   74286:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   74287:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   74288:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   74289:       esac
                   74290: 
                   74291:     cat >>Makefile.objects<<EOF
                   74292: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   74293:        $ac_comp
                   74294: EOF
                   74295:   done
                   74296: 
                   74297: 
                   74298: 
                   74299: 
                   74300:   case ext/pdo_oci in
                   74301:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   74302:   /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   74303:   *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   74304:   esac
                   74305: 
                   74306: 
                   74307: 
                   74308:   b_c_pre=$php_c_pre
                   74309:   b_cxx_pre=$php_cxx_pre
                   74310:   b_c_meta=$php_c_meta
                   74311:   b_cxx_meta=$php_cxx_meta
                   74312:   b_c_post=$php_c_post
                   74313:   b_cxx_post=$php_cxx_post
                   74314:   b_lo=$php_lo
                   74315: 
                   74316: 
                   74317:   old_IFS=$IFS
                   74318:   for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
                   74319: 
                   74320:       IFS=.
                   74321:       set $ac_src
                   74322:       ac_obj=$1
                   74323:       IFS=$old_IFS
                   74324: 
1.1.1.2 ! misho    74325:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    74326: 
                   74327:       case $ac_src in
                   74328:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   74329:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   74330:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   74331:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   74332:       esac
                   74333: 
                   74334:     cat >>Makefile.objects<<EOF
                   74335: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   74336:        $ac_comp
                   74337: EOF
                   74338:   done
                   74339: 
                   74340: 
                   74341:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_oci"
                   74342:   fi
                   74343: 
                   74344: 
                   74345:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   74346: 
                   74347: 
                   74348: 
                   74349:   if test "$ext_builddir" = "."; then
                   74350:     PHP_PECL_EXTENSION=pdo_oci
                   74351: 
                   74352:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   74353: 
                   74354:   fi
                   74355: 
                   74356: 
                   74357: 
                   74358: 
                   74359:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_SHARED_LIBADD"
                   74360: 
                   74361: 
                   74362: 
                   74363: 
                   74364: 
                   74365:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_DIR"
                   74366: 
                   74367: 
                   74368: 
                   74369: 
                   74370: 
                   74371:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_VERSION"
                   74372: 
                   74373: 
                   74374: 
                   74375: 
                   74376: 
                   74377: 
                   74378:   am_i_shared=$PHP_PDO_OCI_SHARED
                   74379:   is_it_shared=$PHP_PDO_SHARED
                   74380:   is_it_enabled=$PHP_PDO
                   74381:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   74382:     as_fn_error $? "
                   74383: You've configured extension pdo_oci to build statically, but it
                   74384: depends on extension pdo, which you've configured to build shared.
                   74385: You either need to build pdo_oci shared or build pdo statically for the
                   74386: build to be successful.
                   74387: " "$LINENO" 5
                   74388:   fi
                   74389: 
                   74390: 
                   74391: 
                   74392: 
                   74393: cat >>confdefs.h <<_ACEOF
                   74394: #define PHP_PDO_OCI_CLIENT_VERSION "$PDO_OCI_VERSION"
                   74395: _ACEOF
                   74396: 
                   74397: fi
                   74398: 
                   74399: 
                   74400: 
                   74401: 
                   74402: 
                   74403: 
                   74404: php_with_pdo_odbc=no
                   74405: 
                   74406: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC v3 support for PDO" >&5
                   74407: $as_echo_n "checking for ODBC v3 support for PDO... " >&6; }
                   74408: 
                   74409: # Check whether --with-pdo-odbc was given.
                   74410: if test "${with_pdo_odbc+set}" = set; then :
                   74411:   withval=$with_pdo_odbc; PHP_PDO_ODBC=$withval
                   74412: else
                   74413: 
                   74414:   PHP_PDO_ODBC=no
                   74415:   test "$PHP_ENABLE_ALL" && PHP_PDO_ODBC=$PHP_ENABLE_ALL
                   74416: 
                   74417: fi
                   74418: 
                   74419: 
                   74420: 
                   74421: ext_output="yes, shared"
                   74422: ext_shared=yes
                   74423: case $PHP_PDO_ODBC in
                   74424: shared,*)
                   74425:   PHP_PDO_ODBC=`echo "$PHP_PDO_ODBC"|$SED 's/^shared,//'`
                   74426:   ;;
                   74427: shared)
                   74428:   PHP_PDO_ODBC=yes
                   74429:   ;;
                   74430: no)
                   74431:   ext_output=no
                   74432:   ext_shared=no
                   74433:   ;;
                   74434: *)
                   74435:   ext_output=yes
                   74436:   ext_shared=no
                   74437:   ;;
                   74438: esac
                   74439: 
                   74440: 
                   74441: 
                   74442: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   74443: $as_echo "$ext_output" >&6; }
                   74444: 
                   74445: 
                   74446: 
                   74447: 
                   74448: 
                   74449: 
                   74450: 
                   74451: if test "$PHP_PDO_ODBC" != "no"; then
                   74452: 
                   74453:   if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
                   74454:     as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
                   74455:   fi
                   74456: 
                   74457: 
                   74458: 
                   74459:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
                   74460: $as_echo_n "checking for PDO includes... " >&6; }
1.1.1.2 ! misho    74461: if ${pdo_cv_inc_path+:} false; then :
1.1       misho    74462:   $as_echo_n "(cached) " >&6
                   74463: else
                   74464: 
                   74465:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
                   74466: $as_echo_n "checking for PDO includes... " >&6; }
                   74467:     if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    74468:       pdo_cv_inc_path=$abs_srcdir/ext
1.1       misho    74469:     elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    74470:       pdo_cv_inc_path=$abs_srcdir/ext
1.1       misho    74471:     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    74472:       pdo_cv_inc_path=$prefix/include/php/ext
1.1       misho    74473:     fi
                   74474: 
                   74475: fi
1.1.1.2 ! misho    74476: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
        !          74477: $as_echo "$pdo_cv_inc_path" >&6; }
        !          74478:   if test -n "$pdo_cv_inc_path"; then
1.1       misho    74479: :
                   74480:   else
                   74481: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
                   74482:   fi
                   74483: 
                   74484: 
                   74485: 
                   74486:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selected PDO ODBC flavour" >&5
                   74487: $as_echo_n "checking for selected PDO ODBC flavour... " >&6; }
                   74488: 
                   74489:   pdo_odbc_flavour="`echo $PHP_PDO_ODBC | cut -d, -f1`"
                   74490:   pdo_odbc_dir="`echo $PHP_PDO_ODBC | cut -d, -f2`"
                   74491: 
                   74492:   if test "$pdo_odbc_dir" = "$PHP_PDO_ODBC" ; then
                   74493:     pdo_odbc_dir=
                   74494:   fi
                   74495: 
                   74496:   case $pdo_odbc_flavour in
                   74497:     ibm-db2)
                   74498:         pdo_odbc_def_libdir=/home/db2inst1/sqllib/lib
                   74499:         pdo_odbc_def_incdir=/home/db2inst1/sqllib/include
                   74500:         pdo_odbc_def_lib=db2
                   74501:         ;;
                   74502: 
                   74503:     iODBC|iodbc)
                   74504:         pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR
                   74505:         pdo_odbc_def_incdir=/usr/local/include
                   74506:         pdo_odbc_def_lib=iodbc
                   74507:         ;;
                   74508: 
                   74509:     unixODBC|unixodbc)
                   74510:         pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR
                   74511:         pdo_odbc_def_incdir=/usr/local/include
                   74512:         pdo_odbc_def_lib=odbc
                   74513:         ;;
                   74514: 
                   74515:     ODBCRouter|odbcrouter)
                   74516:         pdo_odbc_def_libdir=/usr/$PHP_LIBDIR
                   74517:         pdo_odbc_def_incdir=/usr/include
                   74518:         pdo_odbc_def_lib=odbcsdk
                   74519:         ;;
                   74520: 
                   74521:     generic)
                   74522:         pdo_odbc_def_lib="`echo $PHP_PDO_ODBC | cut -d, -f3`"
                   74523:         pdo_odbc_def_ldflags="`echo $PHP_PDO_ODBC | cut -d, -f4`"
                   74524:         pdo_odbc_def_cflags="`echo $PHP_PDO_ODBC | cut -d, -f5`"
                   74525:         pdo_odbc_flavour="generic-$pdo_odbc_def_lib"
                   74526:         ;;
                   74527: 
                   74528:       *)
                   74529:         as_fn_error $? "Unknown ODBC flavour $pdo_odbc_flavour
                   74530:                             include and lib dirs are looked for under 'dir'.
                   74531: 
                   74532:                             'flavour' can be one of:  ibm-db2, iODBC, unixODBC, generic
                   74533:                             If ',dir' part is omitted, default for the flavour
                   74534:                             you have selected will used. e.g.:
                   74535: 
                   74536:                               --with-pdo-odbc=unixODBC
                   74537: 
                   74538:                             will check for unixODBC under /usr/local. You may attempt
                   74539:                             to use an otherwise unsupported driver using the \"generic\"
                   74540:                             flavour.  The syntax for generic ODBC support is:
                   74541: 
                   74542:                               --with-pdo-odbc=generic,dir,libname,ldflags,cflags
                   74543: 
                   74544:                             When build as shared the extension filename is always pdo_odbc.so" "$LINENO" 5
                   74545:         ;;
                   74546:   esac
                   74547: 
                   74548:   if test -n "$pdo_odbc_dir"; then
                   74549:     PDO_ODBC_INCDIR="$pdo_odbc_dir/include"
                   74550:     PDO_ODBC_LIBDIR="$pdo_odbc_dir/$PHP_LIBDIR"
                   74551:   else
                   74552:     PDO_ODBC_INCDIR="$pdo_odbc_def_incdir"
                   74553:     PDO_ODBC_LIBDIR="$pdo_odbc_def_libdir"
                   74554:   fi
                   74555: 
                   74556:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_odbc_flavour
                   74557:           libs       $PDO_ODBC_LIBDIR,
                   74558:           headers    $PDO_ODBC_INCDIR" >&5
                   74559: $as_echo "$pdo_odbc_flavour
                   74560:           libs       $PDO_ODBC_LIBDIR,
                   74561:           headers    $PDO_ODBC_INCDIR" >&6; }
                   74562: 
                   74563:   if test ! -d "$PDO_ODBC_LIBDIR" ; then
                   74564:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&5
                   74565: $as_echo "$as_me: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&2;}
                   74566:   fi
                   74567: 
                   74568: 
                   74569:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc.h in $PDO_ODBC_INCDIR" >&5
                   74570: $as_echo_n "checking for odbc.h in $PDO_ODBC_INCDIR... " >&6; }
                   74571:   if test -f "$PDO_ODBC_INCDIR/odbc.h"; then
                   74572:     php_pdo_have_header=yes
                   74573: 
                   74574: $as_echo "#define HAVE_ODBC_H 1" >>confdefs.h
                   74575: 
                   74576:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74577: $as_echo "yes" >&6; }
                   74578:   else
                   74579:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74580: $as_echo "no" >&6; }
                   74581:   fi
                   74582: 
                   74583: 
                   74584:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbcsdk.h in $PDO_ODBC_INCDIR" >&5
                   74585: $as_echo_n "checking for odbcsdk.h in $PDO_ODBC_INCDIR... " >&6; }
                   74586:   if test -f "$PDO_ODBC_INCDIR/odbcsdk.h"; then
                   74587:     php_pdo_have_header=yes
                   74588: 
                   74589: $as_echo "#define HAVE_ODBCSDK_H 1" >>confdefs.h
                   74590: 
                   74591:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74592: $as_echo "yes" >&6; }
                   74593:   else
                   74594:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74595: $as_echo "no" >&6; }
                   74596:   fi
                   74597: 
                   74598: 
                   74599:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iodbc.h in $PDO_ODBC_INCDIR" >&5
                   74600: $as_echo_n "checking for iodbc.h in $PDO_ODBC_INCDIR... " >&6; }
                   74601:   if test -f "$PDO_ODBC_INCDIR/iodbc.h"; then
                   74602:     php_pdo_have_header=yes
                   74603: 
                   74604: $as_echo "#define HAVE_IODBC_H 1" >>confdefs.h
                   74605: 
                   74606:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74607: $as_echo "yes" >&6; }
                   74608:   else
                   74609:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74610: $as_echo "no" >&6; }
                   74611:   fi
                   74612: 
                   74613: 
                   74614:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlunix.h in $PDO_ODBC_INCDIR" >&5
                   74615: $as_echo_n "checking for sqlunix.h in $PDO_ODBC_INCDIR... " >&6; }
                   74616:   if test -f "$PDO_ODBC_INCDIR/sqlunix.h"; then
                   74617:     php_pdo_have_header=yes
                   74618: 
                   74619: $as_echo "#define HAVE_SQLUNIX_H 1" >>confdefs.h
                   74620: 
                   74621:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74622: $as_echo "yes" >&6; }
                   74623:   else
                   74624:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74625: $as_echo "no" >&6; }
                   74626:   fi
                   74627: 
                   74628: 
                   74629:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqltypes.h in $PDO_ODBC_INCDIR" >&5
                   74630: $as_echo_n "checking for sqltypes.h in $PDO_ODBC_INCDIR... " >&6; }
                   74631:   if test -f "$PDO_ODBC_INCDIR/sqltypes.h"; then
                   74632:     php_pdo_have_header=yes
                   74633: 
                   74634: $as_echo "#define HAVE_SQLTYPES_H 1" >>confdefs.h
                   74635: 
                   74636:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74637: $as_echo "yes" >&6; }
                   74638:   else
                   74639:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74640: $as_echo "no" >&6; }
                   74641:   fi
                   74642: 
                   74643: 
                   74644:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlucode.h in $PDO_ODBC_INCDIR" >&5
                   74645: $as_echo_n "checking for sqlucode.h in $PDO_ODBC_INCDIR... " >&6; }
                   74646:   if test -f "$PDO_ODBC_INCDIR/sqlucode.h"; then
                   74647:     php_pdo_have_header=yes
                   74648: 
                   74649: $as_echo "#define HAVE_SQLUCODE_H 1" >>confdefs.h
                   74650: 
                   74651:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74652: $as_echo "yes" >&6; }
                   74653:   else
                   74654:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74655: $as_echo "no" >&6; }
                   74656:   fi
                   74657: 
                   74658: 
                   74659:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sql.h in $PDO_ODBC_INCDIR" >&5
                   74660: $as_echo_n "checking for sql.h in $PDO_ODBC_INCDIR... " >&6; }
                   74661:   if test -f "$PDO_ODBC_INCDIR/sql.h"; then
                   74662:     php_pdo_have_header=yes
                   74663: 
                   74664: $as_echo "#define HAVE_SQL_H 1" >>confdefs.h
                   74665: 
                   74666:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74667: $as_echo "yes" >&6; }
                   74668:   else
                   74669:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74670: $as_echo "no" >&6; }
                   74671:   fi
                   74672: 
                   74673: 
                   74674:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isql.h in $PDO_ODBC_INCDIR" >&5
                   74675: $as_echo_n "checking for isql.h in $PDO_ODBC_INCDIR... " >&6; }
                   74676:   if test -f "$PDO_ODBC_INCDIR/isql.h"; then
                   74677:     php_pdo_have_header=yes
                   74678: 
                   74679: $as_echo "#define HAVE_ISQL_H 1" >>confdefs.h
                   74680: 
                   74681:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74682: $as_echo "yes" >&6; }
                   74683:   else
                   74684:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74685: $as_echo "no" >&6; }
                   74686:   fi
                   74687: 
                   74688: 
                   74689:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlext.h in $PDO_ODBC_INCDIR" >&5
                   74690: $as_echo_n "checking for sqlext.h in $PDO_ODBC_INCDIR... " >&6; }
                   74691:   if test -f "$PDO_ODBC_INCDIR/sqlext.h"; then
                   74692:     php_pdo_have_header=yes
                   74693: 
                   74694: $as_echo "#define HAVE_SQLEXT_H 1" >>confdefs.h
                   74695: 
                   74696:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74697: $as_echo "yes" >&6; }
                   74698:   else
                   74699:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74700: $as_echo "no" >&6; }
                   74701:   fi
                   74702: 
                   74703: 
                   74704:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isqlext.h in $PDO_ODBC_INCDIR" >&5
                   74705: $as_echo_n "checking for isqlext.h in $PDO_ODBC_INCDIR... " >&6; }
                   74706:   if test -f "$PDO_ODBC_INCDIR/isqlext.h"; then
                   74707:     php_pdo_have_header=yes
                   74708: 
                   74709: $as_echo "#define HAVE_ISQLEXT_H 1" >>confdefs.h
                   74710: 
                   74711:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74712: $as_echo "yes" >&6; }
                   74713:   else
                   74714:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74715: $as_echo "no" >&6; }
                   74716:   fi
                   74717: 
                   74718: 
                   74719:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udbcext.h in $PDO_ODBC_INCDIR" >&5
                   74720: $as_echo_n "checking for udbcext.h in $PDO_ODBC_INCDIR... " >&6; }
                   74721:   if test -f "$PDO_ODBC_INCDIR/udbcext.h"; then
                   74722:     php_pdo_have_header=yes
                   74723: 
                   74724: $as_echo "#define HAVE_UDBCEXT_H 1" >>confdefs.h
                   74725: 
                   74726:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74727: $as_echo "yes" >&6; }
                   74728:   else
                   74729:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74730: $as_echo "no" >&6; }
                   74731:   fi
                   74732: 
                   74733: 
                   74734:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlcli1.h in $PDO_ODBC_INCDIR" >&5
                   74735: $as_echo_n "checking for sqlcli1.h in $PDO_ODBC_INCDIR... " >&6; }
                   74736:   if test -f "$PDO_ODBC_INCDIR/sqlcli1.h"; then
                   74737:     php_pdo_have_header=yes
                   74738: 
                   74739: $as_echo "#define HAVE_SQLCLI1_H 1" >>confdefs.h
                   74740: 
                   74741:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74742: $as_echo "yes" >&6; }
                   74743:   else
                   74744:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74745: $as_echo "no" >&6; }
                   74746:   fi
                   74747: 
                   74748: 
                   74749:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibraryManager.h in $PDO_ODBC_INCDIR" >&5
                   74750: $as_echo_n "checking for LibraryManager.h in $PDO_ODBC_INCDIR... " >&6; }
                   74751:   if test -f "$PDO_ODBC_INCDIR/LibraryManager.h"; then
                   74752:     php_pdo_have_header=yes
                   74753: 
                   74754: $as_echo "#define HAVE_LIBRARYMANAGER_H 1" >>confdefs.h
                   74755: 
                   74756:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74757: $as_echo "yes" >&6; }
                   74758:   else
                   74759:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74760: $as_echo "no" >&6; }
                   74761:   fi
                   74762: 
                   74763: 
                   74764:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0core.h in $PDO_ODBC_INCDIR" >&5
                   74765: $as_echo_n "checking for cli0core.h in $PDO_ODBC_INCDIR... " >&6; }
                   74766:   if test -f "$PDO_ODBC_INCDIR/cli0core.h"; then
                   74767:     php_pdo_have_header=yes
                   74768: 
                   74769: $as_echo "#define HAVE_CLI0CORE_H 1" >>confdefs.h
                   74770: 
                   74771:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74772: $as_echo "yes" >&6; }
                   74773:   else
                   74774:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74775: $as_echo "no" >&6; }
                   74776:   fi
                   74777: 
                   74778: 
                   74779:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0ext.h in $PDO_ODBC_INCDIR" >&5
                   74780: $as_echo_n "checking for cli0ext.h in $PDO_ODBC_INCDIR... " >&6; }
                   74781:   if test -f "$PDO_ODBC_INCDIR/cli0ext.h"; then
                   74782:     php_pdo_have_header=yes
                   74783: 
                   74784: $as_echo "#define HAVE_CLI0EXT_H 1" >>confdefs.h
                   74785: 
                   74786:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74787: $as_echo "yes" >&6; }
                   74788:   else
                   74789:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74790: $as_echo "no" >&6; }
                   74791:   fi
                   74792: 
                   74793: 
                   74794:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0cli.h in $PDO_ODBC_INCDIR" >&5
                   74795: $as_echo_n "checking for cli0cli.h in $PDO_ODBC_INCDIR... " >&6; }
                   74796:   if test -f "$PDO_ODBC_INCDIR/cli0cli.h"; then
                   74797:     php_pdo_have_header=yes
                   74798: 
                   74799: $as_echo "#define HAVE_CLI0CLI_H 1" >>confdefs.h
                   74800: 
                   74801:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74802: $as_echo "yes" >&6; }
                   74803:   else
                   74804:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74805: $as_echo "no" >&6; }
                   74806:   fi
                   74807: 
                   74808: 
                   74809:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0defs.h in $PDO_ODBC_INCDIR" >&5
                   74810: $as_echo_n "checking for cli0defs.h in $PDO_ODBC_INCDIR... " >&6; }
                   74811:   if test -f "$PDO_ODBC_INCDIR/cli0defs.h"; then
                   74812:     php_pdo_have_header=yes
                   74813: 
                   74814: $as_echo "#define HAVE_CLI0DEFS_H 1" >>confdefs.h
                   74815: 
                   74816:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74817: $as_echo "yes" >&6; }
                   74818:   else
                   74819:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74820: $as_echo "no" >&6; }
                   74821:   fi
                   74822: 
                   74823: 
                   74824:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0env.h in $PDO_ODBC_INCDIR" >&5
                   74825: $as_echo_n "checking for cli0env.h in $PDO_ODBC_INCDIR... " >&6; }
                   74826:   if test -f "$PDO_ODBC_INCDIR/cli0env.h"; then
                   74827:     php_pdo_have_header=yes
                   74828: 
                   74829: $as_echo "#define HAVE_CLI0ENV_H 1" >>confdefs.h
                   74830: 
                   74831:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   74832: $as_echo "yes" >&6; }
                   74833:   else
                   74834:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   74835: $as_echo "no" >&6; }
                   74836:   fi
                   74837: 
                   74838: 
                   74839:   if test "$php_pdo_have_header" != "yes"; then
                   74840:     as_fn_error $? "Cannot find header file(s) for pdo_odbc" "$LINENO" 5
                   74841:   fi
                   74842: 
                   74843:   PDO_ODBC_INCLUDE="$pdo_odbc_def_cflags -I$PDO_ODBC_INCDIR -DPDO_ODBC_TYPE=\\\"$pdo_odbc_flavour\\\""
                   74844:   PDO_ODBC_LDFLAGS="$pdo_odbc_def_ldflags -L$PDO_ODBC_LIBDIR -l$pdo_odbc_def_lib"
                   74845: 
                   74846: 
                   74847:   for ac_i in $PDO_ODBC_LDFLAGS; do
                   74848:     case $ac_i in
                   74849:     -pthread)
                   74850:       if test "$ext_shared" = "yes"; then
                   74851:         PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -pthread"
                   74852:       else
                   74853: 
                   74854: 
                   74855:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   74856: 
                   74857:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   74858:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   74859:     eval "EXTRA_LDFLAGS$unique=set"
                   74860:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   74861:   fi
                   74862: 
                   74863:       fi
                   74864:     ;;
                   74865:     -l*)
                   74866:       ac_ii=`echo $ac_i|cut -c 3-`
                   74867: 
                   74868: 
                   74869:   case $ac_ii in
                   74870:   c|c_r|pthread*) ;;
                   74871:   *)
                   74872:     if test "$ext_shared" = "yes"; then
                   74873:         PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -l$ac_ii"
                   74874:     else
                   74875: 
                   74876: 
                   74877:   case $ac_ii in
                   74878:   c|c_r|pthread*) ;;
                   74879:   *)
                   74880:       LIBS="$LIBS -l$ac_ii"
                   74881:    ;;
                   74882:   esac
                   74883: 
                   74884: 
                   74885:     fi
                   74886:    ;;
                   74887:   esac
                   74888: 
                   74889: 
                   74890:     ;;
                   74891:     -L*)
                   74892:       ac_ii=`echo $ac_i|cut -c 3-`
                   74893: 
                   74894:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   74895: 
                   74896:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   74897:     ai_p=$ac_ii
                   74898:   else
                   74899: 
                   74900:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   74901: 
                   74902:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   74903:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   74904:   fi
                   74905: 
                   74906: 
                   74907:       if test "$ext_shared" = "yes"; then
                   74908:         PDO_ODBC_SHARED_LIBADD="-L$ai_p $PDO_ODBC_SHARED_LIBADD"
                   74909:         test -n "$ld_runpath_switch" && PDO_ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_ODBC_SHARED_LIBADD"
                   74910:       else
                   74911: 
                   74912: 
                   74913: 
                   74914:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   74915: 
                   74916:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   74917:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   74918:     eval "LIBPATH$unique=set"
                   74919: 
                   74920:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   74921:     LDFLAGS="$LDFLAGS -L$ai_p"
                   74922:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   74923: 
                   74924:   fi
                   74925: 
                   74926: 
                   74927:       fi
                   74928: 
                   74929:   fi
                   74930: 
                   74931:     ;;
                   74932:     esac
                   74933:   done
                   74934: 
                   74935: 
                   74936: 
                   74937:   save_old_LDFLAGS=$LDFLAGS
                   74938:   ac_stuff="$PDO_ODBC_LDFLAGS"
                   74939: 
                   74940:   save_ext_shared=$ext_shared
                   74941:   ext_shared=yes
                   74942: 
                   74943:   for ac_i in $ac_stuff; do
                   74944:     case $ac_i in
                   74945:     -pthread)
                   74946:       if test "$ext_shared" = "yes"; then
                   74947:         LDFLAGS="$LDFLAGS -pthread"
                   74948:       else
                   74949: 
                   74950: 
                   74951:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   74952: 
                   74953:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   74954:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   74955:     eval "EXTRA_LDFLAGS$unique=set"
                   74956:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   74957:   fi
                   74958: 
                   74959:       fi
                   74960:     ;;
                   74961:     -l*)
                   74962:       ac_ii=`echo $ac_i|cut -c 3-`
                   74963: 
                   74964: 
                   74965:   case $ac_ii in
                   74966:   c|c_r|pthread*) ;;
                   74967:   *)
                   74968:     if test "$ext_shared" = "yes"; then
                   74969:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   74970:     else
                   74971: 
                   74972: 
                   74973:   case $ac_ii in
                   74974:   c|c_r|pthread*) ;;
                   74975:   *)
                   74976:       LIBS="$LIBS -l$ac_ii"
                   74977:    ;;
                   74978:   esac
                   74979: 
                   74980: 
                   74981:     fi
                   74982:    ;;
                   74983:   esac
                   74984: 
                   74985: 
                   74986:     ;;
                   74987:     -L*)
                   74988:       ac_ii=`echo $ac_i|cut -c 3-`
                   74989: 
                   74990:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   74991: 
                   74992:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   74993:     ai_p=$ac_ii
                   74994:   else
                   74995: 
                   74996:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   74997: 
                   74998:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   74999:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   75000:   fi
                   75001: 
                   75002: 
                   75003:       if test "$ext_shared" = "yes"; then
                   75004:         LDFLAGS="-L$ai_p $LDFLAGS"
                   75005:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   75006:       else
                   75007: 
                   75008: 
                   75009: 
                   75010:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   75011: 
                   75012:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   75013:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   75014:     eval "LIBPATH$unique=set"
                   75015: 
                   75016:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   75017:     LDFLAGS="$LDFLAGS -L$ai_p"
                   75018:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   75019: 
                   75020:   fi
                   75021: 
                   75022: 
                   75023:       fi
                   75024: 
                   75025:   fi
                   75026: 
                   75027:     ;;
                   75028:     esac
                   75029:   done
                   75030: 
                   75031:   as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLBindCol" | $as_tr_sh`
                   75032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLBindCol in -l$pdo_odbc_def_lib" >&5
                   75033: $as_echo_n "checking for SQLBindCol in -l$pdo_odbc_def_lib... " >&6; }
                   75034: if eval \${$as_ac_Lib+:} false; then :
                   75035:   $as_echo_n "(cached) " >&6
                   75036: else
                   75037:   ac_check_lib_save_LIBS=$LIBS
                   75038: LIBS="-l$pdo_odbc_def_lib  $LIBS"
                   75039: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   75040: /* end confdefs.h.  */
                   75041: 
                   75042: /* Override any GCC internal prototype to avoid an error.
                   75043:    Use char because int might match the return type of a GCC
                   75044:    builtin and then its argument prototype would still apply.  */
                   75045: #ifdef __cplusplus
                   75046: extern "C"
                   75047: #endif
                   75048: char SQLBindCol ();
                   75049: int
                   75050: main ()
                   75051: {
                   75052: return SQLBindCol ();
                   75053:   ;
                   75054:   return 0;
                   75055: }
                   75056: _ACEOF
                   75057: if ac_fn_c_try_link "$LINENO"; then :
                   75058:   eval "$as_ac_Lib=yes"
                   75059: else
                   75060:   eval "$as_ac_Lib=no"
                   75061: fi
                   75062: rm -f core conftest.err conftest.$ac_objext \
                   75063:     conftest$ac_exeext conftest.$ac_ext
                   75064: LIBS=$ac_check_lib_save_LIBS
                   75065: fi
                   75066: eval ac_res=\$$as_ac_Lib
                   75067:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   75068: $as_echo "$ac_res" >&6; }
                   75069: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   75070: 
                   75071:     LDFLAGS=$save_old_LDFLAGS
                   75072:     ext_shared=$save_ext_shared
                   75073: 
                   75074: 
                   75075:   save_old_LDFLAGS=$LDFLAGS
                   75076:   ac_stuff="$PDO_ODBC_LDFLAGS"
                   75077: 
                   75078:   save_ext_shared=$ext_shared
                   75079:   ext_shared=yes
                   75080: 
                   75081:   for ac_i in $ac_stuff; do
                   75082:     case $ac_i in
                   75083:     -pthread)
                   75084:       if test "$ext_shared" = "yes"; then
                   75085:         LDFLAGS="$LDFLAGS -pthread"
                   75086:       else
                   75087: 
                   75088: 
                   75089:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   75090: 
                   75091:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   75092:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   75093:     eval "EXTRA_LDFLAGS$unique=set"
                   75094:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   75095:   fi
                   75096: 
                   75097:       fi
                   75098:     ;;
                   75099:     -l*)
                   75100:       ac_ii=`echo $ac_i|cut -c 3-`
                   75101: 
                   75102: 
                   75103:   case $ac_ii in
                   75104:   c|c_r|pthread*) ;;
                   75105:   *)
                   75106:     if test "$ext_shared" = "yes"; then
                   75107:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   75108:     else
                   75109: 
                   75110: 
                   75111:   case $ac_ii in
                   75112:   c|c_r|pthread*) ;;
                   75113:   *)
                   75114:       LIBS="$LIBS -l$ac_ii"
                   75115:    ;;
                   75116:   esac
                   75117: 
                   75118: 
                   75119:     fi
                   75120:    ;;
                   75121:   esac
                   75122: 
                   75123: 
                   75124:     ;;
                   75125:     -L*)
                   75126:       ac_ii=`echo $ac_i|cut -c 3-`
                   75127: 
                   75128:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   75129: 
                   75130:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   75131:     ai_p=$ac_ii
                   75132:   else
                   75133: 
                   75134:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   75135: 
                   75136:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   75137:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   75138:   fi
                   75139: 
                   75140: 
                   75141:       if test "$ext_shared" = "yes"; then
                   75142:         LDFLAGS="-L$ai_p $LDFLAGS"
                   75143:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   75144:       else
                   75145: 
                   75146: 
                   75147: 
                   75148:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   75149: 
                   75150:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   75151:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   75152:     eval "LIBPATH$unique=set"
                   75153: 
                   75154:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   75155:     LDFLAGS="$LDFLAGS -L$ai_p"
                   75156:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   75157: 
                   75158:   fi
                   75159: 
                   75160: 
                   75161:       fi
                   75162: 
                   75163:   fi
                   75164: 
                   75165:     ;;
                   75166:     esac
                   75167:   done
                   75168: 
                   75169:   as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLAllocHandle" | $as_tr_sh`
                   75170: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -l$pdo_odbc_def_lib" >&5
                   75171: $as_echo_n "checking for SQLAllocHandle in -l$pdo_odbc_def_lib... " >&6; }
                   75172: if eval \${$as_ac_Lib+:} false; then :
                   75173:   $as_echo_n "(cached) " >&6
                   75174: else
                   75175:   ac_check_lib_save_LIBS=$LIBS
                   75176: LIBS="-l$pdo_odbc_def_lib  $LIBS"
                   75177: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   75178: /* end confdefs.h.  */
                   75179: 
                   75180: /* Override any GCC internal prototype to avoid an error.
                   75181:    Use char because int might match the return type of a GCC
                   75182:    builtin and then its argument prototype would still apply.  */
                   75183: #ifdef __cplusplus
                   75184: extern "C"
                   75185: #endif
                   75186: char SQLAllocHandle ();
                   75187: int
                   75188: main ()
                   75189: {
                   75190: return SQLAllocHandle ();
                   75191:   ;
                   75192:   return 0;
                   75193: }
                   75194: _ACEOF
                   75195: if ac_fn_c_try_link "$LINENO"; then :
                   75196:   eval "$as_ac_Lib=yes"
                   75197: else
                   75198:   eval "$as_ac_Lib=no"
                   75199: fi
                   75200: rm -f core conftest.err conftest.$ac_objext \
                   75201:     conftest$ac_exeext conftest.$ac_ext
                   75202: LIBS=$ac_check_lib_save_LIBS
                   75203: fi
                   75204: eval ac_res=\$$as_ac_Lib
                   75205:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   75206: $as_echo "$ac_res" >&6; }
                   75207: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   75208: 
                   75209:     LDFLAGS=$save_old_LDFLAGS
                   75210:     ext_shared=$save_ext_shared
                   75211: 
                   75212: 
                   75213: else
                   75214: 
                   75215:     LDFLAGS=$save_old_LDFLAGS
                   75216:     ext_shared=$save_ext_shared
                   75217:     unset ac_cv_lib_$pdo_odbc_def_lib_SQLAllocHandle
                   75218: 
                   75219:       as_fn_error $? "
                   75220: Your ODBC library does not appear to be ODBC 3 compatible.
                   75221: You should consider using iODBC or unixODBC instead, and loading your
                   75222: libraries as a driver in that environment; it will emulate the
                   75223: functions required for PDO support.
                   75224: " "$LINENO" 5
                   75225: 
                   75226: fi
                   75227: 
                   75228: 
                   75229: 
                   75230: else
                   75231: 
                   75232:     LDFLAGS=$save_old_LDFLAGS
                   75233:     ext_shared=$save_ext_shared
                   75234:     unset ac_cv_lib_$pdo_odbc_def_lib_SQLBindCol
                   75235: 
                   75236:     as_fn_error $? "Your ODBC library does not exist or there was an error. Check config.log for more information" "$LINENO" 5
                   75237: 
                   75238: 
                   75239: fi
                   75240: 
                   75241: 
                   75242: 
                   75243:   ext_builddir=ext/pdo_odbc
                   75244:   ext_srcdir=$abs_srcdir/ext/pdo_odbc
                   75245: 
1.1.1.2 ! misho    75246:   ac_extra=`echo "-I$pdo_cv_inc_path $PDO_ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1       misho    75247: 
                   75248:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   75249:     PHP_PDO_ODBC_SHARED=no
                   75250: 
                   75251: 
                   75252:   case ext/pdo_odbc in
                   75253:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   75254:   /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   75255:   *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   75256:   esac
                   75257: 
                   75258: 
                   75259: 
                   75260:   b_c_pre=$php_c_pre
                   75261:   b_cxx_pre=$php_cxx_pre
                   75262:   b_c_meta=$php_c_meta
                   75263:   b_cxx_meta=$php_cxx_meta
                   75264:   b_c_post=$php_c_post
                   75265:   b_cxx_post=$php_cxx_post
                   75266:   b_lo=$php_lo
                   75267: 
                   75268: 
                   75269:   old_IFS=$IFS
                   75270:   for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
                   75271: 
                   75272:       IFS=.
                   75273:       set $ac_src
                   75274:       ac_obj=$1
                   75275:       IFS=$old_IFS
                   75276: 
                   75277:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   75278: 
                   75279:       case $ac_src in
                   75280:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   75281:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   75282:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   75283:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   75284:       esac
                   75285: 
                   75286:     cat >>Makefile.objects<<EOF
                   75287: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   75288:        $ac_comp
                   75289: EOF
                   75290:   done
                   75291: 
                   75292: 
                   75293:     EXT_STATIC="$EXT_STATIC pdo_odbc"
                   75294:     if test "$ext_shared" != "nocli"; then
                   75295:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_odbc"
                   75296:     fi
                   75297:   else
                   75298:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   75299:       PHP_PDO_ODBC_SHARED=yes
                   75300: 
                   75301:   case ext/pdo_odbc in
                   75302:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   75303:   /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   75304:   *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   75305:   esac
                   75306: 
                   75307: 
                   75308: 
                   75309:   b_c_pre=$shared_c_pre
                   75310:   b_cxx_pre=$shared_cxx_pre
                   75311:   b_c_meta=$shared_c_meta
                   75312:   b_cxx_meta=$shared_cxx_meta
                   75313:   b_c_post=$shared_c_post
                   75314:   b_cxx_post=$shared_cxx_post
                   75315:   b_lo=$shared_lo
                   75316: 
                   75317: 
                   75318:   old_IFS=$IFS
                   75319:   for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
                   75320: 
                   75321:       IFS=.
                   75322:       set $ac_src
                   75323:       ac_obj=$1
                   75324:       IFS=$old_IFS
                   75325: 
                   75326:       shared_objects_pdo_odbc="$shared_objects_pdo_odbc $ac_bdir$ac_obj.lo"
                   75327: 
                   75328:       case $ac_src in
                   75329:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   75330:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   75331:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   75332:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   75333:       esac
                   75334: 
                   75335:     cat >>Makefile.objects<<EOF
                   75336: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   75337:        $ac_comp
                   75338: EOF
                   75339:   done
                   75340: 
                   75341:       case $host_alias in
                   75342:         *netware*)
                   75343: 
                   75344:   install_modules="install-modules"
                   75345: 
                   75346:   case $host_alias in
                   75347:     *aix*)
                   75348:       suffix=so
                   75349:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_odbc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) $(PHPPDO_ODBC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_odbc.so '$ext_builddir'/phppdo_odbc.so'
                   75350:       ;;
                   75351:     *netware*)
                   75352:       suffix=nlm
                   75353:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) -L$(top_builddir)/netware -lphp5lib $(PDO_ODBC_SHARED_LIBADD)'
                   75354:       ;;
                   75355:     *)
                   75356:       suffix=la
                   75357:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) $(PHPPDO_ODBC_SHARED_LIBADD)'
                   75358:       ;;
                   75359:   esac
                   75360: 
                   75361:   if test "x" = "xyes"; then
                   75362:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_odbc.$suffix"
                   75363:   else
                   75364:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_odbc.$suffix"
                   75365:   fi
                   75366: 
                   75367:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_odbc"
                   75368: 
                   75369:   cat >>Makefile.objects<<EOF
                   75370: \$(phplibdir)/phppdo_odbc.$suffix: $ext_builddir/phppdo_odbc.$suffix
                   75371:        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_odbc.$suffix \$(phplibdir)
                   75372: 
                   75373: $ext_builddir/phppdo_odbc.$suffix: \$(shared_objects_pdo_odbc) \$(PHPPDO_ODBC_SHARED_DEPENDENCIES)
                   75374:        $link_cmd
                   75375: 
                   75376: EOF
                   75377: 
                   75378:           ;;
                   75379:         *)
                   75380: 
                   75381:   install_modules="install-modules"
                   75382: 
                   75383:   case $host_alias in
                   75384:     *aix*)
                   75385:       suffix=so
                   75386:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_odbc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) $(PDO_ODBC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_odbc.so '$ext_builddir'/pdo_odbc.so'
                   75387:       ;;
                   75388:     *netware*)
                   75389:       suffix=nlm
                   75390:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) -L$(top_builddir)/netware -lphp5lib $(_ODBC_SHARED_LIBADD)'
                   75391:       ;;
                   75392:     *)
                   75393:       suffix=la
                   75394:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) $(PDO_ODBC_SHARED_LIBADD)'
                   75395:       ;;
                   75396:   esac
                   75397: 
                   75398:   if test "x" = "xyes"; then
                   75399:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_odbc.$suffix"
                   75400:   else
                   75401:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_odbc.$suffix"
                   75402:   fi
                   75403: 
                   75404:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_odbc"
                   75405: 
                   75406:   cat >>Makefile.objects<<EOF
                   75407: \$(phplibdir)/pdo_odbc.$suffix: $ext_builddir/pdo_odbc.$suffix
                   75408:        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_odbc.$suffix \$(phplibdir)
                   75409: 
                   75410: $ext_builddir/pdo_odbc.$suffix: \$(shared_objects_pdo_odbc) \$(PDO_ODBC_SHARED_DEPENDENCIES)
                   75411:        $link_cmd
                   75412: 
                   75413: EOF
                   75414: 
                   75415:           ;;
                   75416:       esac
                   75417: 
                   75418: cat >>confdefs.h <<_ACEOF
                   75419: #define COMPILE_DL_PDO_ODBC 1
                   75420: _ACEOF
                   75421: 
                   75422:     fi
                   75423:   fi
                   75424: 
                   75425:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   75426:     PHP_PDO_ODBC_SHARED=no
                   75427: 
                   75428: 
                   75429:   case ext/pdo_odbc in
                   75430:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   75431:   /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   75432:   *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   75433:   esac
                   75434: 
                   75435: 
                   75436: 
                   75437:   b_c_pre=$php_c_pre
                   75438:   b_cxx_pre=$php_cxx_pre
                   75439:   b_c_meta=$php_c_meta
                   75440:   b_cxx_meta=$php_cxx_meta
                   75441:   b_c_post=$php_c_post
                   75442:   b_cxx_post=$php_cxx_post
                   75443:   b_lo=$php_lo
                   75444: 
                   75445: 
                   75446:   old_IFS=$IFS
                   75447:   for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
                   75448: 
                   75449:       IFS=.
                   75450:       set $ac_src
                   75451:       ac_obj=$1
                   75452:       IFS=$old_IFS
                   75453: 
1.1.1.2 ! misho    75454:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    75455: 
                   75456:       case $ac_src in
                   75457:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   75458:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   75459:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   75460:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   75461:       esac
                   75462: 
                   75463:     cat >>Makefile.objects<<EOF
                   75464: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   75465:        $ac_comp
                   75466: EOF
                   75467:   done
                   75468: 
                   75469: 
                   75470: 
                   75471: 
                   75472:   case ext/pdo_odbc in
                   75473:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   75474:   /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   75475:   *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   75476:   esac
                   75477: 
                   75478: 
                   75479: 
                   75480:   b_c_pre=$php_c_pre
                   75481:   b_cxx_pre=$php_cxx_pre
                   75482:   b_c_meta=$php_c_meta
                   75483:   b_cxx_meta=$php_cxx_meta
                   75484:   b_c_post=$php_c_post
                   75485:   b_cxx_post=$php_cxx_post
                   75486:   b_lo=$php_lo
                   75487: 
                   75488: 
                   75489:   old_IFS=$IFS
                   75490:   for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
                   75491: 
                   75492:       IFS=.
                   75493:       set $ac_src
                   75494:       ac_obj=$1
                   75495:       IFS=$old_IFS
                   75496: 
1.1.1.2 ! misho    75497:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    75498: 
                   75499:       case $ac_src in
                   75500:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   75501:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   75502:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   75503:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   75504:       esac
                   75505: 
                   75506:     cat >>Makefile.objects<<EOF
                   75507: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   75508:        $ac_comp
                   75509: EOF
                   75510:   done
                   75511: 
                   75512: 
                   75513: 
                   75514: 
                   75515:   case ext/pdo_odbc in
                   75516:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   75517:   /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   75518:   *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   75519:   esac
                   75520: 
                   75521: 
                   75522: 
                   75523:   b_c_pre=$php_c_pre
                   75524:   b_cxx_pre=$php_cxx_pre
                   75525:   b_c_meta=$php_c_meta
                   75526:   b_cxx_meta=$php_cxx_meta
                   75527:   b_c_post=$php_c_post
                   75528:   b_cxx_post=$php_cxx_post
                   75529:   b_lo=$php_lo
                   75530: 
                   75531: 
                   75532:   old_IFS=$IFS
                   75533:   for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
                   75534: 
                   75535:       IFS=.
                   75536:       set $ac_src
                   75537:       ac_obj=$1
                   75538:       IFS=$old_IFS
                   75539: 
1.1.1.2 ! misho    75540:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    75541: 
                   75542:       case $ac_src in
                   75543:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   75544:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   75545:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   75546:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   75547:       esac
                   75548: 
                   75549:     cat >>Makefile.objects<<EOF
                   75550: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   75551:        $ac_comp
                   75552: EOF
                   75553:   done
                   75554: 
                   75555: 
                   75556:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_odbc"
                   75557:   fi
                   75558: 
                   75559: 
                   75560:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   75561: 
                   75562: 
                   75563: 
                   75564:   if test "$ext_builddir" = "."; then
                   75565:     PHP_PECL_EXTENSION=pdo_odbc
                   75566: 
                   75567:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   75568: 
                   75569:   fi
                   75570: 
                   75571: 
                   75572:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_ODBC_SHARED_LIBADD"
                   75573: 
                   75574: 
                   75575: 
                   75576:   am_i_shared=$PHP_PDO_ODBC_SHARED
                   75577:   is_it_shared=$PHP_PDO_SHARED
                   75578:   is_it_enabled=$PHP_PDO
                   75579:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   75580:     as_fn_error $? "
                   75581: You've configured extension pdo_odbc to build statically, but it
                   75582: depends on extension pdo, which you've configured to build shared.
                   75583: You either need to build pdo_odbc shared or build pdo statically for the
                   75584: build to be successful.
                   75585: " "$LINENO" 5
                   75586:   fi
                   75587: 
                   75588: 
                   75589: fi
                   75590: 
                   75591: 
                   75592: 
                   75593: php_with_pdo_pgsql=no
                   75594: 
                   75595: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support for PDO" >&5
                   75596: $as_echo_n "checking for PostgreSQL support for PDO... " >&6; }
                   75597: 
                   75598: # Check whether --with-pdo-pgsql was given.
                   75599: if test "${with_pdo_pgsql+set}" = set; then :
                   75600:   withval=$with_pdo_pgsql; PHP_PDO_PGSQL=$withval
                   75601: else
                   75602: 
                   75603:   PHP_PDO_PGSQL=no
                   75604:   test "$PHP_ENABLE_ALL" && PHP_PDO_PGSQL=$PHP_ENABLE_ALL
                   75605: 
                   75606: fi
                   75607: 
                   75608: 
                   75609: 
                   75610: ext_output="yes, shared"
                   75611: ext_shared=yes
                   75612: case $PHP_PDO_PGSQL in
                   75613: shared,*)
                   75614:   PHP_PDO_PGSQL=`echo "$PHP_PDO_PGSQL"|$SED 's/^shared,//'`
                   75615:   ;;
                   75616: shared)
                   75617:   PHP_PDO_PGSQL=yes
                   75618:   ;;
                   75619: no)
                   75620:   ext_output=no
                   75621:   ext_shared=no
                   75622:   ;;
                   75623: *)
                   75624:   ext_output=yes
                   75625:   ext_shared=no
                   75626:   ;;
                   75627: esac
                   75628: 
                   75629: 
                   75630: 
                   75631: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   75632: $as_echo "$ext_output" >&6; }
                   75633: 
                   75634: 
                   75635: 
                   75636: 
                   75637: if test "$PHP_PDO_PGSQL" != "no"; then
                   75638: 
                   75639:   if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
                   75640:     as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
                   75641:   fi
                   75642: 
                   75643: 
                   75644:   if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
                   75645:     PGSQL_INCLUDE=$PGSQL_INCLUDE
                   75646:   else
                   75647: 
                   75648:     ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
                   75649: 
                   75650:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   75651:     PGSQL_INCLUDE="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
                   75652:   fi
                   75653: 
                   75654: 
                   75655:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5
                   75656: $as_echo_n "checking for pg_config... " >&6; }
                   75657:   for i in $PHP_PDO_PGSQL $PHP_PDO_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do
                   75658:     if test -x $i/pg_config; then
                   75659:       PG_CONFIG="$i/pg_config"
                   75660:       break;
                   75661:     fi
                   75662:   done
                   75663: 
                   75664:   if test -n "$PG_CONFIG"; then
                   75665:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
                   75666: $as_echo "$PG_CONFIG" >&6; }
                   75667:     PGSQL_INCLUDE=`$PG_CONFIG --includedir`
                   75668:     PGSQL_LIBDIR=`$PG_CONFIG --libdir`
                   75669: 
                   75670: $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
                   75671: 
                   75672:   else
                   75673:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   75674: $as_echo "not found" >&6; }
                   75675:     if test "$PHP_PDO_PGSQL" = "yes"; then
                   75676:       PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql"
                   75677:     else
                   75678:       PGSQL_SEARCH_PATHS=$PHP_PDO_PGSQL
                   75679:     fi
                   75680: 
                   75681:     for i in $PGSQL_SEARCH_PATHS; do
                   75682:       for j in include include/pgsql include/postgres include/postgresql ""; do
                   75683:         if test -r "$i/$j/libpq-fe.h"; then
                   75684:           PGSQL_INC_BASE=$i
                   75685:           PGSQL_INCLUDE=$i/$j
                   75686:           if test -r "$i/$j/pg_config.h"; then
                   75687: 
                   75688: $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
                   75689: 
                   75690:           fi
                   75691:         fi
                   75692:       done
                   75693: 
                   75694:       for j in $PHP_LIBDIR $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do
                   75695:         if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then
                   75696:           PGSQL_LIBDIR=$i/$j
                   75697:         fi
                   75698:       done
                   75699:     done
                   75700:   fi
                   75701: 
                   75702:   if test -z "$PGSQL_INCLUDE"; then
                   75703:     as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5
                   75704:   fi
                   75705: 
                   75706:   if test -z "$PGSQL_LIBDIR"; then
                   75707:     as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5
                   75708:   fi
                   75709: 
                   75710:   if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then
                   75711:     as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5
                   75712:   fi
                   75713: 
                   75714: 
                   75715: $as_echo "#define HAVE_PDO_PGSQL 1" >>confdefs.h
                   75716: 
                   75717: 
                   75718:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl dependencies" >&5
                   75719: $as_echo_n "checking for openssl dependencies... " >&6; }
                   75720:   grep openssl $PGSQL_INCLUDE/libpq-fe.h >/dev/null 2>&1
                   75721:   if test $? -eq 0 ; then
                   75722:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   75723: $as_echo "yes" >&6; }
                   75724:         # Extract the first word of "pkg-config", so it can be a program name with args.
                   75725: set dummy pkg-config; ac_word=$2
                   75726: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   75727: $as_echo_n "checking for $ac_word... " >&6; }
                   75728: if ${ac_cv_path_PKG_CONFIG+:} false; then :
                   75729:   $as_echo_n "(cached) " >&6
                   75730: else
                   75731:   case $PKG_CONFIG in
                   75732:   [\\/]* | ?:[\\/]*)
                   75733:   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
                   75734:   ;;
                   75735:   *)
                   75736:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   75737: for as_dir in $PATH
                   75738: do
                   75739:   IFS=$as_save_IFS
                   75740:   test -z "$as_dir" && as_dir=.
                   75741:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    75742:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    75743:     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
                   75744:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   75745:     break 2
                   75746:   fi
                   75747: done
                   75748:   done
                   75749: IFS=$as_save_IFS
                   75750: 
                   75751:   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
                   75752:   ;;
                   75753: esac
                   75754: fi
                   75755: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
                   75756: if test -n "$PKG_CONFIG"; then
                   75757:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
                   75758: $as_echo "$PKG_CONFIG" >&6; }
                   75759: else
                   75760:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   75761: $as_echo "no" >&6; }
                   75762: fi
                   75763: 
                   75764: 
                   75765:     if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
                   75766:       PDO_PGSQL_CFLAGS=`$PKG_CONFIG openssl --cflags`
                   75767:     fi
                   75768:   else
                   75769:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   75770: $as_echo "no" >&6; }
                   75771:   fi
                   75772: 
                   75773:   old_LIBS=$LIBS
                   75774:   old_LDFLAGS=$LDFLAGS
                   75775:   LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS"
                   75776:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQparameterStatus in -lpq" >&5
                   75777: $as_echo_n "checking for PQparameterStatus in -lpq... " >&6; }
                   75778: if ${ac_cv_lib_pq_PQparameterStatus+:} false; then :
                   75779:   $as_echo_n "(cached) " >&6
                   75780: else
                   75781:   ac_check_lib_save_LIBS=$LIBS
                   75782: LIBS="-lpq  $LIBS"
                   75783: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   75784: /* end confdefs.h.  */
                   75785: 
                   75786: /* Override any GCC internal prototype to avoid an error.
                   75787:    Use char because int might match the return type of a GCC
                   75788:    builtin and then its argument prototype would still apply.  */
                   75789: #ifdef __cplusplus
                   75790: extern "C"
                   75791: #endif
                   75792: char PQparameterStatus ();
                   75793: int
                   75794: main ()
                   75795: {
                   75796: return PQparameterStatus ();
                   75797:   ;
                   75798:   return 0;
                   75799: }
                   75800: _ACEOF
                   75801: if ac_fn_c_try_link "$LINENO"; then :
                   75802:   ac_cv_lib_pq_PQparameterStatus=yes
                   75803: else
                   75804:   ac_cv_lib_pq_PQparameterStatus=no
                   75805: fi
                   75806: rm -f core conftest.err conftest.$ac_objext \
                   75807:     conftest$ac_exeext conftest.$ac_ext
                   75808: LIBS=$ac_check_lib_save_LIBS
                   75809: fi
                   75810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQparameterStatus" >&5
                   75811: $as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; }
                   75812: if test "x$ac_cv_lib_pq_PQparameterStatus" = xyes; then :
                   75813: 
                   75814: $as_echo "#define HAVE_PQPARAMETERSTATUS 1" >>confdefs.h
                   75815: 
                   75816: else
                   75817: 
                   75818:     echo "Unable to build the PDO PostgreSQL driver: libpq 7.4+ is required"
                   75819:     exit 1
                   75820: 
                   75821: fi
                   75822: 
                   75823: 
                   75824:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5
                   75825: $as_echo_n "checking for PQprepare in -lpq... " >&6; }
                   75826: if ${ac_cv_lib_pq_PQprepare+:} false; then :
                   75827:   $as_echo_n "(cached) " >&6
                   75828: else
                   75829:   ac_check_lib_save_LIBS=$LIBS
                   75830: LIBS="-lpq  $LIBS"
                   75831: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   75832: /* end confdefs.h.  */
                   75833: 
                   75834: /* Override any GCC internal prototype to avoid an error.
                   75835:    Use char because int might match the return type of a GCC
                   75836:    builtin and then its argument prototype would still apply.  */
                   75837: #ifdef __cplusplus
                   75838: extern "C"
                   75839: #endif
                   75840: char PQprepare ();
                   75841: int
                   75842: main ()
                   75843: {
                   75844: return PQprepare ();
                   75845:   ;
                   75846:   return 0;
                   75847: }
                   75848: _ACEOF
                   75849: if ac_fn_c_try_link "$LINENO"; then :
                   75850:   ac_cv_lib_pq_PQprepare=yes
                   75851: else
                   75852:   ac_cv_lib_pq_PQprepare=no
                   75853: fi
                   75854: rm -f core conftest.err conftest.$ac_objext \
                   75855:     conftest$ac_exeext conftest.$ac_ext
                   75856: LIBS=$ac_check_lib_save_LIBS
                   75857: fi
                   75858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5
                   75859: $as_echo "$ac_cv_lib_pq_PQprepare" >&6; }
                   75860: if test "x$ac_cv_lib_pq_PQprepare" = xyes; then :
                   75861: 
                   75862: $as_echo "#define HAVE_PQPREPARE 1" >>confdefs.h
                   75863: 
                   75864: fi
                   75865: 
                   75866:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
                   75867: $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
                   75868: if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then :
                   75869:   $as_echo_n "(cached) " >&6
                   75870: else
                   75871:   ac_check_lib_save_LIBS=$LIBS
                   75872: LIBS="-lpq  $LIBS"
                   75873: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   75874: /* end confdefs.h.  */
                   75875: 
                   75876: /* Override any GCC internal prototype to avoid an error.
                   75877:    Use char because int might match the return type of a GCC
                   75878:    builtin and then its argument prototype would still apply.  */
                   75879: #ifdef __cplusplus
                   75880: extern "C"
                   75881: #endif
                   75882: char PQescapeStringConn ();
                   75883: int
                   75884: main ()
                   75885: {
                   75886: return PQescapeStringConn ();
                   75887:   ;
                   75888:   return 0;
                   75889: }
                   75890: _ACEOF
                   75891: if ac_fn_c_try_link "$LINENO"; then :
                   75892:   ac_cv_lib_pq_PQescapeStringConn=yes
                   75893: else
                   75894:   ac_cv_lib_pq_PQescapeStringConn=no
                   75895: fi
                   75896: rm -f core conftest.err conftest.$ac_objext \
                   75897:     conftest$ac_exeext conftest.$ac_ext
                   75898: LIBS=$ac_check_lib_save_LIBS
                   75899: fi
                   75900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
                   75901: $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
                   75902: if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then :
                   75903: 
                   75904: $as_echo "#define HAVE_PQESCAPE_CONN 1" >>confdefs.h
                   75905: 
                   75906: fi
                   75907: 
                   75908:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5
                   75909: $as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; }
                   75910: if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then :
                   75911:   $as_echo_n "(cached) " >&6
                   75912: else
                   75913:   ac_check_lib_save_LIBS=$LIBS
                   75914: LIBS="-lpq  $LIBS"
                   75915: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   75916: /* end confdefs.h.  */
                   75917: 
                   75918: /* Override any GCC internal prototype to avoid an error.
                   75919:    Use char because int might match the return type of a GCC
                   75920:    builtin and then its argument prototype would still apply.  */
                   75921: #ifdef __cplusplus
                   75922: extern "C"
                   75923: #endif
                   75924: char PQescapeByteaConn ();
                   75925: int
                   75926: main ()
                   75927: {
                   75928: return PQescapeByteaConn ();
                   75929:   ;
                   75930:   return 0;
                   75931: }
                   75932: _ACEOF
                   75933: if ac_fn_c_try_link "$LINENO"; then :
                   75934:   ac_cv_lib_pq_PQescapeByteaConn=yes
                   75935: else
                   75936:   ac_cv_lib_pq_PQescapeByteaConn=no
                   75937: fi
                   75938: rm -f core conftest.err conftest.$ac_objext \
                   75939:     conftest$ac_exeext conftest.$ac_ext
                   75940: LIBS=$ac_check_lib_save_LIBS
                   75941: fi
                   75942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5
                   75943: $as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; }
                   75944: if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then :
                   75945: 
                   75946: $as_echo "#define HAVE_PQESCAPE_BYTEA_CONN 1" >>confdefs.h
                   75947: 
                   75948: fi
                   75949: 
                   75950: 
                   75951:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5
                   75952: $as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; }
                   75953: if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then :
                   75954:   $as_echo_n "(cached) " >&6
                   75955: else
                   75956:   ac_check_lib_save_LIBS=$LIBS
                   75957: LIBS="-lpq  $LIBS"
                   75958: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   75959: /* end confdefs.h.  */
                   75960: 
                   75961: /* Override any GCC internal prototype to avoid an error.
                   75962:    Use char because int might match the return type of a GCC
                   75963:    builtin and then its argument prototype would still apply.  */
                   75964: #ifdef __cplusplus
                   75965: extern "C"
                   75966: #endif
                   75967: char pg_encoding_to_char ();
                   75968: int
                   75969: main ()
                   75970: {
                   75971: return pg_encoding_to_char ();
                   75972:   ;
                   75973:   return 0;
                   75974: }
                   75975: _ACEOF
                   75976: if ac_fn_c_try_link "$LINENO"; then :
                   75977:   ac_cv_lib_pq_pg_encoding_to_char=yes
                   75978: else
                   75979:   ac_cv_lib_pq_pg_encoding_to_char=no
                   75980: fi
                   75981: rm -f core conftest.err conftest.$ac_objext \
                   75982:     conftest$ac_exeext conftest.$ac_ext
                   75983: LIBS=$ac_check_lib_save_LIBS
                   75984: fi
                   75985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5
                   75986: $as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; }
                   75987: if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then :
                   75988: 
                   75989: $as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h
                   75990: 
                   75991: fi
                   75992: 
                   75993: 
                   75994: 
                   75995:   LIBS=$old_LIBS
                   75996:   LDFLAGS=$old_LDFLAGS
                   75997: 
                   75998: 
                   75999: 
                   76000:   if test "$ext_shared" = "yes"; then
                   76001:     PDO_PGSQL_SHARED_LIBADD="-lpq $PDO_PGSQL_SHARED_LIBADD"
                   76002:     if test -n "$PGSQL_LIBDIR"; then
                   76003: 
                   76004:   if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
                   76005: 
                   76006:   if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
                   76007:     ai_p=$PGSQL_LIBDIR
                   76008:   else
                   76009: 
                   76010:     ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   76011: 
                   76012:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   76013:     ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
                   76014:   fi
                   76015: 
                   76016: 
                   76017:       if test "$ext_shared" = "yes"; then
                   76018:         PDO_PGSQL_SHARED_LIBADD="-L$ai_p $PDO_PGSQL_SHARED_LIBADD"
                   76019:         test -n "$ld_runpath_switch" && PDO_PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_PGSQL_SHARED_LIBADD"
                   76020:       else
                   76021: 
                   76022: 
                   76023: 
                   76024:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   76025: 
                   76026:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   76027:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   76028:     eval "LIBPATH$unique=set"
                   76029: 
                   76030:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   76031:     LDFLAGS="$LDFLAGS -L$ai_p"
                   76032:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   76033: 
                   76034:   fi
                   76035: 
                   76036: 
                   76037:       fi
                   76038: 
                   76039:   fi
                   76040: 
                   76041:     fi
                   76042:   else
                   76043: 
                   76044: 
                   76045:   if test -n "$PGSQL_LIBDIR"; then
                   76046: 
                   76047:   if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
                   76048: 
                   76049:   if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
                   76050:     ai_p=$PGSQL_LIBDIR
                   76051:   else
                   76052: 
                   76053:     ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   76054: 
                   76055:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   76056:     ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
                   76057:   fi
                   76058: 
                   76059: 
                   76060: 
                   76061: 
                   76062: 
                   76063:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   76064: 
                   76065:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   76066:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   76067:     eval "LIBPATH$unique=set"
                   76068: 
                   76069:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   76070:     LDFLAGS="$LDFLAGS -L$ai_p"
                   76071:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   76072: 
                   76073:   fi
                   76074: 
                   76075: 
                   76076: 
                   76077:   fi
                   76078: 
                   76079:   fi
                   76080: 
                   76081: 
                   76082:   case pq in
                   76083:   c|c_r|pthread*) ;;
                   76084:   *)
                   76085:       LIBS="-lpq $LIBS"
                   76086:    ;;
                   76087:   esac
                   76088: 
                   76089: 
                   76090: 
                   76091: 
                   76092:   fi
                   76093: 
                   76094: 
                   76095: 
                   76096:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_PGSQL_SHARED_LIBADD"
                   76097: 
                   76098: 
                   76099: 
                   76100:   if test "$PGSQL_INCLUDE" != "/usr/include"; then
                   76101: 
                   76102:   if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
                   76103:     ai_p=$PGSQL_INCLUDE
                   76104:   else
                   76105: 
                   76106:     ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
                   76107: 
                   76108:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   76109:     ai_p="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
                   76110:   fi
                   76111: 
                   76112: 
                   76113: 
                   76114:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   76115: 
                   76116:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   76117:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   76118:     eval "INCLUDEPATH$unique=set"
                   76119: 
                   76120:       if test ""; then
                   76121:         INCLUDES="-I$ai_p $INCLUDES"
                   76122:       else
                   76123:         INCLUDES="$INCLUDES -I$ai_p"
                   76124:       fi
                   76125: 
                   76126:   fi
                   76127: 
                   76128:   fi
                   76129: 
                   76130: 
                   76131: 
                   76132: 
                   76133:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
                   76134: $as_echo_n "checking for PDO includes... " >&6; }
1.1.1.2 ! misho    76135: if ${pdo_cv_inc_path+:} false; then :
1.1       misho    76136:   $as_echo_n "(cached) " >&6
                   76137: else
                   76138: 
                   76139:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
                   76140: $as_echo_n "checking for PDO includes... " >&6; }
                   76141:     if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    76142:       pdo_cv_inc_path=$abs_srcdir/ext
1.1       misho    76143:     elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    76144:       pdo_cv_inc_path=$abs_srcdir/ext
1.1       misho    76145:     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    76146:       pdo_cv_inc_path=$prefix/include/php/ext
1.1       misho    76147:     fi
                   76148: 
                   76149: fi
1.1.1.2 ! misho    76150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
        !          76151: $as_echo "$pdo_cv_inc_path" >&6; }
        !          76152:   if test -n "$pdo_cv_inc_path"; then
1.1       misho    76153: :
                   76154:   else
                   76155: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
                   76156:   fi
                   76157: 
                   76158: 
                   76159: 
                   76160: 
                   76161:   ext_builddir=ext/pdo_pgsql
                   76162:   ext_srcdir=$abs_srcdir/ext/pdo_pgsql
                   76163: 
1.1.1.2 ! misho    76164:   ac_extra=`echo "-I$pdo_cv_inc_path $PDO_PGSQL_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1       misho    76165: 
                   76166:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   76167:     PHP_PDO_PGSQL_SHARED=no
                   76168: 
                   76169: 
                   76170:   case ext/pdo_pgsql in
                   76171:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   76172:   /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   76173:   *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   76174:   esac
                   76175: 
                   76176: 
                   76177: 
                   76178:   b_c_pre=$php_c_pre
                   76179:   b_cxx_pre=$php_cxx_pre
                   76180:   b_c_meta=$php_c_meta
                   76181:   b_cxx_meta=$php_cxx_meta
                   76182:   b_c_post=$php_c_post
                   76183:   b_cxx_post=$php_cxx_post
                   76184:   b_lo=$php_lo
                   76185: 
                   76186: 
                   76187:   old_IFS=$IFS
                   76188:   for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
                   76189: 
                   76190:       IFS=.
                   76191:       set $ac_src
                   76192:       ac_obj=$1
                   76193:       IFS=$old_IFS
                   76194: 
                   76195:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   76196: 
                   76197:       case $ac_src in
                   76198:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   76199:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   76200:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   76201:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   76202:       esac
                   76203: 
                   76204:     cat >>Makefile.objects<<EOF
                   76205: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   76206:        $ac_comp
                   76207: EOF
                   76208:   done
                   76209: 
                   76210: 
                   76211:     EXT_STATIC="$EXT_STATIC pdo_pgsql"
                   76212:     if test "$ext_shared" != "nocli"; then
                   76213:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_pgsql"
                   76214:     fi
                   76215:   else
                   76216:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   76217:       PHP_PDO_PGSQL_SHARED=yes
                   76218: 
                   76219:   case ext/pdo_pgsql in
                   76220:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   76221:   /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   76222:   *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   76223:   esac
                   76224: 
                   76225: 
                   76226: 
                   76227:   b_c_pre=$shared_c_pre
                   76228:   b_cxx_pre=$shared_cxx_pre
                   76229:   b_c_meta=$shared_c_meta
                   76230:   b_cxx_meta=$shared_cxx_meta
                   76231:   b_c_post=$shared_c_post
                   76232:   b_cxx_post=$shared_cxx_post
                   76233:   b_lo=$shared_lo
                   76234: 
                   76235: 
                   76236:   old_IFS=$IFS
                   76237:   for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
                   76238: 
                   76239:       IFS=.
                   76240:       set $ac_src
                   76241:       ac_obj=$1
                   76242:       IFS=$old_IFS
                   76243: 
                   76244:       shared_objects_pdo_pgsql="$shared_objects_pdo_pgsql $ac_bdir$ac_obj.lo"
                   76245: 
                   76246:       case $ac_src in
                   76247:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   76248:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   76249:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   76250:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   76251:       esac
                   76252: 
                   76253:     cat >>Makefile.objects<<EOF
                   76254: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   76255:        $ac_comp
                   76256: EOF
                   76257:   done
                   76258: 
                   76259:       case $host_alias in
                   76260:         *netware*)
                   76261: 
                   76262:   install_modules="install-modules"
                   76263: 
                   76264:   case $host_alias in
                   76265:     *aix*)
                   76266:       suffix=so
                   76267:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_pgsql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) $(PHPPDO_PGSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_pgsql.so '$ext_builddir'/phppdo_pgsql.so'
                   76268:       ;;
                   76269:     *netware*)
                   76270:       suffix=nlm
                   76271:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) -L$(top_builddir)/netware -lphp5lib $(PDO_PGSQL_SHARED_LIBADD)'
                   76272:       ;;
                   76273:     *)
                   76274:       suffix=la
                   76275:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) $(PHPPDO_PGSQL_SHARED_LIBADD)'
                   76276:       ;;
                   76277:   esac
                   76278: 
                   76279:   if test "x" = "xyes"; then
                   76280:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_pgsql.$suffix"
                   76281:   else
                   76282:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_pgsql.$suffix"
                   76283:   fi
                   76284: 
                   76285:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_pgsql"
                   76286: 
                   76287:   cat >>Makefile.objects<<EOF
                   76288: \$(phplibdir)/phppdo_pgsql.$suffix: $ext_builddir/phppdo_pgsql.$suffix
                   76289:        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_pgsql.$suffix \$(phplibdir)
                   76290: 
                   76291: $ext_builddir/phppdo_pgsql.$suffix: \$(shared_objects_pdo_pgsql) \$(PHPPDO_PGSQL_SHARED_DEPENDENCIES)
                   76292:        $link_cmd
                   76293: 
                   76294: EOF
                   76295: 
                   76296:           ;;
                   76297:         *)
                   76298: 
                   76299:   install_modules="install-modules"
                   76300: 
                   76301:   case $host_alias in
                   76302:     *aix*)
                   76303:       suffix=so
                   76304:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_pgsql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) $(PDO_PGSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_pgsql.so '$ext_builddir'/pdo_pgsql.so'
                   76305:       ;;
                   76306:     *netware*)
                   76307:       suffix=nlm
                   76308:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) -L$(top_builddir)/netware -lphp5lib $(_PGSQL_SHARED_LIBADD)'
                   76309:       ;;
                   76310:     *)
                   76311:       suffix=la
                   76312:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) $(PDO_PGSQL_SHARED_LIBADD)'
                   76313:       ;;
                   76314:   esac
                   76315: 
                   76316:   if test "x" = "xyes"; then
                   76317:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_pgsql.$suffix"
                   76318:   else
                   76319:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_pgsql.$suffix"
                   76320:   fi
                   76321: 
                   76322:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_pgsql"
                   76323: 
                   76324:   cat >>Makefile.objects<<EOF
                   76325: \$(phplibdir)/pdo_pgsql.$suffix: $ext_builddir/pdo_pgsql.$suffix
                   76326:        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_pgsql.$suffix \$(phplibdir)
                   76327: 
                   76328: $ext_builddir/pdo_pgsql.$suffix: \$(shared_objects_pdo_pgsql) \$(PDO_PGSQL_SHARED_DEPENDENCIES)
                   76329:        $link_cmd
                   76330: 
                   76331: EOF
                   76332: 
                   76333:           ;;
                   76334:       esac
                   76335: 
                   76336: cat >>confdefs.h <<_ACEOF
                   76337: #define COMPILE_DL_PDO_PGSQL 1
                   76338: _ACEOF
                   76339: 
                   76340:     fi
                   76341:   fi
                   76342: 
                   76343:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   76344:     PHP_PDO_PGSQL_SHARED=no
                   76345: 
                   76346: 
                   76347:   case ext/pdo_pgsql in
                   76348:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   76349:   /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   76350:   *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   76351:   esac
                   76352: 
                   76353: 
                   76354: 
                   76355:   b_c_pre=$php_c_pre
                   76356:   b_cxx_pre=$php_cxx_pre
                   76357:   b_c_meta=$php_c_meta
                   76358:   b_cxx_meta=$php_cxx_meta
                   76359:   b_c_post=$php_c_post
                   76360:   b_cxx_post=$php_cxx_post
                   76361:   b_lo=$php_lo
                   76362: 
                   76363: 
                   76364:   old_IFS=$IFS
                   76365:   for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
                   76366: 
                   76367:       IFS=.
                   76368:       set $ac_src
                   76369:       ac_obj=$1
                   76370:       IFS=$old_IFS
                   76371: 
1.1.1.2 ! misho    76372:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    76373: 
                   76374:       case $ac_src in
                   76375:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   76376:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   76377:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   76378:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   76379:       esac
                   76380: 
                   76381:     cat >>Makefile.objects<<EOF
                   76382: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   76383:        $ac_comp
                   76384: EOF
                   76385:   done
                   76386: 
                   76387: 
                   76388: 
                   76389: 
                   76390:   case ext/pdo_pgsql in
                   76391:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   76392:   /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   76393:   *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   76394:   esac
                   76395: 
                   76396: 
                   76397: 
                   76398:   b_c_pre=$php_c_pre
                   76399:   b_cxx_pre=$php_cxx_pre
                   76400:   b_c_meta=$php_c_meta
                   76401:   b_cxx_meta=$php_cxx_meta
                   76402:   b_c_post=$php_c_post
                   76403:   b_cxx_post=$php_cxx_post
                   76404:   b_lo=$php_lo
                   76405: 
                   76406: 
                   76407:   old_IFS=$IFS
                   76408:   for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
                   76409: 
                   76410:       IFS=.
                   76411:       set $ac_src
                   76412:       ac_obj=$1
                   76413:       IFS=$old_IFS
                   76414: 
1.1.1.2 ! misho    76415:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    76416: 
                   76417:       case $ac_src in
                   76418:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   76419:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   76420:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   76421:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   76422:       esac
                   76423: 
                   76424:     cat >>Makefile.objects<<EOF
                   76425: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   76426:        $ac_comp
                   76427: EOF
                   76428:   done
                   76429: 
                   76430: 
                   76431: 
                   76432: 
                   76433:   case ext/pdo_pgsql in
                   76434:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   76435:   /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   76436:   *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   76437:   esac
                   76438: 
                   76439: 
                   76440: 
                   76441:   b_c_pre=$php_c_pre
                   76442:   b_cxx_pre=$php_cxx_pre
                   76443:   b_c_meta=$php_c_meta
                   76444:   b_cxx_meta=$php_cxx_meta
                   76445:   b_c_post=$php_c_post
                   76446:   b_cxx_post=$php_cxx_post
                   76447:   b_lo=$php_lo
                   76448: 
                   76449: 
                   76450:   old_IFS=$IFS
                   76451:   for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
                   76452: 
                   76453:       IFS=.
                   76454:       set $ac_src
                   76455:       ac_obj=$1
                   76456:       IFS=$old_IFS
                   76457: 
1.1.1.2 ! misho    76458:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    76459: 
                   76460:       case $ac_src in
                   76461:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   76462:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   76463:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   76464:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   76465:       esac
                   76466: 
                   76467:     cat >>Makefile.objects<<EOF
                   76468: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   76469:        $ac_comp
                   76470: EOF
                   76471:   done
                   76472: 
                   76473: 
                   76474:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_pgsql"
                   76475:   fi
                   76476: 
                   76477: 
                   76478:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   76479: 
                   76480: 
                   76481: 
                   76482:   if test "$ext_builddir" = "."; then
                   76483:     PHP_PECL_EXTENSION=pdo_pgsql
                   76484: 
                   76485:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   76486: 
                   76487:   fi
                   76488: 
                   76489: 
                   76490: 
                   76491:   am_i_shared=$PHP_PDO_PGSQL_SHARED
                   76492:   is_it_shared=$PHP_PDO_SHARED
                   76493:   is_it_enabled=$PHP_PDO
                   76494:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   76495:     as_fn_error $? "
                   76496: You've configured extension pdo_pgsql to build statically, but it
                   76497: depends on extension pdo, which you've configured to build shared.
                   76498: You either need to build pdo_pgsql shared or build pdo statically for the
                   76499: build to be successful.
                   76500: " "$LINENO" 5
                   76501:   fi
                   76502: 
                   76503: 
                   76504: fi
                   76505: 
                   76506: 
                   76507: 
                   76508: php_with_pdo_sqlite=$PHP_PDO
                   76509: 
                   76510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite 3 support for PDO" >&5
                   76511: $as_echo_n "checking for sqlite 3 support for PDO... " >&6; }
                   76512: 
                   76513: # Check whether --with-pdo-sqlite was given.
                   76514: if test "${with_pdo_sqlite+set}" = set; then :
                   76515:   withval=$with_pdo_sqlite; PHP_PDO_SQLITE=$withval
                   76516: else
                   76517: 
                   76518:   PHP_PDO_SQLITE=$PHP_PDO
                   76519:   test "$PHP_ENABLE_ALL" && PHP_PDO_SQLITE=$PHP_ENABLE_ALL
                   76520: 
                   76521: fi
                   76522: 
                   76523: 
                   76524: 
                   76525: ext_output="yes, shared"
                   76526: ext_shared=yes
                   76527: case $PHP_PDO_SQLITE in
                   76528: shared,*)
                   76529:   PHP_PDO_SQLITE=`echo "$PHP_PDO_SQLITE"|$SED 's/^shared,//'`
                   76530:   ;;
                   76531: shared)
                   76532:   PHP_PDO_SQLITE=yes
                   76533:   ;;
                   76534: no)
                   76535:   ext_output=no
                   76536:   ext_shared=no
                   76537:   ;;
                   76538: *)
                   76539:   ext_output=yes
                   76540:   ext_shared=no
                   76541:   ;;
                   76542: esac
                   76543: 
                   76544: 
                   76545: 
                   76546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   76547: $as_echo "$ext_output" >&6; }
                   76548: 
                   76549: 
                   76550: 
                   76551: 
                   76552: if test "$PHP_PDO_SQLITE" != "no"; then
                   76553: 
                   76554:   if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
                   76555:     as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
                   76556:   fi
                   76557: 
                   76558: 
                   76559: 
                   76560:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
                   76561: $as_echo_n "checking for PDO includes... " >&6; }
1.1.1.2 ! misho    76562: if ${pdo_cv_inc_path+:} false; then :
1.1       misho    76563:   $as_echo_n "(cached) " >&6
                   76564: else
                   76565: 
                   76566:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
                   76567: $as_echo_n "checking for PDO includes... " >&6; }
                   76568:     if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    76569:       pdo_cv_inc_path=$abs_srcdir/ext
1.1       misho    76570:     elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    76571:       pdo_cv_inc_path=$abs_srcdir/ext
1.1       misho    76572:     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
1.1.1.2 ! misho    76573:       pdo_cv_inc_path=$prefix/include/php/ext
1.1       misho    76574:     fi
                   76575: 
                   76576: fi
1.1.1.2 ! misho    76577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
        !          76578: $as_echo "$pdo_cv_inc_path" >&6; }
        !          76579:   if test -n "$pdo_cv_inc_path"; then
1.1       misho    76580: :
                   76581:   else
                   76582: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
                   76583:   fi
                   76584: 
                   76585: 
                   76586: 
                   76587:   php_pdo_sqlite_sources_core="pdo_sqlite.c sqlite_driver.c sqlite_statement.c"
                   76588: 
                   76589:   if test "$PHP_PDO_SQLITE" != "yes"; then
                   76590:     SEARCH_PATH="$PHP_PDO_SQLITE /usr/local /usr"     # you might want to change this
                   76591:     SEARCH_FOR="/include/sqlite3.h"  # you most likely want to change this
                   76592:     if test -r $PHP_PDO_SQLITE/$SEARCH_FOR; then # path given as parameter
                   76593:       PDO_SQLITE_DIR=$PHP_PDO_SQLITE
                   76594:     else # search default path list
                   76595:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 files in default path" >&5
                   76596: $as_echo_n "checking for sqlite3 files in default path... " >&6; }
                   76597:       for i in $SEARCH_PATH ; do
                   76598:         if test -r $i/$SEARCH_FOR; then
                   76599:           PDO_SQLITE_DIR=$i
                   76600:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
                   76601: $as_echo "found in $i" >&6; }
                   76602:         fi
                   76603:       done
                   76604:     fi
                   76605:     if test -z "$PDO_SQLITE_DIR"; then
                   76606:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   76607: $as_echo "not found" >&6; }
                   76608:       as_fn_error $? "Please reinstall the sqlite3 distribution" "$LINENO" 5
                   76609:     fi
                   76610: 
                   76611: 
                   76612:   if test "$PDO_SQLITE_DIR/include" != "/usr/include"; then
                   76613: 
                   76614:   if test -z "$PDO_SQLITE_DIR/include" || echo "$PDO_SQLITE_DIR/include" | grep '^/' >/dev/null ; then
                   76615:     ai_p=$PDO_SQLITE_DIR/include
                   76616:   else
                   76617: 
                   76618:     ep_dir="`echo $PDO_SQLITE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   76619: 
                   76620:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   76621:     ai_p="$ep_realdir/`basename \"$PDO_SQLITE_DIR/include\"`"
                   76622:   fi
                   76623: 
                   76624: 
                   76625: 
                   76626:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   76627: 
                   76628:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   76629:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   76630:     eval "INCLUDEPATH$unique=set"
                   76631: 
                   76632:       if test ""; then
                   76633:         INCLUDES="-I$ai_p $INCLUDES"
                   76634:       else
                   76635:         INCLUDES="$INCLUDES -I$ai_p"
                   76636:       fi
                   76637: 
                   76638:   fi
                   76639: 
                   76640:   fi
                   76641: 
                   76642: 
                   76643:     LIBNAME=sqlite3
                   76644:     LIBSYMBOL=sqlite3_open
                   76645: 
                   76646: 
                   76647:   save_old_LDFLAGS=$LDFLAGS
                   76648:   ac_stuff="
                   76649:       -L$PDO_SQLITE_DIR/$PHP_LIBDIR -lm
                   76650:     "
                   76651: 
                   76652:   save_ext_shared=$ext_shared
                   76653:   ext_shared=yes
                   76654: 
                   76655:   for ac_i in $ac_stuff; do
                   76656:     case $ac_i in
                   76657:     -pthread)
                   76658:       if test "$ext_shared" = "yes"; then
                   76659:         LDFLAGS="$LDFLAGS -pthread"
                   76660:       else
                   76661: 
                   76662: 
                   76663:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   76664: 
                   76665:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   76666:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   76667:     eval "EXTRA_LDFLAGS$unique=set"
                   76668:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   76669:   fi
                   76670: 
                   76671:       fi
                   76672:     ;;
                   76673:     -l*)
                   76674:       ac_ii=`echo $ac_i|cut -c 3-`
                   76675: 
                   76676: 
                   76677:   case $ac_ii in
                   76678:   c|c_r|pthread*) ;;
                   76679:   *)
                   76680:     if test "$ext_shared" = "yes"; then
                   76681:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   76682:     else
                   76683: 
                   76684: 
                   76685:   case $ac_ii in
                   76686:   c|c_r|pthread*) ;;
                   76687:   *)
                   76688:       LIBS="$LIBS -l$ac_ii"
                   76689:    ;;
                   76690:   esac
                   76691: 
                   76692: 
                   76693:     fi
                   76694:    ;;
                   76695:   esac
                   76696: 
                   76697: 
                   76698:     ;;
                   76699:     -L*)
                   76700:       ac_ii=`echo $ac_i|cut -c 3-`
                   76701: 
                   76702:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   76703: 
                   76704:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   76705:     ai_p=$ac_ii
                   76706:   else
                   76707: 
                   76708:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   76709: 
                   76710:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   76711:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   76712:   fi
                   76713: 
                   76714: 
                   76715:       if test "$ext_shared" = "yes"; then
                   76716:         LDFLAGS="-L$ai_p $LDFLAGS"
                   76717:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   76718:       else
                   76719: 
                   76720: 
                   76721: 
                   76722:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   76723: 
                   76724:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   76725:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   76726:     eval "LIBPATH$unique=set"
                   76727: 
                   76728:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   76729:     LDFLAGS="$LDFLAGS -L$ai_p"
                   76730:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   76731: 
                   76732:   fi
                   76733: 
                   76734: 
                   76735:       fi
                   76736: 
                   76737:   fi
                   76738: 
                   76739:     ;;
                   76740:     esac
                   76741:   done
                   76742: 
                   76743:   as_ac_Lib=`$as_echo "ac_cv_lib_$LIBNAME''_$LIBSYMBOL" | $as_tr_sh`
                   76744: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBSYMBOL in -l$LIBNAME" >&5
                   76745: $as_echo_n "checking for $LIBSYMBOL in -l$LIBNAME... " >&6; }
                   76746: if eval \${$as_ac_Lib+:} false; then :
                   76747:   $as_echo_n "(cached) " >&6
                   76748: else
                   76749:   ac_check_lib_save_LIBS=$LIBS
                   76750: LIBS="-l$LIBNAME  $LIBS"
                   76751: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   76752: /* end confdefs.h.  */
                   76753: 
                   76754: /* Override any GCC internal prototype to avoid an error.
                   76755:    Use char because int might match the return type of a GCC
                   76756:    builtin and then its argument prototype would still apply.  */
                   76757: #ifdef __cplusplus
                   76758: extern "C"
                   76759: #endif
                   76760: char $LIBSYMBOL ();
                   76761: int
                   76762: main ()
                   76763: {
                   76764: return $LIBSYMBOL ();
                   76765:   ;
                   76766:   return 0;
                   76767: }
                   76768: _ACEOF
                   76769: if ac_fn_c_try_link "$LINENO"; then :
                   76770:   eval "$as_ac_Lib=yes"
                   76771: else
                   76772:   eval "$as_ac_Lib=no"
                   76773: fi
                   76774: rm -f core conftest.err conftest.$ac_objext \
                   76775:     conftest$ac_exeext conftest.$ac_ext
                   76776: LIBS=$ac_check_lib_save_LIBS
                   76777: fi
                   76778: eval ac_res=\$$as_ac_Lib
                   76779:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   76780: $as_echo "$ac_res" >&6; }
                   76781: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   76782: 
                   76783:     LDFLAGS=$save_old_LDFLAGS
                   76784:     ext_shared=$save_ext_shared
                   76785: 
                   76786: 
                   76787: 
                   76788:   if test "$ext_shared" = "yes"; then
                   76789:     PDO_SQLITE_SHARED_LIBADD="-l$LIBNAME $PDO_SQLITE_SHARED_LIBADD"
                   76790:     if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then
                   76791: 
                   76792:   if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   76793: 
                   76794:   if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   76795:     ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR
                   76796:   else
                   76797: 
                   76798:     ep_dir="`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   76799: 
                   76800:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   76801:     ai_p="$ep_realdir/`basename \"$PDO_SQLITE_DIR/$PHP_LIBDIR\"`"
                   76802:   fi
                   76803: 
                   76804: 
                   76805:       if test "$ext_shared" = "yes"; then
                   76806:         PDO_SQLITE_SHARED_LIBADD="-L$ai_p $PDO_SQLITE_SHARED_LIBADD"
                   76807:         test -n "$ld_runpath_switch" && PDO_SQLITE_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_SQLITE_SHARED_LIBADD"
                   76808:       else
                   76809: 
                   76810: 
                   76811: 
                   76812:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   76813: 
                   76814:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   76815:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   76816:     eval "LIBPATH$unique=set"
                   76817: 
                   76818:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   76819:     LDFLAGS="$LDFLAGS -L$ai_p"
                   76820:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   76821: 
                   76822:   fi
                   76823: 
                   76824: 
                   76825:       fi
                   76826: 
                   76827:   fi
                   76828: 
                   76829:     fi
                   76830:   else
                   76831: 
                   76832: 
                   76833:   if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then
                   76834: 
                   76835:   if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   76836: 
                   76837:   if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   76838:     ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR
                   76839:   else
                   76840: 
                   76841:     ep_dir="`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   76842: 
                   76843:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   76844:     ai_p="$ep_realdir/`basename \"$PDO_SQLITE_DIR/$PHP_LIBDIR\"`"
                   76845:   fi
                   76846: 
                   76847: 
                   76848: 
                   76849: 
                   76850: 
                   76851:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   76852: 
                   76853:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   76854:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   76855:     eval "LIBPATH$unique=set"
                   76856: 
                   76857:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   76858:     LDFLAGS="$LDFLAGS -L$ai_p"
                   76859:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   76860: 
                   76861:   fi
                   76862: 
                   76863: 
                   76864: 
                   76865:   fi
                   76866: 
                   76867:   fi
                   76868: 
                   76869: 
                   76870:   case $LIBNAME in
                   76871:   c|c_r|pthread*) ;;
                   76872:   *)
                   76873:       LIBS="-l$LIBNAME $LIBS"
                   76874:    ;;
                   76875:   esac
                   76876: 
                   76877: 
                   76878: 
                   76879: 
                   76880:   fi
                   76881: 
                   76882: 
                   76883: 
                   76884: $as_echo "#define HAVE_PDO_SQLITELIB 1" >>confdefs.h
                   76885: 
                   76886: 
                   76887: 
                   76888: else
                   76889: 
                   76890:     LDFLAGS=$save_old_LDFLAGS
                   76891:     ext_shared=$save_ext_shared
                   76892:     unset ac_cv_lib_$LIBNAME_$LIBSYMBOL
                   76893: 
                   76894:       as_fn_error $? "wrong sqlite lib version or lib not found" "$LINENO" 5
                   76895: 
                   76896: 
                   76897: fi
                   76898: 
                   76899: 
                   76900:   save_old_LDFLAGS=$LDFLAGS
                   76901:   ac_stuff=""
                   76902: 
                   76903:   save_ext_shared=$ext_shared
                   76904:   ext_shared=yes
                   76905: 
                   76906:   for ac_i in $ac_stuff; do
                   76907:     case $ac_i in
                   76908:     -pthread)
                   76909:       if test "$ext_shared" = "yes"; then
                   76910:         LDFLAGS="$LDFLAGS -pthread"
                   76911:       else
                   76912: 
                   76913: 
                   76914:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   76915: 
                   76916:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   76917:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   76918:     eval "EXTRA_LDFLAGS$unique=set"
                   76919:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   76920:   fi
                   76921: 
                   76922:       fi
                   76923:     ;;
                   76924:     -l*)
                   76925:       ac_ii=`echo $ac_i|cut -c 3-`
                   76926: 
                   76927: 
                   76928:   case $ac_ii in
                   76929:   c|c_r|pthread*) ;;
                   76930:   *)
                   76931:     if test "$ext_shared" = "yes"; then
                   76932:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   76933:     else
                   76934: 
                   76935: 
                   76936:   case $ac_ii in
                   76937:   c|c_r|pthread*) ;;
                   76938:   *)
                   76939:       LIBS="$LIBS -l$ac_ii"
                   76940:    ;;
                   76941:   esac
                   76942: 
                   76943: 
                   76944:     fi
                   76945:    ;;
                   76946:   esac
                   76947: 
                   76948: 
                   76949:     ;;
                   76950:     -L*)
                   76951:       ac_ii=`echo $ac_i|cut -c 3-`
                   76952: 
                   76953:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   76954: 
                   76955:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   76956:     ai_p=$ac_ii
                   76957:   else
                   76958: 
                   76959:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   76960: 
                   76961:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   76962:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   76963:   fi
                   76964: 
                   76965: 
                   76966:       if test "$ext_shared" = "yes"; then
                   76967:         LDFLAGS="-L$ai_p $LDFLAGS"
                   76968:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   76969:       else
                   76970: 
                   76971: 
                   76972: 
                   76973:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   76974: 
                   76975:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   76976:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   76977:     eval "LIBPATH$unique=set"
                   76978: 
                   76979:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   76980:     LDFLAGS="$LDFLAGS -L$ai_p"
                   76981:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   76982: 
                   76983:   fi
                   76984: 
                   76985: 
                   76986:       fi
                   76987: 
                   76988:   fi
                   76989: 
                   76990:     ;;
                   76991:     esac
                   76992:   done
                   76993: 
                   76994:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5
                   76995: $as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; }
                   76996: if ${ac_cv_lib_sqlite3_sqlite3_key+:} false; then :
                   76997:   $as_echo_n "(cached) " >&6
                   76998: else
                   76999:   ac_check_lib_save_LIBS=$LIBS
                   77000: LIBS="-lsqlite3  $LIBS"
                   77001: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   77002: /* end confdefs.h.  */
                   77003: 
                   77004: /* Override any GCC internal prototype to avoid an error.
                   77005:    Use char because int might match the return type of a GCC
                   77006:    builtin and then its argument prototype would still apply.  */
                   77007: #ifdef __cplusplus
                   77008: extern "C"
                   77009: #endif
                   77010: char sqlite3_key ();
                   77011: int
                   77012: main ()
                   77013: {
                   77014: return sqlite3_key ();
                   77015:   ;
                   77016:   return 0;
                   77017: }
                   77018: _ACEOF
                   77019: if ac_fn_c_try_link "$LINENO"; then :
                   77020:   ac_cv_lib_sqlite3_sqlite3_key=yes
                   77021: else
                   77022:   ac_cv_lib_sqlite3_sqlite3_key=no
                   77023: fi
                   77024: rm -f core conftest.err conftest.$ac_objext \
                   77025:     conftest$ac_exeext conftest.$ac_ext
                   77026: LIBS=$ac_check_lib_save_LIBS
                   77027: fi
                   77028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5
                   77029: $as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; }
                   77030: if test "x$ac_cv_lib_sqlite3_sqlite3_key" = xyes; then :
                   77031: 
                   77032:     LDFLAGS=$save_old_LDFLAGS
                   77033:     ext_shared=$save_ext_shared
                   77034: 
                   77035: 
                   77036: $as_echo "#define HAVE_SQLITE3_KEY 1" >>confdefs.h
                   77037: 
                   77038: 
                   77039: 
                   77040: else
                   77041: 
                   77042:     LDFLAGS=$save_old_LDFLAGS
                   77043:     ext_shared=$save_ext_shared
                   77044:     unset ac_cv_lib_sqlite3_sqlite3_key
                   77045: 
                   77046: 
                   77047: fi
                   77048: 
                   77049: 
                   77050: 
                   77051:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD"
                   77052: 
                   77053: 
                   77054:   ext_builddir=ext/pdo_sqlite
                   77055:   ext_srcdir=$abs_srcdir/ext/pdo_sqlite
                   77056: 
1.1.1.2 ! misho    77057:   ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1       misho    77058: 
                   77059:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   77060:     PHP_PDO_SQLITE_SHARED=no
                   77061: 
                   77062: 
                   77063:   case ext/pdo_sqlite in
                   77064:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   77065:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   77066:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   77067:   esac
                   77068: 
                   77069: 
                   77070: 
                   77071:   b_c_pre=$php_c_pre
                   77072:   b_cxx_pre=$php_cxx_pre
                   77073:   b_c_meta=$php_c_meta
                   77074:   b_cxx_meta=$php_cxx_meta
                   77075:   b_c_post=$php_c_post
                   77076:   b_cxx_post=$php_cxx_post
                   77077:   b_lo=$php_lo
                   77078: 
                   77079: 
                   77080:   old_IFS=$IFS
                   77081:   for ac_src in $php_pdo_sqlite_sources_core; do
                   77082: 
                   77083:       IFS=.
                   77084:       set $ac_src
                   77085:       ac_obj=$1
                   77086:       IFS=$old_IFS
                   77087: 
                   77088:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   77089: 
                   77090:       case $ac_src in
                   77091:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77092:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77093:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77094:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   77095:       esac
                   77096: 
                   77097:     cat >>Makefile.objects<<EOF
                   77098: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   77099:        $ac_comp
                   77100: EOF
                   77101:   done
                   77102: 
                   77103: 
                   77104:     EXT_STATIC="$EXT_STATIC pdo_sqlite"
                   77105:     if test "$ext_shared" != "nocli"; then
                   77106:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
                   77107:     fi
                   77108:   else
                   77109:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   77110:       PHP_PDO_SQLITE_SHARED=yes
                   77111: 
                   77112:   case ext/pdo_sqlite in
                   77113:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   77114:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   77115:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   77116:   esac
                   77117: 
                   77118: 
                   77119: 
                   77120:   b_c_pre=$shared_c_pre
                   77121:   b_cxx_pre=$shared_cxx_pre
                   77122:   b_c_meta=$shared_c_meta
                   77123:   b_cxx_meta=$shared_cxx_meta
                   77124:   b_c_post=$shared_c_post
                   77125:   b_cxx_post=$shared_cxx_post
                   77126:   b_lo=$shared_lo
                   77127: 
                   77128: 
                   77129:   old_IFS=$IFS
                   77130:   for ac_src in $php_pdo_sqlite_sources_core; do
                   77131: 
                   77132:       IFS=.
                   77133:       set $ac_src
                   77134:       ac_obj=$1
                   77135:       IFS=$old_IFS
                   77136: 
                   77137:       shared_objects_pdo_sqlite="$shared_objects_pdo_sqlite $ac_bdir$ac_obj.lo"
                   77138: 
                   77139:       case $ac_src in
                   77140:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77141:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77142:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77143:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   77144:       esac
                   77145: 
                   77146:     cat >>Makefile.objects<<EOF
                   77147: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   77148:        $ac_comp
                   77149: EOF
                   77150:   done
                   77151: 
                   77152:       case $host_alias in
                   77153:         *netware*)
                   77154: 
                   77155:   install_modules="install-modules"
                   77156: 
                   77157:   case $host_alias in
                   77158:     *aix*)
                   77159:       suffix=so
                   77160:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_sqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PHPPDO_SQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_sqlite.so '$ext_builddir'/phppdo_sqlite.so'
                   77161:       ;;
                   77162:     *netware*)
                   77163:       suffix=nlm
                   77164:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) -L$(top_builddir)/netware -lphp5lib $(PDO_SQLITE_SHARED_LIBADD)'
                   77165:       ;;
                   77166:     *)
                   77167:       suffix=la
                   77168:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PHPPDO_SQLITE_SHARED_LIBADD)'
                   77169:       ;;
                   77170:   esac
                   77171: 
                   77172:   if test "x" = "xyes"; then
                   77173:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_sqlite.$suffix"
                   77174:   else
                   77175:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_sqlite.$suffix"
                   77176:   fi
                   77177: 
                   77178:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
                   77179: 
                   77180:   cat >>Makefile.objects<<EOF
                   77181: \$(phplibdir)/phppdo_sqlite.$suffix: $ext_builddir/phppdo_sqlite.$suffix
                   77182:        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_sqlite.$suffix \$(phplibdir)
                   77183: 
                   77184: $ext_builddir/phppdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PHPPDO_SQLITE_SHARED_DEPENDENCIES)
                   77185:        $link_cmd
                   77186: 
                   77187: EOF
                   77188: 
                   77189:           ;;
                   77190:         *)
                   77191: 
                   77192:   install_modules="install-modules"
                   77193: 
                   77194:   case $host_alias in
                   77195:     *aix*)
                   77196:       suffix=so
                   77197:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_sqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PDO_SQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_sqlite.so '$ext_builddir'/pdo_sqlite.so'
                   77198:       ;;
                   77199:     *netware*)
                   77200:       suffix=nlm
                   77201:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) -L$(top_builddir)/netware -lphp5lib $(_SQLITE_SHARED_LIBADD)'
                   77202:       ;;
                   77203:     *)
                   77204:       suffix=la
                   77205:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PDO_SQLITE_SHARED_LIBADD)'
                   77206:       ;;
                   77207:   esac
                   77208: 
                   77209:   if test "x" = "xyes"; then
                   77210:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_sqlite.$suffix"
                   77211:   else
                   77212:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_sqlite.$suffix"
                   77213:   fi
                   77214: 
                   77215:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
                   77216: 
                   77217:   cat >>Makefile.objects<<EOF
                   77218: \$(phplibdir)/pdo_sqlite.$suffix: $ext_builddir/pdo_sqlite.$suffix
                   77219:        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_sqlite.$suffix \$(phplibdir)
                   77220: 
                   77221: $ext_builddir/pdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PDO_SQLITE_SHARED_DEPENDENCIES)
                   77222:        $link_cmd
                   77223: 
                   77224: EOF
                   77225: 
                   77226:           ;;
                   77227:       esac
                   77228: 
                   77229: cat >>confdefs.h <<_ACEOF
                   77230: #define COMPILE_DL_PDO_SQLITE 1
                   77231: _ACEOF
                   77232: 
                   77233:     fi
                   77234:   fi
                   77235: 
                   77236:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   77237:     PHP_PDO_SQLITE_SHARED=no
                   77238: 
                   77239: 
                   77240:   case ext/pdo_sqlite in
                   77241:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   77242:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   77243:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   77244:   esac
                   77245: 
                   77246: 
                   77247: 
                   77248:   b_c_pre=$php_c_pre
                   77249:   b_cxx_pre=$php_cxx_pre
                   77250:   b_c_meta=$php_c_meta
                   77251:   b_cxx_meta=$php_cxx_meta
                   77252:   b_c_post=$php_c_post
                   77253:   b_cxx_post=$php_cxx_post
                   77254:   b_lo=$php_lo
                   77255: 
                   77256: 
                   77257:   old_IFS=$IFS
                   77258:   for ac_src in $php_pdo_sqlite_sources_core; do
                   77259: 
                   77260:       IFS=.
                   77261:       set $ac_src
                   77262:       ac_obj=$1
                   77263:       IFS=$old_IFS
                   77264: 
1.1.1.2 ! misho    77265:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    77266: 
                   77267:       case $ac_src in
                   77268:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77269:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77270:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77271:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   77272:       esac
                   77273: 
                   77274:     cat >>Makefile.objects<<EOF
                   77275: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   77276:        $ac_comp
                   77277: EOF
                   77278:   done
                   77279: 
                   77280: 
                   77281: 
                   77282: 
                   77283:   case ext/pdo_sqlite in
                   77284:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   77285:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   77286:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   77287:   esac
                   77288: 
                   77289: 
                   77290: 
                   77291:   b_c_pre=$php_c_pre
                   77292:   b_cxx_pre=$php_cxx_pre
                   77293:   b_c_meta=$php_c_meta
                   77294:   b_cxx_meta=$php_cxx_meta
                   77295:   b_c_post=$php_c_post
                   77296:   b_cxx_post=$php_cxx_post
                   77297:   b_lo=$php_lo
                   77298: 
                   77299: 
                   77300:   old_IFS=$IFS
                   77301:   for ac_src in $php_pdo_sqlite_sources_core; do
                   77302: 
                   77303:       IFS=.
                   77304:       set $ac_src
                   77305:       ac_obj=$1
                   77306:       IFS=$old_IFS
                   77307: 
1.1.1.2 ! misho    77308:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    77309: 
                   77310:       case $ac_src in
                   77311:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77312:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77313:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77314:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   77315:       esac
                   77316: 
                   77317:     cat >>Makefile.objects<<EOF
                   77318: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   77319:        $ac_comp
                   77320: EOF
                   77321:   done
                   77322: 
                   77323: 
                   77324: 
                   77325: 
                   77326:   case ext/pdo_sqlite in
                   77327:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   77328:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   77329:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   77330:   esac
                   77331: 
                   77332: 
                   77333: 
                   77334:   b_c_pre=$php_c_pre
                   77335:   b_cxx_pre=$php_cxx_pre
                   77336:   b_c_meta=$php_c_meta
                   77337:   b_cxx_meta=$php_cxx_meta
                   77338:   b_c_post=$php_c_post
                   77339:   b_cxx_post=$php_cxx_post
                   77340:   b_lo=$php_lo
                   77341: 
                   77342: 
                   77343:   old_IFS=$IFS
                   77344:   for ac_src in $php_pdo_sqlite_sources_core; do
                   77345: 
                   77346:       IFS=.
                   77347:       set $ac_src
                   77348:       ac_obj=$1
                   77349:       IFS=$old_IFS
                   77350: 
1.1.1.2 ! misho    77351:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    77352: 
                   77353:       case $ac_src in
                   77354:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77355:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77356:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77357:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   77358:       esac
                   77359: 
                   77360:     cat >>Makefile.objects<<EOF
                   77361: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   77362:        $ac_comp
                   77363: EOF
                   77364:   done
                   77365: 
                   77366: 
                   77367:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
                   77368:   fi
                   77369: 
                   77370: 
                   77371:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   77372: 
                   77373: 
                   77374: 
                   77375:   if test "$ext_builddir" = "."; then
                   77376:     PHP_PECL_EXTENSION=pdo_sqlite
                   77377: 
                   77378:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   77379: 
                   77380:   fi
                   77381: 
                   77382:   else
                   77383:       # use bundled libs
                   77384:       if test "$enable_maintainer_zts" = "yes"; then
                   77385:         threadsafe_flags="-DSQLITE_THREADSAFE=1"
                   77386:       else
                   77387:         threadsafe_flags="-DSQLITE_THREADSAFE=0"
                   77388:       fi
                   77389: 
                   77390:       other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"
                   77391: 
                   77392:                if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then
                   77393:         other_flags="$other_flags -DSQLITE_ENABLE_ICU=1"
                   77394:       fi
                   77395: 
                   77396:       if test "$PHP_SQLITE3" != "yes"; then
                   77397: 
                   77398: 
                   77399:   case ext/sqlite3 in
                   77400:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   77401:   /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   77402:   *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   77403:   esac
                   77404: 
                   77405: 
                   77406: 
                   77407:   b_c_pre=$php_c_pre
                   77408:   b_cxx_pre=$php_cxx_pre
                   77409:   b_c_meta=$php_c_meta
                   77410:   b_cxx_meta=$php_cxx_meta
                   77411:   b_c_post=$php_c_post
                   77412:   b_cxx_post=$php_cxx_post
                   77413:   b_lo=$php_lo
                   77414: 
                   77415: 
                   77416:   old_IFS=$IFS
                   77417:   for ac_src in libsqlite/sqlite3.c; do
                   77418: 
                   77419:       IFS=.
                   77420:       set $ac_src
                   77421:       ac_obj=$1
                   77422:       IFS=$old_IFS
                   77423: 
                   77424:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   77425: 
                   77426:       case $ac_src in
                   77427:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77428:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77429:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77430:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   77431:       esac
                   77432: 
                   77433:     cat >>Makefile.objects<<EOF
                   77434: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   77435:        $ac_comp
                   77436: EOF
                   77437:   done
                   77438: 
                   77439: 
                   77440:       fi
                   77441: 
                   77442: 
                   77443:   ext_builddir=ext/pdo_sqlite
                   77444:   ext_srcdir=$abs_srcdir/ext/pdo_sqlite
                   77445: 
1.1.1.2 ! misho    77446:   ac_extra=`echo "-DPDO_SQLITE_BUNDLED=1 $other_flags $threadsafe_flags -I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
1.1       misho    77447: 
                   77448:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   77449:     PHP_PDO_SQLITE_SHARED=no
                   77450: 
                   77451: 
                   77452:   case ext/pdo_sqlite in
                   77453:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   77454:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   77455:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   77456:   esac
                   77457: 
                   77458: 
                   77459: 
                   77460:   b_c_pre=$php_c_pre
                   77461:   b_cxx_pre=$php_cxx_pre
                   77462:   b_c_meta=$php_c_meta
                   77463:   b_cxx_meta=$php_cxx_meta
                   77464:   b_c_post=$php_c_post
                   77465:   b_cxx_post=$php_cxx_post
                   77466:   b_lo=$php_lo
                   77467: 
                   77468: 
                   77469:   old_IFS=$IFS
                   77470:   for ac_src in $php_pdo_sqlite_sources_core; do
                   77471: 
                   77472:       IFS=.
                   77473:       set $ac_src
                   77474:       ac_obj=$1
                   77475:       IFS=$old_IFS
                   77476: 
                   77477:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   77478: 
                   77479:       case $ac_src in
                   77480:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77481:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77482:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77483:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   77484:       esac
                   77485: 
                   77486:     cat >>Makefile.objects<<EOF
                   77487: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   77488:        $ac_comp
                   77489: EOF
                   77490:   done
                   77491: 
                   77492: 
                   77493:     EXT_STATIC="$EXT_STATIC pdo_sqlite"
                   77494:     if test "$ext_shared" != "nocli"; then
                   77495:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
                   77496:     fi
                   77497:   else
                   77498:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   77499:       PHP_PDO_SQLITE_SHARED=yes
                   77500: 
                   77501:   case ext/pdo_sqlite in
                   77502:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   77503:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   77504:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   77505:   esac
                   77506: 
                   77507: 
                   77508: 
                   77509:   b_c_pre=$shared_c_pre
                   77510:   b_cxx_pre=$shared_cxx_pre
                   77511:   b_c_meta=$shared_c_meta
                   77512:   b_cxx_meta=$shared_cxx_meta
                   77513:   b_c_post=$shared_c_post
                   77514:   b_cxx_post=$shared_cxx_post
                   77515:   b_lo=$shared_lo
                   77516: 
                   77517: 
                   77518:   old_IFS=$IFS
                   77519:   for ac_src in $php_pdo_sqlite_sources_core; do
                   77520: 
                   77521:       IFS=.
                   77522:       set $ac_src
                   77523:       ac_obj=$1
                   77524:       IFS=$old_IFS
                   77525: 
                   77526:       shared_objects_pdo_sqlite="$shared_objects_pdo_sqlite $ac_bdir$ac_obj.lo"
                   77527: 
                   77528:       case $ac_src in
                   77529:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77530:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77531:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77532:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   77533:       esac
                   77534: 
                   77535:     cat >>Makefile.objects<<EOF
                   77536: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   77537:        $ac_comp
                   77538: EOF
                   77539:   done
                   77540: 
                   77541:       case $host_alias in
                   77542:         *netware*)
                   77543: 
                   77544:   install_modules="install-modules"
                   77545: 
                   77546:   case $host_alias in
                   77547:     *aix*)
                   77548:       suffix=so
                   77549:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_sqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PHPPDO_SQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_sqlite.so '$ext_builddir'/phppdo_sqlite.so'
                   77550:       ;;
                   77551:     *netware*)
                   77552:       suffix=nlm
                   77553:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) -L$(top_builddir)/netware -lphp5lib $(PDO_SQLITE_SHARED_LIBADD)'
                   77554:       ;;
                   77555:     *)
                   77556:       suffix=la
                   77557:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PHPPDO_SQLITE_SHARED_LIBADD)'
                   77558:       ;;
                   77559:   esac
                   77560: 
                   77561:   if test "x" = "xyes"; then
                   77562:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_sqlite.$suffix"
                   77563:   else
                   77564:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_sqlite.$suffix"
                   77565:   fi
                   77566: 
                   77567:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
                   77568: 
                   77569:   cat >>Makefile.objects<<EOF
                   77570: \$(phplibdir)/phppdo_sqlite.$suffix: $ext_builddir/phppdo_sqlite.$suffix
                   77571:        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_sqlite.$suffix \$(phplibdir)
                   77572: 
                   77573: $ext_builddir/phppdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PHPPDO_SQLITE_SHARED_DEPENDENCIES)
                   77574:        $link_cmd
                   77575: 
                   77576: EOF
                   77577: 
                   77578:           ;;
                   77579:         *)
                   77580: 
                   77581:   install_modules="install-modules"
                   77582: 
                   77583:   case $host_alias in
                   77584:     *aix*)
                   77585:       suffix=so
                   77586:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_sqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PDO_SQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_sqlite.so '$ext_builddir'/pdo_sqlite.so'
                   77587:       ;;
                   77588:     *netware*)
                   77589:       suffix=nlm
                   77590:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) -L$(top_builddir)/netware -lphp5lib $(_SQLITE_SHARED_LIBADD)'
                   77591:       ;;
                   77592:     *)
                   77593:       suffix=la
                   77594:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PDO_SQLITE_SHARED_LIBADD)'
                   77595:       ;;
                   77596:   esac
                   77597: 
                   77598:   if test "x" = "xyes"; then
                   77599:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_sqlite.$suffix"
                   77600:   else
                   77601:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_sqlite.$suffix"
                   77602:   fi
                   77603: 
                   77604:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
                   77605: 
                   77606:   cat >>Makefile.objects<<EOF
                   77607: \$(phplibdir)/pdo_sqlite.$suffix: $ext_builddir/pdo_sqlite.$suffix
                   77608:        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_sqlite.$suffix \$(phplibdir)
                   77609: 
                   77610: $ext_builddir/pdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PDO_SQLITE_SHARED_DEPENDENCIES)
                   77611:        $link_cmd
                   77612: 
                   77613: EOF
                   77614: 
                   77615:           ;;
                   77616:       esac
                   77617: 
                   77618: cat >>confdefs.h <<_ACEOF
                   77619: #define COMPILE_DL_PDO_SQLITE 1
                   77620: _ACEOF
                   77621: 
                   77622:     fi
                   77623:   fi
                   77624: 
                   77625:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   77626:     PHP_PDO_SQLITE_SHARED=no
                   77627: 
                   77628: 
                   77629:   case ext/pdo_sqlite in
                   77630:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   77631:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   77632:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   77633:   esac
                   77634: 
                   77635: 
                   77636: 
                   77637:   b_c_pre=$php_c_pre
                   77638:   b_cxx_pre=$php_cxx_pre
                   77639:   b_c_meta=$php_c_meta
                   77640:   b_cxx_meta=$php_cxx_meta
                   77641:   b_c_post=$php_c_post
                   77642:   b_cxx_post=$php_cxx_post
                   77643:   b_lo=$php_lo
                   77644: 
                   77645: 
                   77646:   old_IFS=$IFS
                   77647:   for ac_src in $php_pdo_sqlite_sources_core; do
                   77648: 
                   77649:       IFS=.
                   77650:       set $ac_src
                   77651:       ac_obj=$1
                   77652:       IFS=$old_IFS
                   77653: 
1.1.1.2 ! misho    77654:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    77655: 
                   77656:       case $ac_src in
                   77657:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77658:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77659:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77660:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   77661:       esac
                   77662: 
                   77663:     cat >>Makefile.objects<<EOF
                   77664: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   77665:        $ac_comp
                   77666: EOF
                   77667:   done
                   77668: 
                   77669: 
                   77670: 
                   77671: 
                   77672:   case ext/pdo_sqlite in
                   77673:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   77674:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   77675:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   77676:   esac
                   77677: 
                   77678: 
                   77679: 
                   77680:   b_c_pre=$php_c_pre
                   77681:   b_cxx_pre=$php_cxx_pre
                   77682:   b_c_meta=$php_c_meta
                   77683:   b_cxx_meta=$php_cxx_meta
                   77684:   b_c_post=$php_c_post
                   77685:   b_cxx_post=$php_cxx_post
                   77686:   b_lo=$php_lo
                   77687: 
                   77688: 
                   77689:   old_IFS=$IFS
                   77690:   for ac_src in $php_pdo_sqlite_sources_core; do
                   77691: 
                   77692:       IFS=.
                   77693:       set $ac_src
                   77694:       ac_obj=$1
                   77695:       IFS=$old_IFS
                   77696: 
1.1.1.2 ! misho    77697:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    77698: 
                   77699:       case $ac_src in
                   77700:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77701:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77702:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77703:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   77704:       esac
                   77705: 
                   77706:     cat >>Makefile.objects<<EOF
                   77707: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   77708:        $ac_comp
                   77709: EOF
                   77710:   done
                   77711: 
                   77712: 
                   77713: 
                   77714: 
                   77715:   case ext/pdo_sqlite in
                   77716:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   77717:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   77718:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   77719:   esac
                   77720: 
                   77721: 
                   77722: 
                   77723:   b_c_pre=$php_c_pre
                   77724:   b_cxx_pre=$php_cxx_pre
                   77725:   b_c_meta=$php_c_meta
                   77726:   b_cxx_meta=$php_cxx_meta
                   77727:   b_c_post=$php_c_post
                   77728:   b_cxx_post=$php_cxx_post
                   77729:   b_lo=$php_lo
                   77730: 
                   77731: 
                   77732:   old_IFS=$IFS
                   77733:   for ac_src in $php_pdo_sqlite_sources_core; do
                   77734: 
                   77735:       IFS=.
                   77736:       set $ac_src
                   77737:       ac_obj=$1
                   77738:       IFS=$old_IFS
                   77739: 
1.1.1.2 ! misho    77740:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    77741: 
                   77742:       case $ac_src in
                   77743:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77744:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77745:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   77746:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   77747:       esac
                   77748: 
                   77749:     cat >>Makefile.objects<<EOF
                   77750: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   77751:        $ac_comp
                   77752: EOF
                   77753:   done
                   77754: 
                   77755: 
                   77756:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
                   77757:   fi
                   77758: 
                   77759: 
                   77760:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   77761: 
                   77762: 
                   77763: 
                   77764:   if test "$ext_builddir" = "."; then
                   77765:     PHP_PECL_EXTENSION=pdo_sqlite
                   77766: 
                   77767:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   77768: 
                   77769:   fi
                   77770: 
                   77771: 
                   77772: 
                   77773:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD"
                   77774: 
                   77775: 
                   77776:   am_i_shared=$PHP_PDO_SQLITE_SHARED
                   77777:   is_it_shared=$PHP_SQLITE3_SHARED
                   77778:   is_it_enabled=$PHP_SQLITE3
                   77779:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   77780:     as_fn_error $? "
                   77781: You've configured extension pdo_sqlite to build statically, but it
                   77782: depends on extension sqlite3, which you've configured to build shared.
                   77783: You either need to build pdo_sqlite shared or build sqlite3 statically for the
                   77784: build to be successful.
                   77785: " "$LINENO" 5
                   77786:   fi
                   77787: 
                   77788: 
                   77789:   if test "$abs_srcdir/ext/sqlite3/libsqlite" != "/usr/include"; then
                   77790: 
                   77791:   if test -z "$abs_srcdir/ext/sqlite3/libsqlite" || echo "$abs_srcdir/ext/sqlite3/libsqlite" | grep '^/' >/dev/null ; then
                   77792:     ai_p=$abs_srcdir/ext/sqlite3/libsqlite
                   77793:   else
                   77794: 
                   77795:     ep_dir="`echo $abs_srcdir/ext/sqlite3/libsqlite|$SED 's%/*[^/][^/]*/*$%%'`"
                   77796: 
                   77797:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   77798:     ai_p="$ep_realdir/`basename \"$abs_srcdir/ext/sqlite3/libsqlite\"`"
                   77799:   fi
                   77800: 
                   77801: 
                   77802: 
                   77803:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   77804: 
                   77805:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   77806:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   77807:     eval "INCLUDEPATH$unique=set"
                   77808: 
                   77809:       if test ""; then
                   77810:         INCLUDES="-I$ai_p $INCLUDES"
                   77811:       else
                   77812:         INCLUDES="$INCLUDES -I$ai_p"
                   77813:       fi
                   77814: 
                   77815:   fi
                   77816: 
                   77817:   fi
                   77818: 
                   77819: 
                   77820:       for ac_func in usleep nanosleep
                   77821: do :
                   77822:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   77823: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   77824: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   77825:   cat >>confdefs.h <<_ACEOF
                   77826: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   77827: _ACEOF
                   77828: 
                   77829: fi
                   77830: done
                   77831: 
                   77832:       for ac_header in time.h
                   77833: do :
                   77834:   ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
                   77835: if test "x$ac_cv_header_time_h" = xyes; then :
                   77836:   cat >>confdefs.h <<_ACEOF
                   77837: #define HAVE_TIME_H 1
                   77838: _ACEOF
                   77839: 
                   77840: fi
                   77841: 
                   77842: done
                   77843: 
                   77844:   fi
                   77845: 
                   77846: 
                   77847:   save_old_LDFLAGS=$LDFLAGS
                   77848:   ac_stuff=""
                   77849: 
                   77850:   save_ext_shared=$ext_shared
                   77851:   ext_shared=yes
                   77852: 
                   77853:   for ac_i in $ac_stuff; do
                   77854:     case $ac_i in
                   77855:     -pthread)
                   77856:       if test "$ext_shared" = "yes"; then
                   77857:         LDFLAGS="$LDFLAGS -pthread"
                   77858:       else
                   77859: 
                   77860: 
                   77861:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   77862: 
                   77863:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   77864:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   77865:     eval "EXTRA_LDFLAGS$unique=set"
                   77866:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   77867:   fi
                   77868: 
                   77869:       fi
                   77870:     ;;
                   77871:     -l*)
                   77872:       ac_ii=`echo $ac_i|cut -c 3-`
                   77873: 
                   77874: 
                   77875:   case $ac_ii in
                   77876:   c|c_r|pthread*) ;;
                   77877:   *)
                   77878:     if test "$ext_shared" = "yes"; then
                   77879:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   77880:     else
                   77881: 
                   77882: 
                   77883:   case $ac_ii in
                   77884:   c|c_r|pthread*) ;;
                   77885:   *)
                   77886:       LIBS="$LIBS -l$ac_ii"
                   77887:    ;;
                   77888:   esac
                   77889: 
                   77890: 
                   77891:     fi
                   77892:    ;;
                   77893:   esac
                   77894: 
                   77895: 
                   77896:     ;;
                   77897:     -L*)
                   77898:       ac_ii=`echo $ac_i|cut -c 3-`
                   77899: 
                   77900:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   77901: 
                   77902:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   77903:     ai_p=$ac_ii
                   77904:   else
                   77905: 
                   77906:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   77907: 
                   77908:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   77909:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   77910:   fi
                   77911: 
                   77912: 
                   77913:       if test "$ext_shared" = "yes"; then
                   77914:         LDFLAGS="-L$ai_p $LDFLAGS"
                   77915:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   77916:       else
                   77917: 
                   77918: 
                   77919: 
                   77920:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   77921: 
                   77922:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   77923:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   77924:     eval "LIBPATH$unique=set"
                   77925: 
                   77926:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   77927:     LDFLAGS="$LDFLAGS -L$ai_p"
                   77928:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   77929: 
                   77930:   fi
                   77931: 
                   77932: 
                   77933:       fi
                   77934: 
                   77935:   fi
                   77936: 
                   77937:     ;;
                   77938:     esac
                   77939:   done
                   77940: 
                   77941:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync in -lrt" >&5
                   77942: $as_echo_n "checking for fdatasync in -lrt... " >&6; }
                   77943: if ${ac_cv_lib_rt_fdatasync+:} false; then :
                   77944:   $as_echo_n "(cached) " >&6
                   77945: else
                   77946:   ac_check_lib_save_LIBS=$LIBS
                   77947: LIBS="-lrt  $LIBS"
                   77948: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   77949: /* end confdefs.h.  */
                   77950: 
                   77951: /* Override any GCC internal prototype to avoid an error.
                   77952:    Use char because int might match the return type of a GCC
                   77953:    builtin and then its argument prototype would still apply.  */
                   77954: #ifdef __cplusplus
                   77955: extern "C"
                   77956: #endif
                   77957: char fdatasync ();
                   77958: int
                   77959: main ()
                   77960: {
                   77961: return fdatasync ();
                   77962:   ;
                   77963:   return 0;
                   77964: }
                   77965: _ACEOF
                   77966: if ac_fn_c_try_link "$LINENO"; then :
                   77967:   ac_cv_lib_rt_fdatasync=yes
                   77968: else
                   77969:   ac_cv_lib_rt_fdatasync=no
                   77970: fi
                   77971: rm -f core conftest.err conftest.$ac_objext \
                   77972:     conftest$ac_exeext conftest.$ac_ext
                   77973: LIBS=$ac_check_lib_save_LIBS
                   77974: fi
                   77975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_fdatasync" >&5
                   77976: $as_echo "$ac_cv_lib_rt_fdatasync" >&6; }
                   77977: if test "x$ac_cv_lib_rt_fdatasync" = xyes; then :
                   77978: 
                   77979:     LDFLAGS=$save_old_LDFLAGS
                   77980:     ext_shared=$save_ext_shared
                   77981: 
                   77982: 
                   77983:   case rt in
                   77984:   c|c_r|pthread*) ;;
                   77985:   *)
                   77986:     if test "$ext_shared" = "yes"; then
                   77987:         PDO_SQLITE_SHARED_LIBADD="-lrt $PDO_SQLITE_SHARED_LIBADD"
                   77988:     else
                   77989: 
                   77990: 
                   77991:   case rt in
                   77992:   c|c_r|pthread*) ;;
                   77993:   *)
                   77994:       LIBS="-lrt $LIBS"
                   77995:    ;;
                   77996:   esac
                   77997: 
                   77998: 
                   77999:     fi
                   78000:    ;;
                   78001:   esac
                   78002: 
                   78003: 
                   78004: 
                   78005: else
                   78006: 
                   78007:     LDFLAGS=$save_old_LDFLAGS
                   78008:     ext_shared=$save_ext_shared
                   78009:     unset ac_cv_lib_rt_fdatasync
                   78010: 
                   78011: 
                   78012: fi
                   78013: 
                   78014: 
                   78015: 
                   78016: 
                   78017:   am_i_shared=$PHP_PDO_SQLITE_SHARED
                   78018:   is_it_shared=$PHP_PDO_SHARED
                   78019:   is_it_enabled=$PHP_PDO
                   78020:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   78021:     as_fn_error $? "
                   78022: You've configured extension pdo_sqlite to build statically, but it
                   78023: depends on extension pdo, which you've configured to build shared.
                   78024: You either need to build pdo_sqlite shared or build pdo statically for the
                   78025: build to be successful.
                   78026: " "$LINENO" 5
                   78027:   fi
                   78028: 
                   78029: 
                   78030: fi
                   78031: 
                   78032: 
                   78033: 
                   78034: php_with_pgsql=no
                   78035: 
                   78036: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
                   78037: $as_echo_n "checking for PostgreSQL support... " >&6; }
                   78038: 
                   78039: # Check whether --with-pgsql was given.
                   78040: if test "${with_pgsql+set}" = set; then :
                   78041:   withval=$with_pgsql; PHP_PGSQL=$withval
                   78042: else
                   78043: 
                   78044:   PHP_PGSQL=no
                   78045:   test "$PHP_ENABLE_ALL" && PHP_PGSQL=$PHP_ENABLE_ALL
                   78046: 
                   78047: fi
                   78048: 
                   78049: 
                   78050: 
                   78051: ext_output="yes, shared"
                   78052: ext_shared=yes
                   78053: case $PHP_PGSQL in
                   78054: shared,*)
                   78055:   PHP_PGSQL=`echo "$PHP_PGSQL"|$SED 's/^shared,//'`
                   78056:   ;;
                   78057: shared)
                   78058:   PHP_PGSQL=yes
                   78059:   ;;
                   78060: no)
                   78061:   ext_output=no
                   78062:   ext_shared=no
                   78063:   ;;
                   78064: *)
                   78065:   ext_output=yes
                   78066:   ext_shared=no
                   78067:   ;;
                   78068: esac
                   78069: 
                   78070: 
                   78071: 
                   78072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   78073: $as_echo "$ext_output" >&6; }
                   78074: 
                   78075: 
                   78076: 
                   78077: 
                   78078: if test "$PHP_PGSQL" != "no"; then
                   78079: 
                   78080:   if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
                   78081:     PGSQL_INCLUDE=$PGSQL_INCLUDE
                   78082:   else
                   78083: 
                   78084:     ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
                   78085: 
                   78086:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   78087:     PGSQL_INCLUDE="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
                   78088:   fi
                   78089: 
                   78090: 
                   78091:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5
                   78092: $as_echo_n "checking for pg_config... " >&6; }
                   78093:   for i in $PHP_PGSQL $PHP_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do
                   78094:        if test -x $i/pg_config; then
                   78095:       PG_CONFIG="$i/pg_config"
                   78096:       break;
                   78097:     fi
                   78098:   done
                   78099: 
                   78100:   if test -n "$PG_CONFIG"; then
                   78101:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
                   78102: $as_echo "$PG_CONFIG" >&6; }
                   78103:     PGSQL_INCLUDE=`$PG_CONFIG --includedir`
                   78104:     PGSQL_LIBDIR=`$PG_CONFIG --libdir`
                   78105:     if test -r "$PGSQL_INCLUDE/pg_config.h"; then
                   78106: 
                   78107: $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
                   78108: 
                   78109:     fi
                   78110:   else
                   78111:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   78112: $as_echo "not found" >&6; }
                   78113:     if test "$PHP_PGSQL" = "yes"; then
                   78114:       PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql"
                   78115:     else
                   78116:       PGSQL_SEARCH_PATHS=$PHP_PGSQL
                   78117:     fi
                   78118: 
                   78119:     for i in $PGSQL_SEARCH_PATHS; do
                   78120:       for j in include include/pgsql include/postgres include/postgresql ""; do
                   78121:         if test -r "$i/$j/libpq-fe.h"; then
                   78122:           PGSQL_INC_BASE=$i
                   78123:           PGSQL_INCLUDE=$i/$j
                   78124:           if test -r "$i/$j/pg_config.h"; then
                   78125: 
                   78126: $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
                   78127: 
                   78128:           fi
                   78129:         fi
                   78130:       done
                   78131: 
                   78132:       for j in lib $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do
                   78133:         if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then
                   78134:           PGSQL_LIBDIR=$i/$j
                   78135:         fi
                   78136:       done
                   78137:     done
                   78138:   fi
                   78139: 
                   78140:   if test -z "$PGSQL_INCLUDE"; then
                   78141:     as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5
                   78142:   fi
                   78143: 
                   78144:   if test -z "$PGSQL_LIBDIR"; then
                   78145:     as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5
                   78146:   fi
                   78147: 
                   78148:   if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then
                   78149:     as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5
                   78150:   fi
                   78151: 
                   78152: 
                   78153: $as_echo "#define HAVE_PGSQL 1" >>confdefs.h
                   78154: 
                   78155:   old_LIBS=$LIBS
                   78156:   old_LDFLAGS=$LDFLAGS
                   78157:   LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS"
                   78158:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeString in -lpq" >&5
                   78159: $as_echo_n "checking for PQescapeString in -lpq... " >&6; }
                   78160: if ${ac_cv_lib_pq_PQescapeString+:} false; then :
                   78161:   $as_echo_n "(cached) " >&6
                   78162: else
                   78163:   ac_check_lib_save_LIBS=$LIBS
                   78164: LIBS="-lpq  $LIBS"
                   78165: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78166: /* end confdefs.h.  */
                   78167: 
                   78168: /* Override any GCC internal prototype to avoid an error.
                   78169:    Use char because int might match the return type of a GCC
                   78170:    builtin and then its argument prototype would still apply.  */
                   78171: #ifdef __cplusplus
                   78172: extern "C"
                   78173: #endif
                   78174: char PQescapeString ();
                   78175: int
                   78176: main ()
                   78177: {
                   78178: return PQescapeString ();
                   78179:   ;
                   78180:   return 0;
                   78181: }
                   78182: _ACEOF
                   78183: if ac_fn_c_try_link "$LINENO"; then :
                   78184:   ac_cv_lib_pq_PQescapeString=yes
                   78185: else
                   78186:   ac_cv_lib_pq_PQescapeString=no
                   78187: fi
                   78188: rm -f core conftest.err conftest.$ac_objext \
                   78189:     conftest$ac_exeext conftest.$ac_ext
                   78190: LIBS=$ac_check_lib_save_LIBS
                   78191: fi
                   78192: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeString" >&5
                   78193: $as_echo "$ac_cv_lib_pq_PQescapeString" >&6; }
                   78194: if test "x$ac_cv_lib_pq_PQescapeString" = xyes; then :
                   78195: 
                   78196: $as_echo "#define HAVE_PQESCAPE 1" >>confdefs.h
                   78197: 
                   78198: fi
                   78199: 
                   78200:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQunescapeBytea in -lpq" >&5
                   78201: $as_echo_n "checking for PQunescapeBytea in -lpq... " >&6; }
                   78202: if ${ac_cv_lib_pq_PQunescapeBytea+:} false; then :
                   78203:   $as_echo_n "(cached) " >&6
                   78204: else
                   78205:   ac_check_lib_save_LIBS=$LIBS
                   78206: LIBS="-lpq  $LIBS"
                   78207: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78208: /* end confdefs.h.  */
                   78209: 
                   78210: /* Override any GCC internal prototype to avoid an error.
                   78211:    Use char because int might match the return type of a GCC
                   78212:    builtin and then its argument prototype would still apply.  */
                   78213: #ifdef __cplusplus
                   78214: extern "C"
                   78215: #endif
                   78216: char PQunescapeBytea ();
                   78217: int
                   78218: main ()
                   78219: {
                   78220: return PQunescapeBytea ();
                   78221:   ;
                   78222:   return 0;
                   78223: }
                   78224: _ACEOF
                   78225: if ac_fn_c_try_link "$LINENO"; then :
                   78226:   ac_cv_lib_pq_PQunescapeBytea=yes
                   78227: else
                   78228:   ac_cv_lib_pq_PQunescapeBytea=no
                   78229: fi
                   78230: rm -f core conftest.err conftest.$ac_objext \
                   78231:     conftest$ac_exeext conftest.$ac_ext
                   78232: LIBS=$ac_check_lib_save_LIBS
                   78233: fi
                   78234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQunescapeBytea" >&5
                   78235: $as_echo "$ac_cv_lib_pq_PQunescapeBytea" >&6; }
                   78236: if test "x$ac_cv_lib_pq_PQunescapeBytea" = xyes; then :
                   78237: 
                   78238: $as_echo "#define HAVE_PQUNESCAPEBYTEA 1" >>confdefs.h
                   78239: 
                   78240: fi
                   78241: 
                   78242:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetnonblocking in -lpq" >&5
                   78243: $as_echo_n "checking for PQsetnonblocking in -lpq... " >&6; }
                   78244: if ${ac_cv_lib_pq_PQsetnonblocking+:} false; then :
                   78245:   $as_echo_n "(cached) " >&6
                   78246: else
                   78247:   ac_check_lib_save_LIBS=$LIBS
                   78248: LIBS="-lpq  $LIBS"
                   78249: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78250: /* end confdefs.h.  */
                   78251: 
                   78252: /* Override any GCC internal prototype to avoid an error.
                   78253:    Use char because int might match the return type of a GCC
                   78254:    builtin and then its argument prototype would still apply.  */
                   78255: #ifdef __cplusplus
                   78256: extern "C"
                   78257: #endif
                   78258: char PQsetnonblocking ();
                   78259: int
                   78260: main ()
                   78261: {
                   78262: return PQsetnonblocking ();
                   78263:   ;
                   78264:   return 0;
                   78265: }
                   78266: _ACEOF
                   78267: if ac_fn_c_try_link "$LINENO"; then :
                   78268:   ac_cv_lib_pq_PQsetnonblocking=yes
                   78269: else
                   78270:   ac_cv_lib_pq_PQsetnonblocking=no
                   78271: fi
                   78272: rm -f core conftest.err conftest.$ac_objext \
                   78273:     conftest$ac_exeext conftest.$ac_ext
                   78274: LIBS=$ac_check_lib_save_LIBS
                   78275: fi
                   78276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetnonblocking" >&5
                   78277: $as_echo "$ac_cv_lib_pq_PQsetnonblocking" >&6; }
                   78278: if test "x$ac_cv_lib_pq_PQsetnonblocking" = xyes; then :
                   78279: 
                   78280: $as_echo "#define HAVE_PQSETNONBLOCKING 1" >>confdefs.h
                   78281: 
                   78282: fi
                   78283: 
                   78284:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQcmdTuples in -lpq" >&5
                   78285: $as_echo_n "checking for PQcmdTuples in -lpq... " >&6; }
                   78286: if ${ac_cv_lib_pq_PQcmdTuples+:} false; then :
                   78287:   $as_echo_n "(cached) " >&6
                   78288: else
                   78289:   ac_check_lib_save_LIBS=$LIBS
                   78290: LIBS="-lpq  $LIBS"
                   78291: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78292: /* end confdefs.h.  */
                   78293: 
                   78294: /* Override any GCC internal prototype to avoid an error.
                   78295:    Use char because int might match the return type of a GCC
                   78296:    builtin and then its argument prototype would still apply.  */
                   78297: #ifdef __cplusplus
                   78298: extern "C"
                   78299: #endif
                   78300: char PQcmdTuples ();
                   78301: int
                   78302: main ()
                   78303: {
                   78304: return PQcmdTuples ();
                   78305:   ;
                   78306:   return 0;
                   78307: }
                   78308: _ACEOF
                   78309: if ac_fn_c_try_link "$LINENO"; then :
                   78310:   ac_cv_lib_pq_PQcmdTuples=yes
                   78311: else
                   78312:   ac_cv_lib_pq_PQcmdTuples=no
                   78313: fi
                   78314: rm -f core conftest.err conftest.$ac_objext \
                   78315:     conftest$ac_exeext conftest.$ac_ext
                   78316: LIBS=$ac_check_lib_save_LIBS
                   78317: fi
                   78318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQcmdTuples" >&5
                   78319: $as_echo "$ac_cv_lib_pq_PQcmdTuples" >&6; }
                   78320: if test "x$ac_cv_lib_pq_PQcmdTuples" = xyes; then :
                   78321: 
                   78322: $as_echo "#define HAVE_PQCMDTUPLES 1" >>confdefs.h
                   78323: 
                   78324: fi
                   78325: 
                   78326:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQoidValue in -lpq" >&5
                   78327: $as_echo_n "checking for PQoidValue in -lpq... " >&6; }
                   78328: if ${ac_cv_lib_pq_PQoidValue+:} false; then :
                   78329:   $as_echo_n "(cached) " >&6
                   78330: else
                   78331:   ac_check_lib_save_LIBS=$LIBS
                   78332: LIBS="-lpq  $LIBS"
                   78333: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78334: /* end confdefs.h.  */
                   78335: 
                   78336: /* Override any GCC internal prototype to avoid an error.
                   78337:    Use char because int might match the return type of a GCC
                   78338:    builtin and then its argument prototype would still apply.  */
                   78339: #ifdef __cplusplus
                   78340: extern "C"
                   78341: #endif
                   78342: char PQoidValue ();
                   78343: int
                   78344: main ()
                   78345: {
                   78346: return PQoidValue ();
                   78347:   ;
                   78348:   return 0;
                   78349: }
                   78350: _ACEOF
                   78351: if ac_fn_c_try_link "$LINENO"; then :
                   78352:   ac_cv_lib_pq_PQoidValue=yes
                   78353: else
                   78354:   ac_cv_lib_pq_PQoidValue=no
                   78355: fi
                   78356: rm -f core conftest.err conftest.$ac_objext \
                   78357:     conftest$ac_exeext conftest.$ac_ext
                   78358: LIBS=$ac_check_lib_save_LIBS
                   78359: fi
                   78360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQoidValue" >&5
                   78361: $as_echo "$ac_cv_lib_pq_PQoidValue" >&6; }
                   78362: if test "x$ac_cv_lib_pq_PQoidValue" = xyes; then :
                   78363: 
                   78364: $as_echo "#define HAVE_PQOIDVALUE 1" >>confdefs.h
                   78365: 
                   78366: fi
                   78367: 
                   78368:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQclientEncoding in -lpq" >&5
                   78369: $as_echo_n "checking for PQclientEncoding in -lpq... " >&6; }
                   78370: if ${ac_cv_lib_pq_PQclientEncoding+:} false; then :
                   78371:   $as_echo_n "(cached) " >&6
                   78372: else
                   78373:   ac_check_lib_save_LIBS=$LIBS
                   78374: LIBS="-lpq  $LIBS"
                   78375: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78376: /* end confdefs.h.  */
                   78377: 
                   78378: /* Override any GCC internal prototype to avoid an error.
                   78379:    Use char because int might match the return type of a GCC
                   78380:    builtin and then its argument prototype would still apply.  */
                   78381: #ifdef __cplusplus
                   78382: extern "C"
                   78383: #endif
                   78384: char PQclientEncoding ();
                   78385: int
                   78386: main ()
                   78387: {
                   78388: return PQclientEncoding ();
                   78389:   ;
                   78390:   return 0;
                   78391: }
                   78392: _ACEOF
                   78393: if ac_fn_c_try_link "$LINENO"; then :
                   78394:   ac_cv_lib_pq_PQclientEncoding=yes
                   78395: else
                   78396:   ac_cv_lib_pq_PQclientEncoding=no
                   78397: fi
                   78398: rm -f core conftest.err conftest.$ac_objext \
                   78399:     conftest$ac_exeext conftest.$ac_ext
                   78400: LIBS=$ac_check_lib_save_LIBS
                   78401: fi
                   78402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQclientEncoding" >&5
                   78403: $as_echo "$ac_cv_lib_pq_PQclientEncoding" >&6; }
                   78404: if test "x$ac_cv_lib_pq_PQclientEncoding" = xyes; then :
                   78405: 
                   78406: $as_echo "#define HAVE_PQCLIENTENCODING 1" >>confdefs.h
                   78407: 
                   78408: fi
                   78409: 
                   78410:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQparameterStatus in -lpq" >&5
                   78411: $as_echo_n "checking for PQparameterStatus in -lpq... " >&6; }
                   78412: if ${ac_cv_lib_pq_PQparameterStatus+:} false; then :
                   78413:   $as_echo_n "(cached) " >&6
                   78414: else
                   78415:   ac_check_lib_save_LIBS=$LIBS
                   78416: LIBS="-lpq  $LIBS"
                   78417: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78418: /* end confdefs.h.  */
                   78419: 
                   78420: /* Override any GCC internal prototype to avoid an error.
                   78421:    Use char because int might match the return type of a GCC
                   78422:    builtin and then its argument prototype would still apply.  */
                   78423: #ifdef __cplusplus
                   78424: extern "C"
                   78425: #endif
                   78426: char PQparameterStatus ();
                   78427: int
                   78428: main ()
                   78429: {
                   78430: return PQparameterStatus ();
                   78431:   ;
                   78432:   return 0;
                   78433: }
                   78434: _ACEOF
                   78435: if ac_fn_c_try_link "$LINENO"; then :
                   78436:   ac_cv_lib_pq_PQparameterStatus=yes
                   78437: else
                   78438:   ac_cv_lib_pq_PQparameterStatus=no
                   78439: fi
                   78440: rm -f core conftest.err conftest.$ac_objext \
                   78441:     conftest$ac_exeext conftest.$ac_ext
                   78442: LIBS=$ac_check_lib_save_LIBS
                   78443: fi
                   78444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQparameterStatus" >&5
                   78445: $as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; }
                   78446: if test "x$ac_cv_lib_pq_PQparameterStatus" = xyes; then :
                   78447: 
                   78448: $as_echo "#define HAVE_PQPARAMETERSTATUS 1" >>confdefs.h
                   78449: 
                   78450: fi
                   78451: 
                   78452:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprotocolVersion in -lpq" >&5
                   78453: $as_echo_n "checking for PQprotocolVersion in -lpq... " >&6; }
                   78454: if ${ac_cv_lib_pq_PQprotocolVersion+:} false; then :
                   78455:   $as_echo_n "(cached) " >&6
                   78456: else
                   78457:   ac_check_lib_save_LIBS=$LIBS
                   78458: LIBS="-lpq  $LIBS"
                   78459: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78460: /* end confdefs.h.  */
                   78461: 
                   78462: /* Override any GCC internal prototype to avoid an error.
                   78463:    Use char because int might match the return type of a GCC
                   78464:    builtin and then its argument prototype would still apply.  */
                   78465: #ifdef __cplusplus
                   78466: extern "C"
                   78467: #endif
                   78468: char PQprotocolVersion ();
                   78469: int
                   78470: main ()
                   78471: {
                   78472: return PQprotocolVersion ();
                   78473:   ;
                   78474:   return 0;
                   78475: }
                   78476: _ACEOF
                   78477: if ac_fn_c_try_link "$LINENO"; then :
                   78478:   ac_cv_lib_pq_PQprotocolVersion=yes
                   78479: else
                   78480:   ac_cv_lib_pq_PQprotocolVersion=no
                   78481: fi
                   78482: rm -f core conftest.err conftest.$ac_objext \
                   78483:     conftest$ac_exeext conftest.$ac_ext
                   78484: LIBS=$ac_check_lib_save_LIBS
                   78485: fi
                   78486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprotocolVersion" >&5
                   78487: $as_echo "$ac_cv_lib_pq_PQprotocolVersion" >&6; }
                   78488: if test "x$ac_cv_lib_pq_PQprotocolVersion" = xyes; then :
                   78489: 
                   78490: $as_echo "#define HAVE_PQPROTOCOLVERSION 1" >>confdefs.h
                   78491: 
                   78492: fi
                   78493: 
                   78494:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQtransactionStatus in -lpq" >&5
                   78495: $as_echo_n "checking for PQtransactionStatus in -lpq... " >&6; }
                   78496: if ${ac_cv_lib_pq_PQtransactionStatus+:} false; then :
                   78497:   $as_echo_n "(cached) " >&6
                   78498: else
                   78499:   ac_check_lib_save_LIBS=$LIBS
                   78500: LIBS="-lpq  $LIBS"
                   78501: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78502: /* end confdefs.h.  */
                   78503: 
                   78504: /* Override any GCC internal prototype to avoid an error.
                   78505:    Use char because int might match the return type of a GCC
                   78506:    builtin and then its argument prototype would still apply.  */
                   78507: #ifdef __cplusplus
                   78508: extern "C"
                   78509: #endif
                   78510: char PQtransactionStatus ();
                   78511: int
                   78512: main ()
                   78513: {
                   78514: return PQtransactionStatus ();
                   78515:   ;
                   78516:   return 0;
                   78517: }
                   78518: _ACEOF
                   78519: if ac_fn_c_try_link "$LINENO"; then :
                   78520:   ac_cv_lib_pq_PQtransactionStatus=yes
                   78521: else
                   78522:   ac_cv_lib_pq_PQtransactionStatus=no
                   78523: fi
                   78524: rm -f core conftest.err conftest.$ac_objext \
                   78525:     conftest$ac_exeext conftest.$ac_ext
                   78526: LIBS=$ac_check_lib_save_LIBS
                   78527: fi
                   78528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQtransactionStatus" >&5
                   78529: $as_echo "$ac_cv_lib_pq_PQtransactionStatus" >&6; }
                   78530: if test "x$ac_cv_lib_pq_PQtransactionStatus" = xyes; then :
                   78531: 
                   78532: $as_echo "#define HAVE_PGTRANSACTIONSTATUS 1" >>confdefs.h
                   78533: 
                   78534: fi
                   78535: 
                   78536:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecParams in -lpq" >&5
                   78537: $as_echo_n "checking for PQexecParams in -lpq... " >&6; }
                   78538: if ${ac_cv_lib_pq_PQexecParams+:} false; then :
                   78539:   $as_echo_n "(cached) " >&6
                   78540: else
                   78541:   ac_check_lib_save_LIBS=$LIBS
                   78542: LIBS="-lpq  $LIBS"
                   78543: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78544: /* end confdefs.h.  */
                   78545: 
                   78546: /* Override any GCC internal prototype to avoid an error.
                   78547:    Use char because int might match the return type of a GCC
                   78548:    builtin and then its argument prototype would still apply.  */
                   78549: #ifdef __cplusplus
                   78550: extern "C"
                   78551: #endif
                   78552: char PQexecParams ();
                   78553: int
                   78554: main ()
                   78555: {
                   78556: return PQexecParams ();
                   78557:   ;
                   78558:   return 0;
                   78559: }
                   78560: _ACEOF
                   78561: if ac_fn_c_try_link "$LINENO"; then :
                   78562:   ac_cv_lib_pq_PQexecParams=yes
                   78563: else
                   78564:   ac_cv_lib_pq_PQexecParams=no
                   78565: fi
                   78566: rm -f core conftest.err conftest.$ac_objext \
                   78567:     conftest$ac_exeext conftest.$ac_ext
                   78568: LIBS=$ac_check_lib_save_LIBS
                   78569: fi
                   78570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecParams" >&5
                   78571: $as_echo "$ac_cv_lib_pq_PQexecParams" >&6; }
                   78572: if test "x$ac_cv_lib_pq_PQexecParams" = xyes; then :
                   78573: 
                   78574: $as_echo "#define HAVE_PQEXECPARAMS 1" >>confdefs.h
                   78575: 
                   78576: fi
                   78577: 
                   78578:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5
                   78579: $as_echo_n "checking for PQprepare in -lpq... " >&6; }
                   78580: if ${ac_cv_lib_pq_PQprepare+:} false; then :
                   78581:   $as_echo_n "(cached) " >&6
                   78582: else
                   78583:   ac_check_lib_save_LIBS=$LIBS
                   78584: LIBS="-lpq  $LIBS"
                   78585: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78586: /* end confdefs.h.  */
                   78587: 
                   78588: /* Override any GCC internal prototype to avoid an error.
                   78589:    Use char because int might match the return type of a GCC
                   78590:    builtin and then its argument prototype would still apply.  */
                   78591: #ifdef __cplusplus
                   78592: extern "C"
                   78593: #endif
                   78594: char PQprepare ();
                   78595: int
                   78596: main ()
                   78597: {
                   78598: return PQprepare ();
                   78599:   ;
                   78600:   return 0;
                   78601: }
                   78602: _ACEOF
                   78603: if ac_fn_c_try_link "$LINENO"; then :
                   78604:   ac_cv_lib_pq_PQprepare=yes
                   78605: else
                   78606:   ac_cv_lib_pq_PQprepare=no
                   78607: fi
                   78608: rm -f core conftest.err conftest.$ac_objext \
                   78609:     conftest$ac_exeext conftest.$ac_ext
                   78610: LIBS=$ac_check_lib_save_LIBS
                   78611: fi
                   78612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5
                   78613: $as_echo "$ac_cv_lib_pq_PQprepare" >&6; }
                   78614: if test "x$ac_cv_lib_pq_PQprepare" = xyes; then :
                   78615: 
                   78616: $as_echo "#define HAVE_PQPREPARE 1" >>confdefs.h
                   78617: 
                   78618: fi
                   78619: 
                   78620:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecPrepared in -lpq" >&5
                   78621: $as_echo_n "checking for PQexecPrepared in -lpq... " >&6; }
                   78622: if ${ac_cv_lib_pq_PQexecPrepared+:} false; then :
                   78623:   $as_echo_n "(cached) " >&6
                   78624: else
                   78625:   ac_check_lib_save_LIBS=$LIBS
                   78626: LIBS="-lpq  $LIBS"
                   78627: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78628: /* end confdefs.h.  */
                   78629: 
                   78630: /* Override any GCC internal prototype to avoid an error.
                   78631:    Use char because int might match the return type of a GCC
                   78632:    builtin and then its argument prototype would still apply.  */
                   78633: #ifdef __cplusplus
                   78634: extern "C"
                   78635: #endif
                   78636: char PQexecPrepared ();
                   78637: int
                   78638: main ()
                   78639: {
                   78640: return PQexecPrepared ();
                   78641:   ;
                   78642:   return 0;
                   78643: }
                   78644: _ACEOF
                   78645: if ac_fn_c_try_link "$LINENO"; then :
                   78646:   ac_cv_lib_pq_PQexecPrepared=yes
                   78647: else
                   78648:   ac_cv_lib_pq_PQexecPrepared=no
                   78649: fi
                   78650: rm -f core conftest.err conftest.$ac_objext \
                   78651:     conftest$ac_exeext conftest.$ac_ext
                   78652: LIBS=$ac_check_lib_save_LIBS
                   78653: fi
                   78654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecPrepared" >&5
                   78655: $as_echo "$ac_cv_lib_pq_PQexecPrepared" >&6; }
                   78656: if test "x$ac_cv_lib_pq_PQexecPrepared" = xyes; then :
                   78657: 
                   78658: $as_echo "#define HAVE_PQEXECPREPARED 1" >>confdefs.h
                   78659: 
                   78660: fi
                   78661: 
                   78662:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQresultErrorField in -lpq" >&5
                   78663: $as_echo_n "checking for PQresultErrorField in -lpq... " >&6; }
                   78664: if ${ac_cv_lib_pq_PQresultErrorField+:} false; then :
                   78665:   $as_echo_n "(cached) " >&6
                   78666: else
                   78667:   ac_check_lib_save_LIBS=$LIBS
                   78668: LIBS="-lpq  $LIBS"
                   78669: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78670: /* end confdefs.h.  */
                   78671: 
                   78672: /* Override any GCC internal prototype to avoid an error.
                   78673:    Use char because int might match the return type of a GCC
                   78674:    builtin and then its argument prototype would still apply.  */
                   78675: #ifdef __cplusplus
                   78676: extern "C"
                   78677: #endif
                   78678: char PQresultErrorField ();
                   78679: int
                   78680: main ()
                   78681: {
                   78682: return PQresultErrorField ();
                   78683:   ;
                   78684:   return 0;
                   78685: }
                   78686: _ACEOF
                   78687: if ac_fn_c_try_link "$LINENO"; then :
                   78688:   ac_cv_lib_pq_PQresultErrorField=yes
                   78689: else
                   78690:   ac_cv_lib_pq_PQresultErrorField=no
                   78691: fi
                   78692: rm -f core conftest.err conftest.$ac_objext \
                   78693:     conftest$ac_exeext conftest.$ac_ext
                   78694: LIBS=$ac_check_lib_save_LIBS
                   78695: fi
                   78696: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQresultErrorField" >&5
                   78697: $as_echo "$ac_cv_lib_pq_PQresultErrorField" >&6; }
                   78698: if test "x$ac_cv_lib_pq_PQresultErrorField" = xyes; then :
                   78699: 
                   78700: $as_echo "#define HAVE_PQRESULTERRORFIELD 1" >>confdefs.h
                   78701: 
                   78702: fi
                   78703: 
                   78704:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryParams in -lpq" >&5
                   78705: $as_echo_n "checking for PQsendQueryParams in -lpq... " >&6; }
                   78706: if ${ac_cv_lib_pq_PQsendQueryParams+:} false; then :
                   78707:   $as_echo_n "(cached) " >&6
                   78708: else
                   78709:   ac_check_lib_save_LIBS=$LIBS
                   78710: LIBS="-lpq  $LIBS"
                   78711: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78712: /* end confdefs.h.  */
                   78713: 
                   78714: /* Override any GCC internal prototype to avoid an error.
                   78715:    Use char because int might match the return type of a GCC
                   78716:    builtin and then its argument prototype would still apply.  */
                   78717: #ifdef __cplusplus
                   78718: extern "C"
                   78719: #endif
                   78720: char PQsendQueryParams ();
                   78721: int
                   78722: main ()
                   78723: {
                   78724: return PQsendQueryParams ();
                   78725:   ;
                   78726:   return 0;
                   78727: }
                   78728: _ACEOF
                   78729: if ac_fn_c_try_link "$LINENO"; then :
                   78730:   ac_cv_lib_pq_PQsendQueryParams=yes
                   78731: else
                   78732:   ac_cv_lib_pq_PQsendQueryParams=no
                   78733: fi
                   78734: rm -f core conftest.err conftest.$ac_objext \
                   78735:     conftest$ac_exeext conftest.$ac_ext
                   78736: LIBS=$ac_check_lib_save_LIBS
                   78737: fi
                   78738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryParams" >&5
                   78739: $as_echo "$ac_cv_lib_pq_PQsendQueryParams" >&6; }
                   78740: if test "x$ac_cv_lib_pq_PQsendQueryParams" = xyes; then :
                   78741: 
                   78742: $as_echo "#define HAVE_PQSENDQUERYPARAMS 1" >>confdefs.h
                   78743: 
                   78744: fi
                   78745: 
                   78746:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendPrepare in -lpq" >&5
                   78747: $as_echo_n "checking for PQsendPrepare in -lpq... " >&6; }
                   78748: if ${ac_cv_lib_pq_PQsendPrepare+:} false; then :
                   78749:   $as_echo_n "(cached) " >&6
                   78750: else
                   78751:   ac_check_lib_save_LIBS=$LIBS
                   78752: LIBS="-lpq  $LIBS"
                   78753: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78754: /* end confdefs.h.  */
                   78755: 
                   78756: /* Override any GCC internal prototype to avoid an error.
                   78757:    Use char because int might match the return type of a GCC
                   78758:    builtin and then its argument prototype would still apply.  */
                   78759: #ifdef __cplusplus
                   78760: extern "C"
                   78761: #endif
                   78762: char PQsendPrepare ();
                   78763: int
                   78764: main ()
                   78765: {
                   78766: return PQsendPrepare ();
                   78767:   ;
                   78768:   return 0;
                   78769: }
                   78770: _ACEOF
                   78771: if ac_fn_c_try_link "$LINENO"; then :
                   78772:   ac_cv_lib_pq_PQsendPrepare=yes
                   78773: else
                   78774:   ac_cv_lib_pq_PQsendPrepare=no
                   78775: fi
                   78776: rm -f core conftest.err conftest.$ac_objext \
                   78777:     conftest$ac_exeext conftest.$ac_ext
                   78778: LIBS=$ac_check_lib_save_LIBS
                   78779: fi
                   78780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendPrepare" >&5
                   78781: $as_echo "$ac_cv_lib_pq_PQsendPrepare" >&6; }
                   78782: if test "x$ac_cv_lib_pq_PQsendPrepare" = xyes; then :
                   78783: 
                   78784: $as_echo "#define HAVE_PQSENDPREPARE 1" >>confdefs.h
                   78785: 
                   78786: fi
                   78787: 
                   78788:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
                   78789: $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
                   78790: if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
                   78791:   $as_echo_n "(cached) " >&6
                   78792: else
                   78793:   ac_check_lib_save_LIBS=$LIBS
                   78794: LIBS="-lpq  $LIBS"
                   78795: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78796: /* end confdefs.h.  */
                   78797: 
                   78798: /* Override any GCC internal prototype to avoid an error.
                   78799:    Use char because int might match the return type of a GCC
                   78800:    builtin and then its argument prototype would still apply.  */
                   78801: #ifdef __cplusplus
                   78802: extern "C"
                   78803: #endif
                   78804: char PQsendQueryPrepared ();
                   78805: int
                   78806: main ()
                   78807: {
                   78808: return PQsendQueryPrepared ();
                   78809:   ;
                   78810:   return 0;
                   78811: }
                   78812: _ACEOF
                   78813: if ac_fn_c_try_link "$LINENO"; then :
                   78814:   ac_cv_lib_pq_PQsendQueryPrepared=yes
                   78815: else
                   78816:   ac_cv_lib_pq_PQsendQueryPrepared=no
                   78817: fi
                   78818: rm -f core conftest.err conftest.$ac_objext \
                   78819:     conftest$ac_exeext conftest.$ac_ext
                   78820: LIBS=$ac_check_lib_save_LIBS
                   78821: fi
                   78822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
                   78823: $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
                   78824: if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
                   78825: 
                   78826: $as_echo "#define HAVE_PQSENDQUERYPREPARED 1" >>confdefs.h
                   78827: 
                   78828: fi
                   78829: 
                   78830:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
                   78831: $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
                   78832: if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
                   78833:   $as_echo_n "(cached) " >&6
                   78834: else
                   78835:   ac_check_lib_save_LIBS=$LIBS
                   78836: LIBS="-lpq  $LIBS"
                   78837: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78838: /* end confdefs.h.  */
                   78839: 
                   78840: /* Override any GCC internal prototype to avoid an error.
                   78841:    Use char because int might match the return type of a GCC
                   78842:    builtin and then its argument prototype would still apply.  */
                   78843: #ifdef __cplusplus
                   78844: extern "C"
                   78845: #endif
                   78846: char PQputCopyData ();
                   78847: int
                   78848: main ()
                   78849: {
                   78850: return PQputCopyData ();
                   78851:   ;
                   78852:   return 0;
                   78853: }
                   78854: _ACEOF
                   78855: if ac_fn_c_try_link "$LINENO"; then :
                   78856:   ac_cv_lib_pq_PQputCopyData=yes
                   78857: else
                   78858:   ac_cv_lib_pq_PQputCopyData=no
                   78859: fi
                   78860: rm -f core conftest.err conftest.$ac_objext \
                   78861:     conftest$ac_exeext conftest.$ac_ext
                   78862: LIBS=$ac_check_lib_save_LIBS
                   78863: fi
                   78864: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
                   78865: $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
                   78866: if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
                   78867: 
                   78868: $as_echo "#define HAVE_PQPUTCOPYDATA 1" >>confdefs.h
                   78869: 
                   78870: fi
                   78871: 
                   78872:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyEnd in -lpq" >&5
                   78873: $as_echo_n "checking for PQputCopyEnd in -lpq... " >&6; }
                   78874: if ${ac_cv_lib_pq_PQputCopyEnd+:} false; then :
                   78875:   $as_echo_n "(cached) " >&6
                   78876: else
                   78877:   ac_check_lib_save_LIBS=$LIBS
                   78878: LIBS="-lpq  $LIBS"
                   78879: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78880: /* end confdefs.h.  */
                   78881: 
                   78882: /* Override any GCC internal prototype to avoid an error.
                   78883:    Use char because int might match the return type of a GCC
                   78884:    builtin and then its argument prototype would still apply.  */
                   78885: #ifdef __cplusplus
                   78886: extern "C"
                   78887: #endif
                   78888: char PQputCopyEnd ();
                   78889: int
                   78890: main ()
                   78891: {
                   78892: return PQputCopyEnd ();
                   78893:   ;
                   78894:   return 0;
                   78895: }
                   78896: _ACEOF
                   78897: if ac_fn_c_try_link "$LINENO"; then :
                   78898:   ac_cv_lib_pq_PQputCopyEnd=yes
                   78899: else
                   78900:   ac_cv_lib_pq_PQputCopyEnd=no
                   78901: fi
                   78902: rm -f core conftest.err conftest.$ac_objext \
                   78903:     conftest$ac_exeext conftest.$ac_ext
                   78904: LIBS=$ac_check_lib_save_LIBS
                   78905: fi
                   78906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyEnd" >&5
                   78907: $as_echo "$ac_cv_lib_pq_PQputCopyEnd" >&6; }
                   78908: if test "x$ac_cv_lib_pq_PQputCopyEnd" = xyes; then :
                   78909: 
                   78910: $as_echo "#define HAVE_PQPUTCOPYEND 1" >>confdefs.h
                   78911: 
                   78912: fi
                   78913: 
                   78914:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQgetCopyData in -lpq" >&5
                   78915: $as_echo_n "checking for PQgetCopyData in -lpq... " >&6; }
                   78916: if ${ac_cv_lib_pq_PQgetCopyData+:} false; then :
                   78917:   $as_echo_n "(cached) " >&6
                   78918: else
                   78919:   ac_check_lib_save_LIBS=$LIBS
                   78920: LIBS="-lpq  $LIBS"
                   78921: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78922: /* end confdefs.h.  */
                   78923: 
                   78924: /* Override any GCC internal prototype to avoid an error.
                   78925:    Use char because int might match the return type of a GCC
                   78926:    builtin and then its argument prototype would still apply.  */
                   78927: #ifdef __cplusplus
                   78928: extern "C"
                   78929: #endif
                   78930: char PQgetCopyData ();
                   78931: int
                   78932: main ()
                   78933: {
                   78934: return PQgetCopyData ();
                   78935:   ;
                   78936:   return 0;
                   78937: }
                   78938: _ACEOF
                   78939: if ac_fn_c_try_link "$LINENO"; then :
                   78940:   ac_cv_lib_pq_PQgetCopyData=yes
                   78941: else
                   78942:   ac_cv_lib_pq_PQgetCopyData=no
                   78943: fi
                   78944: rm -f core conftest.err conftest.$ac_objext \
                   78945:     conftest$ac_exeext conftest.$ac_ext
                   78946: LIBS=$ac_check_lib_save_LIBS
                   78947: fi
                   78948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQgetCopyData" >&5
                   78949: $as_echo "$ac_cv_lib_pq_PQgetCopyData" >&6; }
                   78950: if test "x$ac_cv_lib_pq_PQgetCopyData" = xyes; then :
                   78951: 
                   78952: $as_echo "#define HAVE_PQGETCOPYDATA 1" >>confdefs.h
                   78953: 
                   78954: fi
                   78955: 
                   78956:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQfreemem in -lpq" >&5
                   78957: $as_echo_n "checking for PQfreemem in -lpq... " >&6; }
                   78958: if ${ac_cv_lib_pq_PQfreemem+:} false; then :
                   78959:   $as_echo_n "(cached) " >&6
                   78960: else
                   78961:   ac_check_lib_save_LIBS=$LIBS
                   78962: LIBS="-lpq  $LIBS"
                   78963: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   78964: /* end confdefs.h.  */
                   78965: 
                   78966: /* Override any GCC internal prototype to avoid an error.
                   78967:    Use char because int might match the return type of a GCC
                   78968:    builtin and then its argument prototype would still apply.  */
                   78969: #ifdef __cplusplus
                   78970: extern "C"
                   78971: #endif
                   78972: char PQfreemem ();
                   78973: int
                   78974: main ()
                   78975: {
                   78976: return PQfreemem ();
                   78977:   ;
                   78978:   return 0;
                   78979: }
                   78980: _ACEOF
                   78981: if ac_fn_c_try_link "$LINENO"; then :
                   78982:   ac_cv_lib_pq_PQfreemem=yes
                   78983: else
                   78984:   ac_cv_lib_pq_PQfreemem=no
                   78985: fi
                   78986: rm -f core conftest.err conftest.$ac_objext \
                   78987:     conftest$ac_exeext conftest.$ac_ext
                   78988: LIBS=$ac_check_lib_save_LIBS
                   78989: fi
                   78990: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQfreemem" >&5
                   78991: $as_echo "$ac_cv_lib_pq_PQfreemem" >&6; }
                   78992: if test "x$ac_cv_lib_pq_PQfreemem" = xyes; then :
                   78993: 
                   78994: $as_echo "#define HAVE_PQFREEMEM 1" >>confdefs.h
                   78995: 
                   78996: fi
                   78997: 
                   78998:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetErrorVerbosity in -lpq" >&5
                   78999: $as_echo_n "checking for PQsetErrorVerbosity in -lpq... " >&6; }
                   79000: if ${ac_cv_lib_pq_PQsetErrorVerbosity+:} false; then :
                   79001:   $as_echo_n "(cached) " >&6
                   79002: else
                   79003:   ac_check_lib_save_LIBS=$LIBS
                   79004: LIBS="-lpq  $LIBS"
                   79005: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   79006: /* end confdefs.h.  */
                   79007: 
                   79008: /* Override any GCC internal prototype to avoid an error.
                   79009:    Use char because int might match the return type of a GCC
                   79010:    builtin and then its argument prototype would still apply.  */
                   79011: #ifdef __cplusplus
                   79012: extern "C"
                   79013: #endif
                   79014: char PQsetErrorVerbosity ();
                   79015: int
                   79016: main ()
                   79017: {
                   79018: return PQsetErrorVerbosity ();
                   79019:   ;
                   79020:   return 0;
                   79021: }
                   79022: _ACEOF
                   79023: if ac_fn_c_try_link "$LINENO"; then :
                   79024:   ac_cv_lib_pq_PQsetErrorVerbosity=yes
                   79025: else
                   79026:   ac_cv_lib_pq_PQsetErrorVerbosity=no
                   79027: fi
                   79028: rm -f core conftest.err conftest.$ac_objext \
                   79029:     conftest$ac_exeext conftest.$ac_ext
                   79030: LIBS=$ac_check_lib_save_LIBS
                   79031: fi
                   79032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetErrorVerbosity" >&5
                   79033: $as_echo "$ac_cv_lib_pq_PQsetErrorVerbosity" >&6; }
                   79034: if test "x$ac_cv_lib_pq_PQsetErrorVerbosity" = xyes; then :
                   79035: 
                   79036: $as_echo "#define HAVE_PQSETERRORVERBOSITY 1" >>confdefs.h
                   79037: 
                   79038: fi
                   79039: 
                   79040:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQftable in -lpq" >&5
                   79041: $as_echo_n "checking for PQftable in -lpq... " >&6; }
                   79042: if ${ac_cv_lib_pq_PQftable+:} false; then :
                   79043:   $as_echo_n "(cached) " >&6
                   79044: else
                   79045:   ac_check_lib_save_LIBS=$LIBS
                   79046: LIBS="-lpq  $LIBS"
                   79047: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   79048: /* end confdefs.h.  */
                   79049: 
                   79050: /* Override any GCC internal prototype to avoid an error.
                   79051:    Use char because int might match the return type of a GCC
                   79052:    builtin and then its argument prototype would still apply.  */
                   79053: #ifdef __cplusplus
                   79054: extern "C"
                   79055: #endif
                   79056: char PQftable ();
                   79057: int
                   79058: main ()
                   79059: {
                   79060: return PQftable ();
                   79061:   ;
                   79062:   return 0;
                   79063: }
                   79064: _ACEOF
                   79065: if ac_fn_c_try_link "$LINENO"; then :
                   79066:   ac_cv_lib_pq_PQftable=yes
                   79067: else
                   79068:   ac_cv_lib_pq_PQftable=no
                   79069: fi
                   79070: rm -f core conftest.err conftest.$ac_objext \
                   79071:     conftest$ac_exeext conftest.$ac_ext
                   79072: LIBS=$ac_check_lib_save_LIBS
                   79073: fi
                   79074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQftable" >&5
                   79075: $as_echo "$ac_cv_lib_pq_PQftable" >&6; }
                   79076: if test "x$ac_cv_lib_pq_PQftable" = xyes; then :
                   79077: 
                   79078: $as_echo "#define HAVE_PQFTABLE 1" >>confdefs.h
                   79079: 
                   79080: fi
                   79081: 
                   79082:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
                   79083: $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
                   79084: if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then :
                   79085:   $as_echo_n "(cached) " >&6
                   79086: else
                   79087:   ac_check_lib_save_LIBS=$LIBS
                   79088: LIBS="-lpq  $LIBS"
                   79089: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   79090: /* end confdefs.h.  */
                   79091: 
                   79092: /* Override any GCC internal prototype to avoid an error.
                   79093:    Use char because int might match the return type of a GCC
                   79094:    builtin and then its argument prototype would still apply.  */
                   79095: #ifdef __cplusplus
                   79096: extern "C"
                   79097: #endif
                   79098: char PQescapeStringConn ();
                   79099: int
                   79100: main ()
                   79101: {
                   79102: return PQescapeStringConn ();
                   79103:   ;
                   79104:   return 0;
                   79105: }
                   79106: _ACEOF
                   79107: if ac_fn_c_try_link "$LINENO"; then :
                   79108:   ac_cv_lib_pq_PQescapeStringConn=yes
                   79109: else
                   79110:   ac_cv_lib_pq_PQescapeStringConn=no
                   79111: fi
                   79112: rm -f core conftest.err conftest.$ac_objext \
                   79113:     conftest$ac_exeext conftest.$ac_ext
                   79114: LIBS=$ac_check_lib_save_LIBS
                   79115: fi
                   79116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
                   79117: $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
                   79118: if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then :
                   79119: 
                   79120: $as_echo "#define HAVE_PQESCAPE_CONN 1" >>confdefs.h
                   79121: 
                   79122: fi
                   79123: 
                   79124:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5
                   79125: $as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; }
                   79126: if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then :
                   79127:   $as_echo_n "(cached) " >&6
                   79128: else
                   79129:   ac_check_lib_save_LIBS=$LIBS
                   79130: LIBS="-lpq  $LIBS"
                   79131: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   79132: /* end confdefs.h.  */
                   79133: 
                   79134: /* Override any GCC internal prototype to avoid an error.
                   79135:    Use char because int might match the return type of a GCC
                   79136:    builtin and then its argument prototype would still apply.  */
                   79137: #ifdef __cplusplus
                   79138: extern "C"
                   79139: #endif
                   79140: char PQescapeByteaConn ();
                   79141: int
                   79142: main ()
                   79143: {
                   79144: return PQescapeByteaConn ();
                   79145:   ;
                   79146:   return 0;
                   79147: }
                   79148: _ACEOF
                   79149: if ac_fn_c_try_link "$LINENO"; then :
                   79150:   ac_cv_lib_pq_PQescapeByteaConn=yes
                   79151: else
                   79152:   ac_cv_lib_pq_PQescapeByteaConn=no
                   79153: fi
                   79154: rm -f core conftest.err conftest.$ac_objext \
                   79155:     conftest$ac_exeext conftest.$ac_ext
                   79156: LIBS=$ac_check_lib_save_LIBS
                   79157: fi
                   79158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5
                   79159: $as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; }
                   79160: if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then :
                   79161: 
                   79162: $as_echo "#define HAVE_PQESCAPE_BYTEA_CONN 1" >>confdefs.h
                   79163: 
                   79164: fi
                   79165: 
                   79166:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5
                   79167: $as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; }
                   79168: if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then :
                   79169:   $as_echo_n "(cached) " >&6
                   79170: else
                   79171:   ac_check_lib_save_LIBS=$LIBS
                   79172: LIBS="-lpq  $LIBS"
                   79173: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   79174: /* end confdefs.h.  */
                   79175: 
                   79176: /* Override any GCC internal prototype to avoid an error.
                   79177:    Use char because int might match the return type of a GCC
                   79178:    builtin and then its argument prototype would still apply.  */
                   79179: #ifdef __cplusplus
                   79180: extern "C"
                   79181: #endif
                   79182: char pg_encoding_to_char ();
                   79183: int
                   79184: main ()
                   79185: {
                   79186: return pg_encoding_to_char ();
                   79187:   ;
                   79188:   return 0;
                   79189: }
                   79190: _ACEOF
                   79191: if ac_fn_c_try_link "$LINENO"; then :
                   79192:   ac_cv_lib_pq_pg_encoding_to_char=yes
                   79193: else
                   79194:   ac_cv_lib_pq_pg_encoding_to_char=no
                   79195: fi
                   79196: rm -f core conftest.err conftest.$ac_objext \
                   79197:     conftest$ac_exeext conftest.$ac_ext
                   79198: LIBS=$ac_check_lib_save_LIBS
                   79199: fi
                   79200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5
                   79201: $as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; }
                   79202: if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then :
                   79203: 
                   79204: $as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h
                   79205: 
                   79206: fi
                   79207: 
                   79208:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_create in -lpq" >&5
                   79209: $as_echo_n "checking for lo_create in -lpq... " >&6; }
                   79210: if ${ac_cv_lib_pq_lo_create+:} false; then :
                   79211:   $as_echo_n "(cached) " >&6
                   79212: else
                   79213:   ac_check_lib_save_LIBS=$LIBS
                   79214: LIBS="-lpq  $LIBS"
                   79215: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   79216: /* end confdefs.h.  */
                   79217: 
                   79218: /* Override any GCC internal prototype to avoid an error.
                   79219:    Use char because int might match the return type of a GCC
                   79220:    builtin and then its argument prototype would still apply.  */
                   79221: #ifdef __cplusplus
                   79222: extern "C"
                   79223: #endif
                   79224: char lo_create ();
                   79225: int
                   79226: main ()
                   79227: {
                   79228: return lo_create ();
                   79229:   ;
                   79230:   return 0;
                   79231: }
                   79232: _ACEOF
                   79233: if ac_fn_c_try_link "$LINENO"; then :
                   79234:   ac_cv_lib_pq_lo_create=yes
                   79235: else
                   79236:   ac_cv_lib_pq_lo_create=no
                   79237: fi
                   79238: rm -f core conftest.err conftest.$ac_objext \
                   79239:     conftest$ac_exeext conftest.$ac_ext
                   79240: LIBS=$ac_check_lib_save_LIBS
                   79241: fi
                   79242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_create" >&5
                   79243: $as_echo "$ac_cv_lib_pq_lo_create" >&6; }
                   79244: if test "x$ac_cv_lib_pq_lo_create" = xyes; then :
                   79245: 
                   79246: $as_echo "#define HAVE_PG_LO_CREATE 1" >>confdefs.h
                   79247: 
                   79248: fi
                   79249: 
                   79250:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_import_with_oid in -lpq" >&5
                   79251: $as_echo_n "checking for lo_import_with_oid in -lpq... " >&6; }
                   79252: if ${ac_cv_lib_pq_lo_import_with_oid+:} false; then :
                   79253:   $as_echo_n "(cached) " >&6
                   79254: else
                   79255:   ac_check_lib_save_LIBS=$LIBS
                   79256: LIBS="-lpq  $LIBS"
                   79257: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   79258: /* end confdefs.h.  */
                   79259: 
                   79260: /* Override any GCC internal prototype to avoid an error.
                   79261:    Use char because int might match the return type of a GCC
                   79262:    builtin and then its argument prototype would still apply.  */
                   79263: #ifdef __cplusplus
                   79264: extern "C"
                   79265: #endif
                   79266: char lo_import_with_oid ();
                   79267: int
                   79268: main ()
                   79269: {
                   79270: return lo_import_with_oid ();
                   79271:   ;
                   79272:   return 0;
                   79273: }
                   79274: _ACEOF
                   79275: if ac_fn_c_try_link "$LINENO"; then :
                   79276:   ac_cv_lib_pq_lo_import_with_oid=yes
                   79277: else
                   79278:   ac_cv_lib_pq_lo_import_with_oid=no
                   79279: fi
                   79280: rm -f core conftest.err conftest.$ac_objext \
                   79281:     conftest$ac_exeext conftest.$ac_ext
                   79282: LIBS=$ac_check_lib_save_LIBS
                   79283: fi
                   79284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_import_with_oid" >&5
                   79285: $as_echo "$ac_cv_lib_pq_lo_import_with_oid" >&6; }
                   79286: if test "x$ac_cv_lib_pq_lo_import_with_oid" = xyes; then :
                   79287: 
                   79288: $as_echo "#define HAVE_PG_LO_IMPORT_WITH_OID 1" >>confdefs.h
                   79289: 
                   79290: fi
                   79291: 
                   79292:   LIBS=$old_LIBS
                   79293:   LDFLAGS=$old_LDFLAGS
                   79294: 
                   79295: 
                   79296: 
                   79297:   if test "$ext_shared" = "yes"; then
                   79298:     PGSQL_SHARED_LIBADD="-lpq $PGSQL_SHARED_LIBADD"
                   79299:     if test -n "$PGSQL_LIBDIR"; then
                   79300: 
                   79301:   if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
                   79302: 
                   79303:   if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
                   79304:     ai_p=$PGSQL_LIBDIR
                   79305:   else
                   79306: 
                   79307:     ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   79308: 
                   79309:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   79310:     ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
                   79311:   fi
                   79312: 
                   79313: 
                   79314:       if test "$ext_shared" = "yes"; then
                   79315:         PGSQL_SHARED_LIBADD="-L$ai_p $PGSQL_SHARED_LIBADD"
                   79316:         test -n "$ld_runpath_switch" && PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PGSQL_SHARED_LIBADD"
                   79317:       else
                   79318: 
                   79319: 
                   79320: 
                   79321:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   79322: 
                   79323:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   79324:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   79325:     eval "LIBPATH$unique=set"
                   79326: 
                   79327:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   79328:     LDFLAGS="$LDFLAGS -L$ai_p"
                   79329:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   79330: 
                   79331:   fi
                   79332: 
                   79333: 
                   79334:       fi
                   79335: 
                   79336:   fi
                   79337: 
                   79338:     fi
                   79339:   else
                   79340: 
                   79341: 
                   79342:   if test -n "$PGSQL_LIBDIR"; then
                   79343: 
                   79344:   if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
                   79345: 
                   79346:   if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
                   79347:     ai_p=$PGSQL_LIBDIR
                   79348:   else
                   79349: 
                   79350:     ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   79351: 
                   79352:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   79353:     ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
                   79354:   fi
                   79355: 
                   79356: 
                   79357: 
                   79358: 
                   79359: 
                   79360:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   79361: 
                   79362:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   79363:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   79364:     eval "LIBPATH$unique=set"
                   79365: 
                   79366:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   79367:     LDFLAGS="$LDFLAGS -L$ai_p"
                   79368:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   79369: 
                   79370:   fi
                   79371: 
                   79372: 
                   79373: 
                   79374:   fi
                   79375: 
                   79376:   fi
                   79377: 
                   79378: 
                   79379:   case pq in
                   79380:   c|c_r|pthread*) ;;
                   79381:   *)
                   79382:       LIBS="-lpq $LIBS"
                   79383:    ;;
                   79384:   esac
                   79385: 
                   79386: 
                   79387: 
                   79388: 
                   79389:   fi
                   79390: 
                   79391: 
                   79392: 
                   79393:   PHP_VAR_SUBST="$PHP_VAR_SUBST PGSQL_SHARED_LIBADD"
                   79394: 
                   79395: 
                   79396: 
                   79397:   if test "$PGSQL_INCLUDE" != "/usr/include"; then
                   79398: 
                   79399:   if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
                   79400:     ai_p=$PGSQL_INCLUDE
                   79401:   else
                   79402: 
                   79403:     ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
                   79404: 
                   79405:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   79406:     ai_p="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
                   79407:   fi
                   79408: 
                   79409: 
                   79410: 
                   79411:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   79412: 
                   79413:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   79414:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   79415:     eval "INCLUDEPATH$unique=set"
                   79416: 
                   79417:       if test ""; then
                   79418:         INCLUDES="-I$ai_p $INCLUDES"
                   79419:       else
                   79420:         INCLUDES="$INCLUDES -I$ai_p"
                   79421:       fi
                   79422: 
                   79423:   fi
                   79424: 
                   79425:   fi
                   79426: 
                   79427: 
                   79428: 
                   79429:   ext_builddir=ext/pgsql
                   79430:   ext_srcdir=$abs_srcdir/ext/pgsql
                   79431: 
                   79432:   ac_extra=
                   79433: 
                   79434:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   79435:     PHP_PGSQL_SHARED=no
                   79436: 
                   79437: 
                   79438:   case ext/pgsql in
                   79439:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   79440:   /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   79441:   *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   79442:   esac
                   79443: 
                   79444: 
                   79445: 
                   79446:   b_c_pre=$php_c_pre
                   79447:   b_cxx_pre=$php_cxx_pre
                   79448:   b_c_meta=$php_c_meta
                   79449:   b_cxx_meta=$php_cxx_meta
                   79450:   b_c_post=$php_c_post
                   79451:   b_cxx_post=$php_cxx_post
                   79452:   b_lo=$php_lo
                   79453: 
                   79454: 
                   79455:   old_IFS=$IFS
                   79456:   for ac_src in pgsql.c; do
                   79457: 
                   79458:       IFS=.
                   79459:       set $ac_src
                   79460:       ac_obj=$1
                   79461:       IFS=$old_IFS
                   79462: 
                   79463:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   79464: 
                   79465:       case $ac_src in
                   79466:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79467:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79468:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79469:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   79470:       esac
                   79471: 
                   79472:     cat >>Makefile.objects<<EOF
                   79473: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   79474:        $ac_comp
                   79475: EOF
                   79476:   done
                   79477: 
                   79478: 
                   79479:     EXT_STATIC="$EXT_STATIC pgsql"
                   79480:     if test "$ext_shared" != "nocli"; then
                   79481:       EXT_CLI_STATIC="$EXT_CLI_STATIC pgsql"
                   79482:     fi
                   79483:   else
                   79484:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   79485:       PHP_PGSQL_SHARED=yes
                   79486: 
                   79487:   case ext/pgsql in
                   79488:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   79489:   /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   79490:   *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   79491:   esac
                   79492: 
                   79493: 
                   79494: 
                   79495:   b_c_pre=$shared_c_pre
                   79496:   b_cxx_pre=$shared_cxx_pre
                   79497:   b_c_meta=$shared_c_meta
                   79498:   b_cxx_meta=$shared_cxx_meta
                   79499:   b_c_post=$shared_c_post
                   79500:   b_cxx_post=$shared_cxx_post
                   79501:   b_lo=$shared_lo
                   79502: 
                   79503: 
                   79504:   old_IFS=$IFS
                   79505:   for ac_src in pgsql.c; do
                   79506: 
                   79507:       IFS=.
                   79508:       set $ac_src
                   79509:       ac_obj=$1
                   79510:       IFS=$old_IFS
                   79511: 
                   79512:       shared_objects_pgsql="$shared_objects_pgsql $ac_bdir$ac_obj.lo"
                   79513: 
                   79514:       case $ac_src in
                   79515:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79516:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79517:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79518:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   79519:       esac
                   79520: 
                   79521:     cat >>Makefile.objects<<EOF
                   79522: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   79523:        $ac_comp
                   79524: EOF
                   79525:   done
                   79526: 
                   79527:       case $host_alias in
                   79528:         *netware*)
                   79529: 
                   79530:   install_modules="install-modules"
                   79531: 
                   79532:   case $host_alias in
                   79533:     *aix*)
                   79534:       suffix=so
                   79535:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppgsql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) $(PHPPGSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppgsql.so '$ext_builddir'/phppgsql.so'
                   79536:       ;;
                   79537:     *netware*)
                   79538:       suffix=nlm
                   79539:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) -L$(top_builddir)/netware -lphp5lib $(PGSQL_SHARED_LIBADD)'
                   79540:       ;;
                   79541:     *)
                   79542:       suffix=la
                   79543:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) $(PHPPGSQL_SHARED_LIBADD)'
                   79544:       ;;
                   79545:   esac
                   79546: 
                   79547:   if test "x" = "xyes"; then
                   79548:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppgsql.$suffix"
                   79549:   else
                   79550:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppgsql.$suffix"
                   79551:   fi
                   79552: 
                   79553:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pgsql"
                   79554: 
                   79555:   cat >>Makefile.objects<<EOF
                   79556: \$(phplibdir)/phppgsql.$suffix: $ext_builddir/phppgsql.$suffix
                   79557:        \$(LIBTOOL) --mode=install cp $ext_builddir/phppgsql.$suffix \$(phplibdir)
                   79558: 
                   79559: $ext_builddir/phppgsql.$suffix: \$(shared_objects_pgsql) \$(PHPPGSQL_SHARED_DEPENDENCIES)
                   79560:        $link_cmd
                   79561: 
                   79562: EOF
                   79563: 
                   79564:           ;;
                   79565:         *)
                   79566: 
                   79567:   install_modules="install-modules"
                   79568: 
                   79569:   case $host_alias in
                   79570:     *aix*)
                   79571:       suffix=so
                   79572:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pgsql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) $(PGSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pgsql.so '$ext_builddir'/pgsql.so'
                   79573:       ;;
                   79574:     *netware*)
                   79575:       suffix=nlm
                   79576:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) -L$(top_builddir)/netware -lphp5lib $(QL_SHARED_LIBADD)'
                   79577:       ;;
                   79578:     *)
                   79579:       suffix=la
                   79580:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) $(PGSQL_SHARED_LIBADD)'
                   79581:       ;;
                   79582:   esac
                   79583: 
                   79584:   if test "x" = "xyes"; then
                   79585:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pgsql.$suffix"
                   79586:   else
                   79587:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pgsql.$suffix"
                   79588:   fi
                   79589: 
                   79590:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pgsql"
                   79591: 
                   79592:   cat >>Makefile.objects<<EOF
                   79593: \$(phplibdir)/pgsql.$suffix: $ext_builddir/pgsql.$suffix
                   79594:        \$(LIBTOOL) --mode=install cp $ext_builddir/pgsql.$suffix \$(phplibdir)
                   79595: 
                   79596: $ext_builddir/pgsql.$suffix: \$(shared_objects_pgsql) \$(PGSQL_SHARED_DEPENDENCIES)
                   79597:        $link_cmd
                   79598: 
                   79599: EOF
                   79600: 
                   79601:           ;;
                   79602:       esac
                   79603: 
                   79604: cat >>confdefs.h <<_ACEOF
                   79605: #define COMPILE_DL_PGSQL 1
                   79606: _ACEOF
                   79607: 
                   79608:     fi
                   79609:   fi
                   79610: 
                   79611:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   79612:     PHP_PGSQL_SHARED=no
                   79613: 
                   79614: 
                   79615:   case ext/pgsql in
                   79616:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   79617:   /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   79618:   *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   79619:   esac
                   79620: 
                   79621: 
                   79622: 
                   79623:   b_c_pre=$php_c_pre
                   79624:   b_cxx_pre=$php_cxx_pre
                   79625:   b_c_meta=$php_c_meta
                   79626:   b_cxx_meta=$php_cxx_meta
                   79627:   b_c_post=$php_c_post
                   79628:   b_cxx_post=$php_cxx_post
                   79629:   b_lo=$php_lo
                   79630: 
                   79631: 
                   79632:   old_IFS=$IFS
                   79633:   for ac_src in pgsql.c; do
                   79634: 
                   79635:       IFS=.
                   79636:       set $ac_src
                   79637:       ac_obj=$1
                   79638:       IFS=$old_IFS
                   79639: 
1.1.1.2 ! misho    79640:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    79641: 
                   79642:       case $ac_src in
                   79643:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79644:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79645:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79646:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   79647:       esac
                   79648: 
                   79649:     cat >>Makefile.objects<<EOF
                   79650: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   79651:        $ac_comp
                   79652: EOF
                   79653:   done
                   79654: 
                   79655: 
                   79656: 
                   79657: 
                   79658:   case ext/pgsql in
                   79659:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   79660:   /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   79661:   *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   79662:   esac
                   79663: 
                   79664: 
                   79665: 
                   79666:   b_c_pre=$php_c_pre
                   79667:   b_cxx_pre=$php_cxx_pre
                   79668:   b_c_meta=$php_c_meta
                   79669:   b_cxx_meta=$php_cxx_meta
                   79670:   b_c_post=$php_c_post
                   79671:   b_cxx_post=$php_cxx_post
                   79672:   b_lo=$php_lo
                   79673: 
                   79674: 
                   79675:   old_IFS=$IFS
                   79676:   for ac_src in pgsql.c; do
                   79677: 
                   79678:       IFS=.
                   79679:       set $ac_src
                   79680:       ac_obj=$1
                   79681:       IFS=$old_IFS
                   79682: 
1.1.1.2 ! misho    79683:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    79684: 
                   79685:       case $ac_src in
                   79686:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79687:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79688:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79689:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   79690:       esac
                   79691: 
                   79692:     cat >>Makefile.objects<<EOF
                   79693: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   79694:        $ac_comp
                   79695: EOF
                   79696:   done
                   79697: 
                   79698: 
                   79699: 
                   79700: 
                   79701:   case ext/pgsql in
                   79702:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   79703:   /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   79704:   *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   79705:   esac
                   79706: 
                   79707: 
                   79708: 
                   79709:   b_c_pre=$php_c_pre
                   79710:   b_cxx_pre=$php_cxx_pre
                   79711:   b_c_meta=$php_c_meta
                   79712:   b_cxx_meta=$php_cxx_meta
                   79713:   b_c_post=$php_c_post
                   79714:   b_cxx_post=$php_cxx_post
                   79715:   b_lo=$php_lo
                   79716: 
                   79717: 
                   79718:   old_IFS=$IFS
                   79719:   for ac_src in pgsql.c; do
                   79720: 
                   79721:       IFS=.
                   79722:       set $ac_src
                   79723:       ac_obj=$1
                   79724:       IFS=$old_IFS
                   79725: 
1.1.1.2 ! misho    79726:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    79727: 
                   79728:       case $ac_src in
                   79729:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79730:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79731:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79732:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   79733:       esac
                   79734: 
                   79735:     cat >>Makefile.objects<<EOF
                   79736: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   79737:        $ac_comp
                   79738: EOF
                   79739:   done
                   79740: 
                   79741: 
                   79742:     EXT_CLI_STATIC="$EXT_CLI_STATIC pgsql"
                   79743:   fi
                   79744: 
                   79745: 
                   79746:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   79747: 
                   79748: 
                   79749: 
                   79750:   if test "$ext_builddir" = "."; then
                   79751:     PHP_PECL_EXTENSION=pgsql
                   79752: 
                   79753:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   79754: 
                   79755:   fi
                   79756: 
                   79757: fi
                   79758: 
                   79759: 
                   79760: 
                   79761: 
                   79762: 
                   79763: php_enable_phar=yes
                   79764: 
                   79765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phar archive support" >&5
                   79766: $as_echo_n "checking for phar archive support... " >&6; }
                   79767: # Check whether --enable-phar was given.
                   79768: if test "${enable_phar+set}" = set; then :
                   79769:   enableval=$enable_phar; PHP_PHAR=$enableval
                   79770: else
                   79771: 
                   79772:   PHP_PHAR=yes
                   79773:   test "$PHP_ENABLE_ALL" && PHP_PHAR=$PHP_ENABLE_ALL
                   79774: 
                   79775: fi
                   79776: 
                   79777: 
                   79778: 
                   79779: ext_output="yes, shared"
                   79780: ext_shared=yes
                   79781: case $PHP_PHAR in
                   79782: shared,*)
                   79783:   PHP_PHAR=`echo "$PHP_PHAR"|$SED 's/^shared,//'`
                   79784:   ;;
                   79785: shared)
                   79786:   PHP_PHAR=yes
                   79787:   ;;
                   79788: no)
                   79789:   ext_output=no
                   79790:   ext_shared=no
                   79791:   ;;
                   79792: *)
                   79793:   ext_output=yes
                   79794:   ext_shared=no
                   79795:   ;;
                   79796: esac
                   79797: 
                   79798: 
                   79799: 
                   79800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   79801: $as_echo "$ext_output" >&6; }
                   79802: 
                   79803: 
                   79804: 
                   79805: 
                   79806: if test "$PHP_PHAR" != "no"; then
                   79807: 
                   79808:   ext_builddir=ext/phar
                   79809:   ext_srcdir=$abs_srcdir/ext/phar
                   79810: 
                   79811:   ac_extra=
                   79812: 
                   79813:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   79814:     PHP_PHAR_SHARED=no
                   79815: 
                   79816: 
                   79817:   case ext/phar in
                   79818:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   79819:   /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   79820:   *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   79821:   esac
                   79822: 
                   79823: 
                   79824: 
                   79825:   b_c_pre=$php_c_pre
                   79826:   b_cxx_pre=$php_cxx_pre
                   79827:   b_c_meta=$php_c_meta
                   79828:   b_cxx_meta=$php_cxx_meta
                   79829:   b_c_post=$php_c_post
                   79830:   b_cxx_post=$php_cxx_post
                   79831:   b_lo=$php_lo
                   79832: 
                   79833: 
                   79834:   old_IFS=$IFS
                   79835:   for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
                   79836: 
                   79837:       IFS=.
                   79838:       set $ac_src
                   79839:       ac_obj=$1
                   79840:       IFS=$old_IFS
                   79841: 
                   79842:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   79843: 
                   79844:       case $ac_src in
                   79845:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79846:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79847:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79848:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   79849:       esac
                   79850: 
                   79851:     cat >>Makefile.objects<<EOF
                   79852: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   79853:        $ac_comp
                   79854: EOF
                   79855:   done
                   79856: 
                   79857: 
                   79858:     EXT_STATIC="$EXT_STATIC phar"
                   79859:     if test "$ext_shared" != "nocli"; then
                   79860:       EXT_CLI_STATIC="$EXT_CLI_STATIC phar"
                   79861:     fi
                   79862:   else
                   79863:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   79864:       PHP_PHAR_SHARED=yes
                   79865: 
                   79866:   case ext/phar in
                   79867:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   79868:   /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   79869:   *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   79870:   esac
                   79871: 
                   79872: 
                   79873: 
                   79874:   b_c_pre=$shared_c_pre
                   79875:   b_cxx_pre=$shared_cxx_pre
                   79876:   b_c_meta=$shared_c_meta
                   79877:   b_cxx_meta=$shared_cxx_meta
                   79878:   b_c_post=$shared_c_post
                   79879:   b_cxx_post=$shared_cxx_post
                   79880:   b_lo=$shared_lo
                   79881: 
                   79882: 
                   79883:   old_IFS=$IFS
                   79884:   for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
                   79885: 
                   79886:       IFS=.
                   79887:       set $ac_src
                   79888:       ac_obj=$1
                   79889:       IFS=$old_IFS
                   79890: 
                   79891:       shared_objects_phar="$shared_objects_phar $ac_bdir$ac_obj.lo"
                   79892: 
                   79893:       case $ac_src in
                   79894:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79895:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79896:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   79897:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   79898:       esac
                   79899: 
                   79900:     cat >>Makefile.objects<<EOF
                   79901: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   79902:        $ac_comp
                   79903: EOF
                   79904:   done
                   79905: 
                   79906:       case $host_alias in
                   79907:         *netware*)
                   79908: 
                   79909:   install_modules="install-modules"
                   79910: 
                   79911:   case $host_alias in
                   79912:     *aix*)
                   79913:       suffix=so
                   79914:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpphar.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) $(PHPPHAR_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpphar.so '$ext_builddir'/phpphar.so'
                   79915:       ;;
                   79916:     *netware*)
                   79917:       suffix=nlm
                   79918:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) -L$(top_builddir)/netware -lphp5lib $(PHAR_SHARED_LIBADD)'
                   79919:       ;;
                   79920:     *)
                   79921:       suffix=la
                   79922:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) $(PHPPHAR_SHARED_LIBADD)'
                   79923:       ;;
                   79924:   esac
                   79925: 
                   79926:   if test "x" = "xyes"; then
                   79927:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpphar.$suffix"
                   79928:   else
                   79929:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpphar.$suffix"
                   79930:   fi
                   79931: 
                   79932:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_phar"
                   79933: 
                   79934:   cat >>Makefile.objects<<EOF
                   79935: \$(phplibdir)/phpphar.$suffix: $ext_builddir/phpphar.$suffix
                   79936:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpphar.$suffix \$(phplibdir)
                   79937: 
                   79938: $ext_builddir/phpphar.$suffix: \$(shared_objects_phar) \$(PHPPHAR_SHARED_DEPENDENCIES)
                   79939:        $link_cmd
                   79940: 
                   79941: EOF
                   79942: 
                   79943:           ;;
                   79944:         *)
                   79945: 
                   79946:   install_modules="install-modules"
                   79947: 
                   79948:   case $host_alias in
                   79949:     *aix*)
                   79950:       suffix=so
                   79951:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phar.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) $(PHAR_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phar.so '$ext_builddir'/phar.so'
                   79952:       ;;
                   79953:     *netware*)
                   79954:       suffix=nlm
                   79955:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) -L$(top_builddir)/netware -lphp5lib $(R_SHARED_LIBADD)'
                   79956:       ;;
                   79957:     *)
                   79958:       suffix=la
                   79959:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) $(PHAR_SHARED_LIBADD)'
                   79960:       ;;
                   79961:   esac
                   79962: 
                   79963:   if test "x" = "xyes"; then
                   79964:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phar.$suffix"
                   79965:   else
                   79966:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phar.$suffix"
                   79967:   fi
                   79968: 
                   79969:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_phar"
                   79970: 
                   79971:   cat >>Makefile.objects<<EOF
                   79972: \$(phplibdir)/phar.$suffix: $ext_builddir/phar.$suffix
                   79973:        \$(LIBTOOL) --mode=install cp $ext_builddir/phar.$suffix \$(phplibdir)
                   79974: 
                   79975: $ext_builddir/phar.$suffix: \$(shared_objects_phar) \$(PHAR_SHARED_DEPENDENCIES)
                   79976:        $link_cmd
                   79977: 
                   79978: EOF
                   79979: 
                   79980:           ;;
                   79981:       esac
                   79982: 
                   79983: cat >>confdefs.h <<_ACEOF
                   79984: #define COMPILE_DL_PHAR 1
                   79985: _ACEOF
                   79986: 
                   79987:     fi
                   79988:   fi
                   79989: 
                   79990:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   79991:     PHP_PHAR_SHARED=no
                   79992: 
                   79993: 
                   79994:   case ext/phar in
                   79995:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   79996:   /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   79997:   *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   79998:   esac
                   79999: 
                   80000: 
                   80001: 
                   80002:   b_c_pre=$php_c_pre
                   80003:   b_cxx_pre=$php_cxx_pre
                   80004:   b_c_meta=$php_c_meta
                   80005:   b_cxx_meta=$php_cxx_meta
                   80006:   b_c_post=$php_c_post
                   80007:   b_cxx_post=$php_cxx_post
                   80008:   b_lo=$php_lo
                   80009: 
                   80010: 
                   80011:   old_IFS=$IFS
                   80012:   for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
                   80013: 
                   80014:       IFS=.
                   80015:       set $ac_src
                   80016:       ac_obj=$1
                   80017:       IFS=$old_IFS
                   80018: 
1.1.1.2 ! misho    80019:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    80020: 
                   80021:       case $ac_src in
                   80022:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80023:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80024:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80025:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   80026:       esac
                   80027: 
                   80028:     cat >>Makefile.objects<<EOF
                   80029: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   80030:        $ac_comp
                   80031: EOF
                   80032:   done
                   80033: 
                   80034: 
                   80035: 
                   80036: 
                   80037:   case ext/phar in
                   80038:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   80039:   /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   80040:   *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   80041:   esac
                   80042: 
                   80043: 
                   80044: 
                   80045:   b_c_pre=$php_c_pre
                   80046:   b_cxx_pre=$php_cxx_pre
                   80047:   b_c_meta=$php_c_meta
                   80048:   b_cxx_meta=$php_cxx_meta
                   80049:   b_c_post=$php_c_post
                   80050:   b_cxx_post=$php_cxx_post
                   80051:   b_lo=$php_lo
                   80052: 
                   80053: 
                   80054:   old_IFS=$IFS
                   80055:   for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
                   80056: 
                   80057:       IFS=.
                   80058:       set $ac_src
                   80059:       ac_obj=$1
                   80060:       IFS=$old_IFS
                   80061: 
1.1.1.2 ! misho    80062:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    80063: 
                   80064:       case $ac_src in
                   80065:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80066:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80067:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80068:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   80069:       esac
                   80070: 
                   80071:     cat >>Makefile.objects<<EOF
                   80072: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   80073:        $ac_comp
                   80074: EOF
                   80075:   done
                   80076: 
                   80077: 
                   80078: 
                   80079: 
                   80080:   case ext/phar in
                   80081:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   80082:   /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   80083:   *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   80084:   esac
                   80085: 
                   80086: 
                   80087: 
                   80088:   b_c_pre=$php_c_pre
                   80089:   b_cxx_pre=$php_cxx_pre
                   80090:   b_c_meta=$php_c_meta
                   80091:   b_cxx_meta=$php_cxx_meta
                   80092:   b_c_post=$php_c_post
                   80093:   b_cxx_post=$php_cxx_post
                   80094:   b_lo=$php_lo
                   80095: 
                   80096: 
                   80097:   old_IFS=$IFS
                   80098:   for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
                   80099: 
                   80100:       IFS=.
                   80101:       set $ac_src
                   80102:       ac_obj=$1
                   80103:       IFS=$old_IFS
                   80104: 
1.1.1.2 ! misho    80105:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    80106: 
                   80107:       case $ac_src in
                   80108:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80109:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80110:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80111:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   80112:       esac
                   80113: 
                   80114:     cat >>Makefile.objects<<EOF
                   80115: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   80116:        $ac_comp
                   80117: EOF
                   80118:   done
                   80119: 
                   80120: 
                   80121:     EXT_CLI_STATIC="$EXT_CLI_STATIC phar"
                   80122:   fi
                   80123: 
                   80124: 
                   80125:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   80126: 
                   80127: 
                   80128: 
                   80129:   if test "$ext_builddir" = "."; then
                   80130:     PHP_PECL_EXTENSION=phar
                   80131: 
                   80132:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   80133: 
                   80134:   fi
                   80135: 
                   80136:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phar openssl support" >&5
                   80137: $as_echo_n "checking for phar openssl support... " >&6; }
                   80138:   if test "$PHP_HASH_SHARED" != "yes"; then
                   80139:     if test "$PHP_HASH" != "no"; then
                   80140: 
                   80141: $as_echo "#define PHAR_HASH_OK 1" >>confdefs.h
                   80142: 
                   80143:     fi
                   80144:   else
                   80145:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&5
                   80146: $as_echo "$as_me: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&2;}
                   80147:   fi
                   80148:   if test "$PHP_OPENSSL_SHARED" = "yes"; then
                   80149:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (shared openssl)" >&5
                   80150: $as_echo "no (shared openssl)" >&6; }
                   80151:   else
                   80152:     if test "$PHP_OPENSSL" = "yes"; then
                   80153:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   80154: $as_echo "yes" >&6; }
                   80155: 
                   80156: $as_echo "#define PHAR_HAVE_OPENSSL 1" >>confdefs.h
                   80157: 
                   80158:     else
                   80159:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   80160: $as_echo "no" >&6; }
                   80161:     fi
                   80162:   fi
                   80163: 
                   80164:   am_i_shared=$PHP_PHAR_SHARED
                   80165:   is_it_shared=$PHP_HASH_SHARED
                   80166:   is_it_enabled=$PHP_HASH
                   80167:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   80168:     as_fn_error $? "
                   80169: You've configured extension phar to build statically, but it
                   80170: depends on extension hash, which you've configured to build shared.
                   80171: You either need to build phar shared or build hash statically for the
                   80172: build to be successful.
                   80173: " "$LINENO" 5
                   80174:   fi
                   80175: 
                   80176: 
                   80177:   am_i_shared=$PHP_PHAR_SHARED
                   80178:   is_it_shared=$PHP_SPL_SHARED
                   80179:   is_it_enabled=$PHP_SPL
                   80180:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   80181:     as_fn_error $? "
                   80182: You've configured extension phar to build statically, but it
                   80183: depends on extension spl, which you've configured to build shared.
                   80184: You either need to build phar shared or build spl statically for the
                   80185: build to be successful.
                   80186: " "$LINENO" 5
                   80187:   fi
                   80188: 
                   80189: 
                   80190:   src=$ext_srcdir/Makefile.frag
                   80191:   ac_srcdir=$ext_srcdir
                   80192:   ac_builddir=$ext_builddir
                   80193:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
                   80194: 
                   80195: fi
                   80196: 
                   80197: 
                   80198: 
                   80199: php_enable_posix=yes
                   80200: 
                   80201: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable POSIX-like functions" >&5
                   80202: $as_echo_n "checking whether to enable POSIX-like functions... " >&6; }
                   80203: # Check whether --enable-posix was given.
                   80204: if test "${enable_posix+set}" = set; then :
                   80205:   enableval=$enable_posix; PHP_POSIX=$enableval
                   80206: else
                   80207: 
                   80208:   PHP_POSIX=yes
                   80209:   test "$PHP_ENABLE_ALL" && PHP_POSIX=$PHP_ENABLE_ALL
                   80210: 
                   80211: fi
                   80212: 
                   80213: 
                   80214: 
                   80215: ext_output="yes, shared"
                   80216: ext_shared=yes
                   80217: case $PHP_POSIX in
                   80218: shared,*)
                   80219:   PHP_POSIX=`echo "$PHP_POSIX"|$SED 's/^shared,//'`
                   80220:   ;;
                   80221: shared)
                   80222:   PHP_POSIX=yes
                   80223:   ;;
                   80224: no)
                   80225:   ext_output=no
                   80226:   ext_shared=no
                   80227:   ;;
                   80228: *)
                   80229:   ext_output=yes
                   80230:   ext_shared=no
                   80231:   ;;
                   80232: esac
                   80233: 
                   80234: 
                   80235: 
                   80236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   80237: $as_echo "$ext_output" >&6; }
                   80238: 
                   80239: 
                   80240: 
                   80241: 
                   80242: if test "$PHP_POSIX" = "yes"; then
                   80243: 
                   80244: $as_echo "#define HAVE_POSIX 1" >>confdefs.h
                   80245: 
                   80246: 
                   80247:   ext_builddir=ext/posix
                   80248:   ext_srcdir=$abs_srcdir/ext/posix
                   80249: 
                   80250:   ac_extra=
                   80251: 
                   80252:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   80253:     PHP_POSIX_SHARED=no
                   80254: 
                   80255: 
                   80256:   case ext/posix in
                   80257:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   80258:   /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   80259:   *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   80260:   esac
                   80261: 
                   80262: 
                   80263: 
                   80264:   b_c_pre=$php_c_pre
                   80265:   b_cxx_pre=$php_cxx_pre
                   80266:   b_c_meta=$php_c_meta
                   80267:   b_cxx_meta=$php_cxx_meta
                   80268:   b_c_post=$php_c_post
                   80269:   b_cxx_post=$php_cxx_post
                   80270:   b_lo=$php_lo
                   80271: 
                   80272: 
                   80273:   old_IFS=$IFS
                   80274:   for ac_src in posix.c; do
                   80275: 
                   80276:       IFS=.
                   80277:       set $ac_src
                   80278:       ac_obj=$1
                   80279:       IFS=$old_IFS
                   80280: 
                   80281:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   80282: 
                   80283:       case $ac_src in
                   80284:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80285:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80286:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80287:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   80288:       esac
                   80289: 
                   80290:     cat >>Makefile.objects<<EOF
                   80291: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   80292:        $ac_comp
                   80293: EOF
                   80294:   done
                   80295: 
                   80296: 
                   80297:     EXT_STATIC="$EXT_STATIC posix"
                   80298:     if test "$ext_shared" != "nocli"; then
                   80299:       EXT_CLI_STATIC="$EXT_CLI_STATIC posix"
                   80300:     fi
                   80301:   else
                   80302:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   80303:       PHP_POSIX_SHARED=yes
                   80304: 
                   80305:   case ext/posix in
                   80306:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   80307:   /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   80308:   *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   80309:   esac
                   80310: 
                   80311: 
                   80312: 
                   80313:   b_c_pre=$shared_c_pre
                   80314:   b_cxx_pre=$shared_cxx_pre
                   80315:   b_c_meta=$shared_c_meta
                   80316:   b_cxx_meta=$shared_cxx_meta
                   80317:   b_c_post=$shared_c_post
                   80318:   b_cxx_post=$shared_cxx_post
                   80319:   b_lo=$shared_lo
                   80320: 
                   80321: 
                   80322:   old_IFS=$IFS
                   80323:   for ac_src in posix.c; do
                   80324: 
                   80325:       IFS=.
                   80326:       set $ac_src
                   80327:       ac_obj=$1
                   80328:       IFS=$old_IFS
                   80329: 
                   80330:       shared_objects_posix="$shared_objects_posix $ac_bdir$ac_obj.lo"
                   80331: 
                   80332:       case $ac_src in
                   80333:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80334:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80335:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80336:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   80337:       esac
                   80338: 
                   80339:     cat >>Makefile.objects<<EOF
                   80340: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   80341:        $ac_comp
                   80342: EOF
                   80343:   done
                   80344: 
                   80345:       case $host_alias in
                   80346:         *netware*)
                   80347: 
                   80348:   install_modules="install-modules"
                   80349: 
                   80350:   case $host_alias in
                   80351:     *aix*)
                   80352:       suffix=so
                   80353:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpposix.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) $(PHPPOSIX_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpposix.so '$ext_builddir'/phpposix.so'
                   80354:       ;;
                   80355:     *netware*)
                   80356:       suffix=nlm
                   80357:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) -L$(top_builddir)/netware -lphp5lib $(POSIX_SHARED_LIBADD)'
                   80358:       ;;
                   80359:     *)
                   80360:       suffix=la
                   80361:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) $(PHPPOSIX_SHARED_LIBADD)'
                   80362:       ;;
                   80363:   esac
                   80364: 
                   80365:   if test "x" = "xyes"; then
                   80366:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpposix.$suffix"
                   80367:   else
                   80368:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpposix.$suffix"
                   80369:   fi
                   80370: 
                   80371:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_posix"
                   80372: 
                   80373:   cat >>Makefile.objects<<EOF
                   80374: \$(phplibdir)/phpposix.$suffix: $ext_builddir/phpposix.$suffix
                   80375:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpposix.$suffix \$(phplibdir)
                   80376: 
                   80377: $ext_builddir/phpposix.$suffix: \$(shared_objects_posix) \$(PHPPOSIX_SHARED_DEPENDENCIES)
                   80378:        $link_cmd
                   80379: 
                   80380: EOF
                   80381: 
                   80382:           ;;
                   80383:         *)
                   80384: 
                   80385:   install_modules="install-modules"
                   80386: 
                   80387:   case $host_alias in
                   80388:     *aix*)
                   80389:       suffix=so
                   80390:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/posix.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) $(POSIX_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/posix.so '$ext_builddir'/posix.so'
                   80391:       ;;
                   80392:     *netware*)
                   80393:       suffix=nlm
                   80394:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) -L$(top_builddir)/netware -lphp5lib $(IX_SHARED_LIBADD)'
                   80395:       ;;
                   80396:     *)
                   80397:       suffix=la
                   80398:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) $(POSIX_SHARED_LIBADD)'
                   80399:       ;;
                   80400:   esac
                   80401: 
                   80402:   if test "x" = "xyes"; then
                   80403:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/posix.$suffix"
                   80404:   else
                   80405:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/posix.$suffix"
                   80406:   fi
                   80407: 
                   80408:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_posix"
                   80409: 
                   80410:   cat >>Makefile.objects<<EOF
                   80411: \$(phplibdir)/posix.$suffix: $ext_builddir/posix.$suffix
                   80412:        \$(LIBTOOL) --mode=install cp $ext_builddir/posix.$suffix \$(phplibdir)
                   80413: 
                   80414: $ext_builddir/posix.$suffix: \$(shared_objects_posix) \$(POSIX_SHARED_DEPENDENCIES)
                   80415:        $link_cmd
                   80416: 
                   80417: EOF
                   80418: 
                   80419:           ;;
                   80420:       esac
                   80421: 
                   80422: cat >>confdefs.h <<_ACEOF
                   80423: #define COMPILE_DL_POSIX 1
                   80424: _ACEOF
                   80425: 
                   80426:     fi
                   80427:   fi
                   80428: 
                   80429:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   80430:     PHP_POSIX_SHARED=no
                   80431: 
                   80432: 
                   80433:   case ext/posix in
                   80434:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   80435:   /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   80436:   *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   80437:   esac
                   80438: 
                   80439: 
                   80440: 
                   80441:   b_c_pre=$php_c_pre
                   80442:   b_cxx_pre=$php_cxx_pre
                   80443:   b_c_meta=$php_c_meta
                   80444:   b_cxx_meta=$php_cxx_meta
                   80445:   b_c_post=$php_c_post
                   80446:   b_cxx_post=$php_cxx_post
                   80447:   b_lo=$php_lo
                   80448: 
                   80449: 
                   80450:   old_IFS=$IFS
                   80451:   for ac_src in posix.c; do
                   80452: 
                   80453:       IFS=.
                   80454:       set $ac_src
                   80455:       ac_obj=$1
                   80456:       IFS=$old_IFS
                   80457: 
1.1.1.2 ! misho    80458:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    80459: 
                   80460:       case $ac_src in
                   80461:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80462:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80463:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80464:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   80465:       esac
                   80466: 
                   80467:     cat >>Makefile.objects<<EOF
                   80468: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   80469:        $ac_comp
                   80470: EOF
                   80471:   done
                   80472: 
                   80473: 
                   80474: 
                   80475: 
                   80476:   case ext/posix in
                   80477:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   80478:   /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   80479:   *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   80480:   esac
                   80481: 
                   80482: 
                   80483: 
                   80484:   b_c_pre=$php_c_pre
                   80485:   b_cxx_pre=$php_cxx_pre
                   80486:   b_c_meta=$php_c_meta
                   80487:   b_cxx_meta=$php_cxx_meta
                   80488:   b_c_post=$php_c_post
                   80489:   b_cxx_post=$php_cxx_post
                   80490:   b_lo=$php_lo
                   80491: 
                   80492: 
                   80493:   old_IFS=$IFS
                   80494:   for ac_src in posix.c; do
                   80495: 
                   80496:       IFS=.
                   80497:       set $ac_src
                   80498:       ac_obj=$1
                   80499:       IFS=$old_IFS
                   80500: 
1.1.1.2 ! misho    80501:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    80502: 
                   80503:       case $ac_src in
                   80504:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80505:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80506:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80507:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   80508:       esac
                   80509: 
                   80510:     cat >>Makefile.objects<<EOF
                   80511: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   80512:        $ac_comp
                   80513: EOF
                   80514:   done
                   80515: 
                   80516: 
                   80517: 
                   80518: 
                   80519:   case ext/posix in
                   80520:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   80521:   /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   80522:   *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   80523:   esac
                   80524: 
                   80525: 
                   80526: 
                   80527:   b_c_pre=$php_c_pre
                   80528:   b_cxx_pre=$php_cxx_pre
                   80529:   b_c_meta=$php_c_meta
                   80530:   b_cxx_meta=$php_cxx_meta
                   80531:   b_c_post=$php_c_post
                   80532:   b_cxx_post=$php_cxx_post
                   80533:   b_lo=$php_lo
                   80534: 
                   80535: 
                   80536:   old_IFS=$IFS
                   80537:   for ac_src in posix.c; do
                   80538: 
                   80539:       IFS=.
                   80540:       set $ac_src
                   80541:       ac_obj=$1
                   80542:       IFS=$old_IFS
                   80543: 
1.1.1.2 ! misho    80544:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    80545: 
                   80546:       case $ac_src in
                   80547:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80548:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80549:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80550:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   80551:       esac
                   80552: 
                   80553:     cat >>Makefile.objects<<EOF
                   80554: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   80555:        $ac_comp
                   80556: EOF
                   80557:   done
                   80558: 
                   80559: 
                   80560:     EXT_CLI_STATIC="$EXT_CLI_STATIC posix"
                   80561:   fi
                   80562: 
                   80563: 
                   80564:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   80565: 
                   80566: 
                   80567: 
                   80568:   if test "$ext_builddir" = "."; then
                   80569:     PHP_PECL_EXTENSION=posix
                   80570: 
                   80571:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   80572: 
                   80573:   fi
                   80574: 
                   80575: 
                   80576:   for ac_header in sys/mkdev.h
                   80577: do :
                   80578:   ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
                   80579: if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
                   80580:   cat >>confdefs.h <<_ACEOF
                   80581: #define HAVE_SYS_MKDEV_H 1
                   80582: _ACEOF
                   80583: 
                   80584: fi
                   80585: 
                   80586: done
                   80587: 
                   80588: 
                   80589:   for ac_func in seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo mknod getrlimit getlogin getgroups makedev initgroups getpwuid_r getgrgid_r
                   80590: do :
                   80591:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   80592: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   80593: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   80594:   cat >>confdefs.h <<_ACEOF
                   80595: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   80596: _ACEOF
                   80597: 
                   80598: fi
                   80599: done
                   80600: 
                   80601: 
                   80602:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ttyname_r() implementation" >&5
                   80603: $as_echo_n "checking for working ttyname_r() implementation... " >&6; }
                   80604:   if test "$cross_compiling" = yes; then :
                   80605: 
                   80606:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&5
                   80607: $as_echo "no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&6; }
                   80608: 
                   80609: else
                   80610:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   80611: /* end confdefs.h.  */
                   80612: 
                   80613: #include <unistd.h>
                   80614: 
                   80615: int main(int argc, char *argv[])
                   80616: {
                   80617:        char buf[64];
                   80618: 
                   80619:        return ttyname_r(0, buf, 64) ? 1 : 0;
                   80620: }
                   80621: 
                   80622: _ACEOF
                   80623: if ac_fn_c_try_run "$LINENO"; then :
                   80624: 
                   80625:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   80626: $as_echo "yes" >&6; }
                   80627: 
                   80628: $as_echo "#define HAVE_TTYNAME_R 1" >>confdefs.h
                   80629: 
                   80630: 
                   80631: else
                   80632: 
                   80633:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, posix_ttyname() will be thread-unsafe" >&5
                   80634: $as_echo "no, posix_ttyname() will be thread-unsafe" >&6; }
                   80635: 
                   80636: fi
                   80637: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   80638:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   80639: fi
                   80640: 
                   80641: 
                   80642:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utsname.domainname" >&5
                   80643: $as_echo_n "checking for utsname.domainname... " >&6; }
                   80644: if ${ac_cv_have_utsname_domainname+:} false; then :
                   80645:   $as_echo_n "(cached) " >&6
                   80646: else
                   80647: 
                   80648:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   80649: /* end confdefs.h.  */
                   80650: 
                   80651:       #define _GNU_SOURCE
                   80652:       #include <sys/utsname.h>
                   80653: 
                   80654: int
                   80655: main ()
                   80656: {
                   80657: 
                   80658:       return sizeof(((struct utsname *)0)->domainname);
                   80659: 
                   80660:   ;
                   80661:   return 0;
                   80662: }
                   80663: _ACEOF
                   80664: if ac_fn_c_try_compile "$LINENO"; then :
                   80665: 
                   80666:       ac_cv_have_utsname_domainname=yes
                   80667: 
                   80668: else
                   80669: 
                   80670:       ac_cv_have_utsname_domainname=no
                   80671: 
                   80672: fi
                   80673: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   80674: 
                   80675: fi
                   80676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_utsname_domainname" >&5
                   80677: $as_echo "$ac_cv_have_utsname_domainname" >&6; }
                   80678:   if test "$ac_cv_have_utsname_domainname" = yes; then
                   80679: 
                   80680: $as_echo "#define HAVE_UTSNAME_DOMAINNAME 1" >>confdefs.h
                   80681: 
                   80682:   fi
                   80683: fi
                   80684: 
                   80685: 
                   80686: 
                   80687: php_with_pspell=no
                   80688: 
                   80689: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PSPELL support" >&5
                   80690: $as_echo_n "checking for PSPELL support... " >&6; }
                   80691: 
                   80692: # Check whether --with-pspell was given.
                   80693: if test "${with_pspell+set}" = set; then :
                   80694:   withval=$with_pspell; PHP_PSPELL=$withval
                   80695: else
                   80696: 
                   80697:   PHP_PSPELL=no
                   80698:   test "$PHP_ENABLE_ALL" && PHP_PSPELL=$PHP_ENABLE_ALL
                   80699: 
                   80700: fi
                   80701: 
                   80702: 
                   80703: 
                   80704: ext_output="yes, shared"
                   80705: ext_shared=yes
                   80706: case $PHP_PSPELL in
                   80707: shared,*)
                   80708:   PHP_PSPELL=`echo "$PHP_PSPELL"|$SED 's/^shared,//'`
                   80709:   ;;
                   80710: shared)
                   80711:   PHP_PSPELL=yes
                   80712:   ;;
                   80713: no)
                   80714:   ext_output=no
                   80715:   ext_shared=no
                   80716:   ;;
                   80717: *)
                   80718:   ext_output=yes
                   80719:   ext_shared=no
                   80720:   ;;
                   80721: esac
                   80722: 
                   80723: 
                   80724: 
                   80725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   80726: $as_echo "$ext_output" >&6; }
                   80727: 
                   80728: 
                   80729: 
                   80730: 
                   80731: if test "$PHP_PSPELL" != "no"; then
                   80732: 
                   80733:   ext_builddir=ext/pspell
                   80734:   ext_srcdir=$abs_srcdir/ext/pspell
                   80735: 
                   80736:   ac_extra=
                   80737: 
                   80738:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   80739:     PHP_PSPELL_SHARED=no
                   80740: 
                   80741: 
                   80742:   case ext/pspell in
                   80743:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   80744:   /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   80745:   *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   80746:   esac
                   80747: 
                   80748: 
                   80749: 
                   80750:   b_c_pre=$php_c_pre
                   80751:   b_cxx_pre=$php_cxx_pre
                   80752:   b_c_meta=$php_c_meta
                   80753:   b_cxx_meta=$php_cxx_meta
                   80754:   b_c_post=$php_c_post
                   80755:   b_cxx_post=$php_cxx_post
                   80756:   b_lo=$php_lo
                   80757: 
                   80758: 
                   80759:   old_IFS=$IFS
                   80760:   for ac_src in pspell.c; do
                   80761: 
                   80762:       IFS=.
                   80763:       set $ac_src
                   80764:       ac_obj=$1
                   80765:       IFS=$old_IFS
                   80766: 
                   80767:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   80768: 
                   80769:       case $ac_src in
                   80770:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80771:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80772:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80773:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   80774:       esac
                   80775: 
                   80776:     cat >>Makefile.objects<<EOF
                   80777: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   80778:        $ac_comp
                   80779: EOF
                   80780:   done
                   80781: 
                   80782: 
                   80783:     EXT_STATIC="$EXT_STATIC pspell"
                   80784:     if test "$ext_shared" != "nocli"; then
                   80785:       EXT_CLI_STATIC="$EXT_CLI_STATIC pspell"
                   80786:     fi
                   80787:   else
                   80788:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   80789:       PHP_PSPELL_SHARED=yes
                   80790: 
                   80791:   case ext/pspell in
                   80792:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   80793:   /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   80794:   *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   80795:   esac
                   80796: 
                   80797: 
                   80798: 
                   80799:   b_c_pre=$shared_c_pre
                   80800:   b_cxx_pre=$shared_cxx_pre
                   80801:   b_c_meta=$shared_c_meta
                   80802:   b_cxx_meta=$shared_cxx_meta
                   80803:   b_c_post=$shared_c_post
                   80804:   b_cxx_post=$shared_cxx_post
                   80805:   b_lo=$shared_lo
                   80806: 
                   80807: 
                   80808:   old_IFS=$IFS
                   80809:   for ac_src in pspell.c; do
                   80810: 
                   80811:       IFS=.
                   80812:       set $ac_src
                   80813:       ac_obj=$1
                   80814:       IFS=$old_IFS
                   80815: 
                   80816:       shared_objects_pspell="$shared_objects_pspell $ac_bdir$ac_obj.lo"
                   80817: 
                   80818:       case $ac_src in
                   80819:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80820:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80821:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80822:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   80823:       esac
                   80824: 
                   80825:     cat >>Makefile.objects<<EOF
                   80826: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   80827:        $ac_comp
                   80828: EOF
                   80829:   done
                   80830: 
                   80831:       case $host_alias in
                   80832:         *netware*)
                   80833: 
                   80834:   install_modules="install-modules"
                   80835: 
                   80836:   case $host_alias in
                   80837:     *aix*)
                   80838:       suffix=so
                   80839:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppspell.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) $(PHPPSPELL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppspell.so '$ext_builddir'/phppspell.so'
                   80840:       ;;
                   80841:     *netware*)
                   80842:       suffix=nlm
                   80843:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) -L$(top_builddir)/netware -lphp5lib $(PSPELL_SHARED_LIBADD)'
                   80844:       ;;
                   80845:     *)
                   80846:       suffix=la
                   80847:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) $(PHPPSPELL_SHARED_LIBADD)'
                   80848:       ;;
                   80849:   esac
                   80850: 
                   80851:   if test "x" = "xyes"; then
                   80852:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppspell.$suffix"
                   80853:   else
                   80854:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppspell.$suffix"
                   80855:   fi
                   80856: 
                   80857:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pspell"
                   80858: 
                   80859:   cat >>Makefile.objects<<EOF
                   80860: \$(phplibdir)/phppspell.$suffix: $ext_builddir/phppspell.$suffix
                   80861:        \$(LIBTOOL) --mode=install cp $ext_builddir/phppspell.$suffix \$(phplibdir)
                   80862: 
                   80863: $ext_builddir/phppspell.$suffix: \$(shared_objects_pspell) \$(PHPPSPELL_SHARED_DEPENDENCIES)
                   80864:        $link_cmd
                   80865: 
                   80866: EOF
                   80867: 
                   80868:           ;;
                   80869:         *)
                   80870: 
                   80871:   install_modules="install-modules"
                   80872: 
                   80873:   case $host_alias in
                   80874:     *aix*)
                   80875:       suffix=so
                   80876:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pspell.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) $(PSPELL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pspell.so '$ext_builddir'/pspell.so'
                   80877:       ;;
                   80878:     *netware*)
                   80879:       suffix=nlm
                   80880:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) -L$(top_builddir)/netware -lphp5lib $(ELL_SHARED_LIBADD)'
                   80881:       ;;
                   80882:     *)
                   80883:       suffix=la
                   80884:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) $(PSPELL_SHARED_LIBADD)'
                   80885:       ;;
                   80886:   esac
                   80887: 
                   80888:   if test "x" = "xyes"; then
                   80889:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pspell.$suffix"
                   80890:   else
                   80891:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pspell.$suffix"
                   80892:   fi
                   80893: 
                   80894:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pspell"
                   80895: 
                   80896:   cat >>Makefile.objects<<EOF
                   80897: \$(phplibdir)/pspell.$suffix: $ext_builddir/pspell.$suffix
                   80898:        \$(LIBTOOL) --mode=install cp $ext_builddir/pspell.$suffix \$(phplibdir)
                   80899: 
                   80900: $ext_builddir/pspell.$suffix: \$(shared_objects_pspell) \$(PSPELL_SHARED_DEPENDENCIES)
                   80901:        $link_cmd
                   80902: 
                   80903: EOF
                   80904: 
                   80905:           ;;
                   80906:       esac
                   80907: 
                   80908: cat >>confdefs.h <<_ACEOF
                   80909: #define COMPILE_DL_PSPELL 1
                   80910: _ACEOF
                   80911: 
                   80912:     fi
                   80913:   fi
                   80914: 
                   80915:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   80916:     PHP_PSPELL_SHARED=no
                   80917: 
                   80918: 
                   80919:   case ext/pspell in
                   80920:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   80921:   /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   80922:   *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   80923:   esac
                   80924: 
                   80925: 
                   80926: 
                   80927:   b_c_pre=$php_c_pre
                   80928:   b_cxx_pre=$php_cxx_pre
                   80929:   b_c_meta=$php_c_meta
                   80930:   b_cxx_meta=$php_cxx_meta
                   80931:   b_c_post=$php_c_post
                   80932:   b_cxx_post=$php_cxx_post
                   80933:   b_lo=$php_lo
                   80934: 
                   80935: 
                   80936:   old_IFS=$IFS
                   80937:   for ac_src in pspell.c; do
                   80938: 
                   80939:       IFS=.
                   80940:       set $ac_src
                   80941:       ac_obj=$1
                   80942:       IFS=$old_IFS
                   80943: 
1.1.1.2 ! misho    80944:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    80945: 
                   80946:       case $ac_src in
                   80947:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80948:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80949:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80950:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   80951:       esac
                   80952: 
                   80953:     cat >>Makefile.objects<<EOF
                   80954: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   80955:        $ac_comp
                   80956: EOF
                   80957:   done
                   80958: 
                   80959: 
                   80960: 
                   80961: 
                   80962:   case ext/pspell in
                   80963:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   80964:   /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   80965:   *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   80966:   esac
                   80967: 
                   80968: 
                   80969: 
                   80970:   b_c_pre=$php_c_pre
                   80971:   b_cxx_pre=$php_cxx_pre
                   80972:   b_c_meta=$php_c_meta
                   80973:   b_cxx_meta=$php_cxx_meta
                   80974:   b_c_post=$php_c_post
                   80975:   b_cxx_post=$php_cxx_post
                   80976:   b_lo=$php_lo
                   80977: 
                   80978: 
                   80979:   old_IFS=$IFS
                   80980:   for ac_src in pspell.c; do
                   80981: 
                   80982:       IFS=.
                   80983:       set $ac_src
                   80984:       ac_obj=$1
                   80985:       IFS=$old_IFS
                   80986: 
1.1.1.2 ! misho    80987:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    80988: 
                   80989:       case $ac_src in
                   80990:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80991:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80992:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   80993:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   80994:       esac
                   80995: 
                   80996:     cat >>Makefile.objects<<EOF
                   80997: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   80998:        $ac_comp
                   80999: EOF
                   81000:   done
                   81001: 
                   81002: 
                   81003: 
                   81004: 
                   81005:   case ext/pspell in
                   81006:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   81007:   /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   81008:   *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   81009:   esac
                   81010: 
                   81011: 
                   81012: 
                   81013:   b_c_pre=$php_c_pre
                   81014:   b_cxx_pre=$php_cxx_pre
                   81015:   b_c_meta=$php_c_meta
                   81016:   b_cxx_meta=$php_cxx_meta
                   81017:   b_c_post=$php_c_post
                   81018:   b_cxx_post=$php_cxx_post
                   81019:   b_lo=$php_lo
                   81020: 
                   81021: 
                   81022:   old_IFS=$IFS
                   81023:   for ac_src in pspell.c; do
                   81024: 
                   81025:       IFS=.
                   81026:       set $ac_src
                   81027:       ac_obj=$1
                   81028:       IFS=$old_IFS
                   81029: 
1.1.1.2 ! misho    81030:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    81031: 
                   81032:       case $ac_src in
                   81033:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   81034:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   81035:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   81036:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   81037:       esac
                   81038: 
                   81039:     cat >>Makefile.objects<<EOF
                   81040: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   81041:        $ac_comp
                   81042: EOF
                   81043:   done
                   81044: 
                   81045: 
                   81046:     EXT_CLI_STATIC="$EXT_CLI_STATIC pspell"
                   81047:   fi
                   81048: 
                   81049: 
                   81050:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   81051: 
                   81052: 
                   81053: 
                   81054:   if test "$ext_builddir" = "."; then
                   81055:     PHP_PECL_EXTENSION=pspell
                   81056: 
                   81057:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   81058: 
                   81059:   fi
                   81060: 
                   81061:        if test "$PHP_PSPELL" != "yes"; then
                   81062:            PSPELL_SEARCH_DIRS=$PHP_PSPELL
                   81063:        else
                   81064:            PSPELL_SEARCH_DIRS="/usr/local /usr"
                   81065:        fi
                   81066:        for i in $PSPELL_SEARCH_DIRS; do
                   81067:                if test -f $i/include/pspell/pspell.h; then
                   81068:                        PSPELL_DIR=$i
                   81069:                        PSPELL_INCDIR=$i/include/pspell
                   81070:                elif test -f $i/include/pspell.h; then
                   81071:                        PSPELL_DIR=$i
                   81072:                        PSPELL_INCDIR=$i/include
                   81073:                fi
                   81074:        done
                   81075: 
                   81076:        if test -z "$PSPELL_DIR"; then
                   81077:                as_fn_error $? "Cannot find pspell" "$LINENO" 5
                   81078:        fi
                   81079: 
                   81080:        PSPELL_LIBDIR=$PSPELL_DIR/$PHP_LIBDIR
                   81081: 
                   81082: 
                   81083: 
                   81084:   if test "$ext_shared" = "yes"; then
                   81085:     PSPELL_SHARED_LIBADD="-lpspell $PSPELL_SHARED_LIBADD"
                   81086:     if test -n "$PSPELL_LIBDIR"; then
                   81087: 
                   81088:   if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
                   81089: 
                   81090:   if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
                   81091:     ai_p=$PSPELL_LIBDIR
                   81092:   else
                   81093: 
                   81094:     ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   81095: 
                   81096:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   81097:     ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
                   81098:   fi
                   81099: 
                   81100: 
                   81101:       if test "$ext_shared" = "yes"; then
                   81102:         PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD"
                   81103:         test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD"
                   81104:       else
                   81105: 
                   81106: 
                   81107: 
                   81108:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   81109: 
                   81110:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   81111:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   81112:     eval "LIBPATH$unique=set"
                   81113: 
                   81114:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   81115:     LDFLAGS="$LDFLAGS -L$ai_p"
                   81116:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   81117: 
                   81118:   fi
                   81119: 
                   81120: 
                   81121:       fi
                   81122: 
                   81123:   fi
                   81124: 
                   81125:     fi
                   81126:   else
                   81127: 
                   81128: 
                   81129:   if test -n "$PSPELL_LIBDIR"; then
                   81130: 
                   81131:   if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
                   81132: 
                   81133:   if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
                   81134:     ai_p=$PSPELL_LIBDIR
                   81135:   else
                   81136: 
                   81137:     ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   81138: 
                   81139:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   81140:     ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
                   81141:   fi
                   81142: 
                   81143: 
                   81144: 
                   81145: 
                   81146: 
                   81147:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   81148: 
                   81149:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   81150:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   81151:     eval "LIBPATH$unique=set"
                   81152: 
                   81153:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   81154:     LDFLAGS="$LDFLAGS -L$ai_p"
                   81155:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   81156: 
                   81157:   fi
                   81158: 
                   81159: 
                   81160: 
                   81161:   fi
                   81162: 
                   81163:   fi
                   81164: 
                   81165: 
                   81166:   case pspell in
                   81167:   c|c_r|pthread*) ;;
                   81168:   *)
                   81169:       LIBS="-lpspell $LIBS"
                   81170:    ;;
                   81171:   esac
                   81172: 
                   81173: 
                   81174: 
                   81175: 
                   81176:   fi
                   81177: 
                   81178: 
                   81179: 
                   81180: 
                   81181:   save_old_LDFLAGS=$LDFLAGS
                   81182:   ac_stuff="
                   81183:                -L$PSPELL_LIBDIR
                   81184:        "
                   81185: 
                   81186:   save_ext_shared=$ext_shared
                   81187:   ext_shared=yes
                   81188: 
                   81189:   for ac_i in $ac_stuff; do
                   81190:     case $ac_i in
                   81191:     -pthread)
                   81192:       if test "$ext_shared" = "yes"; then
                   81193:         LDFLAGS="$LDFLAGS -pthread"
                   81194:       else
                   81195: 
                   81196: 
                   81197:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   81198: 
                   81199:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   81200:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   81201:     eval "EXTRA_LDFLAGS$unique=set"
                   81202:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   81203:   fi
                   81204: 
                   81205:       fi
                   81206:     ;;
                   81207:     -l*)
                   81208:       ac_ii=`echo $ac_i|cut -c 3-`
                   81209: 
                   81210: 
                   81211:   case $ac_ii in
                   81212:   c|c_r|pthread*) ;;
                   81213:   *)
                   81214:     if test "$ext_shared" = "yes"; then
                   81215:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   81216:     else
                   81217: 
                   81218: 
                   81219:   case $ac_ii in
                   81220:   c|c_r|pthread*) ;;
                   81221:   *)
                   81222:       LIBS="$LIBS -l$ac_ii"
                   81223:    ;;
                   81224:   esac
                   81225: 
                   81226: 
                   81227:     fi
                   81228:    ;;
                   81229:   esac
                   81230: 
                   81231: 
                   81232:     ;;
                   81233:     -L*)
                   81234:       ac_ii=`echo $ac_i|cut -c 3-`
                   81235: 
                   81236:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   81237: 
                   81238:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   81239:     ai_p=$ac_ii
                   81240:   else
                   81241: 
                   81242:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   81243: 
                   81244:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   81245:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   81246:   fi
                   81247: 
                   81248: 
                   81249:       if test "$ext_shared" = "yes"; then
                   81250:         LDFLAGS="-L$ai_p $LDFLAGS"
                   81251:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   81252:       else
                   81253: 
                   81254: 
                   81255: 
                   81256:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   81257: 
                   81258:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   81259:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   81260:     eval "LIBPATH$unique=set"
                   81261: 
                   81262:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   81263:     LDFLAGS="$LDFLAGS -L$ai_p"
                   81264:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   81265: 
                   81266:   fi
                   81267: 
                   81268: 
                   81269:       fi
                   81270: 
                   81271:   fi
                   81272: 
                   81273:     ;;
                   81274:     esac
                   81275:   done
                   81276: 
                   81277:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_aspell_config in -laspell" >&5
                   81278: $as_echo_n "checking for new_aspell_config in -laspell... " >&6; }
                   81279: if ${ac_cv_lib_aspell_new_aspell_config+:} false; then :
                   81280:   $as_echo_n "(cached) " >&6
                   81281: else
                   81282:   ac_check_lib_save_LIBS=$LIBS
                   81283: LIBS="-laspell  $LIBS"
                   81284: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   81285: /* end confdefs.h.  */
                   81286: 
                   81287: /* Override any GCC internal prototype to avoid an error.
                   81288:    Use char because int might match the return type of a GCC
                   81289:    builtin and then its argument prototype would still apply.  */
                   81290: #ifdef __cplusplus
                   81291: extern "C"
                   81292: #endif
                   81293: char new_aspell_config ();
                   81294: int
                   81295: main ()
                   81296: {
                   81297: return new_aspell_config ();
                   81298:   ;
                   81299:   return 0;
                   81300: }
                   81301: _ACEOF
                   81302: if ac_fn_c_try_link "$LINENO"; then :
                   81303:   ac_cv_lib_aspell_new_aspell_config=yes
                   81304: else
                   81305:   ac_cv_lib_aspell_new_aspell_config=no
                   81306: fi
                   81307: rm -f core conftest.err conftest.$ac_objext \
                   81308:     conftest$ac_exeext conftest.$ac_ext
                   81309: LIBS=$ac_check_lib_save_LIBS
                   81310: fi
                   81311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aspell_new_aspell_config" >&5
                   81312: $as_echo "$ac_cv_lib_aspell_new_aspell_config" >&6; }
                   81313: if test "x$ac_cv_lib_aspell_new_aspell_config" = xyes; then :
                   81314: 
                   81315:     LDFLAGS=$save_old_LDFLAGS
                   81316:     ext_shared=$save_ext_shared
                   81317: 
                   81318: 
                   81319: 
                   81320:   if test "$ext_shared" = "yes"; then
                   81321:     PSPELL_SHARED_LIBADD="-laspell $PSPELL_SHARED_LIBADD"
                   81322:     if test -n "$PSPELL_LIBDIR"; then
                   81323: 
                   81324:   if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
                   81325: 
                   81326:   if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
                   81327:     ai_p=$PSPELL_LIBDIR
                   81328:   else
                   81329: 
                   81330:     ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   81331: 
                   81332:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   81333:     ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
                   81334:   fi
                   81335: 
                   81336: 
                   81337:       if test "$ext_shared" = "yes"; then
                   81338:         PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD"
                   81339:         test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD"
                   81340:       else
                   81341: 
                   81342: 
                   81343: 
                   81344:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   81345: 
                   81346:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   81347:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   81348:     eval "LIBPATH$unique=set"
                   81349: 
                   81350:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   81351:     LDFLAGS="$LDFLAGS -L$ai_p"
                   81352:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   81353: 
                   81354:   fi
                   81355: 
                   81356: 
                   81357:       fi
                   81358: 
                   81359:   fi
                   81360: 
                   81361:     fi
                   81362:   else
                   81363: 
                   81364: 
                   81365:   if test -n "$PSPELL_LIBDIR"; then
                   81366: 
                   81367:   if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
                   81368: 
                   81369:   if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
                   81370:     ai_p=$PSPELL_LIBDIR
                   81371:   else
                   81372: 
                   81373:     ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   81374: 
                   81375:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   81376:     ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
                   81377:   fi
                   81378: 
                   81379: 
                   81380: 
                   81381: 
                   81382: 
                   81383:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   81384: 
                   81385:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   81386:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   81387:     eval "LIBPATH$unique=set"
                   81388: 
                   81389:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   81390:     LDFLAGS="$LDFLAGS -L$ai_p"
                   81391:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   81392: 
                   81393:   fi
                   81394: 
                   81395: 
                   81396: 
                   81397:   fi
                   81398: 
                   81399:   fi
                   81400: 
                   81401: 
                   81402:   case aspell in
                   81403:   c|c_r|pthread*) ;;
                   81404:   *)
                   81405:       LIBS="-laspell $LIBS"
                   81406:    ;;
                   81407:   esac
                   81408: 
                   81409: 
                   81410: 
                   81411: 
                   81412:   fi
                   81413: 
                   81414: 
                   81415: 
                   81416: 
                   81417: else
                   81418: 
                   81419:     LDFLAGS=$save_old_LDFLAGS
                   81420:     ext_shared=$save_ext_shared
                   81421:     unset ac_cv_lib_aspell_new_aspell_config
                   81422: 
                   81423: 
                   81424: fi
                   81425: 
                   81426: 
                   81427: 
                   81428:   if test "$PSPELL_INCDIR" != "/usr/include"; then
                   81429: 
                   81430:   if test -z "$PSPELL_INCDIR" || echo "$PSPELL_INCDIR" | grep '^/' >/dev/null ; then
                   81431:     ai_p=$PSPELL_INCDIR
                   81432:   else
                   81433: 
                   81434:     ep_dir="`echo $PSPELL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   81435: 
                   81436:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   81437:     ai_p="$ep_realdir/`basename \"$PSPELL_INCDIR\"`"
                   81438:   fi
                   81439: 
                   81440: 
                   81441: 
                   81442:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   81443: 
                   81444:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   81445:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   81446:     eval "INCLUDEPATH$unique=set"
                   81447: 
                   81448:       if test ""; then
                   81449:         INCLUDES="-I$ai_p $INCLUDES"
                   81450:       else
                   81451:         INCLUDES="$INCLUDES -I$ai_p"
                   81452:       fi
                   81453: 
                   81454:   fi
                   81455: 
                   81456:   fi
                   81457: 
                   81458: 
                   81459:   PHP_VAR_SUBST="$PHP_VAR_SUBST PSPELL_SHARED_LIBADD"
                   81460: 
                   81461: 
                   81462: $as_echo "#define HAVE_PSPELL 1" >>confdefs.h
                   81463: 
                   81464: fi
                   81465: 
                   81466: 
                   81467: 
                   81468: php_with_libedit=no
                   81469: 
                   81470: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit readline replacement" >&5
                   81471: $as_echo_n "checking for libedit readline replacement... " >&6; }
                   81472: 
                   81473: # Check whether --with-libedit was given.
                   81474: if test "${with_libedit+set}" = set; then :
                   81475:   withval=$with_libedit; PHP_LIBEDIT=$withval
                   81476: else
                   81477: 
                   81478:   PHP_LIBEDIT=no
                   81479:   test "$PHP_ENABLE_ALL" && PHP_LIBEDIT=$PHP_ENABLE_ALL
                   81480: 
                   81481: fi
                   81482: 
                   81483: 
                   81484: 
                   81485: ext_output="yes, shared"
                   81486: ext_shared=yes
                   81487: case $PHP_LIBEDIT in
                   81488: shared,*)
                   81489:   PHP_LIBEDIT=`echo "$PHP_LIBEDIT"|$SED 's/^shared,//'`
                   81490:   ;;
                   81491: shared)
                   81492:   PHP_LIBEDIT=yes
                   81493:   ;;
                   81494: no)
                   81495:   ext_output=no
                   81496:   ext_shared=no
                   81497:   ;;
                   81498: *)
                   81499:   ext_output=yes
                   81500:   ext_shared=no
                   81501:   ;;
                   81502: esac
                   81503: 
                   81504: 
                   81505: 
                   81506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   81507: $as_echo "$ext_output" >&6; }
                   81508: 
                   81509: 
                   81510: 
                   81511: 
                   81512: if test "$PHP_LIBEDIT" = "no"; then
                   81513: 
                   81514: php_with_readline=no
                   81515: 
                   81516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline support" >&5
                   81517: $as_echo_n "checking for readline support... " >&6; }
                   81518: 
                   81519: # Check whether --with-readline was given.
                   81520: if test "${with_readline+set}" = set; then :
                   81521:   withval=$with_readline; PHP_READLINE=$withval
                   81522: else
                   81523: 
                   81524:   PHP_READLINE=no
                   81525:   test "$PHP_ENABLE_ALL" && PHP_READLINE=$PHP_ENABLE_ALL
                   81526: 
                   81527: fi
                   81528: 
                   81529: 
                   81530: 
                   81531: ext_output="yes, shared"
                   81532: ext_shared=yes
                   81533: case $PHP_READLINE in
                   81534: shared,*)
                   81535:   PHP_READLINE=`echo "$PHP_READLINE"|$SED 's/^shared,//'`
                   81536:   ;;
                   81537: shared)
                   81538:   PHP_READLINE=yes
                   81539:   ;;
                   81540: no)
                   81541:   ext_output=no
                   81542:   ext_shared=no
                   81543:   ;;
                   81544: *)
                   81545:   ext_output=yes
                   81546:   ext_shared=no
                   81547:   ;;
                   81548: esac
                   81549: 
                   81550: 
                   81551: 
                   81552: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   81553: $as_echo "$ext_output" >&6; }
                   81554: 
                   81555: 
                   81556: 
                   81557: else
                   81558:     php_with_readline=no
                   81559: fi
                   81560: 
                   81561: if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
                   81562:   for i in $PHP_READLINE /usr/local /usr; do
                   81563:     test -f $i/include/readline/readline.h && READLINE_DIR=$i && break
                   81564:   done
                   81565: 
                   81566:   if test -z "$READLINE_DIR"; then
                   81567:     as_fn_error $? "Please reinstall readline - I cannot find readline.h" "$LINENO" 5
                   81568:   fi
                   81569: 
                   81570: 
                   81571:   if test "$READLINE_DIR/include" != "/usr/include"; then
                   81572: 
                   81573:   if test -z "$READLINE_DIR/include" || echo "$READLINE_DIR/include" | grep '^/' >/dev/null ; then
                   81574:     ai_p=$READLINE_DIR/include
                   81575:   else
                   81576: 
                   81577:     ep_dir="`echo $READLINE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   81578: 
                   81579:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   81580:     ai_p="$ep_realdir/`basename \"$READLINE_DIR/include\"`"
                   81581:   fi
                   81582: 
                   81583: 
                   81584: 
                   81585:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   81586: 
                   81587:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   81588:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   81589:     eval "INCLUDEPATH$unique=set"
                   81590: 
                   81591:       if test ""; then
                   81592:         INCLUDES="-I$ai_p $INCLUDES"
                   81593:       else
                   81594:         INCLUDES="$INCLUDES -I$ai_p"
                   81595:       fi
                   81596: 
                   81597:   fi
                   81598: 
                   81599:   fi
                   81600: 
                   81601: 
                   81602:   PHP_READLINE_LIBS=""
                   81603:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
                   81604: $as_echo_n "checking for tgetent in -lncurses... " >&6; }
                   81605: if ${ac_cv_lib_ncurses_tgetent+:} false; then :
                   81606:   $as_echo_n "(cached) " >&6
                   81607: else
                   81608:   ac_check_lib_save_LIBS=$LIBS
                   81609: LIBS="-lncurses  $LIBS"
                   81610: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   81611: /* end confdefs.h.  */
                   81612: 
                   81613: /* Override any GCC internal prototype to avoid an error.
                   81614:    Use char because int might match the return type of a GCC
                   81615:    builtin and then its argument prototype would still apply.  */
                   81616: #ifdef __cplusplus
                   81617: extern "C"
                   81618: #endif
                   81619: char tgetent ();
                   81620: int
                   81621: main ()
                   81622: {
                   81623: return tgetent ();
                   81624:   ;
                   81625:   return 0;
                   81626: }
                   81627: _ACEOF
                   81628: if ac_fn_c_try_link "$LINENO"; then :
                   81629:   ac_cv_lib_ncurses_tgetent=yes
                   81630: else
                   81631:   ac_cv_lib_ncurses_tgetent=no
                   81632: fi
                   81633: rm -f core conftest.err conftest.$ac_objext \
                   81634:     conftest$ac_exeext conftest.$ac_ext
                   81635: LIBS=$ac_check_lib_save_LIBS
                   81636: fi
                   81637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
                   81638: $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
                   81639: if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
                   81640: 
                   81641: 
                   81642: 
                   81643:   case ncurses in
                   81644:   c|c_r|pthread*) ;;
                   81645:   *)
                   81646:     if test "$ext_shared" = "yes"; then
                   81647:         READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD"
                   81648:     else
                   81649: 
                   81650: 
                   81651:   case ncurses in
                   81652:   c|c_r|pthread*) ;;
                   81653:   *)
                   81654:       LIBS="-lncurses $LIBS"
                   81655:    ;;
                   81656:   esac
                   81657: 
                   81658: 
                   81659:     fi
                   81660:    ;;
                   81661:   esac
                   81662: 
                   81663: 
                   81664:     PHP_READLINE_LIBS="$PHP_READLINE_LIBS -lncurses"
                   81665: 
                   81666: else
                   81667: 
                   81668:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
                   81669: $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
                   81670: if ${ac_cv_lib_termcap_tgetent+:} false; then :
                   81671:   $as_echo_n "(cached) " >&6
                   81672: else
                   81673:   ac_check_lib_save_LIBS=$LIBS
                   81674: LIBS="-ltermcap  $LIBS"
                   81675: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   81676: /* end confdefs.h.  */
                   81677: 
                   81678: /* Override any GCC internal prototype to avoid an error.
                   81679:    Use char because int might match the return type of a GCC
                   81680:    builtin and then its argument prototype would still apply.  */
                   81681: #ifdef __cplusplus
                   81682: extern "C"
                   81683: #endif
                   81684: char tgetent ();
                   81685: int
                   81686: main ()
                   81687: {
                   81688: return tgetent ();
                   81689:   ;
                   81690:   return 0;
                   81691: }
                   81692: _ACEOF
                   81693: if ac_fn_c_try_link "$LINENO"; then :
                   81694:   ac_cv_lib_termcap_tgetent=yes
                   81695: else
                   81696:   ac_cv_lib_termcap_tgetent=no
                   81697: fi
                   81698: rm -f core conftest.err conftest.$ac_objext \
                   81699:     conftest$ac_exeext conftest.$ac_ext
                   81700: LIBS=$ac_check_lib_save_LIBS
                   81701: fi
                   81702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
                   81703: $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
                   81704: if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
                   81705: 
                   81706: 
                   81707: 
                   81708:   case termcap in
                   81709:   c|c_r|pthread*) ;;
                   81710:   *)
                   81711:     if test "$ext_shared" = "yes"; then
                   81712:         READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD"
                   81713:     else
                   81714: 
                   81715: 
                   81716:   case termcap in
                   81717:   c|c_r|pthread*) ;;
                   81718:   *)
                   81719:       LIBS="-ltermcap $LIBS"
                   81720:    ;;
                   81721:   esac
                   81722: 
                   81723: 
                   81724:     fi
                   81725:    ;;
                   81726:   esac
                   81727: 
                   81728: 
                   81729:       PHP_READLINE_LIBS="$PHP_READLINE_LIBS -ltermcap"
                   81730: 
                   81731: fi
                   81732: 
                   81733: 
                   81734: fi
                   81735: 
                   81736: 
                   81737: 
                   81738:   save_old_LDFLAGS=$LDFLAGS
                   81739:   ac_stuff="
                   81740:     -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
                   81741:   "
                   81742: 
                   81743:   save_ext_shared=$ext_shared
                   81744:   ext_shared=yes
                   81745: 
                   81746:   for ac_i in $ac_stuff; do
                   81747:     case $ac_i in
                   81748:     -pthread)
                   81749:       if test "$ext_shared" = "yes"; then
                   81750:         LDFLAGS="$LDFLAGS -pthread"
                   81751:       else
                   81752: 
                   81753: 
                   81754:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   81755: 
                   81756:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   81757:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   81758:     eval "EXTRA_LDFLAGS$unique=set"
                   81759:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   81760:   fi
                   81761: 
                   81762:       fi
                   81763:     ;;
                   81764:     -l*)
                   81765:       ac_ii=`echo $ac_i|cut -c 3-`
                   81766: 
                   81767: 
                   81768:   case $ac_ii in
                   81769:   c|c_r|pthread*) ;;
                   81770:   *)
                   81771:     if test "$ext_shared" = "yes"; then
                   81772:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   81773:     else
                   81774: 
                   81775: 
                   81776:   case $ac_ii in
                   81777:   c|c_r|pthread*) ;;
                   81778:   *)
                   81779:       LIBS="$LIBS -l$ac_ii"
                   81780:    ;;
                   81781:   esac
                   81782: 
                   81783: 
                   81784:     fi
                   81785:    ;;
                   81786:   esac
                   81787: 
                   81788: 
                   81789:     ;;
                   81790:     -L*)
                   81791:       ac_ii=`echo $ac_i|cut -c 3-`
                   81792: 
                   81793:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   81794: 
                   81795:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   81796:     ai_p=$ac_ii
                   81797:   else
                   81798: 
                   81799:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   81800: 
                   81801:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   81802:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   81803:   fi
                   81804: 
                   81805: 
                   81806:       if test "$ext_shared" = "yes"; then
                   81807:         LDFLAGS="-L$ai_p $LDFLAGS"
                   81808:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   81809:       else
                   81810: 
                   81811: 
                   81812: 
                   81813:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   81814: 
                   81815:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   81816:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   81817:     eval "LIBPATH$unique=set"
                   81818: 
                   81819:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   81820:     LDFLAGS="$LDFLAGS -L$ai_p"
                   81821:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   81822: 
                   81823:   fi
                   81824: 
                   81825: 
                   81826:       fi
                   81827: 
                   81828:   fi
                   81829: 
                   81830:     ;;
                   81831:     esac
                   81832:   done
                   81833: 
                   81834:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
                   81835: $as_echo_n "checking for readline in -lreadline... " >&6; }
                   81836: if ${ac_cv_lib_readline_readline+:} false; then :
                   81837:   $as_echo_n "(cached) " >&6
                   81838: else
                   81839:   ac_check_lib_save_LIBS=$LIBS
                   81840: LIBS="-lreadline  $LIBS"
                   81841: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   81842: /* end confdefs.h.  */
                   81843: 
                   81844: /* Override any GCC internal prototype to avoid an error.
                   81845:    Use char because int might match the return type of a GCC
                   81846:    builtin and then its argument prototype would still apply.  */
                   81847: #ifdef __cplusplus
                   81848: extern "C"
                   81849: #endif
                   81850: char readline ();
                   81851: int
                   81852: main ()
                   81853: {
                   81854: return readline ();
                   81855:   ;
                   81856:   return 0;
                   81857: }
                   81858: _ACEOF
                   81859: if ac_fn_c_try_link "$LINENO"; then :
                   81860:   ac_cv_lib_readline_readline=yes
                   81861: else
                   81862:   ac_cv_lib_readline_readline=no
                   81863: fi
                   81864: rm -f core conftest.err conftest.$ac_objext \
                   81865:     conftest$ac_exeext conftest.$ac_ext
                   81866: LIBS=$ac_check_lib_save_LIBS
                   81867: fi
                   81868: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
                   81869: $as_echo "$ac_cv_lib_readline_readline" >&6; }
                   81870: if test "x$ac_cv_lib_readline_readline" = xyes; then :
                   81871: 
                   81872:     LDFLAGS=$save_old_LDFLAGS
                   81873:     ext_shared=$save_ext_shared
                   81874: 
                   81875: 
                   81876: 
                   81877:   if test "$ext_shared" = "yes"; then
                   81878:     READLINE_SHARED_LIBADD="-lreadline $READLINE_SHARED_LIBADD"
                   81879:     if test -n "$READLINE_DIR/$PHP_LIBDIR"; then
                   81880: 
                   81881:   if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   81882: 
                   81883:   if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   81884:     ai_p=$READLINE_DIR/$PHP_LIBDIR
                   81885:   else
                   81886: 
                   81887:     ep_dir="`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   81888: 
                   81889:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   81890:     ai_p="$ep_realdir/`basename \"$READLINE_DIR/$PHP_LIBDIR\"`"
                   81891:   fi
                   81892: 
                   81893: 
                   81894:       if test "$ext_shared" = "yes"; then
                   81895:         READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD"
                   81896:         test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD"
                   81897:       else
                   81898: 
                   81899: 
                   81900: 
                   81901:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   81902: 
                   81903:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   81904:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   81905:     eval "LIBPATH$unique=set"
                   81906: 
                   81907:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   81908:     LDFLAGS="$LDFLAGS -L$ai_p"
                   81909:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   81910: 
                   81911:   fi
                   81912: 
                   81913: 
                   81914:       fi
                   81915: 
                   81916:   fi
                   81917: 
                   81918:     fi
                   81919:   else
                   81920: 
                   81921: 
                   81922:   if test -n "$READLINE_DIR/$PHP_LIBDIR"; then
                   81923: 
                   81924:   if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   81925: 
                   81926:   if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   81927:     ai_p=$READLINE_DIR/$PHP_LIBDIR
                   81928:   else
                   81929: 
                   81930:     ep_dir="`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   81931: 
                   81932:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   81933:     ai_p="$ep_realdir/`basename \"$READLINE_DIR/$PHP_LIBDIR\"`"
                   81934:   fi
                   81935: 
                   81936: 
                   81937: 
                   81938: 
                   81939: 
                   81940:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   81941: 
                   81942:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   81943:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   81944:     eval "LIBPATH$unique=set"
                   81945: 
                   81946:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   81947:     LDFLAGS="$LDFLAGS -L$ai_p"
                   81948:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   81949: 
                   81950:   fi
                   81951: 
                   81952: 
                   81953: 
                   81954:   fi
                   81955: 
                   81956:   fi
                   81957: 
                   81958: 
                   81959:   case readline in
                   81960:   c|c_r|pthread*) ;;
                   81961:   *)
                   81962:       LIBS="-lreadline $LIBS"
                   81963:    ;;
                   81964:   esac
                   81965: 
                   81966: 
                   81967: 
                   81968: 
                   81969:   fi
                   81970: 
                   81971: 
                   81972: 
                   81973: 
                   81974: else
                   81975: 
                   81976:     LDFLAGS=$save_old_LDFLAGS
                   81977:     ext_shared=$save_ext_shared
                   81978:     unset ac_cv_lib_readline_readline
                   81979: 
                   81980:     as_fn_error $? "readline library not found" "$LINENO" 5
                   81981: 
                   81982: 
                   81983: fi
                   81984: 
                   81985: 
                   81986: 
                   81987:   save_old_LDFLAGS=$LDFLAGS
                   81988:   ac_stuff="
                   81989:     -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
                   81990:   "
                   81991: 
                   81992:   save_ext_shared=$ext_shared
                   81993:   ext_shared=yes
                   81994: 
                   81995:   for ac_i in $ac_stuff; do
                   81996:     case $ac_i in
                   81997:     -pthread)
                   81998:       if test "$ext_shared" = "yes"; then
                   81999:         LDFLAGS="$LDFLAGS -pthread"
                   82000:       else
                   82001: 
                   82002: 
                   82003:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   82004: 
                   82005:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   82006:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   82007:     eval "EXTRA_LDFLAGS$unique=set"
                   82008:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   82009:   fi
                   82010: 
                   82011:       fi
                   82012:     ;;
                   82013:     -l*)
                   82014:       ac_ii=`echo $ac_i|cut -c 3-`
                   82015: 
                   82016: 
                   82017:   case $ac_ii in
                   82018:   c|c_r|pthread*) ;;
                   82019:   *)
                   82020:     if test "$ext_shared" = "yes"; then
                   82021:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   82022:     else
                   82023: 
                   82024: 
                   82025:   case $ac_ii in
                   82026:   c|c_r|pthread*) ;;
                   82027:   *)
                   82028:       LIBS="$LIBS -l$ac_ii"
                   82029:    ;;
                   82030:   esac
                   82031: 
                   82032: 
                   82033:     fi
                   82034:    ;;
                   82035:   esac
                   82036: 
                   82037: 
                   82038:     ;;
                   82039:     -L*)
                   82040:       ac_ii=`echo $ac_i|cut -c 3-`
                   82041: 
                   82042:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   82043: 
                   82044:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   82045:     ai_p=$ac_ii
                   82046:   else
                   82047: 
                   82048:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   82049: 
                   82050:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   82051:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   82052:   fi
                   82053: 
                   82054: 
                   82055:       if test "$ext_shared" = "yes"; then
                   82056:         LDFLAGS="-L$ai_p $LDFLAGS"
                   82057:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   82058:       else
                   82059: 
                   82060: 
                   82061: 
                   82062:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   82063: 
                   82064:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   82065:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   82066:     eval "LIBPATH$unique=set"
                   82067: 
                   82068:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   82069:     LDFLAGS="$LDFLAGS -L$ai_p"
                   82070:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   82071: 
                   82072:   fi
                   82073: 
                   82074: 
                   82075:       fi
                   82076: 
                   82077:   fi
                   82078: 
                   82079:     ;;
                   82080:     esac
                   82081:   done
                   82082: 
                   82083:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pending_input in -lreadline" >&5
                   82084: $as_echo_n "checking for rl_pending_input in -lreadline... " >&6; }
                   82085: if ${ac_cv_lib_readline_rl_pending_input+:} false; then :
                   82086:   $as_echo_n "(cached) " >&6
                   82087: else
                   82088:   ac_check_lib_save_LIBS=$LIBS
                   82089: LIBS="-lreadline  $LIBS"
                   82090: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   82091: /* end confdefs.h.  */
                   82092: 
                   82093: /* Override any GCC internal prototype to avoid an error.
                   82094:    Use char because int might match the return type of a GCC
                   82095:    builtin and then its argument prototype would still apply.  */
                   82096: #ifdef __cplusplus
                   82097: extern "C"
                   82098: #endif
                   82099: char rl_pending_input ();
                   82100: int
                   82101: main ()
                   82102: {
                   82103: return rl_pending_input ();
                   82104:   ;
                   82105:   return 0;
                   82106: }
                   82107: _ACEOF
                   82108: if ac_fn_c_try_link "$LINENO"; then :
                   82109:   ac_cv_lib_readline_rl_pending_input=yes
                   82110: else
                   82111:   ac_cv_lib_readline_rl_pending_input=no
                   82112: fi
                   82113: rm -f core conftest.err conftest.$ac_objext \
                   82114:     conftest$ac_exeext conftest.$ac_ext
                   82115: LIBS=$ac_check_lib_save_LIBS
                   82116: fi
                   82117: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pending_input" >&5
                   82118: $as_echo "$ac_cv_lib_readline_rl_pending_input" >&6; }
                   82119: if test "x$ac_cv_lib_readline_rl_pending_input" = xyes; then :
                   82120: 
                   82121:     LDFLAGS=$save_old_LDFLAGS
                   82122:     ext_shared=$save_ext_shared
                   82123: 
                   82124: 
                   82125: else
                   82126: 
                   82127:     LDFLAGS=$save_old_LDFLAGS
                   82128:     ext_shared=$save_ext_shared
                   82129:     unset ac_cv_lib_readline_rl_pending_input
                   82130: 
                   82131:     as_fn_error $? "invalid readline installation detected. Try --with-libedit instead." "$LINENO" 5
                   82132: 
                   82133: 
                   82134: fi
                   82135: 
                   82136: 
                   82137: 
                   82138:   save_old_LDFLAGS=$LDFLAGS
                   82139:   ac_stuff="
                   82140:     -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
                   82141:   "
                   82142: 
                   82143:   save_ext_shared=$ext_shared
                   82144:   ext_shared=yes
                   82145: 
                   82146:   for ac_i in $ac_stuff; do
                   82147:     case $ac_i in
                   82148:     -pthread)
                   82149:       if test "$ext_shared" = "yes"; then
                   82150:         LDFLAGS="$LDFLAGS -pthread"
                   82151:       else
                   82152: 
                   82153: 
                   82154:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   82155: 
                   82156:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   82157:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   82158:     eval "EXTRA_LDFLAGS$unique=set"
                   82159:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   82160:   fi
                   82161: 
                   82162:       fi
                   82163:     ;;
                   82164:     -l*)
                   82165:       ac_ii=`echo $ac_i|cut -c 3-`
                   82166: 
                   82167: 
                   82168:   case $ac_ii in
                   82169:   c|c_r|pthread*) ;;
                   82170:   *)
                   82171:     if test "$ext_shared" = "yes"; then
                   82172:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   82173:     else
                   82174: 
                   82175: 
                   82176:   case $ac_ii in
                   82177:   c|c_r|pthread*) ;;
                   82178:   *)
                   82179:       LIBS="$LIBS -l$ac_ii"
                   82180:    ;;
                   82181:   esac
                   82182: 
                   82183: 
                   82184:     fi
                   82185:    ;;
                   82186:   esac
                   82187: 
                   82188: 
                   82189:     ;;
                   82190:     -L*)
                   82191:       ac_ii=`echo $ac_i|cut -c 3-`
                   82192: 
                   82193:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   82194: 
                   82195:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   82196:     ai_p=$ac_ii
                   82197:   else
                   82198: 
                   82199:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   82200: 
                   82201:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   82202:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   82203:   fi
                   82204: 
                   82205: 
                   82206:       if test "$ext_shared" = "yes"; then
                   82207:         LDFLAGS="-L$ai_p $LDFLAGS"
                   82208:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   82209:       else
                   82210: 
                   82211: 
                   82212: 
                   82213:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   82214: 
                   82215:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   82216:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   82217:     eval "LIBPATH$unique=set"
                   82218: 
                   82219:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   82220:     LDFLAGS="$LDFLAGS -L$ai_p"
                   82221:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   82222: 
                   82223:   fi
                   82224: 
                   82225: 
                   82226:       fi
                   82227: 
                   82228:   fi
                   82229: 
                   82230:     ;;
                   82231:     esac
                   82232:   done
                   82233: 
                   82234:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5
                   82235: $as_echo_n "checking for rl_callback_read_char in -lreadline... " >&6; }
                   82236: if ${ac_cv_lib_readline_rl_callback_read_char+:} false; then :
                   82237:   $as_echo_n "(cached) " >&6
                   82238: else
                   82239:   ac_check_lib_save_LIBS=$LIBS
                   82240: LIBS="-lreadline  $LIBS"
                   82241: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   82242: /* end confdefs.h.  */
                   82243: 
                   82244: /* Override any GCC internal prototype to avoid an error.
                   82245:    Use char because int might match the return type of a GCC
                   82246:    builtin and then its argument prototype would still apply.  */
                   82247: #ifdef __cplusplus
                   82248: extern "C"
                   82249: #endif
                   82250: char rl_callback_read_char ();
                   82251: int
                   82252: main ()
                   82253: {
                   82254: return rl_callback_read_char ();
                   82255:   ;
                   82256:   return 0;
                   82257: }
                   82258: _ACEOF
                   82259: if ac_fn_c_try_link "$LINENO"; then :
                   82260:   ac_cv_lib_readline_rl_callback_read_char=yes
                   82261: else
                   82262:   ac_cv_lib_readline_rl_callback_read_char=no
                   82263: fi
                   82264: rm -f core conftest.err conftest.$ac_objext \
                   82265:     conftest$ac_exeext conftest.$ac_ext
                   82266: LIBS=$ac_check_lib_save_LIBS
                   82267: fi
                   82268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5
                   82269: $as_echo "$ac_cv_lib_readline_rl_callback_read_char" >&6; }
                   82270: if test "x$ac_cv_lib_readline_rl_callback_read_char" = xyes; then :
                   82271: 
                   82272:     LDFLAGS=$save_old_LDFLAGS
                   82273:     ext_shared=$save_ext_shared
                   82274: 
                   82275: 
                   82276: $as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h
                   82277: 
                   82278: 
                   82279: 
                   82280: else
                   82281: 
                   82282:     LDFLAGS=$save_old_LDFLAGS
                   82283:     ext_shared=$save_ext_shared
                   82284:     unset ac_cv_lib_readline_rl_callback_read_char
                   82285: 
                   82286: 
                   82287: fi
                   82288: 
                   82289: 
                   82290: 
1.1.1.2 ! misho    82291:   save_old_LDFLAGS=$LDFLAGS
        !          82292:   ac_stuff="
        !          82293:     -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
        !          82294:   "
        !          82295: 
        !          82296:   save_ext_shared=$ext_shared
        !          82297:   ext_shared=yes
        !          82298: 
        !          82299:   for ac_i in $ac_stuff; do
        !          82300:     case $ac_i in
        !          82301:     -pthread)
        !          82302:       if test "$ext_shared" = "yes"; then
        !          82303:         LDFLAGS="$LDFLAGS -pthread"
        !          82304:       else
        !          82305: 
        !          82306: 
        !          82307:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          82308: 
        !          82309:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
        !          82310:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          82311:     eval "EXTRA_LDFLAGS$unique=set"
        !          82312:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
        !          82313:   fi
        !          82314: 
        !          82315:       fi
        !          82316:     ;;
        !          82317:     -l*)
        !          82318:       ac_ii=`echo $ac_i|cut -c 3-`
        !          82319: 
        !          82320: 
        !          82321:   case $ac_ii in
        !          82322:   c|c_r|pthread*) ;;
        !          82323:   *)
        !          82324:     if test "$ext_shared" = "yes"; then
        !          82325:         LDFLAGS="$LDFLAGS -l$ac_ii"
        !          82326:     else
        !          82327: 
        !          82328: 
        !          82329:   case $ac_ii in
        !          82330:   c|c_r|pthread*) ;;
        !          82331:   *)
        !          82332:       LIBS="$LIBS -l$ac_ii"
        !          82333:    ;;
        !          82334:   esac
        !          82335: 
        !          82336: 
        !          82337:     fi
        !          82338:    ;;
        !          82339:   esac
        !          82340: 
        !          82341: 
        !          82342:     ;;
        !          82343:     -L*)
        !          82344:       ac_ii=`echo $ac_i|cut -c 3-`
        !          82345: 
        !          82346:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
        !          82347: 
        !          82348:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
        !          82349:     ai_p=$ac_ii
        !          82350:   else
        !          82351: 
        !          82352:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
        !          82353: 
        !          82354:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          82355:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
        !          82356:   fi
        !          82357: 
        !          82358: 
        !          82359:       if test "$ext_shared" = "yes"; then
        !          82360:         LDFLAGS="-L$ai_p $LDFLAGS"
        !          82361:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
        !          82362:       else
        !          82363: 
        !          82364: 
        !          82365: 
        !          82366:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          82367: 
        !          82368:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
        !          82369:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          82370:     eval "LIBPATH$unique=set"
        !          82371: 
        !          82372:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
        !          82373:     LDFLAGS="$LDFLAGS -L$ai_p"
        !          82374:     PHP_RPATHS="$PHP_RPATHS $ai_p"
        !          82375: 
        !          82376:   fi
        !          82377: 
        !          82378: 
        !          82379:       fi
        !          82380: 
        !          82381:   fi
        !          82382: 
        !          82383:     ;;
        !          82384:     esac
        !          82385:   done
        !          82386: 
        !          82387:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -ledit" >&5
        !          82388: $as_echo_n "checking for rl_on_new_line in -ledit... " >&6; }
        !          82389: if ${ac_cv_lib_edit_rl_on_new_line+:} false; then :
        !          82390:   $as_echo_n "(cached) " >&6
        !          82391: else
        !          82392:   ac_check_lib_save_LIBS=$LIBS
        !          82393: LIBS="-ledit  $LIBS"
        !          82394: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          82395: /* end confdefs.h.  */
        !          82396: 
        !          82397: /* Override any GCC internal prototype to avoid an error.
        !          82398:    Use char because int might match the return type of a GCC
        !          82399:    builtin and then its argument prototype would still apply.  */
        !          82400: #ifdef __cplusplus
        !          82401: extern "C"
        !          82402: #endif
        !          82403: char rl_on_new_line ();
        !          82404: int
        !          82405: main ()
        !          82406: {
        !          82407: return rl_on_new_line ();
        !          82408:   ;
        !          82409:   return 0;
        !          82410: }
        !          82411: _ACEOF
        !          82412: if ac_fn_c_try_link "$LINENO"; then :
        !          82413:   ac_cv_lib_edit_rl_on_new_line=yes
        !          82414: else
        !          82415:   ac_cv_lib_edit_rl_on_new_line=no
        !          82416: fi
        !          82417: rm -f core conftest.err conftest.$ac_objext \
        !          82418:     conftest$ac_exeext conftest.$ac_ext
        !          82419: LIBS=$ac_check_lib_save_LIBS
        !          82420: fi
        !          82421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_on_new_line" >&5
        !          82422: $as_echo "$ac_cv_lib_edit_rl_on_new_line" >&6; }
        !          82423: if test "x$ac_cv_lib_edit_rl_on_new_line" = xyes; then :
        !          82424: 
        !          82425:     LDFLAGS=$save_old_LDFLAGS
        !          82426:     ext_shared=$save_ext_shared
        !          82427: 
        !          82428: 
        !          82429: $as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h
        !          82430: 
        !          82431: 
        !          82432: 
        !          82433: else
        !          82434: 
        !          82435:     LDFLAGS=$save_old_LDFLAGS
        !          82436:     ext_shared=$save_ext_shared
        !          82437:     unset ac_cv_lib_edit_rl_on_new_line
        !          82438: 
        !          82439: 
        !          82440: fi
        !          82441: 
        !          82442: 
        !          82443: 
1.1       misho    82444: $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
                   82445: 
                   82446: 
                   82447: elif test "$PHP_LIBEDIT" != "no"; then
                   82448: 
                   82449:   for i in $PHP_LIBEDIT /usr/local /usr; do
                   82450:     test -f $i/include/editline/readline.h && LIBEDIT_DIR=$i && break
                   82451:   done
                   82452: 
                   82453:   if test -z "$LIBEDIT_DIR"; then
                   82454:     as_fn_error $? "Please reinstall libedit - I cannot find readline.h" "$LINENO" 5
                   82455:   fi
                   82456: 
                   82457: 
                   82458:   if test "$LIBEDIT_DIR/include" != "/usr/include"; then
                   82459: 
                   82460:   if test -z "$LIBEDIT_DIR/include" || echo "$LIBEDIT_DIR/include" | grep '^/' >/dev/null ; then
                   82461:     ai_p=$LIBEDIT_DIR/include
                   82462:   else
                   82463: 
                   82464:     ep_dir="`echo $LIBEDIT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   82465: 
                   82466:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   82467:     ai_p="$ep_realdir/`basename \"$LIBEDIT_DIR/include\"`"
                   82468:   fi
                   82469: 
                   82470: 
                   82471: 
                   82472:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   82473: 
                   82474:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   82475:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   82476:     eval "INCLUDEPATH$unique=set"
                   82477: 
                   82478:       if test ""; then
                   82479:         INCLUDES="-I$ai_p $INCLUDES"
                   82480:       else
                   82481:         INCLUDES="$INCLUDES -I$ai_p"
                   82482:       fi
                   82483: 
                   82484:   fi
                   82485: 
                   82486:   fi
                   82487: 
                   82488: 
                   82489:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
                   82490: $as_echo_n "checking for tgetent in -lncurses... " >&6; }
                   82491: if ${ac_cv_lib_ncurses_tgetent+:} false; then :
                   82492:   $as_echo_n "(cached) " >&6
                   82493: else
                   82494:   ac_check_lib_save_LIBS=$LIBS
                   82495: LIBS="-lncurses  $LIBS"
                   82496: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   82497: /* end confdefs.h.  */
                   82498: 
                   82499: /* Override any GCC internal prototype to avoid an error.
                   82500:    Use char because int might match the return type of a GCC
                   82501:    builtin and then its argument prototype would still apply.  */
                   82502: #ifdef __cplusplus
                   82503: extern "C"
                   82504: #endif
                   82505: char tgetent ();
                   82506: int
                   82507: main ()
                   82508: {
                   82509: return tgetent ();
                   82510:   ;
                   82511:   return 0;
                   82512: }
                   82513: _ACEOF
                   82514: if ac_fn_c_try_link "$LINENO"; then :
                   82515:   ac_cv_lib_ncurses_tgetent=yes
                   82516: else
                   82517:   ac_cv_lib_ncurses_tgetent=no
                   82518: fi
                   82519: rm -f core conftest.err conftest.$ac_objext \
                   82520:     conftest$ac_exeext conftest.$ac_ext
                   82521: LIBS=$ac_check_lib_save_LIBS
                   82522: fi
                   82523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
                   82524: $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
                   82525: if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
                   82526: 
                   82527: 
                   82528: 
                   82529:   case ncurses in
                   82530:   c|c_r|pthread*) ;;
                   82531:   *)
                   82532:     if test "$ext_shared" = "yes"; then
                   82533:         READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD"
                   82534:     else
                   82535: 
                   82536: 
                   82537:   case ncurses in
                   82538:   c|c_r|pthread*) ;;
                   82539:   *)
                   82540:       LIBS="-lncurses $LIBS"
                   82541:    ;;
                   82542:   esac
                   82543: 
                   82544: 
                   82545:     fi
                   82546:    ;;
                   82547:   esac
                   82548: 
                   82549: 
                   82550: 
                   82551: else
                   82552: 
                   82553:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
                   82554: $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
                   82555: if ${ac_cv_lib_termcap_tgetent+:} false; then :
                   82556:   $as_echo_n "(cached) " >&6
                   82557: else
                   82558:   ac_check_lib_save_LIBS=$LIBS
                   82559: LIBS="-ltermcap  $LIBS"
                   82560: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   82561: /* end confdefs.h.  */
                   82562: 
                   82563: /* Override any GCC internal prototype to avoid an error.
                   82564:    Use char because int might match the return type of a GCC
                   82565:    builtin and then its argument prototype would still apply.  */
                   82566: #ifdef __cplusplus
                   82567: extern "C"
                   82568: #endif
                   82569: char tgetent ();
                   82570: int
                   82571: main ()
                   82572: {
                   82573: return tgetent ();
                   82574:   ;
                   82575:   return 0;
                   82576: }
                   82577: _ACEOF
                   82578: if ac_fn_c_try_link "$LINENO"; then :
                   82579:   ac_cv_lib_termcap_tgetent=yes
                   82580: else
                   82581:   ac_cv_lib_termcap_tgetent=no
                   82582: fi
                   82583: rm -f core conftest.err conftest.$ac_objext \
                   82584:     conftest$ac_exeext conftest.$ac_ext
                   82585: LIBS=$ac_check_lib_save_LIBS
                   82586: fi
                   82587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
                   82588: $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
                   82589: if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
                   82590: 
                   82591: 
                   82592: 
                   82593:   case termcap in
                   82594:   c|c_r|pthread*) ;;
                   82595:   *)
                   82596:     if test "$ext_shared" = "yes"; then
                   82597:         READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD"
                   82598:     else
                   82599: 
                   82600: 
                   82601:   case termcap in
                   82602:   c|c_r|pthread*) ;;
                   82603:   *)
                   82604:       LIBS="-ltermcap $LIBS"
                   82605:    ;;
                   82606:   esac
                   82607: 
                   82608: 
                   82609:     fi
                   82610:    ;;
                   82611:   esac
                   82612: 
                   82613: 
                   82614: 
                   82615: fi
                   82616: 
                   82617: 
                   82618: fi
                   82619: 
                   82620: 
                   82621: 
                   82622:   save_old_LDFLAGS=$LDFLAGS
                   82623:   ac_stuff="
                   82624:     -L$READLINE_DIR/$PHP_LIBDIR
                   82625:   "
                   82626: 
                   82627:   save_ext_shared=$ext_shared
                   82628:   ext_shared=yes
                   82629: 
                   82630:   for ac_i in $ac_stuff; do
                   82631:     case $ac_i in
                   82632:     -pthread)
                   82633:       if test "$ext_shared" = "yes"; then
                   82634:         LDFLAGS="$LDFLAGS -pthread"
                   82635:       else
                   82636: 
                   82637: 
                   82638:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   82639: 
                   82640:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   82641:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   82642:     eval "EXTRA_LDFLAGS$unique=set"
                   82643:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   82644:   fi
                   82645: 
                   82646:       fi
                   82647:     ;;
                   82648:     -l*)
                   82649:       ac_ii=`echo $ac_i|cut -c 3-`
                   82650: 
                   82651: 
                   82652:   case $ac_ii in
                   82653:   c|c_r|pthread*) ;;
                   82654:   *)
                   82655:     if test "$ext_shared" = "yes"; then
                   82656:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   82657:     else
                   82658: 
                   82659: 
                   82660:   case $ac_ii in
                   82661:   c|c_r|pthread*) ;;
                   82662:   *)
                   82663:       LIBS="$LIBS -l$ac_ii"
                   82664:    ;;
                   82665:   esac
                   82666: 
                   82667: 
                   82668:     fi
                   82669:    ;;
                   82670:   esac
                   82671: 
                   82672: 
                   82673:     ;;
                   82674:     -L*)
                   82675:       ac_ii=`echo $ac_i|cut -c 3-`
                   82676: 
                   82677:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   82678: 
                   82679:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   82680:     ai_p=$ac_ii
                   82681:   else
                   82682: 
                   82683:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   82684: 
                   82685:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   82686:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   82687:   fi
                   82688: 
                   82689: 
                   82690:       if test "$ext_shared" = "yes"; then
                   82691:         LDFLAGS="-L$ai_p $LDFLAGS"
                   82692:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   82693:       else
                   82694: 
                   82695: 
                   82696: 
                   82697:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   82698: 
                   82699:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   82700:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   82701:     eval "LIBPATH$unique=set"
                   82702: 
                   82703:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   82704:     LDFLAGS="$LDFLAGS -L$ai_p"
                   82705:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   82706: 
                   82707:   fi
                   82708: 
                   82709: 
                   82710:       fi
                   82711: 
                   82712:   fi
                   82713: 
                   82714:     ;;
                   82715:     esac
                   82716:   done
                   82717: 
                   82718:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
                   82719: $as_echo_n "checking for readline in -ledit... " >&6; }
                   82720: if ${ac_cv_lib_edit_readline+:} false; then :
                   82721:   $as_echo_n "(cached) " >&6
                   82722: else
                   82723:   ac_check_lib_save_LIBS=$LIBS
                   82724: LIBS="-ledit  $LIBS"
                   82725: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   82726: /* end confdefs.h.  */
                   82727: 
                   82728: /* Override any GCC internal prototype to avoid an error.
                   82729:    Use char because int might match the return type of a GCC
                   82730:    builtin and then its argument prototype would still apply.  */
                   82731: #ifdef __cplusplus
                   82732: extern "C"
                   82733: #endif
                   82734: char readline ();
                   82735: int
                   82736: main ()
                   82737: {
                   82738: return readline ();
                   82739:   ;
                   82740:   return 0;
                   82741: }
                   82742: _ACEOF
                   82743: if ac_fn_c_try_link "$LINENO"; then :
                   82744:   ac_cv_lib_edit_readline=yes
                   82745: else
                   82746:   ac_cv_lib_edit_readline=no
                   82747: fi
                   82748: rm -f core conftest.err conftest.$ac_objext \
                   82749:     conftest$ac_exeext conftest.$ac_ext
                   82750: LIBS=$ac_check_lib_save_LIBS
                   82751: fi
                   82752: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
                   82753: $as_echo "$ac_cv_lib_edit_readline" >&6; }
                   82754: if test "x$ac_cv_lib_edit_readline" = xyes; then :
                   82755: 
                   82756:     LDFLAGS=$save_old_LDFLAGS
                   82757:     ext_shared=$save_ext_shared
                   82758: 
                   82759: 
                   82760: 
                   82761:   if test "$ext_shared" = "yes"; then
                   82762:     READLINE_SHARED_LIBADD="-ledit $READLINE_SHARED_LIBADD"
                   82763:     if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then
                   82764: 
                   82765:   if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   82766: 
                   82767:   if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   82768:     ai_p=$LIBEDIT_DIR/$PHP_LIBDIR
                   82769:   else
                   82770: 
                   82771:     ep_dir="`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   82772: 
                   82773:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   82774:     ai_p="$ep_realdir/`basename \"$LIBEDIT_DIR/$PHP_LIBDIR\"`"
                   82775:   fi
                   82776: 
                   82777: 
                   82778:       if test "$ext_shared" = "yes"; then
                   82779:         READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD"
                   82780:         test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD"
                   82781:       else
                   82782: 
                   82783: 
                   82784: 
                   82785:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   82786: 
                   82787:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   82788:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   82789:     eval "LIBPATH$unique=set"
                   82790: 
                   82791:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   82792:     LDFLAGS="$LDFLAGS -L$ai_p"
                   82793:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   82794: 
                   82795:   fi
                   82796: 
                   82797: 
                   82798:       fi
                   82799: 
                   82800:   fi
                   82801: 
                   82802:     fi
                   82803:   else
                   82804: 
                   82805: 
                   82806:   if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then
                   82807: 
                   82808:   if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   82809: 
                   82810:   if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   82811:     ai_p=$LIBEDIT_DIR/$PHP_LIBDIR
                   82812:   else
                   82813: 
                   82814:     ep_dir="`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   82815: 
                   82816:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   82817:     ai_p="$ep_realdir/`basename \"$LIBEDIT_DIR/$PHP_LIBDIR\"`"
                   82818:   fi
                   82819: 
                   82820: 
                   82821: 
                   82822: 
                   82823: 
                   82824:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   82825: 
                   82826:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   82827:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   82828:     eval "LIBPATH$unique=set"
                   82829: 
                   82830:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   82831:     LDFLAGS="$LDFLAGS -L$ai_p"
                   82832:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   82833: 
                   82834:   fi
                   82835: 
                   82836: 
                   82837: 
                   82838:   fi
                   82839: 
                   82840:   fi
                   82841: 
                   82842: 
                   82843:   case edit in
                   82844:   c|c_r|pthread*) ;;
                   82845:   *)
                   82846:       LIBS="-ledit $LIBS"
                   82847:    ;;
                   82848:   esac
                   82849: 
                   82850: 
                   82851: 
                   82852: 
                   82853:   fi
                   82854: 
                   82855: 
                   82856: 
                   82857: 
                   82858: else
                   82859: 
                   82860:     LDFLAGS=$save_old_LDFLAGS
                   82861:     ext_shared=$save_ext_shared
                   82862:     unset ac_cv_lib_edit_readline
                   82863: 
                   82864:     as_fn_error $? "edit library required by readline not found" "$LINENO" 5
                   82865: 
                   82866: 
                   82867: fi
                   82868: 
                   82869: 
                   82870: 
1.1.1.2 ! misho    82871:   save_old_LDFLAGS=$LDFLAGS
        !          82872:   ac_stuff="
        !          82873:     -L$READLINE_DIR/$PHP_LIBDIR
        !          82874:   "
        !          82875: 
        !          82876:   save_ext_shared=$ext_shared
        !          82877:   ext_shared=yes
        !          82878: 
        !          82879:   for ac_i in $ac_stuff; do
        !          82880:     case $ac_i in
        !          82881:     -pthread)
        !          82882:       if test "$ext_shared" = "yes"; then
        !          82883:         LDFLAGS="$LDFLAGS -pthread"
        !          82884:       else
        !          82885: 
        !          82886: 
        !          82887:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          82888: 
        !          82889:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
        !          82890:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          82891:     eval "EXTRA_LDFLAGS$unique=set"
        !          82892:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
        !          82893:   fi
        !          82894: 
        !          82895:       fi
        !          82896:     ;;
        !          82897:     -l*)
        !          82898:       ac_ii=`echo $ac_i|cut -c 3-`
        !          82899: 
        !          82900: 
        !          82901:   case $ac_ii in
        !          82902:   c|c_r|pthread*) ;;
        !          82903:   *)
        !          82904:     if test "$ext_shared" = "yes"; then
        !          82905:         LDFLAGS="$LDFLAGS -l$ac_ii"
        !          82906:     else
        !          82907: 
        !          82908: 
        !          82909:   case $ac_ii in
        !          82910:   c|c_r|pthread*) ;;
        !          82911:   *)
        !          82912:       LIBS="$LIBS -l$ac_ii"
        !          82913:    ;;
        !          82914:   esac
        !          82915: 
        !          82916: 
        !          82917:     fi
        !          82918:    ;;
        !          82919:   esac
        !          82920: 
        !          82921: 
        !          82922:     ;;
        !          82923:     -L*)
        !          82924:       ac_ii=`echo $ac_i|cut -c 3-`
        !          82925: 
        !          82926:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
        !          82927: 
        !          82928:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
        !          82929:     ai_p=$ac_ii
        !          82930:   else
        !          82931: 
        !          82932:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
        !          82933: 
        !          82934:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          82935:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
        !          82936:   fi
        !          82937: 
        !          82938: 
        !          82939:       if test "$ext_shared" = "yes"; then
        !          82940:         LDFLAGS="-L$ai_p $LDFLAGS"
        !          82941:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
        !          82942:       else
        !          82943: 
        !          82944: 
        !          82945: 
        !          82946:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          82947: 
        !          82948:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
        !          82949:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          82950:     eval "LIBPATH$unique=set"
        !          82951: 
        !          82952:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
        !          82953:     LDFLAGS="$LDFLAGS -L$ai_p"
        !          82954:     PHP_RPATHS="$PHP_RPATHS $ai_p"
        !          82955: 
        !          82956:   fi
        !          82957: 
        !          82958: 
        !          82959:       fi
        !          82960: 
        !          82961:   fi
        !          82962: 
        !          82963:     ;;
        !          82964:     esac
        !          82965:   done
        !          82966: 
        !          82967:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -ledit" >&5
        !          82968: $as_echo_n "checking for rl_callback_read_char in -ledit... " >&6; }
        !          82969: if ${ac_cv_lib_edit_rl_callback_read_char+:} false; then :
        !          82970:   $as_echo_n "(cached) " >&6
        !          82971: else
        !          82972:   ac_check_lib_save_LIBS=$LIBS
        !          82973: LIBS="-ledit  $LIBS"
        !          82974: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          82975: /* end confdefs.h.  */
        !          82976: 
        !          82977: /* Override any GCC internal prototype to avoid an error.
        !          82978:    Use char because int might match the return type of a GCC
        !          82979:    builtin and then its argument prototype would still apply.  */
        !          82980: #ifdef __cplusplus
        !          82981: extern "C"
        !          82982: #endif
        !          82983: char rl_callback_read_char ();
        !          82984: int
        !          82985: main ()
        !          82986: {
        !          82987: return rl_callback_read_char ();
        !          82988:   ;
        !          82989:   return 0;
        !          82990: }
        !          82991: _ACEOF
        !          82992: if ac_fn_c_try_link "$LINENO"; then :
        !          82993:   ac_cv_lib_edit_rl_callback_read_char=yes
        !          82994: else
        !          82995:   ac_cv_lib_edit_rl_callback_read_char=no
        !          82996: fi
        !          82997: rm -f core conftest.err conftest.$ac_objext \
        !          82998:     conftest$ac_exeext conftest.$ac_ext
        !          82999: LIBS=$ac_check_lib_save_LIBS
        !          83000: fi
        !          83001: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_callback_read_char" >&5
        !          83002: $as_echo "$ac_cv_lib_edit_rl_callback_read_char" >&6; }
        !          83003: if test "x$ac_cv_lib_edit_rl_callback_read_char" = xyes; then :
        !          83004: 
        !          83005:     LDFLAGS=$save_old_LDFLAGS
        !          83006:     ext_shared=$save_ext_shared
        !          83007: 
        !          83008: 
        !          83009: $as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h
        !          83010: 
        !          83011: 
        !          83012: 
        !          83013: else
        !          83014: 
        !          83015:     LDFLAGS=$save_old_LDFLAGS
        !          83016:     ext_shared=$save_ext_shared
        !          83017:     unset ac_cv_lib_edit_rl_callback_read_char
        !          83018: 
        !          83019: 
        !          83020: fi
        !          83021: 
        !          83022: 
        !          83023: 
        !          83024:   save_old_LDFLAGS=$LDFLAGS
        !          83025:   ac_stuff="
        !          83026:     -L$READLINE_DIR/$PHP_LIBDIR
        !          83027:   "
        !          83028: 
        !          83029:   save_ext_shared=$ext_shared
        !          83030:   ext_shared=yes
        !          83031: 
        !          83032:   for ac_i in $ac_stuff; do
        !          83033:     case $ac_i in
        !          83034:     -pthread)
        !          83035:       if test "$ext_shared" = "yes"; then
        !          83036:         LDFLAGS="$LDFLAGS -pthread"
        !          83037:       else
        !          83038: 
        !          83039: 
        !          83040:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          83041: 
        !          83042:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
        !          83043:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          83044:     eval "EXTRA_LDFLAGS$unique=set"
        !          83045:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
        !          83046:   fi
        !          83047: 
        !          83048:       fi
        !          83049:     ;;
        !          83050:     -l*)
        !          83051:       ac_ii=`echo $ac_i|cut -c 3-`
        !          83052: 
        !          83053: 
        !          83054:   case $ac_ii in
        !          83055:   c|c_r|pthread*) ;;
        !          83056:   *)
        !          83057:     if test "$ext_shared" = "yes"; then
        !          83058:         LDFLAGS="$LDFLAGS -l$ac_ii"
        !          83059:     else
        !          83060: 
        !          83061: 
        !          83062:   case $ac_ii in
        !          83063:   c|c_r|pthread*) ;;
        !          83064:   *)
        !          83065:       LIBS="$LIBS -l$ac_ii"
        !          83066:    ;;
        !          83067:   esac
        !          83068: 
        !          83069: 
        !          83070:     fi
        !          83071:    ;;
        !          83072:   esac
        !          83073: 
        !          83074: 
        !          83075:     ;;
        !          83076:     -L*)
        !          83077:       ac_ii=`echo $ac_i|cut -c 3-`
        !          83078: 
        !          83079:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
        !          83080: 
        !          83081:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
        !          83082:     ai_p=$ac_ii
        !          83083:   else
        !          83084: 
        !          83085:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
        !          83086: 
        !          83087:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          83088:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
        !          83089:   fi
        !          83090: 
        !          83091: 
        !          83092:       if test "$ext_shared" = "yes"; then
        !          83093:         LDFLAGS="-L$ai_p $LDFLAGS"
        !          83094:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
        !          83095:       else
        !          83096: 
        !          83097: 
        !          83098: 
        !          83099:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          83100: 
        !          83101:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
        !          83102:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          83103:     eval "LIBPATH$unique=set"
        !          83104: 
        !          83105:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
        !          83106:     LDFLAGS="$LDFLAGS -L$ai_p"
        !          83107:     PHP_RPATHS="$PHP_RPATHS $ai_p"
        !          83108: 
        !          83109:   fi
        !          83110: 
        !          83111: 
        !          83112:       fi
        !          83113: 
        !          83114:   fi
        !          83115: 
        !          83116:     ;;
        !          83117:     esac
        !          83118:   done
        !          83119: 
        !          83120:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -ledit" >&5
        !          83121: $as_echo_n "checking for rl_on_new_line in -ledit... " >&6; }
        !          83122: if ${ac_cv_lib_edit_rl_on_new_line+:} false; then :
        !          83123:   $as_echo_n "(cached) " >&6
        !          83124: else
        !          83125:   ac_check_lib_save_LIBS=$LIBS
        !          83126: LIBS="-ledit  $LIBS"
        !          83127: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          83128: /* end confdefs.h.  */
        !          83129: 
        !          83130: /* Override any GCC internal prototype to avoid an error.
        !          83131:    Use char because int might match the return type of a GCC
        !          83132:    builtin and then its argument prototype would still apply.  */
        !          83133: #ifdef __cplusplus
        !          83134: extern "C"
        !          83135: #endif
        !          83136: char rl_on_new_line ();
        !          83137: int
        !          83138: main ()
        !          83139: {
        !          83140: return rl_on_new_line ();
        !          83141:   ;
        !          83142:   return 0;
        !          83143: }
        !          83144: _ACEOF
        !          83145: if ac_fn_c_try_link "$LINENO"; then :
        !          83146:   ac_cv_lib_edit_rl_on_new_line=yes
        !          83147: else
        !          83148:   ac_cv_lib_edit_rl_on_new_line=no
        !          83149: fi
        !          83150: rm -f core conftest.err conftest.$ac_objext \
        !          83151:     conftest$ac_exeext conftest.$ac_ext
        !          83152: LIBS=$ac_check_lib_save_LIBS
        !          83153: fi
        !          83154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_on_new_line" >&5
        !          83155: $as_echo "$ac_cv_lib_edit_rl_on_new_line" >&6; }
        !          83156: if test "x$ac_cv_lib_edit_rl_on_new_line" = xyes; then :
        !          83157: 
        !          83158:     LDFLAGS=$save_old_LDFLAGS
        !          83159:     ext_shared=$save_ext_shared
        !          83160: 
        !          83161: 
        !          83162: $as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h
        !          83163: 
        !          83164: 
        !          83165: 
        !          83166: else
        !          83167: 
        !          83168:     LDFLAGS=$save_old_LDFLAGS
        !          83169:     ext_shared=$save_ext_shared
        !          83170:     unset ac_cv_lib_edit_rl_on_new_line
        !          83171: 
        !          83172: 
        !          83173: fi
        !          83174: 
        !          83175: 
        !          83176: 
1.1       misho    83177: $as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h
                   83178: 
                   83179: fi
                   83180: 
                   83181: if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then
                   83182:   for ac_func in rl_completion_matches
                   83183: do :
                   83184:   ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
                   83185: if test "x$ac_cv_func_rl_completion_matches" = xyes; then :
                   83186:   cat >>confdefs.h <<_ACEOF
                   83187: #define HAVE_RL_COMPLETION_MATCHES 1
                   83188: _ACEOF
                   83189: 
                   83190: fi
                   83191: done
                   83192: 
                   83193: 
                   83194:   ext_builddir=ext/readline
                   83195:   ext_srcdir=$abs_srcdir/ext/readline
                   83196: 
                   83197:   ac_extra=
                   83198: 
                   83199:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then
                   83200:     PHP_READLINE_SHARED=no
                   83201: 
                   83202: 
                   83203:   case ext/readline in
                   83204:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   83205:   /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   83206:   *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   83207:   esac
                   83208: 
                   83209: 
                   83210: 
                   83211:   b_c_pre=$php_c_pre
                   83212:   b_cxx_pre=$php_cxx_pre
                   83213:   b_c_meta=$php_c_meta
                   83214:   b_cxx_meta=$php_cxx_meta
                   83215:   b_c_post=$php_c_post
                   83216:   b_cxx_post=$php_cxx_post
                   83217:   b_lo=$php_lo
                   83218: 
                   83219: 
                   83220:   old_IFS=$IFS
1.1.1.2 ! misho    83221:   for ac_src in readline.c readline_cli.c; do
1.1       misho    83222: 
                   83223:       IFS=.
                   83224:       set $ac_src
                   83225:       ac_obj=$1
                   83226:       IFS=$old_IFS
                   83227: 
                   83228:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   83229: 
                   83230:       case $ac_src in
                   83231:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   83232:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   83233:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   83234:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   83235:       esac
                   83236: 
                   83237:     cat >>Makefile.objects<<EOF
                   83238: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   83239:        $ac_comp
                   83240: EOF
                   83241:   done
                   83242: 
                   83243: 
                   83244:     EXT_STATIC="$EXT_STATIC readline"
                   83245:     if test "$ext_shared" != "nocli"; then
                   83246:       EXT_CLI_STATIC="$EXT_CLI_STATIC readline"
                   83247:     fi
                   83248:   else
                   83249:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   83250:       PHP_READLINE_SHARED=yes
                   83251: 
                   83252:   case ext/readline in
                   83253:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   83254:   /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   83255:   *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   83256:   esac
                   83257: 
                   83258: 
                   83259: 
                   83260:   b_c_pre=$shared_c_pre
                   83261:   b_cxx_pre=$shared_cxx_pre
                   83262:   b_c_meta=$shared_c_meta
                   83263:   b_cxx_meta=$shared_cxx_meta
                   83264:   b_c_post=$shared_c_post
                   83265:   b_cxx_post=$shared_cxx_post
                   83266:   b_lo=$shared_lo
                   83267: 
                   83268: 
                   83269:   old_IFS=$IFS
1.1.1.2 ! misho    83270:   for ac_src in readline.c readline_cli.c; do
1.1       misho    83271: 
                   83272:       IFS=.
                   83273:       set $ac_src
                   83274:       ac_obj=$1
                   83275:       IFS=$old_IFS
                   83276: 
                   83277:       shared_objects_readline="$shared_objects_readline $ac_bdir$ac_obj.lo"
                   83278: 
                   83279:       case $ac_src in
                   83280:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   83281:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   83282:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   83283:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   83284:       esac
                   83285: 
                   83286:     cat >>Makefile.objects<<EOF
                   83287: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   83288:        $ac_comp
                   83289: EOF
                   83290:   done
                   83291: 
                   83292:       case $host_alias in
                   83293:         *netware*)
                   83294: 
                   83295:   install_modules="install-modules"
                   83296: 
                   83297:   case $host_alias in
                   83298:     *aix*)
                   83299:       suffix=so
                   83300:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpreadline.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) $(PHPREADLINE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpreadline.so '$ext_builddir'/phpreadline.so'
                   83301:       ;;
                   83302:     *netware*)
                   83303:       suffix=nlm
                   83304:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) -L$(top_builddir)/netware -lphp5lib $(READLINE_SHARED_LIBADD)'
                   83305:       ;;
                   83306:     *)
                   83307:       suffix=la
                   83308:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) $(PHPREADLINE_SHARED_LIBADD)'
                   83309:       ;;
                   83310:   esac
                   83311: 
                   83312:   if test "x" = "xyes"; then
                   83313:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpreadline.$suffix"
                   83314:   else
                   83315:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpreadline.$suffix"
                   83316:   fi
                   83317: 
                   83318:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_readline"
                   83319: 
                   83320:   cat >>Makefile.objects<<EOF
                   83321: \$(phplibdir)/phpreadline.$suffix: $ext_builddir/phpreadline.$suffix
                   83322:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpreadline.$suffix \$(phplibdir)
                   83323: 
                   83324: $ext_builddir/phpreadline.$suffix: \$(shared_objects_readline) \$(PHPREADLINE_SHARED_DEPENDENCIES)
                   83325:        $link_cmd
                   83326: 
                   83327: EOF
                   83328: 
                   83329:           ;;
                   83330:         *)
                   83331: 
                   83332:   install_modules="install-modules"
                   83333: 
                   83334:   case $host_alias in
                   83335:     *aix*)
                   83336:       suffix=so
                   83337:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/readline.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) $(READLINE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/readline.so '$ext_builddir'/readline.so'
                   83338:       ;;
                   83339:     *netware*)
                   83340:       suffix=nlm
                   83341:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) -L$(top_builddir)/netware -lphp5lib $(DLINE_SHARED_LIBADD)'
                   83342:       ;;
                   83343:     *)
                   83344:       suffix=la
                   83345:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) $(READLINE_SHARED_LIBADD)'
                   83346:       ;;
                   83347:   esac
                   83348: 
                   83349:   if test "x" = "xyes"; then
                   83350:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/readline.$suffix"
                   83351:   else
                   83352:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/readline.$suffix"
                   83353:   fi
                   83354: 
                   83355:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_readline"
                   83356: 
                   83357:   cat >>Makefile.objects<<EOF
                   83358: \$(phplibdir)/readline.$suffix: $ext_builddir/readline.$suffix
                   83359:        \$(LIBTOOL) --mode=install cp $ext_builddir/readline.$suffix \$(phplibdir)
                   83360: 
                   83361: $ext_builddir/readline.$suffix: \$(shared_objects_readline) \$(READLINE_SHARED_DEPENDENCIES)
                   83362:        $link_cmd
                   83363: 
                   83364: EOF
                   83365: 
                   83366:           ;;
                   83367:       esac
                   83368: 
                   83369: cat >>confdefs.h <<_ACEOF
                   83370: #define COMPILE_DL_READLINE 1
                   83371: _ACEOF
                   83372: 
                   83373:     fi
                   83374:   fi
                   83375: 
                   83376:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then
                   83377:     PHP_READLINE_SHARED=no
                   83378: 
                   83379: 
                   83380:   case ext/readline in
                   83381:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   83382:   /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   83383:   *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   83384:   esac
                   83385: 
                   83386: 
                   83387: 
                   83388:   b_c_pre=$php_c_pre
                   83389:   b_cxx_pre=$php_cxx_pre
                   83390:   b_c_meta=$php_c_meta
                   83391:   b_cxx_meta=$php_cxx_meta
                   83392:   b_c_post=$php_c_post
                   83393:   b_cxx_post=$php_cxx_post
                   83394:   b_lo=$php_lo
                   83395: 
                   83396: 
                   83397:   old_IFS=$IFS
1.1.1.2 ! misho    83398:   for ac_src in readline.c readline_cli.c; do
1.1       misho    83399: 
                   83400:       IFS=.
                   83401:       set $ac_src
                   83402:       ac_obj=$1
                   83403:       IFS=$old_IFS
                   83404: 
1.1.1.2 ! misho    83405:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    83406: 
                   83407:       case $ac_src in
                   83408:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   83409:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   83410:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   83411:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   83412:       esac
                   83413: 
                   83414:     cat >>Makefile.objects<<EOF
                   83415: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   83416:        $ac_comp
                   83417: EOF
                   83418:   done
                   83419: 
                   83420: 
                   83421: 
                   83422: 
                   83423:   case ext/readline in
                   83424:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   83425:   /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   83426:   *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   83427:   esac
                   83428: 
                   83429: 
                   83430: 
                   83431:   b_c_pre=$php_c_pre
                   83432:   b_cxx_pre=$php_cxx_pre
                   83433:   b_c_meta=$php_c_meta
                   83434:   b_cxx_meta=$php_cxx_meta
                   83435:   b_c_post=$php_c_post
                   83436:   b_cxx_post=$php_cxx_post
                   83437:   b_lo=$php_lo
                   83438: 
                   83439: 
                   83440:   old_IFS=$IFS
1.1.1.2 ! misho    83441:   for ac_src in readline.c readline_cli.c; do
1.1       misho    83442: 
                   83443:       IFS=.
                   83444:       set $ac_src
                   83445:       ac_obj=$1
                   83446:       IFS=$old_IFS
                   83447: 
1.1.1.2 ! misho    83448:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    83449: 
                   83450:       case $ac_src in
                   83451:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   83452:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   83453:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   83454:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   83455:       esac
                   83456: 
                   83457:     cat >>Makefile.objects<<EOF
                   83458: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   83459:        $ac_comp
                   83460: EOF
                   83461:   done
                   83462: 
                   83463: 
                   83464: 
                   83465: 
                   83466:   case ext/readline in
                   83467:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   83468:   /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   83469:   *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   83470:   esac
                   83471: 
                   83472: 
                   83473: 
                   83474:   b_c_pre=$php_c_pre
                   83475:   b_cxx_pre=$php_cxx_pre
                   83476:   b_c_meta=$php_c_meta
                   83477:   b_cxx_meta=$php_cxx_meta
                   83478:   b_c_post=$php_c_post
                   83479:   b_cxx_post=$php_cxx_post
                   83480:   b_lo=$php_lo
                   83481: 
                   83482: 
                   83483:   old_IFS=$IFS
1.1.1.2 ! misho    83484:   for ac_src in readline.c readline_cli.c; do
1.1       misho    83485: 
                   83486:       IFS=.
                   83487:       set $ac_src
                   83488:       ac_obj=$1
                   83489:       IFS=$old_IFS
                   83490: 
1.1.1.2 ! misho    83491:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    83492: 
                   83493:       case $ac_src in
                   83494:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   83495:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   83496:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   83497:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   83498:       esac
                   83499: 
                   83500:     cat >>Makefile.objects<<EOF
                   83501: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   83502:        $ac_comp
                   83503: EOF
                   83504:   done
                   83505: 
                   83506: 
                   83507:     EXT_CLI_STATIC="$EXT_CLI_STATIC readline"
                   83508:   fi
                   83509: 
                   83510: 
                   83511:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   83512: 
                   83513: 
                   83514: 
                   83515:   if test "$ext_builddir" = "."; then
                   83516:     PHP_PECL_EXTENSION=readline
                   83517: 
                   83518:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   83519: 
                   83520:   fi
                   83521: 
                   83522: 
                   83523:   PHP_VAR_SUBST="$PHP_VAR_SUBST READLINE_SHARED_LIBADD"
                   83524: 
                   83525: fi
                   83526: 
                   83527: 
                   83528: 
                   83529: php_with_recode=no
                   83530: 
                   83531: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recode support" >&5
                   83532: $as_echo_n "checking for recode support... " >&6; }
                   83533: 
                   83534: # Check whether --with-recode was given.
                   83535: if test "${with_recode+set}" = set; then :
                   83536:   withval=$with_recode; PHP_RECODE=$withval
                   83537: else
                   83538: 
                   83539:   PHP_RECODE=no
                   83540:   test "$PHP_ENABLE_ALL" && PHP_RECODE=$PHP_ENABLE_ALL
                   83541: 
                   83542: fi
                   83543: 
                   83544: 
                   83545: 
                   83546: ext_output="yes, shared"
                   83547: ext_shared=yes
                   83548: case $PHP_RECODE in
                   83549: shared,*)
                   83550:   PHP_RECODE=`echo "$PHP_RECODE"|$SED 's/^shared,//'`
                   83551:   ;;
                   83552: shared)
                   83553:   PHP_RECODE=yes
                   83554:   ;;
                   83555: no)
                   83556:   ext_output=no
                   83557:   ext_shared=no
                   83558:   ;;
                   83559: *)
                   83560:   ext_output=yes
                   83561:   ext_shared=no
                   83562:   ;;
                   83563: esac
                   83564: 
                   83565: 
                   83566: 
                   83567: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   83568: $as_echo "$ext_output" >&6; }
                   83569: 
                   83570: 
                   83571: 
                   83572: 
                   83573: if test "$PHP_RECODE" != "no"; then
                   83574:   RECODE_LIST="$PHP_RECODE /usr/local /usr /opt"
                   83575: 
                   83576:   for i in $RECODE_LIST; do
                   83577:     if test -f $i/include/recode.h; then
                   83578:       RECODE_DIR=$i
                   83579:       RECODE_INC=include
                   83580:       RECODE_LIB=$PHP_LIBDIR
                   83581:     fi
                   83582:     if test -f $i/include/recode/recode.h; then
                   83583:       RECODE_DIR=$i
                   83584:       RECODE_INC=include/recode
                   83585:       RECODE_LIB=$PHP_LIBDIR/recode
                   83586:     fi
                   83587:     if test -f $i/recode/include/recode.h; then
                   83588:       RECODE_DIR=$i/recode
                   83589:       RECODE_INC=include
                   83590:       RECODE_LIB=$PHP_LIBDIR
                   83591:     fi
                   83592:     test -n "$RECODE_DIR" && break
                   83593:   done
                   83594: 
                   83595:   if test -z "$RECODE_DIR"; then
                   83596:     as_fn_error $? "Can not find recode.h anywhere under $RECODE_LIST." "$LINENO" 5
                   83597:   fi
                   83598: 
                   83599: 
                   83600:   save_old_LDFLAGS=$LDFLAGS
                   83601:   ac_stuff="
                   83602:     -L$RECODE_DIR/$RECODE_LIB
                   83603:   "
                   83604: 
                   83605:   save_ext_shared=$ext_shared
                   83606:   ext_shared=yes
                   83607: 
                   83608:   for ac_i in $ac_stuff; do
                   83609:     case $ac_i in
                   83610:     -pthread)
                   83611:       if test "$ext_shared" = "yes"; then
                   83612:         LDFLAGS="$LDFLAGS -pthread"
                   83613:       else
                   83614: 
                   83615: 
                   83616:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   83617: 
                   83618:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   83619:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   83620:     eval "EXTRA_LDFLAGS$unique=set"
                   83621:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   83622:   fi
                   83623: 
                   83624:       fi
                   83625:     ;;
                   83626:     -l*)
                   83627:       ac_ii=`echo $ac_i|cut -c 3-`
                   83628: 
                   83629: 
                   83630:   case $ac_ii in
                   83631:   c|c_r|pthread*) ;;
                   83632:   *)
                   83633:     if test "$ext_shared" = "yes"; then
                   83634:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   83635:     else
                   83636: 
                   83637: 
                   83638:   case $ac_ii in
                   83639:   c|c_r|pthread*) ;;
                   83640:   *)
                   83641:       LIBS="$LIBS -l$ac_ii"
                   83642:    ;;
                   83643:   esac
                   83644: 
                   83645: 
                   83646:     fi
                   83647:    ;;
                   83648:   esac
                   83649: 
                   83650: 
                   83651:     ;;
                   83652:     -L*)
                   83653:       ac_ii=`echo $ac_i|cut -c 3-`
                   83654: 
                   83655:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   83656: 
                   83657:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   83658:     ai_p=$ac_ii
                   83659:   else
                   83660: 
                   83661:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   83662: 
                   83663:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   83664:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   83665:   fi
                   83666: 
                   83667: 
                   83668:       if test "$ext_shared" = "yes"; then
                   83669:         LDFLAGS="-L$ai_p $LDFLAGS"
                   83670:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   83671:       else
                   83672: 
                   83673: 
                   83674: 
                   83675:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   83676: 
                   83677:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   83678:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   83679:     eval "LIBPATH$unique=set"
                   83680: 
                   83681:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   83682:     LDFLAGS="$LDFLAGS -L$ai_p"
                   83683:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   83684: 
                   83685:   fi
                   83686: 
                   83687: 
                   83688:       fi
                   83689: 
                   83690:   fi
                   83691: 
                   83692:     ;;
                   83693:     esac
                   83694:   done
                   83695: 
                   83696:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recode_format_table in -lrecode" >&5
                   83697: $as_echo_n "checking for recode_format_table in -lrecode... " >&6; }
                   83698: if ${ac_cv_lib_recode_recode_format_table+:} false; then :
                   83699:   $as_echo_n "(cached) " >&6
                   83700: else
                   83701:   ac_check_lib_save_LIBS=$LIBS
                   83702: LIBS="-lrecode  $LIBS"
                   83703: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   83704: /* end confdefs.h.  */
                   83705: 
                   83706: /* Override any GCC internal prototype to avoid an error.
                   83707:    Use char because int might match the return type of a GCC
                   83708:    builtin and then its argument prototype would still apply.  */
                   83709: #ifdef __cplusplus
                   83710: extern "C"
                   83711: #endif
                   83712: char recode_format_table ();
                   83713: int
                   83714: main ()
                   83715: {
                   83716: return recode_format_table ();
                   83717:   ;
                   83718:   return 0;
                   83719: }
                   83720: _ACEOF
                   83721: if ac_fn_c_try_link "$LINENO"; then :
                   83722:   ac_cv_lib_recode_recode_format_table=yes
                   83723: else
                   83724:   ac_cv_lib_recode_recode_format_table=no
                   83725: fi
                   83726: rm -f core conftest.err conftest.$ac_objext \
                   83727:     conftest$ac_exeext conftest.$ac_ext
                   83728: LIBS=$ac_check_lib_save_LIBS
                   83729: fi
                   83730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_recode_recode_format_table" >&5
                   83731: $as_echo "$ac_cv_lib_recode_recode_format_table" >&6; }
                   83732: if test "x$ac_cv_lib_recode_recode_format_table" = xyes; then :
                   83733: 
                   83734:     LDFLAGS=$save_old_LDFLAGS
                   83735:     ext_shared=$save_ext_shared
                   83736: 
                   83737: 
                   83738: 
                   83739:   if test "$ext_shared" = "yes"; then
                   83740:     RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD"
                   83741:     if test -n "$RECODE_DIR/$RECODE_LIB"; then
                   83742: 
                   83743:   if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
                   83744: 
                   83745:   if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
                   83746:     ai_p=$RECODE_DIR/$RECODE_LIB
                   83747:   else
                   83748: 
                   83749:     ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
                   83750: 
                   83751:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   83752:     ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
                   83753:   fi
                   83754: 
                   83755: 
                   83756:       if test "$ext_shared" = "yes"; then
                   83757:         RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD"
                   83758:         test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD"
                   83759:       else
                   83760: 
                   83761: 
                   83762: 
                   83763:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   83764: 
                   83765:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   83766:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   83767:     eval "LIBPATH$unique=set"
                   83768: 
                   83769:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   83770:     LDFLAGS="$LDFLAGS -L$ai_p"
                   83771:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   83772: 
                   83773:   fi
                   83774: 
                   83775: 
                   83776:       fi
                   83777: 
                   83778:   fi
                   83779: 
                   83780:     fi
                   83781:   else
                   83782: 
                   83783: 
                   83784:   if test -n "$RECODE_DIR/$RECODE_LIB"; then
                   83785: 
                   83786:   if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
                   83787: 
                   83788:   if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
                   83789:     ai_p=$RECODE_DIR/$RECODE_LIB
                   83790:   else
                   83791: 
                   83792:     ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
                   83793: 
                   83794:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   83795:     ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
                   83796:   fi
                   83797: 
                   83798: 
                   83799: 
                   83800: 
                   83801: 
                   83802:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   83803: 
                   83804:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   83805:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   83806:     eval "LIBPATH$unique=set"
                   83807: 
                   83808:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   83809:     LDFLAGS="$LDFLAGS -L$ai_p"
                   83810:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   83811: 
                   83812:   fi
                   83813: 
                   83814: 
                   83815: 
                   83816:   fi
                   83817: 
                   83818:   fi
                   83819: 
                   83820: 
                   83821:   case recode in
                   83822:   c|c_r|pthread*) ;;
                   83823:   *)
                   83824:       LIBS="-lrecode $LIBS"
                   83825:    ;;
                   83826:   esac
                   83827: 
                   83828: 
                   83829: 
                   83830: 
                   83831:   fi
                   83832: 
                   83833: 
                   83834: 
                   83835: 
                   83836: else
                   83837: 
                   83838:     LDFLAGS=$save_old_LDFLAGS
                   83839:     ext_shared=$save_ext_shared
                   83840:     unset ac_cv_lib_recode_recode_format_table
                   83841: 
                   83842:     old_LDFLAGS=$LDFLAGS
                   83843:     old_LIBS=$LIBS
                   83844:     LDFLAGS="$LDFLAGS -L$RECODE_DIR/$RECODE_LIB"
                   83845:     LIBS="$LIBS -lrecode"
                   83846:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   83847: /* end confdefs.h.  */
                   83848: 
                   83849: char *program_name;
                   83850: 
                   83851: int
                   83852: main ()
                   83853: {
                   83854: 
                   83855: recode_format_table();
                   83856: 
                   83857:   ;
                   83858:   return 0;
                   83859: }
                   83860: _ACEOF
                   83861: if ac_fn_c_try_link "$LINENO"; then :
                   83862: 
                   83863: 
                   83864: 
                   83865:   if test "$ext_shared" = "yes"; then
                   83866:     RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD"
                   83867:     if test -n "$RECODE_DIR/$RECODE_LIB"; then
                   83868: 
                   83869:   if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
                   83870: 
                   83871:   if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
                   83872:     ai_p=$RECODE_DIR/$RECODE_LIB
                   83873:   else
                   83874: 
                   83875:     ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
                   83876: 
                   83877:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   83878:     ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
                   83879:   fi
                   83880: 
                   83881: 
                   83882:       if test "$ext_shared" = "yes"; then
                   83883:         RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD"
                   83884:         test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD"
                   83885:       else
                   83886: 
                   83887: 
                   83888: 
                   83889:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   83890: 
                   83891:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   83892:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   83893:     eval "LIBPATH$unique=set"
                   83894: 
                   83895:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   83896:     LDFLAGS="$LDFLAGS -L$ai_p"
                   83897:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   83898: 
                   83899:   fi
                   83900: 
                   83901: 
                   83902:       fi
                   83903: 
                   83904:   fi
                   83905: 
                   83906:     fi
                   83907:   else
                   83908: 
                   83909: 
                   83910:   if test -n "$RECODE_DIR/$RECODE_LIB"; then
                   83911: 
                   83912:   if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
                   83913: 
                   83914:   if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
                   83915:     ai_p=$RECODE_DIR/$RECODE_LIB
                   83916:   else
                   83917: 
                   83918:     ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
                   83919: 
                   83920:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   83921:     ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
                   83922:   fi
                   83923: 
                   83924: 
                   83925: 
                   83926: 
                   83927: 
                   83928:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   83929: 
                   83930:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   83931:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   83932:     eval "LIBPATH$unique=set"
                   83933: 
                   83934:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   83935:     LDFLAGS="$LDFLAGS -L$ai_p"
                   83936:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   83937: 
                   83938:   fi
                   83939: 
                   83940: 
                   83941: 
                   83942:   fi
                   83943: 
                   83944:   fi
                   83945: 
                   83946: 
                   83947:   case recode in
                   83948:   c|c_r|pthread*) ;;
                   83949:   *)
                   83950:       DLIBS="-lrecode $DLIBS"
                   83951:    ;;
                   83952:   esac
                   83953: 
                   83954: 
                   83955: 
                   83956: 
                   83957:   fi
                   83958: 
                   83959: 
                   83960: 
                   83961: $as_echo "#define HAVE_BROKEN_RECODE 1" >>confdefs.h
                   83962: 
                   83963: 
                   83964: else
                   83965: 
                   83966:       as_fn_error $? "I cannot link librecode (-L$RECODE_DIR/$RECODE_LIB -lrecode). Is it installed?" "$LINENO" 5
                   83967: 
                   83968: fi
                   83969: rm -f core conftest.err conftest.$ac_objext \
                   83970:     conftest$ac_exeext conftest.$ac_ext
                   83971:     LIBS=$old_LIBS
                   83972:     LDFLAGS=$old_LDFLAGS
                   83973: 
                   83974: 
                   83975: fi
                   83976: 
                   83977: 
                   83978: 
                   83979: $as_echo "#define HAVE_LIBRECODE 1" >>confdefs.h
                   83980: 
                   83981: 
                   83982:   if test "$RECODE_DIR/$RECODE_INC" != "/usr/include"; then
                   83983: 
                   83984:   if test -z "$RECODE_DIR/$RECODE_INC" || echo "$RECODE_DIR/$RECODE_INC" | grep '^/' >/dev/null ; then
                   83985:     ai_p=$RECODE_DIR/$RECODE_INC
                   83986:   else
                   83987: 
                   83988:     ep_dir="`echo $RECODE_DIR/$RECODE_INC|$SED 's%/*[^/][^/]*/*$%%'`"
                   83989: 
                   83990:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   83991:     ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_INC\"`"
                   83992:   fi
                   83993: 
                   83994: 
                   83995: 
                   83996:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   83997: 
                   83998:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   83999:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   84000:     eval "INCLUDEPATH$unique=set"
                   84001: 
                   84002:       if test ""; then
                   84003:         INCLUDES="-I$ai_p $INCLUDES"
                   84004:       else
                   84005:         INCLUDES="$INCLUDES -I$ai_p"
                   84006:       fi
                   84007: 
                   84008:   fi
                   84009: 
                   84010:   fi
                   84011: 
                   84012: 
                   84013:   PHP_VAR_SUBST="$PHP_VAR_SUBST RECODE_SHARED_LIBADD"
                   84014: 
                   84015:   for ac_header in stdbool.h
                   84016: do :
                   84017:   ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
                   84018: if test "x$ac_cv_header_stdbool_h" = xyes; then :
                   84019:   cat >>confdefs.h <<_ACEOF
                   84020: #define HAVE_STDBOOL_H 1
                   84021: _ACEOF
                   84022: 
                   84023: fi
                   84024: 
                   84025: done
                   84026: 
                   84027: 
                   84028:   ext_builddir=ext/recode
                   84029:   ext_srcdir=$abs_srcdir/ext/recode
                   84030: 
                   84031:   ac_extra=
                   84032: 
                   84033:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   84034:     PHP_RECODE_SHARED=no
                   84035: 
                   84036: 
                   84037:   case ext/recode in
                   84038:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   84039:   /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   84040:   *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   84041:   esac
                   84042: 
                   84043: 
                   84044: 
                   84045:   b_c_pre=$php_c_pre
                   84046:   b_cxx_pre=$php_cxx_pre
                   84047:   b_c_meta=$php_c_meta
                   84048:   b_cxx_meta=$php_cxx_meta
                   84049:   b_c_post=$php_c_post
                   84050:   b_cxx_post=$php_cxx_post
                   84051:   b_lo=$php_lo
                   84052: 
                   84053: 
                   84054:   old_IFS=$IFS
                   84055:   for ac_src in recode.c; do
                   84056: 
                   84057:       IFS=.
                   84058:       set $ac_src
                   84059:       ac_obj=$1
                   84060:       IFS=$old_IFS
                   84061: 
                   84062:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   84063: 
                   84064:       case $ac_src in
                   84065:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84066:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84067:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84068:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   84069:       esac
                   84070: 
                   84071:     cat >>Makefile.objects<<EOF
                   84072: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   84073:        $ac_comp
                   84074: EOF
                   84075:   done
                   84076: 
                   84077: 
                   84078:     EXT_STATIC="$EXT_STATIC recode"
                   84079:     if test "$ext_shared" != "nocli"; then
                   84080:       EXT_CLI_STATIC="$EXT_CLI_STATIC recode"
                   84081:     fi
                   84082:   else
                   84083:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   84084:       PHP_RECODE_SHARED=yes
                   84085: 
                   84086:   case ext/recode in
                   84087:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   84088:   /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   84089:   *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   84090:   esac
                   84091: 
                   84092: 
                   84093: 
                   84094:   b_c_pre=$shared_c_pre
                   84095:   b_cxx_pre=$shared_cxx_pre
                   84096:   b_c_meta=$shared_c_meta
                   84097:   b_cxx_meta=$shared_cxx_meta
                   84098:   b_c_post=$shared_c_post
                   84099:   b_cxx_post=$shared_cxx_post
                   84100:   b_lo=$shared_lo
                   84101: 
                   84102: 
                   84103:   old_IFS=$IFS
                   84104:   for ac_src in recode.c; do
                   84105: 
                   84106:       IFS=.
                   84107:       set $ac_src
                   84108:       ac_obj=$1
                   84109:       IFS=$old_IFS
                   84110: 
                   84111:       shared_objects_recode="$shared_objects_recode $ac_bdir$ac_obj.lo"
                   84112: 
                   84113:       case $ac_src in
                   84114:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84115:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84116:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84117:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   84118:       esac
                   84119: 
                   84120:     cat >>Makefile.objects<<EOF
                   84121: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   84122:        $ac_comp
                   84123: EOF
                   84124:   done
                   84125: 
                   84126:       case $host_alias in
                   84127:         *netware*)
                   84128: 
                   84129:   install_modules="install-modules"
                   84130: 
                   84131:   case $host_alias in
                   84132:     *aix*)
                   84133:       suffix=so
                   84134:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phprecode.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) $(PHPRECODE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phprecode.so '$ext_builddir'/phprecode.so'
                   84135:       ;;
                   84136:     *netware*)
                   84137:       suffix=nlm
                   84138:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) -L$(top_builddir)/netware -lphp5lib $(RECODE_SHARED_LIBADD)'
                   84139:       ;;
                   84140:     *)
                   84141:       suffix=la
                   84142:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) $(PHPRECODE_SHARED_LIBADD)'
                   84143:       ;;
                   84144:   esac
                   84145: 
                   84146:   if test "x" = "xyes"; then
                   84147:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phprecode.$suffix"
                   84148:   else
                   84149:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phprecode.$suffix"
                   84150:   fi
                   84151: 
                   84152:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_recode"
                   84153: 
                   84154:   cat >>Makefile.objects<<EOF
                   84155: \$(phplibdir)/phprecode.$suffix: $ext_builddir/phprecode.$suffix
                   84156:        \$(LIBTOOL) --mode=install cp $ext_builddir/phprecode.$suffix \$(phplibdir)
                   84157: 
                   84158: $ext_builddir/phprecode.$suffix: \$(shared_objects_recode) \$(PHPRECODE_SHARED_DEPENDENCIES)
                   84159:        $link_cmd
                   84160: 
                   84161: EOF
                   84162: 
                   84163:           ;;
                   84164:         *)
                   84165: 
                   84166:   install_modules="install-modules"
                   84167: 
                   84168:   case $host_alias in
                   84169:     *aix*)
                   84170:       suffix=so
                   84171:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/recode.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) $(RECODE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/recode.so '$ext_builddir'/recode.so'
                   84172:       ;;
                   84173:     *netware*)
                   84174:       suffix=nlm
                   84175:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) -L$(top_builddir)/netware -lphp5lib $(ODE_SHARED_LIBADD)'
                   84176:       ;;
                   84177:     *)
                   84178:       suffix=la
                   84179:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) $(RECODE_SHARED_LIBADD)'
                   84180:       ;;
                   84181:   esac
                   84182: 
                   84183:   if test "x" = "xyes"; then
                   84184:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/recode.$suffix"
                   84185:   else
                   84186:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/recode.$suffix"
                   84187:   fi
                   84188: 
                   84189:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_recode"
                   84190: 
                   84191:   cat >>Makefile.objects<<EOF
                   84192: \$(phplibdir)/recode.$suffix: $ext_builddir/recode.$suffix
                   84193:        \$(LIBTOOL) --mode=install cp $ext_builddir/recode.$suffix \$(phplibdir)
                   84194: 
                   84195: $ext_builddir/recode.$suffix: \$(shared_objects_recode) \$(RECODE_SHARED_DEPENDENCIES)
                   84196:        $link_cmd
                   84197: 
                   84198: EOF
                   84199: 
                   84200:           ;;
                   84201:       esac
                   84202: 
                   84203: cat >>confdefs.h <<_ACEOF
                   84204: #define COMPILE_DL_RECODE 1
                   84205: _ACEOF
                   84206: 
                   84207:     fi
                   84208:   fi
                   84209: 
                   84210:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   84211:     PHP_RECODE_SHARED=no
                   84212: 
                   84213: 
                   84214:   case ext/recode in
                   84215:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   84216:   /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   84217:   *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   84218:   esac
                   84219: 
                   84220: 
                   84221: 
                   84222:   b_c_pre=$php_c_pre
                   84223:   b_cxx_pre=$php_cxx_pre
                   84224:   b_c_meta=$php_c_meta
                   84225:   b_cxx_meta=$php_cxx_meta
                   84226:   b_c_post=$php_c_post
                   84227:   b_cxx_post=$php_cxx_post
                   84228:   b_lo=$php_lo
                   84229: 
                   84230: 
                   84231:   old_IFS=$IFS
                   84232:   for ac_src in recode.c; do
                   84233: 
                   84234:       IFS=.
                   84235:       set $ac_src
                   84236:       ac_obj=$1
                   84237:       IFS=$old_IFS
                   84238: 
1.1.1.2 ! misho    84239:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    84240: 
                   84241:       case $ac_src in
                   84242:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84243:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84244:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84245:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   84246:       esac
                   84247: 
                   84248:     cat >>Makefile.objects<<EOF
                   84249: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   84250:        $ac_comp
                   84251: EOF
                   84252:   done
                   84253: 
                   84254: 
                   84255: 
                   84256: 
                   84257:   case ext/recode in
                   84258:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   84259:   /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   84260:   *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   84261:   esac
                   84262: 
                   84263: 
                   84264: 
                   84265:   b_c_pre=$php_c_pre
                   84266:   b_cxx_pre=$php_cxx_pre
                   84267:   b_c_meta=$php_c_meta
                   84268:   b_cxx_meta=$php_cxx_meta
                   84269:   b_c_post=$php_c_post
                   84270:   b_cxx_post=$php_cxx_post
                   84271:   b_lo=$php_lo
                   84272: 
                   84273: 
                   84274:   old_IFS=$IFS
                   84275:   for ac_src in recode.c; do
                   84276: 
                   84277:       IFS=.
                   84278:       set $ac_src
                   84279:       ac_obj=$1
                   84280:       IFS=$old_IFS
                   84281: 
1.1.1.2 ! misho    84282:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    84283: 
                   84284:       case $ac_src in
                   84285:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84286:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84287:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84288:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   84289:       esac
                   84290: 
                   84291:     cat >>Makefile.objects<<EOF
                   84292: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   84293:        $ac_comp
                   84294: EOF
                   84295:   done
                   84296: 
                   84297: 
                   84298: 
                   84299: 
                   84300:   case ext/recode in
                   84301:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   84302:   /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   84303:   *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   84304:   esac
                   84305: 
                   84306: 
                   84307: 
                   84308:   b_c_pre=$php_c_pre
                   84309:   b_cxx_pre=$php_cxx_pre
                   84310:   b_c_meta=$php_c_meta
                   84311:   b_cxx_meta=$php_cxx_meta
                   84312:   b_c_post=$php_c_post
                   84313:   b_cxx_post=$php_cxx_post
                   84314:   b_lo=$php_lo
                   84315: 
                   84316: 
                   84317:   old_IFS=$IFS
                   84318:   for ac_src in recode.c; do
                   84319: 
                   84320:       IFS=.
                   84321:       set $ac_src
                   84322:       ac_obj=$1
                   84323:       IFS=$old_IFS
                   84324: 
1.1.1.2 ! misho    84325:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    84326: 
                   84327:       case $ac_src in
                   84328:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84329:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84330:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84331:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   84332:       esac
                   84333: 
                   84334:     cat >>Makefile.objects<<EOF
                   84335: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   84336:        $ac_comp
                   84337: EOF
                   84338:   done
                   84339: 
                   84340: 
                   84341:     EXT_CLI_STATIC="$EXT_CLI_STATIC recode"
                   84342:   fi
                   84343: 
                   84344: 
                   84345:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   84346: 
                   84347: 
                   84348: 
                   84349:   if test "$ext_builddir" = "."; then
                   84350:     PHP_PECL_EXTENSION=recode
                   84351: 
                   84352:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   84353: 
                   84354:   fi
                   84355: 
                   84356: fi
                   84357: 
                   84358: 
                   84359: 
                   84360: $as_echo "#define HAVE_REFLECTION 1" >>confdefs.h
                   84361: 
                   84362: 
                   84363:   ext_builddir=ext/reflection
                   84364:   ext_srcdir=$abs_srcdir/ext/reflection
                   84365: 
                   84366:   ac_extra=
                   84367: 
                   84368:   if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
                   84369:     PHP_REFLECTION_SHARED=no
                   84370: 
                   84371: 
                   84372:   case ext/reflection in
                   84373:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   84374:   /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   84375:   *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   84376:   esac
                   84377: 
                   84378: 
                   84379: 
                   84380:   b_c_pre=$php_c_pre
                   84381:   b_cxx_pre=$php_cxx_pre
                   84382:   b_c_meta=$php_c_meta
                   84383:   b_cxx_meta=$php_cxx_meta
                   84384:   b_c_post=$php_c_post
                   84385:   b_cxx_post=$php_cxx_post
                   84386:   b_lo=$php_lo
                   84387: 
                   84388: 
                   84389:   old_IFS=$IFS
                   84390:   for ac_src in php_reflection.c; do
                   84391: 
                   84392:       IFS=.
                   84393:       set $ac_src
                   84394:       ac_obj=$1
                   84395:       IFS=$old_IFS
                   84396: 
                   84397:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   84398: 
                   84399:       case $ac_src in
                   84400:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84401:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84402:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84403:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   84404:       esac
                   84405: 
                   84406:     cat >>Makefile.objects<<EOF
                   84407: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   84408:        $ac_comp
                   84409: EOF
                   84410:   done
                   84411: 
                   84412: 
                   84413:     EXT_STATIC="$EXT_STATIC reflection"
                   84414:     if test "no" != "nocli"; then
                   84415:       EXT_CLI_STATIC="$EXT_CLI_STATIC reflection"
                   84416:     fi
                   84417:   else
                   84418:     if test "no" = "shared" || test "no" = "yes"; then
                   84419:       PHP_REFLECTION_SHARED=yes
                   84420: 
                   84421:   case ext/reflection in
                   84422:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   84423:   /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   84424:   *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   84425:   esac
                   84426: 
                   84427: 
                   84428: 
                   84429:   b_c_pre=$shared_c_pre
                   84430:   b_cxx_pre=$shared_cxx_pre
                   84431:   b_c_meta=$shared_c_meta
                   84432:   b_cxx_meta=$shared_cxx_meta
                   84433:   b_c_post=$shared_c_post
                   84434:   b_cxx_post=$shared_cxx_post
                   84435:   b_lo=$shared_lo
                   84436: 
                   84437: 
                   84438:   old_IFS=$IFS
                   84439:   for ac_src in php_reflection.c; do
                   84440: 
                   84441:       IFS=.
                   84442:       set $ac_src
                   84443:       ac_obj=$1
                   84444:       IFS=$old_IFS
                   84445: 
                   84446:       shared_objects_reflection="$shared_objects_reflection $ac_bdir$ac_obj.lo"
                   84447: 
                   84448:       case $ac_src in
                   84449:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84450:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84451:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84452:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   84453:       esac
                   84454: 
                   84455:     cat >>Makefile.objects<<EOF
                   84456: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   84457:        $ac_comp
                   84458: EOF
                   84459:   done
                   84460: 
                   84461:       case $host_alias in
                   84462:         *netware*)
                   84463: 
                   84464:   install_modules="install-modules"
                   84465: 
                   84466:   case $host_alias in
                   84467:     *aix*)
                   84468:       suffix=so
                   84469:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpreflection.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) $(PHPREFLECTION_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpreflection.so '$ext_builddir'/phpreflection.so'
                   84470:       ;;
                   84471:     *netware*)
                   84472:       suffix=nlm
                   84473:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) -L$(top_builddir)/netware -lphp5lib $(REFLECTION_SHARED_LIBADD)'
                   84474:       ;;
                   84475:     *)
                   84476:       suffix=la
                   84477:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) $(PHPREFLECTION_SHARED_LIBADD)'
                   84478:       ;;
                   84479:   esac
                   84480: 
                   84481:   if test "x" = "xyes"; then
                   84482:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpreflection.$suffix"
                   84483:   else
                   84484:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpreflection.$suffix"
                   84485:   fi
                   84486: 
                   84487:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_reflection"
                   84488: 
                   84489:   cat >>Makefile.objects<<EOF
                   84490: \$(phplibdir)/phpreflection.$suffix: $ext_builddir/phpreflection.$suffix
                   84491:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpreflection.$suffix \$(phplibdir)
                   84492: 
                   84493: $ext_builddir/phpreflection.$suffix: \$(shared_objects_reflection) \$(PHPREFLECTION_SHARED_DEPENDENCIES)
                   84494:        $link_cmd
                   84495: 
                   84496: EOF
                   84497: 
                   84498:           ;;
                   84499:         *)
                   84500: 
                   84501:   install_modules="install-modules"
                   84502: 
                   84503:   case $host_alias in
                   84504:     *aix*)
                   84505:       suffix=so
                   84506:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/reflection.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) $(REFLECTION_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/reflection.so '$ext_builddir'/reflection.so'
                   84507:       ;;
                   84508:     *netware*)
                   84509:       suffix=nlm
                   84510:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) -L$(top_builddir)/netware -lphp5lib $(LECTION_SHARED_LIBADD)'
                   84511:       ;;
                   84512:     *)
                   84513:       suffix=la
                   84514:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) $(REFLECTION_SHARED_LIBADD)'
                   84515:       ;;
                   84516:   esac
                   84517: 
                   84518:   if test "x" = "xyes"; then
                   84519:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/reflection.$suffix"
                   84520:   else
                   84521:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/reflection.$suffix"
                   84522:   fi
                   84523: 
                   84524:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_reflection"
                   84525: 
                   84526:   cat >>Makefile.objects<<EOF
                   84527: \$(phplibdir)/reflection.$suffix: $ext_builddir/reflection.$suffix
                   84528:        \$(LIBTOOL) --mode=install cp $ext_builddir/reflection.$suffix \$(phplibdir)
                   84529: 
                   84530: $ext_builddir/reflection.$suffix: \$(shared_objects_reflection) \$(REFLECTION_SHARED_DEPENDENCIES)
                   84531:        $link_cmd
                   84532: 
                   84533: EOF
                   84534: 
                   84535:           ;;
                   84536:       esac
                   84537: 
                   84538: cat >>confdefs.h <<_ACEOF
                   84539: #define COMPILE_DL_REFLECTION 1
                   84540: _ACEOF
                   84541: 
                   84542:     fi
                   84543:   fi
                   84544: 
                   84545:   if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
                   84546:     PHP_REFLECTION_SHARED=no
                   84547: 
                   84548: 
                   84549:   case ext/reflection in
                   84550:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   84551:   /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   84552:   *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   84553:   esac
                   84554: 
                   84555: 
                   84556: 
                   84557:   b_c_pre=$php_c_pre
                   84558:   b_cxx_pre=$php_cxx_pre
                   84559:   b_c_meta=$php_c_meta
                   84560:   b_cxx_meta=$php_cxx_meta
                   84561:   b_c_post=$php_c_post
                   84562:   b_cxx_post=$php_cxx_post
                   84563:   b_lo=$php_lo
                   84564: 
                   84565: 
                   84566:   old_IFS=$IFS
                   84567:   for ac_src in php_reflection.c; do
                   84568: 
                   84569:       IFS=.
                   84570:       set $ac_src
                   84571:       ac_obj=$1
                   84572:       IFS=$old_IFS
                   84573: 
1.1.1.2 ! misho    84574:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    84575: 
                   84576:       case $ac_src in
                   84577:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84578:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84579:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84580:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   84581:       esac
                   84582: 
                   84583:     cat >>Makefile.objects<<EOF
                   84584: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   84585:        $ac_comp
                   84586: EOF
                   84587:   done
                   84588: 
                   84589: 
                   84590: 
                   84591: 
                   84592:   case ext/reflection in
                   84593:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   84594:   /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   84595:   *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   84596:   esac
                   84597: 
                   84598: 
                   84599: 
                   84600:   b_c_pre=$php_c_pre
                   84601:   b_cxx_pre=$php_cxx_pre
                   84602:   b_c_meta=$php_c_meta
                   84603:   b_cxx_meta=$php_cxx_meta
                   84604:   b_c_post=$php_c_post
                   84605:   b_cxx_post=$php_cxx_post
                   84606:   b_lo=$php_lo
                   84607: 
                   84608: 
                   84609:   old_IFS=$IFS
                   84610:   for ac_src in php_reflection.c; do
                   84611: 
                   84612:       IFS=.
                   84613:       set $ac_src
                   84614:       ac_obj=$1
                   84615:       IFS=$old_IFS
                   84616: 
1.1.1.2 ! misho    84617:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    84618: 
                   84619:       case $ac_src in
                   84620:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84621:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84622:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84623:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   84624:       esac
                   84625: 
                   84626:     cat >>Makefile.objects<<EOF
                   84627: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   84628:        $ac_comp
                   84629: EOF
                   84630:   done
                   84631: 
                   84632: 
                   84633: 
                   84634: 
                   84635:   case ext/reflection in
                   84636:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   84637:   /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   84638:   *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   84639:   esac
                   84640: 
                   84641: 
                   84642: 
                   84643:   b_c_pre=$php_c_pre
                   84644:   b_cxx_pre=$php_cxx_pre
                   84645:   b_c_meta=$php_c_meta
                   84646:   b_cxx_meta=$php_cxx_meta
                   84647:   b_c_post=$php_c_post
                   84648:   b_cxx_post=$php_cxx_post
                   84649:   b_lo=$php_lo
                   84650: 
                   84651: 
                   84652:   old_IFS=$IFS
                   84653:   for ac_src in php_reflection.c; do
                   84654: 
                   84655:       IFS=.
                   84656:       set $ac_src
                   84657:       ac_obj=$1
                   84658:       IFS=$old_IFS
                   84659: 
1.1.1.2 ! misho    84660:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    84661: 
                   84662:       case $ac_src in
                   84663:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84664:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84665:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   84666:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   84667:       esac
                   84668: 
                   84669:     cat >>Makefile.objects<<EOF
                   84670: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   84671:        $ac_comp
                   84672: EOF
                   84673:   done
                   84674: 
                   84675: 
                   84676:     EXT_CLI_STATIC="$EXT_CLI_STATIC reflection"
                   84677:   fi
                   84678: 
                   84679: 
                   84680:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   84681: 
                   84682: 
                   84683: 
                   84684:   if test "$ext_builddir" = "."; then
                   84685:     PHP_PECL_EXTENSION=reflection
                   84686: 
                   84687:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   84688: 
                   84689:   fi
                   84690: 
                   84691: 
                   84692: 
                   84693: 
                   84694: php_enable_session=yes
                   84695: 
                   84696: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP sessions" >&5
                   84697: $as_echo_n "checking whether to enable PHP sessions... " >&6; }
                   84698: # Check whether --enable-session was given.
                   84699: if test "${enable_session+set}" = set; then :
                   84700:   enableval=$enable_session; PHP_SESSION=$enableval
                   84701: else
                   84702: 
                   84703:   PHP_SESSION=yes
                   84704:   test "$PHP_ENABLE_ALL" && PHP_SESSION=$PHP_ENABLE_ALL
                   84705: 
                   84706: fi
                   84707: 
                   84708: 
                   84709: 
                   84710: ext_output="yes, shared"
                   84711: ext_shared=yes
                   84712: case $PHP_SESSION in
                   84713: shared,*)
                   84714:   PHP_SESSION=`echo "$PHP_SESSION"|$SED 's/^shared,//'`
                   84715:   ;;
                   84716: shared)
                   84717:   PHP_SESSION=yes
                   84718:   ;;
                   84719: no)
                   84720:   ext_output=no
                   84721:   ext_shared=no
                   84722:   ;;
                   84723: *)
                   84724:   ext_output=yes
                   84725:   ext_shared=no
                   84726:   ;;
                   84727: esac
                   84728: 
                   84729: 
                   84730: 
                   84731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   84732: $as_echo "$ext_output" >&6; }
                   84733: 
                   84734: 
                   84735: 
                   84736: 
                   84737: 
                   84738: php_with_mm=no
                   84739: 
                   84740: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mm support" >&5
                   84741: $as_echo_n "checking for mm support... " >&6; }
                   84742: 
                   84743: # Check whether --with-mm was given.
                   84744: if test "${with_mm+set}" = set; then :
                   84745:   withval=$with_mm; PHP_MM=$withval
                   84746: else
                   84747: 
                   84748:   PHP_MM=no
                   84749: 
                   84750: 
                   84751: fi
                   84752: 
                   84753: 
                   84754: ext_output=$PHP_MM
                   84755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   84756: $as_echo "$ext_output" >&6; }
                   84757: 
                   84758: 
                   84759: 
                   84760: 
                   84761: if test "$PHP_SESSION" != "no"; then
                   84762: 
                   84763:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pwrite works" >&5
                   84764: $as_echo_n "checking whether pwrite works... " >&6; }
                   84765: if ${ac_cv_pwrite+:} false; then :
                   84766:   $as_echo_n "(cached) " >&6
                   84767: else
                   84768: 
                   84769: 
                   84770:   if test "$cross_compiling" = yes; then :
                   84771: 
                   84772:     ac_cv_pwrite=no
                   84773: 
                   84774: else
                   84775:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   84776: /* end confdefs.h.  */
                   84777: 
                   84778: #include <sys/types.h>
                   84779: #include <sys/stat.h>
                   84780: #include <fcntl.h>
                   84781: #include <unistd.h>
                   84782: #include <errno.h>
                   84783: 
                   84784:     main() {
                   84785:     int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600);
                   84786: 
                   84787:     if (fd < 0) exit(1);
                   84788:     if (pwrite(fd, "text", 4, 0) != 4) exit(1);
                   84789:     /* Linux glibc breakage until 2.2.5 */
                   84790:     if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1);
                   84791:     exit(0);
                   84792:     }
                   84793: 
                   84794: 
                   84795: _ACEOF
                   84796: if ac_fn_c_try_run "$LINENO"; then :
                   84797: 
                   84798:     ac_cv_pwrite=yes
                   84799: 
                   84800: else
                   84801: 
                   84802:     ac_cv_pwrite=no
                   84803: 
                   84804: fi
                   84805: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   84806:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   84807: fi
                   84808: 
                   84809: 
                   84810:     if test "$ac_cv_pwrite" = "no"; then
                   84811: 
                   84812:   if test "$cross_compiling" = yes; then :
                   84813: 
                   84814:     ac_cv_pwrite=no
                   84815: 
                   84816: else
                   84817:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   84818: /* end confdefs.h.  */
                   84819: 
                   84820: #include <sys/types.h>
                   84821: #include <sys/stat.h>
                   84822: #include <fcntl.h>
                   84823: #include <unistd.h>
                   84824: #include <errno.h>
                   84825: ssize_t pwrite(int, void *, size_t, off64_t);
                   84826:     main() {
                   84827:     int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600);
                   84828: 
                   84829:     if (fd < 0) exit(1);
                   84830:     if (pwrite(fd, "text", 4, 0) != 4) exit(1);
                   84831:     /* Linux glibc breakage until 2.2.5 */
                   84832:     if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1);
                   84833:     exit(0);
                   84834:     }
                   84835: 
                   84836: 
                   84837: _ACEOF
                   84838: if ac_fn_c_try_run "$LINENO"; then :
                   84839: 
                   84840:     ac_cv_pwrite=yes
                   84841: 
                   84842: else
                   84843: 
                   84844:     ac_cv_pwrite=no
                   84845: 
                   84846: fi
                   84847: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   84848:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   84849: fi
                   84850: 
                   84851: 
                   84852:       if test "$ac_cv_pwrite" = "yes"; then
                   84853:         ac_cv_pwrite=64
                   84854:       fi
                   84855:     fi
                   84856: 
                   84857: fi
                   84858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pwrite" >&5
                   84859: $as_echo "$ac_cv_pwrite" >&6; }
                   84860: 
                   84861:   if test "$ac_cv_pwrite" != "no"; then
                   84862: 
                   84863: $as_echo "#define HAVE_PWRITE 1" >>confdefs.h
                   84864: 
                   84865:     if test "$ac_cv_pwrite" = "64"; then
                   84866: 
                   84867: $as_echo "#define PHP_PWRITE_64 1" >>confdefs.h
                   84868: 
                   84869:     fi
                   84870:   fi
                   84871: 
                   84872: 
                   84873:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pread works" >&5
                   84874: $as_echo_n "checking whether pread works... " >&6; }
                   84875: if ${ac_cv_pread+:} false; then :
                   84876:   $as_echo_n "(cached) " >&6
                   84877: else
                   84878: 
                   84879: 
                   84880:   echo test > conftest_in
                   84881:   if test "$cross_compiling" = yes; then :
                   84882: 
                   84883:     ac_cv_pread=no
                   84884: 
                   84885: else
                   84886:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   84887: /* end confdefs.h.  */
                   84888: 
                   84889: #include <sys/types.h>
                   84890: #include <sys/stat.h>
                   84891: #include <fcntl.h>
                   84892: #include <unistd.h>
                   84893: #include <errno.h>
                   84894: 
                   84895:     main() {
                   84896:     char buf[3];
                   84897:     int fd = open("conftest_in", O_RDONLY);
                   84898:     if (fd < 0) exit(1);
                   84899:     if (pread(fd, buf, 2, 0) != 2) exit(1);
                   84900:     /* Linux glibc breakage until 2.2.5 */
                   84901:     if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1);
                   84902:     exit(0);
                   84903:     }
                   84904: 
                   84905: _ACEOF
                   84906: if ac_fn_c_try_run "$LINENO"; then :
                   84907: 
                   84908:     ac_cv_pread=yes
                   84909: 
                   84910: else
                   84911: 
                   84912:     ac_cv_pread=no
                   84913: 
                   84914: fi
                   84915: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   84916:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   84917: fi
                   84918: 
                   84919:   rm -f conftest_in
                   84920: 
                   84921:     if test "$ac_cv_pread" = "no"; then
                   84922: 
                   84923:   echo test > conftest_in
                   84924:   if test "$cross_compiling" = yes; then :
                   84925: 
                   84926:     ac_cv_pread=no
                   84927: 
                   84928: else
                   84929:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   84930: /* end confdefs.h.  */
                   84931: 
                   84932: #include <sys/types.h>
                   84933: #include <sys/stat.h>
                   84934: #include <fcntl.h>
                   84935: #include <unistd.h>
                   84936: #include <errno.h>
                   84937: ssize_t pread(int, void *, size_t, off64_t);
                   84938:     main() {
                   84939:     char buf[3];
                   84940:     int fd = open("conftest_in", O_RDONLY);
                   84941:     if (fd < 0) exit(1);
                   84942:     if (pread(fd, buf, 2, 0) != 2) exit(1);
                   84943:     /* Linux glibc breakage until 2.2.5 */
                   84944:     if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1);
                   84945:     exit(0);
                   84946:     }
                   84947: 
                   84948: _ACEOF
                   84949: if ac_fn_c_try_run "$LINENO"; then :
                   84950: 
                   84951:     ac_cv_pread=yes
                   84952: 
                   84953: else
                   84954: 
                   84955:     ac_cv_pread=no
                   84956: 
                   84957: fi
                   84958: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   84959:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   84960: fi
                   84961: 
                   84962:   rm -f conftest_in
                   84963: 
                   84964:       if test "$ac_cv_pread" = "yes"; then
                   84965:         ac_cv_pread=64
                   84966:       fi
                   84967:     fi
                   84968: 
                   84969: fi
                   84970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pread" >&5
                   84971: $as_echo "$ac_cv_pread" >&6; }
                   84972: 
                   84973:   if test "$ac_cv_pread" != "no"; then
                   84974: 
                   84975: $as_echo "#define HAVE_PREAD 1" >>confdefs.h
                   84976: 
                   84977:     if test "$ac_cv_pread" = "64"; then
                   84978: 
                   84979: $as_echo "#define PHP_PREAD_64 1" >>confdefs.h
                   84980: 
                   84981:     fi
                   84982:   fi
                   84983: 
                   84984: 
                   84985:   ext_builddir=ext/session
                   84986:   ext_srcdir=$abs_srcdir/ext/session
                   84987: 
                   84988:   ac_extra=
                   84989: 
                   84990:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   84991:     PHP_SESSION_SHARED=no
                   84992: 
                   84993: 
                   84994:   case ext/session in
                   84995:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   84996:   /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   84997:   *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   84998:   esac
                   84999: 
                   85000: 
                   85001: 
                   85002:   b_c_pre=$php_c_pre
                   85003:   b_cxx_pre=$php_cxx_pre
                   85004:   b_c_meta=$php_c_meta
                   85005:   b_cxx_meta=$php_cxx_meta
                   85006:   b_c_post=$php_c_post
                   85007:   b_cxx_post=$php_cxx_post
                   85008:   b_lo=$php_lo
                   85009: 
                   85010: 
                   85011:   old_IFS=$IFS
1.1.1.2 ! misho    85012:   for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
1.1       misho    85013: 
                   85014:       IFS=.
                   85015:       set $ac_src
                   85016:       ac_obj=$1
                   85017:       IFS=$old_IFS
                   85018: 
                   85019:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   85020: 
                   85021:       case $ac_src in
                   85022:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85023:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85024:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85025:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   85026:       esac
                   85027: 
                   85028:     cat >>Makefile.objects<<EOF
                   85029: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   85030:        $ac_comp
                   85031: EOF
                   85032:   done
                   85033: 
                   85034: 
                   85035:     EXT_STATIC="$EXT_STATIC session"
                   85036:     if test "$ext_shared" != "nocli"; then
                   85037:       EXT_CLI_STATIC="$EXT_CLI_STATIC session"
                   85038:     fi
                   85039:   else
                   85040:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   85041:       PHP_SESSION_SHARED=yes
                   85042: 
                   85043:   case ext/session in
                   85044:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   85045:   /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   85046:   *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   85047:   esac
                   85048: 
                   85049: 
                   85050: 
                   85051:   b_c_pre=$shared_c_pre
                   85052:   b_cxx_pre=$shared_cxx_pre
                   85053:   b_c_meta=$shared_c_meta
                   85054:   b_cxx_meta=$shared_cxx_meta
                   85055:   b_c_post=$shared_c_post
                   85056:   b_cxx_post=$shared_cxx_post
                   85057:   b_lo=$shared_lo
                   85058: 
                   85059: 
                   85060:   old_IFS=$IFS
1.1.1.2 ! misho    85061:   for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
1.1       misho    85062: 
                   85063:       IFS=.
                   85064:       set $ac_src
                   85065:       ac_obj=$1
                   85066:       IFS=$old_IFS
                   85067: 
                   85068:       shared_objects_session="$shared_objects_session $ac_bdir$ac_obj.lo"
                   85069: 
                   85070:       case $ac_src in
                   85071:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85072:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85073:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85074:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   85075:       esac
                   85076: 
                   85077:     cat >>Makefile.objects<<EOF
                   85078: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   85079:        $ac_comp
                   85080: EOF
                   85081:   done
                   85082: 
                   85083:       case $host_alias in
                   85084:         *netware*)
                   85085: 
                   85086:   install_modules="install-modules"
                   85087: 
                   85088:   case $host_alias in
                   85089:     *aix*)
                   85090:       suffix=so
                   85091:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsession.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) $(PHPSESSION_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsession.so '$ext_builddir'/phpsession.so'
                   85092:       ;;
                   85093:     *netware*)
                   85094:       suffix=nlm
                   85095:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) -L$(top_builddir)/netware -lphp5lib $(SESSION_SHARED_LIBADD)'
                   85096:       ;;
                   85097:     *)
                   85098:       suffix=la
                   85099:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) $(PHPSESSION_SHARED_LIBADD)'
                   85100:       ;;
                   85101:   esac
                   85102: 
                   85103:   if test "x" = "xyes"; then
                   85104:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsession.$suffix"
                   85105:   else
                   85106:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsession.$suffix"
                   85107:   fi
                   85108: 
                   85109:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_session"
                   85110: 
                   85111:   cat >>Makefile.objects<<EOF
                   85112: \$(phplibdir)/phpsession.$suffix: $ext_builddir/phpsession.$suffix
                   85113:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsession.$suffix \$(phplibdir)
                   85114: 
                   85115: $ext_builddir/phpsession.$suffix: \$(shared_objects_session) \$(PHPSESSION_SHARED_DEPENDENCIES)
                   85116:        $link_cmd
                   85117: 
                   85118: EOF
                   85119: 
                   85120:           ;;
                   85121:         *)
                   85122: 
                   85123:   install_modules="install-modules"
                   85124: 
                   85125:   case $host_alias in
                   85126:     *aix*)
                   85127:       suffix=so
                   85128:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/session.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) $(SESSION_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/session.so '$ext_builddir'/session.so'
                   85129:       ;;
                   85130:     *netware*)
                   85131:       suffix=nlm
                   85132:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) -L$(top_builddir)/netware -lphp5lib $(SION_SHARED_LIBADD)'
                   85133:       ;;
                   85134:     *)
                   85135:       suffix=la
                   85136:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) $(SESSION_SHARED_LIBADD)'
                   85137:       ;;
                   85138:   esac
                   85139: 
                   85140:   if test "x" = "xyes"; then
                   85141:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/session.$suffix"
                   85142:   else
                   85143:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/session.$suffix"
                   85144:   fi
                   85145: 
                   85146:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_session"
                   85147: 
                   85148:   cat >>Makefile.objects<<EOF
                   85149: \$(phplibdir)/session.$suffix: $ext_builddir/session.$suffix
                   85150:        \$(LIBTOOL) --mode=install cp $ext_builddir/session.$suffix \$(phplibdir)
                   85151: 
                   85152: $ext_builddir/session.$suffix: \$(shared_objects_session) \$(SESSION_SHARED_DEPENDENCIES)
                   85153:        $link_cmd
                   85154: 
                   85155: EOF
                   85156: 
                   85157:           ;;
                   85158:       esac
                   85159: 
                   85160: cat >>confdefs.h <<_ACEOF
                   85161: #define COMPILE_DL_SESSION 1
                   85162: _ACEOF
                   85163: 
                   85164:     fi
                   85165:   fi
                   85166: 
                   85167:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   85168:     PHP_SESSION_SHARED=no
                   85169: 
                   85170: 
                   85171:   case ext/session in
                   85172:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   85173:   /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   85174:   *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   85175:   esac
                   85176: 
                   85177: 
                   85178: 
                   85179:   b_c_pre=$php_c_pre
                   85180:   b_cxx_pre=$php_cxx_pre
                   85181:   b_c_meta=$php_c_meta
                   85182:   b_cxx_meta=$php_cxx_meta
                   85183:   b_c_post=$php_c_post
                   85184:   b_cxx_post=$php_cxx_post
                   85185:   b_lo=$php_lo
                   85186: 
                   85187: 
                   85188:   old_IFS=$IFS
1.1.1.2 ! misho    85189:   for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
1.1       misho    85190: 
                   85191:       IFS=.
                   85192:       set $ac_src
                   85193:       ac_obj=$1
                   85194:       IFS=$old_IFS
                   85195: 
1.1.1.2 ! misho    85196:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    85197: 
                   85198:       case $ac_src in
                   85199:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85200:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85201:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85202:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   85203:       esac
                   85204: 
                   85205:     cat >>Makefile.objects<<EOF
                   85206: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   85207:        $ac_comp
                   85208: EOF
                   85209:   done
                   85210: 
                   85211: 
                   85212: 
                   85213: 
                   85214:   case ext/session in
                   85215:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   85216:   /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   85217:   *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   85218:   esac
                   85219: 
                   85220: 
                   85221: 
                   85222:   b_c_pre=$php_c_pre
                   85223:   b_cxx_pre=$php_cxx_pre
                   85224:   b_c_meta=$php_c_meta
                   85225:   b_cxx_meta=$php_cxx_meta
                   85226:   b_c_post=$php_c_post
                   85227:   b_cxx_post=$php_cxx_post
                   85228:   b_lo=$php_lo
                   85229: 
                   85230: 
                   85231:   old_IFS=$IFS
1.1.1.2 ! misho    85232:   for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
1.1       misho    85233: 
                   85234:       IFS=.
                   85235:       set $ac_src
                   85236:       ac_obj=$1
                   85237:       IFS=$old_IFS
                   85238: 
1.1.1.2 ! misho    85239:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    85240: 
                   85241:       case $ac_src in
                   85242:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85243:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85244:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85245:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   85246:       esac
                   85247: 
                   85248:     cat >>Makefile.objects<<EOF
                   85249: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   85250:        $ac_comp
                   85251: EOF
                   85252:   done
                   85253: 
                   85254: 
                   85255: 
                   85256: 
                   85257:   case ext/session in
                   85258:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   85259:   /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   85260:   *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   85261:   esac
                   85262: 
                   85263: 
                   85264: 
                   85265:   b_c_pre=$php_c_pre
                   85266:   b_cxx_pre=$php_cxx_pre
                   85267:   b_c_meta=$php_c_meta
                   85268:   b_cxx_meta=$php_cxx_meta
                   85269:   b_c_post=$php_c_post
                   85270:   b_cxx_post=$php_cxx_post
                   85271:   b_lo=$php_lo
                   85272: 
                   85273: 
                   85274:   old_IFS=$IFS
1.1.1.2 ! misho    85275:   for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
1.1       misho    85276: 
                   85277:       IFS=.
                   85278:       set $ac_src
                   85279:       ac_obj=$1
                   85280:       IFS=$old_IFS
                   85281: 
1.1.1.2 ! misho    85282:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    85283: 
                   85284:       case $ac_src in
                   85285:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85286:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85287:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85288:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   85289:       esac
                   85290: 
                   85291:     cat >>Makefile.objects<<EOF
                   85292: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   85293:        $ac_comp
                   85294: EOF
                   85295:   done
                   85296: 
                   85297: 
                   85298:     EXT_CLI_STATIC="$EXT_CLI_STATIC session"
                   85299:   fi
                   85300: 
                   85301: 
                   85302:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   85303: 
                   85304: 
                   85305: 
                   85306:   if test "$ext_builddir" = "."; then
                   85307:     PHP_PECL_EXTENSION=session
                   85308: 
                   85309:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   85310: 
                   85311:   fi
                   85312: 
                   85313: 
                   85314:   am_i_shared=$PHP_SESSION_SHARED
                   85315:   is_it_shared=$PHP_HASH_SHARED
                   85316:   is_it_enabled=$PHP_HASH
                   85317:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   85318:     as_fn_error $? "
                   85319: You've configured extension session to build statically, but it
                   85320: depends on extension hash, which you've configured to build shared.
                   85321: You either need to build session shared or build hash statically for the
                   85322: build to be successful.
                   85323: " "$LINENO" 5
                   85324:   fi
                   85325: 
                   85326: 
                   85327:   am_i_shared=$PHP_SESSION_SHARED
                   85328:   is_it_shared=$PHP_SPL_SHARED
                   85329:   is_it_enabled=$PHP_SPL
                   85330:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   85331:     as_fn_error $? "
                   85332: You've configured extension session to build statically, but it
                   85333: depends on extension spl, which you've configured to build shared.
                   85334: You either need to build session shared or build spl statically for the
                   85335: build to be successful.
                   85336: " "$LINENO" 5
                   85337:   fi
                   85338: 
                   85339: 
                   85340:   PHP_VAR_SUBST="$PHP_VAR_SUBST SESSION_SHARED_LIBADD"
                   85341: 
                   85342: 
                   85343: 
                   85344:     header_path=ext/session
                   85345:     for header_file in php_session.h mod_files.h mod_user.h; do
                   85346:       hp_hf="$header_path/$header_file"
                   85347: 
                   85348: 
                   85349:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
                   85350: 
                   85351:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   85352:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   85353:     eval "INSTALLHEADERS$unique=set"
                   85354: 
                   85355:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
                   85356: 
                   85357:   fi
                   85358: 
                   85359:     done
                   85360: 
                   85361: 
                   85362: 
                   85363: $as_echo "#define HAVE_PHP_SESSION 1" >>confdefs.h
                   85364: 
                   85365: fi
                   85366: 
                   85367: if test "$PHP_MM" != "no"; then
                   85368:   for i in $PHP_MM /usr/local /usr; do
                   85369:     test -f "$i/include/mm.h" && MM_DIR=$i && break
                   85370:   done
                   85371: 
                   85372:   if test -z "$MM_DIR" ; then
                   85373:     as_fn_error $? "cannot find mm library" "$LINENO" 5
                   85374:   fi
                   85375: 
                   85376: 
                   85377: 
                   85378:   if test "$ext_shared" = "yes"; then
                   85379:     SESSION_SHARED_LIBADD="-lmm $SESSION_SHARED_LIBADD"
                   85380:     if test -n "$MM_DIR/$PHP_LIBDIR"; then
                   85381: 
                   85382:   if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   85383: 
                   85384:   if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   85385:     ai_p=$MM_DIR/$PHP_LIBDIR
                   85386:   else
                   85387: 
                   85388:     ep_dir="`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   85389: 
                   85390:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   85391:     ai_p="$ep_realdir/`basename \"$MM_DIR/$PHP_LIBDIR\"`"
                   85392:   fi
                   85393: 
                   85394: 
                   85395:       if test "$ext_shared" = "yes"; then
                   85396:         SESSION_SHARED_LIBADD="-L$ai_p $SESSION_SHARED_LIBADD"
                   85397:         test -n "$ld_runpath_switch" && SESSION_SHARED_LIBADD="$ld_runpath_switch$ai_p $SESSION_SHARED_LIBADD"
                   85398:       else
                   85399: 
                   85400: 
                   85401: 
                   85402:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   85403: 
                   85404:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   85405:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   85406:     eval "LIBPATH$unique=set"
                   85407: 
                   85408:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   85409:     LDFLAGS="$LDFLAGS -L$ai_p"
                   85410:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   85411: 
                   85412:   fi
                   85413: 
                   85414: 
                   85415:       fi
                   85416: 
                   85417:   fi
                   85418: 
                   85419:     fi
                   85420:   else
                   85421: 
                   85422: 
                   85423:   if test -n "$MM_DIR/$PHP_LIBDIR"; then
                   85424: 
                   85425:   if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   85426: 
                   85427:   if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   85428:     ai_p=$MM_DIR/$PHP_LIBDIR
                   85429:   else
                   85430: 
                   85431:     ep_dir="`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   85432: 
                   85433:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   85434:     ai_p="$ep_realdir/`basename \"$MM_DIR/$PHP_LIBDIR\"`"
                   85435:   fi
                   85436: 
                   85437: 
                   85438: 
                   85439: 
                   85440: 
                   85441:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   85442: 
                   85443:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   85444:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   85445:     eval "LIBPATH$unique=set"
                   85446: 
                   85447:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   85448:     LDFLAGS="$LDFLAGS -L$ai_p"
                   85449:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   85450: 
                   85451:   fi
                   85452: 
                   85453: 
                   85454: 
                   85455:   fi
                   85456: 
                   85457:   fi
                   85458: 
                   85459: 
                   85460:   case mm in
                   85461:   c|c_r|pthread*) ;;
                   85462:   *)
                   85463:       LIBS="-lmm $LIBS"
                   85464:    ;;
                   85465:   esac
                   85466: 
                   85467: 
                   85468: 
                   85469: 
                   85470:   fi
                   85471: 
                   85472: 
                   85473: 
                   85474:   if test "$MM_DIR/include" != "/usr/include"; then
                   85475: 
                   85476:   if test -z "$MM_DIR/include" || echo "$MM_DIR/include" | grep '^/' >/dev/null ; then
                   85477:     ai_p=$MM_DIR/include
                   85478:   else
                   85479: 
                   85480:     ep_dir="`echo $MM_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   85481: 
                   85482:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   85483:     ai_p="$ep_realdir/`basename \"$MM_DIR/include\"`"
                   85484:   fi
                   85485: 
                   85486: 
                   85487: 
                   85488:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   85489: 
                   85490:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   85491:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   85492:     eval "INCLUDEPATH$unique=set"
                   85493: 
                   85494:       if test ""; then
                   85495:         INCLUDES="-I$ai_p $INCLUDES"
                   85496:       else
                   85497:         INCLUDES="$INCLUDES -I$ai_p"
                   85498:       fi
                   85499: 
                   85500:   fi
                   85501: 
                   85502:   fi
                   85503: 
                   85504: 
                   85505: 
                   85506:     for header_file in ext/session/mod_mm.h; do
                   85507: 
                   85508: 
                   85509:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
                   85510: 
                   85511:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   85512:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   85513:     eval "INSTALLHEADERS$unique=set"
                   85514: 
                   85515:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
                   85516: 
                   85517:   fi
                   85518: 
                   85519:     done
                   85520: 
                   85521: 
                   85522: 
                   85523: $as_echo "#define HAVE_LIBMM 1" >>confdefs.h
                   85524: 
                   85525: fi
                   85526: 
                   85527: 
                   85528: php_enable_shmop=no
                   85529: 
                   85530: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable shmop support" >&5
                   85531: $as_echo_n "checking whether to enable shmop support... " >&6; }
                   85532: # Check whether --enable-shmop was given.
                   85533: if test "${enable_shmop+set}" = set; then :
                   85534:   enableval=$enable_shmop; PHP_SHMOP=$enableval
                   85535: else
                   85536: 
                   85537:   PHP_SHMOP=no
                   85538:   test "$PHP_ENABLE_ALL" && PHP_SHMOP=$PHP_ENABLE_ALL
                   85539: 
                   85540: fi
                   85541: 
                   85542: 
                   85543: 
                   85544: ext_output="yes, shared"
                   85545: ext_shared=yes
                   85546: case $PHP_SHMOP in
                   85547: shared,*)
                   85548:   PHP_SHMOP=`echo "$PHP_SHMOP"|$SED 's/^shared,//'`
                   85549:   ;;
                   85550: shared)
                   85551:   PHP_SHMOP=yes
                   85552:   ;;
                   85553: no)
                   85554:   ext_output=no
                   85555:   ext_shared=no
                   85556:   ;;
                   85557: *)
                   85558:   ext_output=yes
                   85559:   ext_shared=no
                   85560:   ;;
                   85561: esac
                   85562: 
                   85563: 
                   85564: 
                   85565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   85566: $as_echo "$ext_output" >&6; }
                   85567: 
                   85568: 
                   85569: 
                   85570: 
                   85571: if test "$PHP_SHMOP" != "no"; then
                   85572: 
                   85573: $as_echo "#define HAVE_SHMOP 1" >>confdefs.h
                   85574: 
                   85575: 
                   85576:   ext_builddir=ext/shmop
                   85577:   ext_srcdir=$abs_srcdir/ext/shmop
                   85578: 
                   85579:   ac_extra=
                   85580: 
                   85581:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   85582:     PHP_SHMOP_SHARED=no
                   85583: 
                   85584: 
                   85585:   case ext/shmop in
                   85586:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   85587:   /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   85588:   *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   85589:   esac
                   85590: 
                   85591: 
                   85592: 
                   85593:   b_c_pre=$php_c_pre
                   85594:   b_cxx_pre=$php_cxx_pre
                   85595:   b_c_meta=$php_c_meta
                   85596:   b_cxx_meta=$php_cxx_meta
                   85597:   b_c_post=$php_c_post
                   85598:   b_cxx_post=$php_cxx_post
                   85599:   b_lo=$php_lo
                   85600: 
                   85601: 
                   85602:   old_IFS=$IFS
                   85603:   for ac_src in shmop.c; do
                   85604: 
                   85605:       IFS=.
                   85606:       set $ac_src
                   85607:       ac_obj=$1
                   85608:       IFS=$old_IFS
                   85609: 
                   85610:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   85611: 
                   85612:       case $ac_src in
                   85613:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85614:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85615:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85616:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   85617:       esac
                   85618: 
                   85619:     cat >>Makefile.objects<<EOF
                   85620: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   85621:        $ac_comp
                   85622: EOF
                   85623:   done
                   85624: 
                   85625: 
                   85626:     EXT_STATIC="$EXT_STATIC shmop"
                   85627:     if test "$ext_shared" != "nocli"; then
                   85628:       EXT_CLI_STATIC="$EXT_CLI_STATIC shmop"
                   85629:     fi
                   85630:   else
                   85631:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   85632:       PHP_SHMOP_SHARED=yes
                   85633: 
                   85634:   case ext/shmop in
                   85635:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   85636:   /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   85637:   *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   85638:   esac
                   85639: 
                   85640: 
                   85641: 
                   85642:   b_c_pre=$shared_c_pre
                   85643:   b_cxx_pre=$shared_cxx_pre
                   85644:   b_c_meta=$shared_c_meta
                   85645:   b_cxx_meta=$shared_cxx_meta
                   85646:   b_c_post=$shared_c_post
                   85647:   b_cxx_post=$shared_cxx_post
                   85648:   b_lo=$shared_lo
                   85649: 
                   85650: 
                   85651:   old_IFS=$IFS
                   85652:   for ac_src in shmop.c; do
                   85653: 
                   85654:       IFS=.
                   85655:       set $ac_src
                   85656:       ac_obj=$1
                   85657:       IFS=$old_IFS
                   85658: 
                   85659:       shared_objects_shmop="$shared_objects_shmop $ac_bdir$ac_obj.lo"
                   85660: 
                   85661:       case $ac_src in
                   85662:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85663:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85664:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85665:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   85666:       esac
                   85667: 
                   85668:     cat >>Makefile.objects<<EOF
                   85669: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   85670:        $ac_comp
                   85671: EOF
                   85672:   done
                   85673: 
                   85674:       case $host_alias in
                   85675:         *netware*)
                   85676: 
                   85677:   install_modules="install-modules"
                   85678: 
                   85679:   case $host_alias in
                   85680:     *aix*)
                   85681:       suffix=so
                   85682:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpshmop.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) $(PHPSHMOP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpshmop.so '$ext_builddir'/phpshmop.so'
                   85683:       ;;
                   85684:     *netware*)
                   85685:       suffix=nlm
                   85686:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) -L$(top_builddir)/netware -lphp5lib $(SHMOP_SHARED_LIBADD)'
                   85687:       ;;
                   85688:     *)
                   85689:       suffix=la
                   85690:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) $(PHPSHMOP_SHARED_LIBADD)'
                   85691:       ;;
                   85692:   esac
                   85693: 
                   85694:   if test "x" = "xyes"; then
                   85695:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpshmop.$suffix"
                   85696:   else
                   85697:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpshmop.$suffix"
                   85698:   fi
                   85699: 
                   85700:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_shmop"
                   85701: 
                   85702:   cat >>Makefile.objects<<EOF
                   85703: \$(phplibdir)/phpshmop.$suffix: $ext_builddir/phpshmop.$suffix
                   85704:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpshmop.$suffix \$(phplibdir)
                   85705: 
                   85706: $ext_builddir/phpshmop.$suffix: \$(shared_objects_shmop) \$(PHPSHMOP_SHARED_DEPENDENCIES)
                   85707:        $link_cmd
                   85708: 
                   85709: EOF
                   85710: 
                   85711:           ;;
                   85712:         *)
                   85713: 
                   85714:   install_modules="install-modules"
                   85715: 
                   85716:   case $host_alias in
                   85717:     *aix*)
                   85718:       suffix=so
                   85719:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/shmop.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) $(SHMOP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/shmop.so '$ext_builddir'/shmop.so'
                   85720:       ;;
                   85721:     *netware*)
                   85722:       suffix=nlm
                   85723:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) -L$(top_builddir)/netware -lphp5lib $(OP_SHARED_LIBADD)'
                   85724:       ;;
                   85725:     *)
                   85726:       suffix=la
                   85727:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) $(SHMOP_SHARED_LIBADD)'
                   85728:       ;;
                   85729:   esac
                   85730: 
                   85731:   if test "x" = "xyes"; then
                   85732:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/shmop.$suffix"
                   85733:   else
                   85734:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/shmop.$suffix"
                   85735:   fi
                   85736: 
                   85737:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_shmop"
                   85738: 
                   85739:   cat >>Makefile.objects<<EOF
                   85740: \$(phplibdir)/shmop.$suffix: $ext_builddir/shmop.$suffix
                   85741:        \$(LIBTOOL) --mode=install cp $ext_builddir/shmop.$suffix \$(phplibdir)
                   85742: 
                   85743: $ext_builddir/shmop.$suffix: \$(shared_objects_shmop) \$(SHMOP_SHARED_DEPENDENCIES)
                   85744:        $link_cmd
                   85745: 
                   85746: EOF
                   85747: 
                   85748:           ;;
                   85749:       esac
                   85750: 
                   85751: cat >>confdefs.h <<_ACEOF
                   85752: #define COMPILE_DL_SHMOP 1
                   85753: _ACEOF
                   85754: 
                   85755:     fi
                   85756:   fi
                   85757: 
                   85758:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   85759:     PHP_SHMOP_SHARED=no
                   85760: 
                   85761: 
                   85762:   case ext/shmop in
                   85763:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   85764:   /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   85765:   *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   85766:   esac
                   85767: 
                   85768: 
                   85769: 
                   85770:   b_c_pre=$php_c_pre
                   85771:   b_cxx_pre=$php_cxx_pre
                   85772:   b_c_meta=$php_c_meta
                   85773:   b_cxx_meta=$php_cxx_meta
                   85774:   b_c_post=$php_c_post
                   85775:   b_cxx_post=$php_cxx_post
                   85776:   b_lo=$php_lo
                   85777: 
                   85778: 
                   85779:   old_IFS=$IFS
                   85780:   for ac_src in shmop.c; do
                   85781: 
                   85782:       IFS=.
                   85783:       set $ac_src
                   85784:       ac_obj=$1
                   85785:       IFS=$old_IFS
                   85786: 
1.1.1.2 ! misho    85787:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    85788: 
                   85789:       case $ac_src in
                   85790:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85791:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85792:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85793:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   85794:       esac
                   85795: 
                   85796:     cat >>Makefile.objects<<EOF
                   85797: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   85798:        $ac_comp
                   85799: EOF
                   85800:   done
                   85801: 
                   85802: 
                   85803: 
                   85804: 
                   85805:   case ext/shmop in
                   85806:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   85807:   /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   85808:   *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   85809:   esac
                   85810: 
                   85811: 
                   85812: 
                   85813:   b_c_pre=$php_c_pre
                   85814:   b_cxx_pre=$php_cxx_pre
                   85815:   b_c_meta=$php_c_meta
                   85816:   b_cxx_meta=$php_cxx_meta
                   85817:   b_c_post=$php_c_post
                   85818:   b_cxx_post=$php_cxx_post
                   85819:   b_lo=$php_lo
                   85820: 
                   85821: 
                   85822:   old_IFS=$IFS
                   85823:   for ac_src in shmop.c; do
                   85824: 
                   85825:       IFS=.
                   85826:       set $ac_src
                   85827:       ac_obj=$1
                   85828:       IFS=$old_IFS
                   85829: 
1.1.1.2 ! misho    85830:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    85831: 
                   85832:       case $ac_src in
                   85833:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85834:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85835:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85836:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   85837:       esac
                   85838: 
                   85839:     cat >>Makefile.objects<<EOF
                   85840: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   85841:        $ac_comp
                   85842: EOF
                   85843:   done
                   85844: 
                   85845: 
                   85846: 
                   85847: 
                   85848:   case ext/shmop in
                   85849:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   85850:   /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   85851:   *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   85852:   esac
                   85853: 
                   85854: 
                   85855: 
                   85856:   b_c_pre=$php_c_pre
                   85857:   b_cxx_pre=$php_cxx_pre
                   85858:   b_c_meta=$php_c_meta
                   85859:   b_cxx_meta=$php_cxx_meta
                   85860:   b_c_post=$php_c_post
                   85861:   b_cxx_post=$php_cxx_post
                   85862:   b_lo=$php_lo
                   85863: 
                   85864: 
                   85865:   old_IFS=$IFS
                   85866:   for ac_src in shmop.c; do
                   85867: 
                   85868:       IFS=.
                   85869:       set $ac_src
                   85870:       ac_obj=$1
                   85871:       IFS=$old_IFS
                   85872: 
1.1.1.2 ! misho    85873:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    85874: 
                   85875:       case $ac_src in
                   85876:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85877:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85878:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   85879:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   85880:       esac
                   85881: 
                   85882:     cat >>Makefile.objects<<EOF
                   85883: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   85884:        $ac_comp
                   85885: EOF
                   85886:   done
                   85887: 
                   85888: 
                   85889:     EXT_CLI_STATIC="$EXT_CLI_STATIC shmop"
                   85890:   fi
                   85891: 
                   85892: 
                   85893:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   85894: 
                   85895: 
                   85896: 
                   85897:   if test "$ext_builddir" = "."; then
                   85898:     PHP_PECL_EXTENSION=shmop
                   85899: 
                   85900:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   85901: 
                   85902:   fi
                   85903: 
                   85904: fi
                   85905: 
                   85906: 
                   85907: 
                   85908: php_enable_simplexml=yes
                   85909: 
                   85910: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SimpleXML support" >&5
                   85911: $as_echo_n "checking whether to enable SimpleXML support... " >&6; }
                   85912: # Check whether --enable-simplexml was given.
                   85913: if test "${enable_simplexml+set}" = set; then :
                   85914:   enableval=$enable_simplexml; PHP_SIMPLEXML=$enableval
                   85915: else
                   85916: 
                   85917:   PHP_SIMPLEXML=yes
                   85918:   test "$PHP_ENABLE_ALL" && PHP_SIMPLEXML=$PHP_ENABLE_ALL
                   85919: 
                   85920: fi
                   85921: 
                   85922: 
                   85923: 
                   85924: ext_output="yes, shared"
                   85925: ext_shared=yes
                   85926: case $PHP_SIMPLEXML in
                   85927: shared,*)
                   85928:   PHP_SIMPLEXML=`echo "$PHP_SIMPLEXML"|$SED 's/^shared,//'`
                   85929:   ;;
                   85930: shared)
                   85931:   PHP_SIMPLEXML=yes
                   85932:   ;;
                   85933: no)
                   85934:   ext_output=no
                   85935:   ext_shared=no
                   85936:   ;;
                   85937: *)
                   85938:   ext_output=yes
                   85939:   ext_shared=no
                   85940:   ;;
                   85941: esac
                   85942: 
                   85943: 
                   85944: 
                   85945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   85946: $as_echo "$ext_output" >&6; }
                   85947: 
                   85948: 
                   85949: 
                   85950: 
                   85951: if test -z "$PHP_LIBXML_DIR"; then
                   85952: 
                   85953: php_with_libxml_dir=no
                   85954: 
                   85955: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
                   85956: $as_echo_n "checking libxml2 install dir... " >&6; }
                   85957: 
                   85958: # Check whether --with-libxml-dir was given.
                   85959: if test "${with_libxml_dir+set}" = set; then :
                   85960:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
                   85961: else
                   85962: 
                   85963:   PHP_LIBXML_DIR=no
                   85964: 
                   85965: 
                   85966: fi
                   85967: 
                   85968: 
                   85969: ext_output=$PHP_LIBXML_DIR
                   85970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   85971: $as_echo "$ext_output" >&6; }
                   85972: 
                   85973: 
                   85974: 
                   85975: fi
                   85976: 
                   85977: if test "$PHP_SIMPLEXML" != "no"; then
                   85978: 
                   85979:   if test "$PHP_LIBXML" = "no"; then
                   85980:     as_fn_error $? "SimpleXML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
                   85981:   fi
                   85982: 
                   85983: 
                   85984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
                   85985: $as_echo_n "checking for xml2-config path... " >&6; }
                   85986: if ${ac_cv_php_xml2_config_path+:} false; then :
                   85987:   $as_echo_n "(cached) " >&6
                   85988: else
                   85989: 
                   85990:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
                   85991:     if test -x "$i/bin/xml2-config"; then
                   85992:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
                   85993:       break
                   85994:     fi
                   85995:   done
                   85996: 
                   85997: fi
                   85998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
                   85999: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
                   86000: 
                   86001:   if test -x "$ac_cv_php_xml2_config_path"; then
                   86002:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
                   86003:     libxml_full_version=`$XML2_CONFIG --version`
                   86004:     ac_IFS=$IFS
                   86005:     IFS="."
                   86006:     set $libxml_full_version
                   86007:     IFS=$ac_IFS
                   86008:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
                   86009:     if test "$LIBXML_VERSION" -ge "2006011"; then
                   86010:       LIBXML_LIBS=`$XML2_CONFIG --libs`
                   86011:       LIBXML_INCS=`$XML2_CONFIG --cflags`
                   86012: 
                   86013:   for ac_i in $LIBXML_LIBS; do
                   86014:     case $ac_i in
                   86015:     -pthread)
                   86016:       if test "$ext_shared" = "yes"; then
                   86017:         SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -pthread"
                   86018:       else
                   86019: 
                   86020: 
                   86021:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   86022: 
                   86023:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   86024:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   86025:     eval "EXTRA_LDFLAGS$unique=set"
                   86026:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   86027:   fi
                   86028: 
                   86029:       fi
                   86030:     ;;
                   86031:     -l*)
                   86032:       ac_ii=`echo $ac_i|cut -c 3-`
                   86033: 
                   86034: 
                   86035:   case $ac_ii in
                   86036:   c|c_r|pthread*) ;;
                   86037:   *)
                   86038:     if test "$ext_shared" = "yes"; then
                   86039:         SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -l$ac_ii"
                   86040:     else
                   86041: 
                   86042: 
                   86043:   case $ac_ii in
                   86044:   c|c_r|pthread*) ;;
                   86045:   *)
                   86046:       LIBS="$LIBS -l$ac_ii"
                   86047:    ;;
                   86048:   esac
                   86049: 
                   86050: 
                   86051:     fi
                   86052:    ;;
                   86053:   esac
                   86054: 
                   86055: 
                   86056:     ;;
                   86057:     -L*)
                   86058:       ac_ii=`echo $ac_i|cut -c 3-`
                   86059: 
                   86060:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   86061: 
                   86062:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   86063:     ai_p=$ac_ii
                   86064:   else
                   86065: 
                   86066:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   86067: 
                   86068:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   86069:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   86070:   fi
                   86071: 
                   86072: 
                   86073:       if test "$ext_shared" = "yes"; then
                   86074:         SIMPLEXML_SHARED_LIBADD="-L$ai_p $SIMPLEXML_SHARED_LIBADD"
                   86075:         test -n "$ld_runpath_switch" && SIMPLEXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $SIMPLEXML_SHARED_LIBADD"
                   86076:       else
                   86077: 
                   86078: 
                   86079: 
                   86080:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   86081: 
                   86082:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   86083:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   86084:     eval "LIBPATH$unique=set"
                   86085: 
                   86086:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   86087:     LDFLAGS="$LDFLAGS -L$ai_p"
                   86088:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   86089: 
                   86090:   fi
                   86091: 
                   86092: 
                   86093:       fi
                   86094: 
                   86095:   fi
                   86096: 
                   86097:     ;;
                   86098:     esac
                   86099:   done
                   86100: 
                   86101: 
                   86102:   for ac_i in $LIBXML_INCS; do
                   86103:     case $ac_i in
                   86104:     -I*)
                   86105:       ac_ii=`echo $ac_i|cut -c 3-`
                   86106: 
                   86107:   if test "$ac_ii" != "/usr/include"; then
                   86108: 
                   86109:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   86110:     ai_p=$ac_ii
                   86111:   else
                   86112: 
                   86113:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   86114: 
                   86115:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   86116:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   86117:   fi
                   86118: 
                   86119: 
                   86120: 
                   86121:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   86122: 
                   86123:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   86124:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   86125:     eval "INCLUDEPATH$unique=set"
                   86126: 
                   86127:       if test ""; then
                   86128:         INCLUDES="-I$ai_p $INCLUDES"
                   86129:       else
                   86130:         INCLUDES="$INCLUDES -I$ai_p"
                   86131:       fi
                   86132: 
                   86133:   fi
                   86134: 
                   86135:   fi
                   86136: 
                   86137:     ;;
                   86138:     esac
                   86139:   done
                   86140: 
                   86141: 
                   86142:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
                   86143: $as_echo_n "checking whether libxml build works... " >&6; }
                   86144: if ${php_cv_libxml_build_works+:} false; then :
                   86145:   $as_echo_n "(cached) " >&6
                   86146: else
                   86147: 
                   86148: 
                   86149:   old_LIBS=$LIBS
                   86150:   LIBS="
                   86151:           $SIMPLEXML_SHARED_LIBADD
                   86152:          $LIBS"
                   86153:   if test "$cross_compiling" = yes; then :
                   86154: 
                   86155:     LIBS=$old_LIBS
                   86156: 
                   86157: else
                   86158:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   86159: /* end confdefs.h.  */
                   86160: 
                   86161: 
                   86162:     char xmlInitParser();
                   86163:     int main() {
                   86164:       xmlInitParser();
                   86165:       return 0;
                   86166:     }
                   86167: 
                   86168: _ACEOF
                   86169: if ac_fn_c_try_run "$LINENO"; then :
                   86170: 
                   86171:     LIBS=$old_LIBS
                   86172: 
                   86173:           php_cv_libxml_build_works=yes
                   86174: 
                   86175: 
                   86176: else
                   86177: 
                   86178:     LIBS=$old_LIBS
                   86179: 
                   86180:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   86181: $as_echo "no" >&6; }
                   86182:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
                   86183: 
                   86184: 
                   86185: fi
                   86186: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   86187:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   86188: fi
                   86189: 
                   86190: 
                   86191: 
                   86192: fi
                   86193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
                   86194: $as_echo "$php_cv_libxml_build_works" >&6; }
                   86195:       if test "$php_cv_libxml_build_works" = "yes"; then
                   86196: 
                   86197: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
                   86198: 
                   86199:       fi
                   86200: 
                   86201: 
                   86202: $as_echo "#define HAVE_SIMPLEXML 1" >>confdefs.h
                   86203: 
                   86204: 
                   86205:   ext_builddir=ext/simplexml
                   86206:   ext_srcdir=$abs_srcdir/ext/simplexml
                   86207: 
                   86208:   ac_extra=
                   86209: 
                   86210:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   86211:     PHP_SIMPLEXML_SHARED=no
                   86212: 
                   86213: 
                   86214:   case ext/simplexml in
                   86215:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   86216:   /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   86217:   *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   86218:   esac
                   86219: 
                   86220: 
                   86221: 
                   86222:   b_c_pre=$php_c_pre
                   86223:   b_cxx_pre=$php_cxx_pre
                   86224:   b_c_meta=$php_c_meta
                   86225:   b_cxx_meta=$php_cxx_meta
                   86226:   b_c_post=$php_c_post
                   86227:   b_cxx_post=$php_cxx_post
                   86228:   b_lo=$php_lo
                   86229: 
                   86230: 
                   86231:   old_IFS=$IFS
                   86232:   for ac_src in simplexml.c sxe.c; do
                   86233: 
                   86234:       IFS=.
                   86235:       set $ac_src
                   86236:       ac_obj=$1
                   86237:       IFS=$old_IFS
                   86238: 
                   86239:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   86240: 
                   86241:       case $ac_src in
                   86242:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   86243:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   86244:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   86245:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   86246:       esac
                   86247: 
                   86248:     cat >>Makefile.objects<<EOF
                   86249: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   86250:        $ac_comp
                   86251: EOF
                   86252:   done
                   86253: 
                   86254: 
                   86255:     EXT_STATIC="$EXT_STATIC simplexml"
                   86256:     if test "$ext_shared" != "nocli"; then
                   86257:       EXT_CLI_STATIC="$EXT_CLI_STATIC simplexml"
                   86258:     fi
                   86259:   else
                   86260:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   86261:       PHP_SIMPLEXML_SHARED=yes
                   86262: 
                   86263:   case ext/simplexml in
                   86264:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   86265:   /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   86266:   *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   86267:   esac
                   86268: 
                   86269: 
                   86270: 
                   86271:   b_c_pre=$shared_c_pre
                   86272:   b_cxx_pre=$shared_cxx_pre
                   86273:   b_c_meta=$shared_c_meta
                   86274:   b_cxx_meta=$shared_cxx_meta
                   86275:   b_c_post=$shared_c_post
                   86276:   b_cxx_post=$shared_cxx_post
                   86277:   b_lo=$shared_lo
                   86278: 
                   86279: 
                   86280:   old_IFS=$IFS
                   86281:   for ac_src in simplexml.c sxe.c; do
                   86282: 
                   86283:       IFS=.
                   86284:       set $ac_src
                   86285:       ac_obj=$1
                   86286:       IFS=$old_IFS
                   86287: 
                   86288:       shared_objects_simplexml="$shared_objects_simplexml $ac_bdir$ac_obj.lo"
                   86289: 
                   86290:       case $ac_src in
                   86291:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   86292:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   86293:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   86294:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   86295:       esac
                   86296: 
                   86297:     cat >>Makefile.objects<<EOF
                   86298: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   86299:        $ac_comp
                   86300: EOF
                   86301:   done
                   86302: 
                   86303:       case $host_alias in
                   86304:         *netware*)
                   86305: 
                   86306:   install_modules="install-modules"
                   86307: 
                   86308:   case $host_alias in
                   86309:     *aix*)
                   86310:       suffix=so
                   86311:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsimplexml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) $(PHPSIMPLEXML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsimplexml.so '$ext_builddir'/phpsimplexml.so'
                   86312:       ;;
                   86313:     *netware*)
                   86314:       suffix=nlm
                   86315:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) -L$(top_builddir)/netware -lphp5lib $(SIMPLEXML_SHARED_LIBADD)'
                   86316:       ;;
                   86317:     *)
                   86318:       suffix=la
                   86319:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) $(PHPSIMPLEXML_SHARED_LIBADD)'
                   86320:       ;;
                   86321:   esac
                   86322: 
                   86323:   if test "x" = "xyes"; then
                   86324:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsimplexml.$suffix"
                   86325:   else
                   86326:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsimplexml.$suffix"
                   86327:   fi
                   86328: 
                   86329:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_simplexml"
                   86330: 
                   86331:   cat >>Makefile.objects<<EOF
                   86332: \$(phplibdir)/phpsimplexml.$suffix: $ext_builddir/phpsimplexml.$suffix
                   86333:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsimplexml.$suffix \$(phplibdir)
                   86334: 
                   86335: $ext_builddir/phpsimplexml.$suffix: \$(shared_objects_simplexml) \$(PHPSIMPLEXML_SHARED_DEPENDENCIES)
                   86336:        $link_cmd
                   86337: 
                   86338: EOF
                   86339: 
                   86340:           ;;
                   86341:         *)
                   86342: 
                   86343:   install_modules="install-modules"
                   86344: 
                   86345:   case $host_alias in
                   86346:     *aix*)
                   86347:       suffix=so
                   86348:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/simplexml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) $(SIMPLEXML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/simplexml.so '$ext_builddir'/simplexml.so'
                   86349:       ;;
                   86350:     *netware*)
                   86351:       suffix=nlm
                   86352:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) -L$(top_builddir)/netware -lphp5lib $(PLEXML_SHARED_LIBADD)'
                   86353:       ;;
                   86354:     *)
                   86355:       suffix=la
                   86356:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) $(SIMPLEXML_SHARED_LIBADD)'
                   86357:       ;;
                   86358:   esac
                   86359: 
                   86360:   if test "x" = "xyes"; then
                   86361:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/simplexml.$suffix"
                   86362:   else
                   86363:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/simplexml.$suffix"
                   86364:   fi
                   86365: 
                   86366:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_simplexml"
                   86367: 
                   86368:   cat >>Makefile.objects<<EOF
                   86369: \$(phplibdir)/simplexml.$suffix: $ext_builddir/simplexml.$suffix
                   86370:        \$(LIBTOOL) --mode=install cp $ext_builddir/simplexml.$suffix \$(phplibdir)
                   86371: 
                   86372: $ext_builddir/simplexml.$suffix: \$(shared_objects_simplexml) \$(SIMPLEXML_SHARED_DEPENDENCIES)
                   86373:        $link_cmd
                   86374: 
                   86375: EOF
                   86376: 
                   86377:           ;;
                   86378:       esac
                   86379: 
                   86380: cat >>confdefs.h <<_ACEOF
                   86381: #define COMPILE_DL_SIMPLEXML 1
                   86382: _ACEOF
                   86383: 
                   86384:     fi
                   86385:   fi
                   86386: 
                   86387:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   86388:     PHP_SIMPLEXML_SHARED=no
                   86389: 
                   86390: 
                   86391:   case ext/simplexml in
                   86392:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   86393:   /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   86394:   *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   86395:   esac
                   86396: 
                   86397: 
                   86398: 
                   86399:   b_c_pre=$php_c_pre
                   86400:   b_cxx_pre=$php_cxx_pre
                   86401:   b_c_meta=$php_c_meta
                   86402:   b_cxx_meta=$php_cxx_meta
                   86403:   b_c_post=$php_c_post
                   86404:   b_cxx_post=$php_cxx_post
                   86405:   b_lo=$php_lo
                   86406: 
                   86407: 
                   86408:   old_IFS=$IFS
                   86409:   for ac_src in simplexml.c sxe.c; do
                   86410: 
                   86411:       IFS=.
                   86412:       set $ac_src
                   86413:       ac_obj=$1
                   86414:       IFS=$old_IFS
                   86415: 
1.1.1.2 ! misho    86416:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    86417: 
                   86418:       case $ac_src in
                   86419:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   86420:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   86421:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   86422:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   86423:       esac
                   86424: 
                   86425:     cat >>Makefile.objects<<EOF
                   86426: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   86427:        $ac_comp
                   86428: EOF
                   86429:   done
                   86430: 
                   86431: 
                   86432: 
                   86433: 
                   86434:   case ext/simplexml in
                   86435:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   86436:   /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   86437:   *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   86438:   esac
                   86439: 
                   86440: 
                   86441: 
                   86442:   b_c_pre=$php_c_pre
                   86443:   b_cxx_pre=$php_cxx_pre
                   86444:   b_c_meta=$php_c_meta
                   86445:   b_cxx_meta=$php_cxx_meta
                   86446:   b_c_post=$php_c_post
                   86447:   b_cxx_post=$php_cxx_post
                   86448:   b_lo=$php_lo
                   86449: 
                   86450: 
                   86451:   old_IFS=$IFS
                   86452:   for ac_src in simplexml.c sxe.c; do
                   86453: 
                   86454:       IFS=.
                   86455:       set $ac_src
                   86456:       ac_obj=$1
                   86457:       IFS=$old_IFS
                   86458: 
1.1.1.2 ! misho    86459:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    86460: 
                   86461:       case $ac_src in
                   86462:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   86463:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   86464:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   86465:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   86466:       esac
                   86467: 
                   86468:     cat >>Makefile.objects<<EOF
                   86469: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   86470:        $ac_comp
                   86471: EOF
                   86472:   done
                   86473: 
                   86474: 
                   86475: 
                   86476: 
                   86477:   case ext/simplexml in
                   86478:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   86479:   /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   86480:   *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   86481:   esac
                   86482: 
                   86483: 
                   86484: 
                   86485:   b_c_pre=$php_c_pre
                   86486:   b_cxx_pre=$php_cxx_pre
                   86487:   b_c_meta=$php_c_meta
                   86488:   b_cxx_meta=$php_cxx_meta
                   86489:   b_c_post=$php_c_post
                   86490:   b_cxx_post=$php_cxx_post
                   86491:   b_lo=$php_lo
                   86492: 
                   86493: 
                   86494:   old_IFS=$IFS
                   86495:   for ac_src in simplexml.c sxe.c; do
                   86496: 
                   86497:       IFS=.
                   86498:       set $ac_src
                   86499:       ac_obj=$1
                   86500:       IFS=$old_IFS
                   86501: 
1.1.1.2 ! misho    86502:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    86503: 
                   86504:       case $ac_src in
                   86505:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   86506:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   86507:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   86508:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   86509:       esac
                   86510: 
                   86511:     cat >>Makefile.objects<<EOF
                   86512: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   86513:        $ac_comp
                   86514: EOF
                   86515:   done
                   86516: 
                   86517: 
                   86518:     EXT_CLI_STATIC="$EXT_CLI_STATIC simplexml"
                   86519:   fi
                   86520: 
                   86521: 
                   86522:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   86523: 
                   86524: 
                   86525: 
                   86526:   if test "$ext_builddir" = "."; then
                   86527:     PHP_PECL_EXTENSION=simplexml
                   86528: 
                   86529:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   86530: 
                   86531:   fi
                   86532: 
                   86533: 
                   86534:   PHP_VAR_SUBST="$PHP_VAR_SUBST SIMPLEXML_SHARED_LIBADD"
                   86535: 
                   86536: 
                   86537:     else
                   86538:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
                   86539:     fi
                   86540: else
                   86541:     as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
                   86542: 
                   86543:   fi
                   86544: 
                   86545: 
                   86546:   am_i_shared=$PHP_SIMPLEXML_SHARED
                   86547:   is_it_shared=$PHP_LIBXML_SHARED
                   86548:   is_it_enabled=$PHP_LIBXML
                   86549:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   86550:     as_fn_error $? "
                   86551: You've configured extension simplexml to build statically, but it
                   86552: depends on extension libxml, which you've configured to build shared.
                   86553: You either need to build simplexml shared or build libxml statically for the
                   86554: build to be successful.
                   86555: " "$LINENO" 5
                   86556:   fi
                   86557: 
                   86558: 
                   86559:   am_i_shared=$PHP_SIMPLEXML_SHARED
                   86560:   is_it_shared=$PHP_SPL_SHARED
                   86561:   is_it_enabled=$PHP_SPL
                   86562:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   86563:     as_fn_error $? "
                   86564: You've configured extension simplexml to build statically, but it
                   86565: depends on extension spl, which you've configured to build shared.
                   86566: You either need to build simplexml shared or build spl statically for the
                   86567: build to be successful.
                   86568: " "$LINENO" 5
                   86569:   fi
                   86570: 
                   86571: fi
                   86572: 
                   86573: 
                   86574: 
                   86575: php_with_snmp=no
                   86576: 
                   86577: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNMP support" >&5
                   86578: $as_echo_n "checking for SNMP support... " >&6; }
                   86579: 
                   86580: # Check whether --with-snmp was given.
                   86581: if test "${with_snmp+set}" = set; then :
                   86582:   withval=$with_snmp; PHP_SNMP=$withval
                   86583: else
                   86584: 
                   86585:   PHP_SNMP=no
                   86586:   test "$PHP_ENABLE_ALL" && PHP_SNMP=$PHP_ENABLE_ALL
                   86587: 
                   86588: fi
                   86589: 
                   86590: 
                   86591: 
                   86592: ext_output="yes, shared"
                   86593: ext_shared=yes
                   86594: case $PHP_SNMP in
                   86595: shared,*)
                   86596:   PHP_SNMP=`echo "$PHP_SNMP"|$SED 's/^shared,//'`
                   86597:   ;;
                   86598: shared)
                   86599:   PHP_SNMP=yes
                   86600:   ;;
                   86601: no)
                   86602:   ext_output=no
                   86603:   ext_shared=no
                   86604:   ;;
                   86605: *)
                   86606:   ext_output=yes
                   86607:   ext_shared=no
                   86608:   ;;
                   86609: esac
                   86610: 
                   86611: 
                   86612: 
                   86613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   86614: $as_echo "$ext_output" >&6; }
                   86615: 
                   86616: 
                   86617: 
                   86618: 
                   86619: 
                   86620: php_with_openssl_dir=no
                   86621: 
                   86622: { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for SNMP" >&5
                   86623: $as_echo_n "checking OpenSSL dir for SNMP... " >&6; }
                   86624: 
                   86625: # Check whether --with-openssl-dir was given.
                   86626: if test "${with_openssl_dir+set}" = set; then :
                   86627:   withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval
                   86628: else
                   86629: 
                   86630:   PHP_OPENSSL_DIR=no
                   86631: 
                   86632: 
                   86633: fi
                   86634: 
                   86635: 
                   86636: ext_output=$PHP_OPENSSL_DIR
                   86637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   86638: $as_echo "$ext_output" >&6; }
                   86639: 
                   86640: 
                   86641: 
                   86642: 
                   86643: if test "$PHP_SNMP" != "no"; then
                   86644: 
1.1.1.2 ! misho    86645:   if test "$PHP_SNMP" = "yes"; then
1.1       misho    86646:     # Extract the first word of "net-snmp-config", so it can be a program name with args.
                   86647: set dummy net-snmp-config; ac_word=$2
                   86648: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   86649: $as_echo_n "checking for $ac_word... " >&6; }
                   86650: if ${ac_cv_path_SNMP_CONFIG+:} false; then :
                   86651:   $as_echo_n "(cached) " >&6
                   86652: else
                   86653:   case $SNMP_CONFIG in
                   86654:   [\\/]* | ?:[\\/]*)
                   86655:   ac_cv_path_SNMP_CONFIG="$SNMP_CONFIG" # Let the user override the test with a path.
                   86656:   ;;
                   86657:   *)
                   86658:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   86659: as_dummy="/usr/local/bin:$PATH"
                   86660: for as_dir in $as_dummy
                   86661: do
                   86662:   IFS=$as_save_IFS
                   86663:   test -z "$as_dir" && as_dir=.
                   86664:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    86665:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    86666:     ac_cv_path_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
                   86667:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   86668:     break 2
                   86669:   fi
                   86670: done
                   86671:   done
                   86672: IFS=$as_save_IFS
                   86673: 
                   86674:   ;;
                   86675: esac
                   86676: fi
                   86677: SNMP_CONFIG=$ac_cv_path_SNMP_CONFIG
                   86678: if test -n "$SNMP_CONFIG"; then
                   86679:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMP_CONFIG" >&5
                   86680: $as_echo "$SNMP_CONFIG" >&6; }
                   86681: else
                   86682:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   86683: $as_echo "no" >&6; }
                   86684: fi
                   86685: 
                   86686: 
                   86687:   else
                   86688:     SNMP_CONFIG="$PHP_SNMP/bin/net-snmp-config"
                   86689:   fi
                   86690: 
                   86691:   if test -x "$SNMP_CONFIG"; then
                   86692:     SNMP_LIBS=`$SNMP_CONFIG --netsnmp-libs`
                   86693:     SNMP_LIBS="$SNMP_LIBS `$SNMP_CONFIG --external-libs`"
                   86694:     SNMP_PREFIX=`$SNMP_CONFIG --prefix`
1.1.1.2 ! misho    86695:     snmp_full_version=`$SNMP_CONFIG --version`
        !          86696:     ac_IFS=$IFS
        !          86697:     IFS="."
        !          86698:     set $snmp_full_version
        !          86699:     IFS=$ac_IFS
        !          86700:     SNMP_VERSION=`expr $1 \* 1000 + $2`
        !          86701:     if test "$SNMP_VERSION" -ge "5003"; then
        !          86702:       if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then
1.1       misho    86703: 
                   86704:   if test "${SNMP_PREFIX}/include" != "/usr/include"; then
                   86705: 
                   86706:   if test -z "${SNMP_PREFIX}/include" || echo "${SNMP_PREFIX}/include" | grep '^/' >/dev/null ; then
                   86707:     ai_p=${SNMP_PREFIX}/include
                   86708:   else
                   86709: 
                   86710:     ep_dir="`echo $SNMP_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   86711: 
                   86712:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   86713:     ai_p="$ep_realdir/`basename \"${SNMP_PREFIX}/include\"`"
                   86714:   fi
                   86715: 
                   86716: 
                   86717: 
                   86718:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   86719: 
                   86720:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   86721:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   86722:     eval "INCLUDEPATH$unique=set"
                   86723: 
                   86724:       if test ""; then
                   86725:         INCLUDES="-I$ai_p $INCLUDES"
                   86726:       else
                   86727:         INCLUDES="$INCLUDES -I$ai_p"
                   86728:       fi
                   86729: 
                   86730:   fi
                   86731: 
                   86732:   fi
                   86733: 
                   86734: 
                   86735:   for ac_i in $SNMP_LIBS; do
                   86736:     case $ac_i in
                   86737:     -pthread)
                   86738:       if test "$ext_shared" = "yes"; then
                   86739:         SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -pthread"
                   86740:       else
                   86741: 
                   86742: 
                   86743:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   86744: 
                   86745:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   86746:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   86747:     eval "EXTRA_LDFLAGS$unique=set"
                   86748:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   86749:   fi
                   86750: 
                   86751:       fi
                   86752:     ;;
                   86753:     -l*)
                   86754:       ac_ii=`echo $ac_i|cut -c 3-`
                   86755: 
                   86756: 
                   86757:   case $ac_ii in
                   86758:   c|c_r|pthread*) ;;
                   86759:   *)
                   86760:     if test "$ext_shared" = "yes"; then
                   86761:         SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -l$ac_ii"
                   86762:     else
                   86763: 
                   86764: 
                   86765:   case $ac_ii in
                   86766:   c|c_r|pthread*) ;;
                   86767:   *)
                   86768:       LIBS="$LIBS -l$ac_ii"
                   86769:    ;;
                   86770:   esac
                   86771: 
                   86772: 
                   86773:     fi
                   86774:    ;;
                   86775:   esac
                   86776: 
                   86777: 
                   86778:     ;;
                   86779:     -L*)
                   86780:       ac_ii=`echo $ac_i|cut -c 3-`
                   86781: 
                   86782:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   86783: 
                   86784:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   86785:     ai_p=$ac_ii
                   86786:   else
                   86787: 
                   86788:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   86789: 
                   86790:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   86791:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   86792:   fi
                   86793: 
                   86794: 
                   86795:       if test "$ext_shared" = "yes"; then
                   86796:         SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD"
                   86797:         test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD"
                   86798:       else
                   86799: 
                   86800: 
                   86801: 
                   86802:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   86803: 
                   86804:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   86805:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   86806:     eval "LIBPATH$unique=set"
                   86807: 
                   86808:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   86809:     LDFLAGS="$LDFLAGS -L$ai_p"
                   86810:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   86811: 
                   86812:   fi
                   86813: 
                   86814: 
                   86815:       fi
                   86816: 
                   86817:   fi
                   86818: 
                   86819:     ;;
                   86820:     esac
                   86821:   done
                   86822: 
1.1.1.2 ! misho    86823:         SNMP_LIBNAME=netsnmp
        !          86824:       else
        !          86825:         as_fn_error $? "Could not find the required paths. Please check your net-snmp installation." "$LINENO" 5
        !          86826:       fi
1.1       misho    86827:     else
1.1.1.2 ! misho    86828:       as_fn_error $? "Net-SNMP version 5.3 or greater reqired (detected $snmp_full_version)." "$LINENO" 5
1.1       misho    86829:     fi
                   86830:   else
1.1.1.2 ! misho    86831:     as_fn_error $? "Could not find net-snmp-config binary. Please check your net-snmp installation." "$LINENO" 5
        !          86832:   fi
1.1       misho    86833: 
                   86834: 
                   86835:   save_old_LDFLAGS=$LDFLAGS
                   86836:   ac_stuff="
1.1.1.2 ! misho    86837:     $SNMP_SHARED_LIBADD
        !          86838:   "
1.1       misho    86839: 
                   86840:   save_ext_shared=$ext_shared
                   86841:   ext_shared=yes
                   86842: 
                   86843:   for ac_i in $ac_stuff; do
                   86844:     case $ac_i in
                   86845:     -pthread)
                   86846:       if test "$ext_shared" = "yes"; then
                   86847:         LDFLAGS="$LDFLAGS -pthread"
                   86848:       else
                   86849: 
                   86850: 
                   86851:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   86852: 
                   86853:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   86854:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   86855:     eval "EXTRA_LDFLAGS$unique=set"
                   86856:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   86857:   fi
                   86858: 
                   86859:       fi
                   86860:     ;;
                   86861:     -l*)
                   86862:       ac_ii=`echo $ac_i|cut -c 3-`
                   86863: 
                   86864: 
                   86865:   case $ac_ii in
                   86866:   c|c_r|pthread*) ;;
                   86867:   *)
                   86868:     if test "$ext_shared" = "yes"; then
                   86869:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   86870:     else
                   86871: 
                   86872: 
                   86873:   case $ac_ii in
                   86874:   c|c_r|pthread*) ;;
                   86875:   *)
                   86876:       LIBS="$LIBS -l$ac_ii"
                   86877:    ;;
                   86878:   esac
                   86879: 
                   86880: 
                   86881:     fi
                   86882:    ;;
                   86883:   esac
                   86884: 
                   86885: 
                   86886:     ;;
                   86887:     -L*)
                   86888:       ac_ii=`echo $ac_i|cut -c 3-`
                   86889: 
                   86890:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   86891: 
                   86892:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   86893:     ai_p=$ac_ii
                   86894:   else
                   86895: 
                   86896:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   86897: 
                   86898:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   86899:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   86900:   fi
                   86901: 
                   86902: 
                   86903:       if test "$ext_shared" = "yes"; then
                   86904:         LDFLAGS="-L$ai_p $LDFLAGS"
                   86905:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   86906:       else
                   86907: 
                   86908: 
                   86909: 
                   86910:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   86911: 
                   86912:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   86913:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   86914:     eval "LIBPATH$unique=set"
                   86915: 
                   86916:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   86917:     LDFLAGS="$LDFLAGS -L$ai_p"
                   86918:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   86919: 
                   86920:   fi
                   86921: 
                   86922: 
                   86923:       fi
                   86924: 
                   86925:   fi
                   86926: 
                   86927:     ;;
                   86928:     esac
                   86929:   done
                   86930: 
1.1.1.2 ! misho    86931:   as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_init_snmp" | $as_tr_sh`
        !          86932: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_snmp in -l$SNMP_LIBNAME" >&5
        !          86933: $as_echo_n "checking for init_snmp in -l$SNMP_LIBNAME... " >&6; }
        !          86934: if eval \${$as_ac_Lib+:} false; then :
1.1       misho    86935:   $as_echo_n "(cached) " >&6
                   86936: else
                   86937:   ac_check_lib_save_LIBS=$LIBS
1.1.1.2 ! misho    86938: LIBS="-l$SNMP_LIBNAME  $LIBS"
1.1       misho    86939: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   86940: /* end confdefs.h.  */
                   86941: 
                   86942: /* Override any GCC internal prototype to avoid an error.
                   86943:    Use char because int might match the return type of a GCC
                   86944:    builtin and then its argument prototype would still apply.  */
                   86945: #ifdef __cplusplus
                   86946: extern "C"
                   86947: #endif
1.1.1.2 ! misho    86948: char init_snmp ();
1.1       misho    86949: int
                   86950: main ()
                   86951: {
1.1.1.2 ! misho    86952: return init_snmp ();
1.1       misho    86953:   ;
                   86954:   return 0;
                   86955: }
                   86956: _ACEOF
                   86957: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2 ! misho    86958:   eval "$as_ac_Lib=yes"
1.1       misho    86959: else
1.1.1.2 ! misho    86960:   eval "$as_ac_Lib=no"
1.1       misho    86961: fi
                   86962: rm -f core conftest.err conftest.$ac_objext \
                   86963:     conftest$ac_exeext conftest.$ac_ext
                   86964: LIBS=$ac_check_lib_save_LIBS
                   86965: fi
1.1.1.2 ! misho    86966: eval ac_res=\$$as_ac_Lib
        !          86967:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
        !          86968: $as_echo "$ac_res" >&6; }
        !          86969: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
1.1       misho    86970: 
                   86971:     LDFLAGS=$save_old_LDFLAGS
                   86972:     ext_shared=$save_ext_shared
                   86973: 
                   86974: 
1.1.1.2 ! misho    86975: $as_echo "#define HAVE_SNMP 1" >>confdefs.h
1.1       misho    86976: 
                   86977: 
                   86978: 
                   86979: else
                   86980: 
                   86981:     LDFLAGS=$save_old_LDFLAGS
                   86982:     ext_shared=$save_ext_shared
1.1.1.2 ! misho    86983:     unset ac_cv_lib_$SNMP_LIBNAME_init_snmp
1.1       misho    86984: 
1.1.1.2 ! misho    86985:     as_fn_error $? "SNMP sanity check failed. Please check config.log for more information." "$LINENO" 5
1.1       misho    86986: 
                   86987: 
                   86988: fi
                   86989: 
                   86990: 
                   86991: 
                   86992:   save_old_LDFLAGS=$LDFLAGS
                   86993:   ac_stuff="
1.1.1.2 ! misho    86994:     $SNMP_SHARED_LIBADD
        !          86995:   "
1.1       misho    86996: 
                   86997:   save_ext_shared=$ext_shared
                   86998:   ext_shared=yes
                   86999: 
                   87000:   for ac_i in $ac_stuff; do
                   87001:     case $ac_i in
                   87002:     -pthread)
                   87003:       if test "$ext_shared" = "yes"; then
                   87004:         LDFLAGS="$LDFLAGS -pthread"
                   87005:       else
                   87006: 
                   87007: 
                   87008:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   87009: 
                   87010:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   87011:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   87012:     eval "EXTRA_LDFLAGS$unique=set"
                   87013:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   87014:   fi
                   87015: 
                   87016:       fi
                   87017:     ;;
                   87018:     -l*)
                   87019:       ac_ii=`echo $ac_i|cut -c 3-`
                   87020: 
                   87021: 
                   87022:   case $ac_ii in
                   87023:   c|c_r|pthread*) ;;
                   87024:   *)
                   87025:     if test "$ext_shared" = "yes"; then
                   87026:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   87027:     else
                   87028: 
                   87029: 
                   87030:   case $ac_ii in
                   87031:   c|c_r|pthread*) ;;
                   87032:   *)
                   87033:       LIBS="$LIBS -l$ac_ii"
                   87034:    ;;
                   87035:   esac
                   87036: 
                   87037: 
                   87038:     fi
                   87039:    ;;
                   87040:   esac
                   87041: 
                   87042: 
                   87043:     ;;
                   87044:     -L*)
                   87045:       ac_ii=`echo $ac_i|cut -c 3-`
                   87046: 
                   87047:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   87048: 
                   87049:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   87050:     ai_p=$ac_ii
                   87051:   else
                   87052: 
                   87053:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   87054: 
                   87055:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   87056:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   87057:   fi
                   87058: 
                   87059: 
                   87060:       if test "$ext_shared" = "yes"; then
                   87061:         LDFLAGS="-L$ai_p $LDFLAGS"
                   87062:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   87063:       else
                   87064: 
                   87065: 
                   87066: 
                   87067:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   87068: 
                   87069:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   87070:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   87071:     eval "LIBPATH$unique=set"
                   87072: 
                   87073:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   87074:     LDFLAGS="$LDFLAGS -L$ai_p"
                   87075:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   87076: 
                   87077:   fi
                   87078: 
                   87079: 
                   87080:       fi
                   87081: 
                   87082:   fi
                   87083: 
                   87084:     ;;
                   87085:     esac
                   87086:   done
                   87087: 
1.1.1.2 ! misho    87088:   as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_shutdown_snmp_logging" | $as_tr_sh`
        !          87089: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shutdown_snmp_logging in -l$SNMP_LIBNAME" >&5
        !          87090: $as_echo_n "checking for shutdown_snmp_logging in -l$SNMP_LIBNAME... " >&6; }
        !          87091: if eval \${$as_ac_Lib+:} false; then :
1.1       misho    87092:   $as_echo_n "(cached) " >&6
                   87093: else
                   87094:   ac_check_lib_save_LIBS=$LIBS
1.1.1.2 ! misho    87095: LIBS="-l$SNMP_LIBNAME  $LIBS"
1.1       misho    87096: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   87097: /* end confdefs.h.  */
                   87098: 
                   87099: /* Override any GCC internal prototype to avoid an error.
                   87100:    Use char because int might match the return type of a GCC
                   87101:    builtin and then its argument prototype would still apply.  */
                   87102: #ifdef __cplusplus
                   87103: extern "C"
                   87104: #endif
1.1.1.2 ! misho    87105: char shutdown_snmp_logging ();
1.1       misho    87106: int
                   87107: main ()
                   87108: {
1.1.1.2 ! misho    87109: return shutdown_snmp_logging ();
1.1       misho    87110:   ;
                   87111:   return 0;
                   87112: }
                   87113: _ACEOF
                   87114: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2 ! misho    87115:   eval "$as_ac_Lib=yes"
1.1       misho    87116: else
1.1.1.2 ! misho    87117:   eval "$as_ac_Lib=no"
1.1       misho    87118: fi
                   87119: rm -f core conftest.err conftest.$ac_objext \
                   87120:     conftest$ac_exeext conftest.$ac_ext
                   87121: LIBS=$ac_check_lib_save_LIBS
                   87122: fi
1.1.1.2 ! misho    87123: eval ac_res=\$$as_ac_Lib
        !          87124:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
        !          87125: $as_echo "$ac_res" >&6; }
        !          87126: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
1.1       misho    87127: 
                   87128:     LDFLAGS=$save_old_LDFLAGS
                   87129:     ext_shared=$save_ext_shared
                   87130: 
1.1.1.2 ! misho    87131: 
        !          87132: $as_echo "#define HAVE_SHUTDOWN_SNMP_LOGGING 1" >>confdefs.h
        !          87133: 
1.1       misho    87134: 
                   87135: 
                   87136: else
                   87137: 
                   87138:     LDFLAGS=$save_old_LDFLAGS
                   87139:     ext_shared=$save_ext_shared
1.1.1.2 ! misho    87140:     unset ac_cv_lib_$SNMP_LIBNAME_shutdown_snmp_logging
1.1       misho    87141: 
                   87142: 
                   87143: fi
                   87144: 
                   87145: 
1.1.1.2 ! misho    87146:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy snmp_snprint_value" >&5
        !          87147: $as_echo_n "checking for buggy snmp_snprint_value... " >&6; }
        !          87148: if ${ac_cv_buggy_snprint_value+:} false; then :
        !          87149:   $as_echo_n "(cached) " >&6
        !          87150: else
1.1       misho    87151: 
1.1.1.2 ! misho    87152:     save_CFLAGS="$CFLAGS"
        !          87153:     CFLAGS="$CFLAGS -I${SNMP_PREFIX}/include $SNMP_SHARED_LIBADD"
        !          87154:     if test "$cross_compiling" = yes; then :
1.1       misho    87155: 
1.1.1.2 ! misho    87156:       ac_cv_buggy_snprint_value=no
1.1       misho    87157: 
1.1.1.2 ! misho    87158: else
        !          87159:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          87160: /* end confdefs.h.  */
1.1       misho    87161: 
1.1.1.2 ! misho    87162: #include <stdio.h>
        !          87163: #include <stdlib.h>
        !          87164: #include <string.h>
        !          87165: #include <net-snmp/net-snmp-config.h>
        !          87166: #include <net-snmp/net-snmp-includes.h>
1.1       misho    87167: 
1.1.1.2 ! misho    87168: u_char uname[] = "Linux nex1.php.net 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:53:09 EST 2011 i686";
1.1       misho    87169: 
1.1.1.2 ! misho    87170: int main(int argc, char **argv)
        !          87171: {
        !          87172:        struct variable_list vars;
        !          87173:        char buf1[2048];
        !          87174:        char buf2[sizeof(buf1)];
        !          87175: 
        !          87176:        memset(&(buf1[0]), 0, sizeof(buf1));
        !          87177:        memset(&(buf2[0]), 0, sizeof(buf2));
        !          87178:        memset(&vars, 0, sizeof(vars));
        !          87179:        vars.type = 4;
        !          87180:        vars.val.integer = (long *)&(uname[0]);
        !          87181:        vars.val.string = &(uname[0]);
        !          87182:        vars.val.bitstring = &(uname[0]);
        !          87183:        vars.val.counter64 = (struct counter64 *)&(uname[0]);
        !          87184:        vars.val.floatVal = (float *)&(uname[0]);
        !          87185:        vars.val_len = sizeof(uname),
        !          87186:        vars.name_loc[0] = 1;
        !          87187:        vars.name_loc[1] = 3;
        !          87188:        vars.name_loc[2] = 6;
        !          87189:        vars.name_loc[3] = 1;
        !          87190:        vars.name_loc[4] = 2;
        !          87191:        vars.name_loc[5] = 1;
        !          87192:        vars.name_loc[6] = 1;
        !          87193:        vars.name_loc[7] = 1;
        !          87194:        vars.name = (oid *)&(vars.name_loc);
        !          87195:        vars.name_length = 9;
        !          87196: 
        !          87197:        init_snmp("snmpapp");
        !          87198: 
        !          87199:        netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_QUICK_PRINT, 0);
        !          87200: 
        !          87201:        snprint_value(buf1, (sizeof(uname) + 32), vars.name, vars.name_length, &vars);
        !          87202:        snprint_value(buf2, sizeof(buf2), vars.name, vars.name_length, &vars);
        !          87203:        exit((strncmp(buf1, buf2, sizeof(buf1)) != 0));
        !          87204: }
1.1       misho    87205: 
1.1.1.2 ! misho    87206: _ACEOF
        !          87207: if ac_fn_c_try_run "$LINENO"; then :
1.1       misho    87208: 
1.1.1.2 ! misho    87209:       ac_cv_buggy_snprint_value=no
1.1       misho    87210: 
1.1.1.2 ! misho    87211: else
1.1       misho    87212: 
1.1.1.2 ! misho    87213:       ac_cv_buggy_snprint_value=yes
1.1       misho    87214: 
1.1.1.2 ! misho    87215: fi
        !          87216: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
        !          87217:   conftest.$ac_objext conftest.beam conftest.$ac_ext
        !          87218: fi
1.1       misho    87219: 
1.1.1.2 ! misho    87220:     CFLAGS="$save_CFLAGS"
1.1       misho    87221: 
1.1.1.2 ! misho    87222: fi
        !          87223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_snprint_value" >&5
        !          87224: $as_echo "$ac_cv_buggy_snprint_value" >&6; }
        !          87225:   if test "$ac_cv_buggy_snprint_value" = "yes"; then
1.1       misho    87226: 
1.1.1.2 ! misho    87227: $as_echo "#define BUGGY_SNMPRINT_VALUE 1" >>confdefs.h
1.1       misho    87228: 
1.1.1.2 ! misho    87229:   fi
1.1       misho    87230: 
                   87231: 
1.1.1.2 ! misho    87232:   ext_builddir=ext/snmp
        !          87233:   ext_srcdir=$abs_srcdir/ext/snmp
1.1       misho    87234: 
1.1.1.2 ! misho    87235:   ac_extra=
1.1       misho    87236: 
1.1.1.2 ! misho    87237:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
        !          87238:     PHP_SNMP_SHARED=no
1.1       misho    87239: 
                   87240: 
1.1.1.2 ! misho    87241:   case ext/snmp in
        !          87242:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          87243:   /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          87244:   *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
        !          87245:   esac
1.1       misho    87246: 
                   87247: 
                   87248: 
1.1.1.2 ! misho    87249:   b_c_pre=$php_c_pre
        !          87250:   b_cxx_pre=$php_cxx_pre
        !          87251:   b_c_meta=$php_c_meta
        !          87252:   b_cxx_meta=$php_cxx_meta
        !          87253:   b_c_post=$php_c_post
        !          87254:   b_cxx_post=$php_cxx_post
        !          87255:   b_lo=$php_lo
1.1       misho    87256: 
                   87257: 
1.1.1.2 ! misho    87258:   old_IFS=$IFS
        !          87259:   for ac_src in snmp.c; do
1.1       misho    87260: 
1.1.1.2 ! misho    87261:       IFS=.
        !          87262:       set $ac_src
        !          87263:       ac_obj=$1
        !          87264:       IFS=$old_IFS
1.1       misho    87265: 
1.1.1.2 ! misho    87266:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    87267: 
1.1.1.2 ! misho    87268:       case $ac_src in
        !          87269:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          87270:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          87271:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          87272:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
        !          87273:       esac
1.1       misho    87274: 
1.1.1.2 ! misho    87275:     cat >>Makefile.objects<<EOF
        !          87276: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
        !          87277:        $ac_comp
        !          87278: EOF
        !          87279:   done
1.1       misho    87280: 
                   87281: 
1.1.1.2 ! misho    87282:     EXT_STATIC="$EXT_STATIC snmp"
        !          87283:     if test "$ext_shared" != "nocli"; then
        !          87284:       EXT_CLI_STATIC="$EXT_CLI_STATIC snmp"
        !          87285:     fi
        !          87286:   else
        !          87287:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
        !          87288:       PHP_SNMP_SHARED=yes
1.1       misho    87289: 
1.1.1.2 ! misho    87290:   case ext/snmp in
        !          87291:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          87292:   /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          87293:   *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
        !          87294:   esac
1.1       misho    87295: 
                   87296: 
                   87297: 
1.1.1.2 ! misho    87298:   b_c_pre=$shared_c_pre
        !          87299:   b_cxx_pre=$shared_cxx_pre
        !          87300:   b_c_meta=$shared_c_meta
        !          87301:   b_cxx_meta=$shared_cxx_meta
        !          87302:   b_c_post=$shared_c_post
        !          87303:   b_cxx_post=$shared_cxx_post
        !          87304:   b_lo=$shared_lo
1.1       misho    87305: 
                   87306: 
1.1.1.2 ! misho    87307:   old_IFS=$IFS
        !          87308:   for ac_src in snmp.c; do
1.1       misho    87309: 
1.1.1.2 ! misho    87310:       IFS=.
        !          87311:       set $ac_src
        !          87312:       ac_obj=$1
        !          87313:       IFS=$old_IFS
1.1       misho    87314: 
1.1.1.2 ! misho    87315:       shared_objects_snmp="$shared_objects_snmp $ac_bdir$ac_obj.lo"
1.1       misho    87316: 
1.1.1.2 ! misho    87317:       case $ac_src in
        !          87318:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          87319:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          87320:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          87321:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
        !          87322:       esac
1.1       misho    87323: 
1.1.1.2 ! misho    87324:     cat >>Makefile.objects<<EOF
        !          87325: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
        !          87326:        $ac_comp
        !          87327: EOF
        !          87328:   done
1.1       misho    87329: 
1.1.1.2 ! misho    87330:       case $host_alias in
        !          87331:         *netware*)
1.1       misho    87332: 
1.1.1.2 ! misho    87333:   install_modules="install-modules"
1.1       misho    87334: 
1.1.1.2 ! misho    87335:   case $host_alias in
        !          87336:     *aix*)
        !          87337:       suffix=so
        !          87338:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsnmp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) $(PHPSNMP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsnmp.so '$ext_builddir'/phpsnmp.so'
        !          87339:       ;;
        !          87340:     *netware*)
        !          87341:       suffix=nlm
        !          87342:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) -L$(top_builddir)/netware -lphp5lib $(SNMP_SHARED_LIBADD)'
        !          87343:       ;;
        !          87344:     *)
        !          87345:       suffix=la
        !          87346:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) $(PHPSNMP_SHARED_LIBADD)'
        !          87347:       ;;
1.1       misho    87348:   esac
                   87349: 
1.1.1.2 ! misho    87350:   if test "x" = "xyes"; then
        !          87351:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsnmp.$suffix"
1.1       misho    87352:   else
1.1.1.2 ! misho    87353:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsnmp.$suffix"
1.1       misho    87354:   fi
                   87355: 
1.1.1.2 ! misho    87356:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_snmp"
1.1       misho    87357: 
1.1.1.2 ! misho    87358:   cat >>Makefile.objects<<EOF
        !          87359: \$(phplibdir)/phpsnmp.$suffix: $ext_builddir/phpsnmp.$suffix
        !          87360:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsnmp.$suffix \$(phplibdir)
1.1       misho    87361: 
1.1.1.2 ! misho    87362: $ext_builddir/phpsnmp.$suffix: \$(shared_objects_snmp) \$(PHPSNMP_SHARED_DEPENDENCIES)
        !          87363:        $link_cmd
1.1       misho    87364: 
1.1.1.2 ! misho    87365: EOF
1.1       misho    87366: 
1.1.1.2 ! misho    87367:           ;;
        !          87368:         *)
1.1       misho    87369: 
1.1.1.2 ! misho    87370:   install_modules="install-modules"
        !          87371: 
        !          87372:   case $host_alias in
        !          87373:     *aix*)
        !          87374:       suffix=so
        !          87375:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/snmp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) $(SNMP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/snmp.so '$ext_builddir'/snmp.so'
        !          87376:       ;;
        !          87377:     *netware*)
        !          87378:       suffix=nlm
        !          87379:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) -L$(top_builddir)/netware -lphp5lib $(P_SHARED_LIBADD)'
        !          87380:       ;;
        !          87381:     *)
        !          87382:       suffix=la
        !          87383:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) $(SNMP_SHARED_LIBADD)'
        !          87384:       ;;
        !          87385:   esac
1.1       misho    87386: 
1.1.1.2 ! misho    87387:   if test "x" = "xyes"; then
        !          87388:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/snmp.$suffix"
        !          87389:   else
        !          87390:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/snmp.$suffix"
1.1       misho    87391:   fi
                   87392: 
1.1.1.2 ! misho    87393:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_snmp"
1.1       misho    87394: 
1.1.1.2 ! misho    87395:   cat >>Makefile.objects<<EOF
        !          87396: \$(phplibdir)/snmp.$suffix: $ext_builddir/snmp.$suffix
        !          87397:        \$(LIBTOOL) --mode=install cp $ext_builddir/snmp.$suffix \$(phplibdir)
1.1       misho    87398: 
1.1.1.2 ! misho    87399: $ext_builddir/snmp.$suffix: \$(shared_objects_snmp) \$(SNMP_SHARED_DEPENDENCIES)
        !          87400:        $link_cmd
1.1       misho    87401: 
1.1.1.2 ! misho    87402: EOF
1.1       misho    87403: 
1.1.1.2 ! misho    87404:           ;;
        !          87405:       esac
1.1       misho    87406: 
1.1.1.2 ! misho    87407: cat >>confdefs.h <<_ACEOF
        !          87408: #define COMPILE_DL_SNMP 1
        !          87409: _ACEOF
1.1       misho    87410: 
1.1.1.2 ! misho    87411:     fi
1.1       misho    87412:   fi
                   87413: 
1.1.1.2 ! misho    87414:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
        !          87415:     PHP_SNMP_SHARED=no
1.1       misho    87416: 
                   87417: 
1.1.1.2 ! misho    87418:   case ext/snmp in
        !          87419:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          87420:   /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          87421:   *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
        !          87422:   esac
1.1       misho    87423: 
                   87424: 
                   87425: 
1.1.1.2 ! misho    87426:   b_c_pre=$php_c_pre
        !          87427:   b_cxx_pre=$php_cxx_pre
        !          87428:   b_c_meta=$php_c_meta
        !          87429:   b_cxx_meta=$php_cxx_meta
        !          87430:   b_c_post=$php_c_post
        !          87431:   b_cxx_post=$php_cxx_post
        !          87432:   b_lo=$php_lo
1.1       misho    87433: 
                   87434: 
1.1.1.2 ! misho    87435:   old_IFS=$IFS
        !          87436:   for ac_src in snmp.c; do
1.1       misho    87437: 
1.1.1.2 ! misho    87438:       IFS=.
        !          87439:       set $ac_src
        !          87440:       ac_obj=$1
        !          87441:       IFS=$old_IFS
1.1       misho    87442: 
1.1.1.2 ! misho    87443:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    87444: 
1.1.1.2 ! misho    87445:       case $ac_src in
        !          87446:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          87447:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          87448:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          87449:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
        !          87450:       esac
1.1       misho    87451: 
1.1.1.2 ! misho    87452:     cat >>Makefile.objects<<EOF
        !          87453: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
        !          87454:        $ac_comp
        !          87455: EOF
        !          87456:   done
1.1       misho    87457: 
                   87458: 
                   87459: 
                   87460: 
1.1.1.2 ! misho    87461:   case ext/snmp in
        !          87462:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          87463:   /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          87464:   *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
        !          87465:   esac
1.1       misho    87466: 
                   87467: 
                   87468: 
1.1.1.2 ! misho    87469:   b_c_pre=$php_c_pre
        !          87470:   b_cxx_pre=$php_cxx_pre
        !          87471:   b_c_meta=$php_c_meta
        !          87472:   b_cxx_meta=$php_cxx_meta
        !          87473:   b_c_post=$php_c_post
        !          87474:   b_cxx_post=$php_cxx_post
        !          87475:   b_lo=$php_lo
1.1       misho    87476: 
                   87477: 
1.1.1.2 ! misho    87478:   old_IFS=$IFS
        !          87479:   for ac_src in snmp.c; do
1.1       misho    87480: 
1.1.1.2 ! misho    87481:       IFS=.
        !          87482:       set $ac_src
        !          87483:       ac_obj=$1
        !          87484:       IFS=$old_IFS
1.1       misho    87485: 
1.1.1.2 ! misho    87486:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    87487: 
1.1.1.2 ! misho    87488:       case $ac_src in
        !          87489:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          87490:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          87491:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          87492:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
        !          87493:       esac
1.1       misho    87494: 
1.1.1.2 ! misho    87495:     cat >>Makefile.objects<<EOF
        !          87496: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
        !          87497:        $ac_comp
        !          87498: EOF
        !          87499:   done
1.1       misho    87500: 
                   87501: 
                   87502: 
                   87503: 
1.1.1.2 ! misho    87504:   case ext/snmp in
        !          87505:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          87506:   /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          87507:   *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
        !          87508:   esac
1.1       misho    87509: 
                   87510: 
                   87511: 
1.1.1.2 ! misho    87512:   b_c_pre=$php_c_pre
        !          87513:   b_cxx_pre=$php_cxx_pre
        !          87514:   b_c_meta=$php_c_meta
        !          87515:   b_cxx_meta=$php_cxx_meta
        !          87516:   b_c_post=$php_c_post
        !          87517:   b_cxx_post=$php_cxx_post
        !          87518:   b_lo=$php_lo
1.1       misho    87519: 
                   87520: 
1.1.1.2 ! misho    87521:   old_IFS=$IFS
        !          87522:   for ac_src in snmp.c; do
1.1       misho    87523: 
1.1.1.2 ! misho    87524:       IFS=.
        !          87525:       set $ac_src
        !          87526:       ac_obj=$1
        !          87527:       IFS=$old_IFS
1.1       misho    87528: 
1.1.1.2 ! misho    87529:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    87530: 
1.1.1.2 ! misho    87531:       case $ac_src in
        !          87532:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          87533:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          87534:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          87535:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
        !          87536:       esac
1.1       misho    87537: 
1.1.1.2 ! misho    87538:     cat >>Makefile.objects<<EOF
        !          87539: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
        !          87540:        $ac_comp
        !          87541: EOF
        !          87542:   done
1.1       misho    87543: 
                   87544: 
1.1.1.2 ! misho    87545:     EXT_CLI_STATIC="$EXT_CLI_STATIC snmp"
        !          87546:   fi
1.1       misho    87547: 
                   87548: 
1.1.1.2 ! misho    87549:     BUILD_DIR="$BUILD_DIR $ext_builddir"
1.1       misho    87550: 
                   87551: 
                   87552: 
1.1.1.2 ! misho    87553:   if test "$ext_builddir" = "."; then
        !          87554:     PHP_PECL_EXTENSION=snmp
1.1       misho    87555: 
1.1.1.2 ! misho    87556:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
1.1       misho    87557: 
1.1.1.2 ! misho    87558:   fi
1.1       misho    87559: 
                   87560: 
1.1.1.2 ! misho    87561:   PHP_VAR_SUBST="$PHP_VAR_SUBST SNMP_SHARED_LIBADD"
1.1       misho    87562: 
1.1.1.2 ! misho    87563: fi
1.1       misho    87564: 
                   87565: 
                   87566: 
1.1.1.2 ! misho    87567: php_enable_soap=no
1.1       misho    87568: 
1.1.1.2 ! misho    87569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SOAP support" >&5
        !          87570: $as_echo_n "checking whether to enable SOAP support... " >&6; }
        !          87571: # Check whether --enable-soap was given.
        !          87572: if test "${enable_soap+set}" = set; then :
        !          87573:   enableval=$enable_soap; PHP_SOAP=$enableval
        !          87574: else
1.1       misho    87575: 
1.1.1.2 ! misho    87576:   PHP_SOAP=no
        !          87577:   test "$PHP_ENABLE_ALL" && PHP_SOAP=$PHP_ENABLE_ALL
1.1       misho    87578: 
1.1.1.2 ! misho    87579: fi
1.1       misho    87580: 
                   87581: 
                   87582: 
1.1.1.2 ! misho    87583: ext_output="yes, shared"
        !          87584: ext_shared=yes
        !          87585: case $PHP_SOAP in
        !          87586: shared,*)
        !          87587:   PHP_SOAP=`echo "$PHP_SOAP"|$SED 's/^shared,//'`
        !          87588:   ;;
        !          87589: shared)
        !          87590:   PHP_SOAP=yes
        !          87591:   ;;
        !          87592: no)
        !          87593:   ext_output=no
        !          87594:   ext_shared=no
        !          87595:   ;;
        !          87596: *)
        !          87597:   ext_output=yes
        !          87598:   ext_shared=no
        !          87599:   ;;
        !          87600: esac
1.1       misho    87601: 
                   87602: 
                   87603: 
1.1.1.2 ! misho    87604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
        !          87605: $as_echo "$ext_output" >&6; }
1.1       misho    87606: 
                   87607: 
                   87608: 
                   87609: 
1.1.1.2 ! misho    87610: if test -z "$PHP_LIBXML_DIR"; then
1.1       misho    87611: 
1.1.1.2 ! misho    87612: php_with_libxml_dir=no
1.1       misho    87613: 
1.1.1.2 ! misho    87614: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
        !          87615: $as_echo_n "checking libxml2 install dir... " >&6; }
1.1       misho    87616: 
1.1.1.2 ! misho    87617: # Check whether --with-libxml-dir was given.
        !          87618: if test "${with_libxml_dir+set}" = set; then :
        !          87619:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
        !          87620: else
1.1       misho    87621: 
1.1.1.2 ! misho    87622:   PHP_LIBXML_DIR=no
1.1       misho    87623: 
                   87624: 
                   87625: fi
                   87626: 
                   87627: 
1.1.1.2 ! misho    87628: ext_output=$PHP_LIBXML_DIR
        !          87629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
        !          87630: $as_echo "$ext_output" >&6; }
1.1       misho    87631: 
                   87632: 
                   87633: 
1.1.1.2 ! misho    87634: fi
1.1       misho    87635: 
1.1.1.2 ! misho    87636: if test "$PHP_SOAP" != "no"; then
1.1       misho    87637: 
1.1.1.2 ! misho    87638:   if test "$PHP_LIBXML" = "no"; then
        !          87639:     as_fn_error $? "SOAP extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
        !          87640:   fi
1.1       misho    87641: 
                   87642: 
1.1.1.2 ! misho    87643: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
        !          87644: $as_echo_n "checking for xml2-config path... " >&6; }
        !          87645: if ${ac_cv_php_xml2_config_path+:} false; then :
        !          87646:   $as_echo_n "(cached) " >&6
        !          87647: else
1.1       misho    87648: 
1.1.1.2 ! misho    87649:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
        !          87650:     if test -x "$i/bin/xml2-config"; then
        !          87651:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
        !          87652:       break
        !          87653:     fi
        !          87654:   done
1.1       misho    87655: 
1.1.1.2 ! misho    87656: fi
        !          87657: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
        !          87658: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
1.1       misho    87659: 
1.1.1.2 ! misho    87660:   if test -x "$ac_cv_php_xml2_config_path"; then
        !          87661:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
        !          87662:     libxml_full_version=`$XML2_CONFIG --version`
        !          87663:     ac_IFS=$IFS
        !          87664:     IFS="."
        !          87665:     set $libxml_full_version
        !          87666:     IFS=$ac_IFS
        !          87667:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
        !          87668:     if test "$LIBXML_VERSION" -ge "2006011"; then
        !          87669:       LIBXML_LIBS=`$XML2_CONFIG --libs`
        !          87670:       LIBXML_INCS=`$XML2_CONFIG --cflags`
1.1       misho    87671: 
1.1.1.2 ! misho    87672:   for ac_i in $LIBXML_LIBS; do
1.1       misho    87673:     case $ac_i in
                   87674:     -pthread)
                   87675:       if test "$ext_shared" = "yes"; then
1.1.1.2 ! misho    87676:         SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -pthread"
1.1       misho    87677:       else
                   87678: 
                   87679: 
                   87680:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   87681: 
                   87682:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   87683:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   87684:     eval "EXTRA_LDFLAGS$unique=set"
                   87685:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   87686:   fi
                   87687: 
                   87688:       fi
                   87689:     ;;
                   87690:     -l*)
                   87691:       ac_ii=`echo $ac_i|cut -c 3-`
                   87692: 
                   87693: 
                   87694:   case $ac_ii in
                   87695:   c|c_r|pthread*) ;;
                   87696:   *)
                   87697:     if test "$ext_shared" = "yes"; then
1.1.1.2 ! misho    87698:         SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -l$ac_ii"
1.1       misho    87699:     else
                   87700: 
                   87701: 
                   87702:   case $ac_ii in
                   87703:   c|c_r|pthread*) ;;
                   87704:   *)
                   87705:       LIBS="$LIBS -l$ac_ii"
                   87706:    ;;
                   87707:   esac
                   87708: 
                   87709: 
                   87710:     fi
                   87711:    ;;
                   87712:   esac
                   87713: 
                   87714: 
                   87715:     ;;
                   87716:     -L*)
                   87717:       ac_ii=`echo $ac_i|cut -c 3-`
                   87718: 
                   87719:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   87720: 
                   87721:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   87722:     ai_p=$ac_ii
                   87723:   else
                   87724: 
                   87725:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   87726: 
                   87727:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   87728:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   87729:   fi
                   87730: 
                   87731: 
                   87732:       if test "$ext_shared" = "yes"; then
1.1.1.2 ! misho    87733:         SOAP_SHARED_LIBADD="-L$ai_p $SOAP_SHARED_LIBADD"
        !          87734:         test -n "$ld_runpath_switch" && SOAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SOAP_SHARED_LIBADD"
1.1       misho    87735:       else
                   87736: 
                   87737: 
                   87738: 
                   87739:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   87740: 
                   87741:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   87742:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   87743:     eval "LIBPATH$unique=set"
                   87744: 
                   87745:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   87746:     LDFLAGS="$LDFLAGS -L$ai_p"
                   87747:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   87748: 
                   87749:   fi
                   87750: 
                   87751: 
                   87752:       fi
                   87753: 
                   87754:   fi
                   87755: 
                   87756:     ;;
                   87757:     esac
                   87758:   done
                   87759: 
                   87760: 
1.1.1.2 ! misho    87761:   for ac_i in $LIBXML_INCS; do
        !          87762:     case $ac_i in
        !          87763:     -I*)
        !          87764:       ac_ii=`echo $ac_i|cut -c 3-`
        !          87765: 
        !          87766:   if test "$ac_ii" != "/usr/include"; then
        !          87767: 
        !          87768:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
        !          87769:     ai_p=$ac_ii
        !          87770:   else
        !          87771: 
        !          87772:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
        !          87773: 
        !          87774:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
        !          87775:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
        !          87776:   fi
        !          87777: 
        !          87778: 
        !          87779: 
        !          87780:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
        !          87781: 
        !          87782:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
        !          87783:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          87784:     eval "INCLUDEPATH$unique=set"
        !          87785: 
        !          87786:       if test ""; then
        !          87787:         INCLUDES="-I$ai_p $INCLUDES"
        !          87788:       else
        !          87789:         INCLUDES="$INCLUDES -I$ai_p"
        !          87790:       fi
        !          87791: 
        !          87792:   fi
        !          87793: 
        !          87794:   fi
        !          87795: 
        !          87796:     ;;
        !          87797:     esac
        !          87798:   done
        !          87799: 
        !          87800: 
        !          87801:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
        !          87802: $as_echo_n "checking whether libxml build works... " >&6; }
        !          87803: if ${php_cv_libxml_build_works+:} false; then :
        !          87804:   $as_echo_n "(cached) " >&6
1.1       misho    87805: else
                   87806: 
                   87807: 
1.1.1.2 ! misho    87808:   old_LIBS=$LIBS
        !          87809:   LIBS="
        !          87810:           $SOAP_SHARED_LIBADD
        !          87811:          $LIBS"
        !          87812:   if test "$cross_compiling" = yes; then :
        !          87813: 
        !          87814:     LIBS=$old_LIBS
1.1       misho    87815: 
1.1.1.2 ! misho    87816: else
        !          87817:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          87818: /* end confdefs.h.  */
        !          87819: 
        !          87820: 
        !          87821:     char xmlInitParser();
        !          87822:     int main() {
        !          87823:       xmlInitParser();
        !          87824:       return 0;
        !          87825:     }
        !          87826: 
        !          87827: _ACEOF
        !          87828: if ac_fn_c_try_run "$LINENO"; then :
        !          87829: 
        !          87830:     LIBS=$old_LIBS
1.1       misho    87831: 
1.1.1.2 ! misho    87832:           php_cv_libxml_build_works=yes
1.1       misho    87833: 
                   87834: 
                   87835: else
                   87836: 
1.1.1.2 ! misho    87837:     LIBS=$old_LIBS
        !          87838: 
        !          87839:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
        !          87840: $as_echo "no" >&6; }
        !          87841:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
        !          87842: 
        !          87843: 
        !          87844: fi
        !          87845: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
        !          87846:   conftest.$ac_objext conftest.beam conftest.$ac_ext
        !          87847: fi
1.1       misho    87848: 
                   87849: 
                   87850: 
                   87851: fi
1.1.1.2 ! misho    87852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
        !          87853: $as_echo "$php_cv_libxml_build_works" >&6; }
        !          87854:       if test "$php_cv_libxml_build_works" = "yes"; then
1.1       misho    87855: 
1.1.1.2 ! misho    87856: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
1.1       misho    87857: 
1.1.1.2 ! misho    87858:       fi
1.1       misho    87859: 
                   87860: 
1.1.1.2 ! misho    87861: $as_echo "#define HAVE_SOAP 1" >>confdefs.h
1.1       misho    87862: 
                   87863: 
1.1.1.2 ! misho    87864:   ext_builddir=ext/soap
        !          87865:   ext_srcdir=$abs_srcdir/ext/soap
1.1       misho    87866: 
                   87867:   ac_extra=
                   87868: 
                   87869:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
1.1.1.2 ! misho    87870:     PHP_SOAP_SHARED=no
1.1       misho    87871: 
                   87872: 
1.1.1.2 ! misho    87873:   case ext/soap in
1.1       misho    87874:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    87875:   /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          87876:   *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    87877:   esac
                   87878: 
                   87879: 
                   87880: 
                   87881:   b_c_pre=$php_c_pre
                   87882:   b_cxx_pre=$php_cxx_pre
                   87883:   b_c_meta=$php_c_meta
                   87884:   b_cxx_meta=$php_cxx_meta
                   87885:   b_c_post=$php_c_post
                   87886:   b_cxx_post=$php_cxx_post
                   87887:   b_lo=$php_lo
                   87888: 
                   87889: 
                   87890:   old_IFS=$IFS
1.1.1.2 ! misho    87891:   for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
1.1       misho    87892: 
                   87893:       IFS=.
                   87894:       set $ac_src
                   87895:       ac_obj=$1
                   87896:       IFS=$old_IFS
                   87897: 
                   87898:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   87899: 
                   87900:       case $ac_src in
                   87901:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   87902:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   87903:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   87904:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   87905:       esac
                   87906: 
                   87907:     cat >>Makefile.objects<<EOF
                   87908: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   87909:        $ac_comp
                   87910: EOF
                   87911:   done
                   87912: 
                   87913: 
1.1.1.2 ! misho    87914:     EXT_STATIC="$EXT_STATIC soap"
1.1       misho    87915:     if test "$ext_shared" != "nocli"; then
1.1.1.2 ! misho    87916:       EXT_CLI_STATIC="$EXT_CLI_STATIC soap"
1.1       misho    87917:     fi
                   87918:   else
                   87919:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
1.1.1.2 ! misho    87920:       PHP_SOAP_SHARED=yes
1.1       misho    87921: 
1.1.1.2 ! misho    87922:   case ext/soap in
1.1       misho    87923:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    87924:   /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          87925:   *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    87926:   esac
                   87927: 
                   87928: 
                   87929: 
                   87930:   b_c_pre=$shared_c_pre
                   87931:   b_cxx_pre=$shared_cxx_pre
                   87932:   b_c_meta=$shared_c_meta
                   87933:   b_cxx_meta=$shared_cxx_meta
                   87934:   b_c_post=$shared_c_post
                   87935:   b_cxx_post=$shared_cxx_post
                   87936:   b_lo=$shared_lo
                   87937: 
                   87938: 
                   87939:   old_IFS=$IFS
1.1.1.2 ! misho    87940:   for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
1.1       misho    87941: 
                   87942:       IFS=.
                   87943:       set $ac_src
                   87944:       ac_obj=$1
                   87945:       IFS=$old_IFS
                   87946: 
1.1.1.2 ! misho    87947:       shared_objects_soap="$shared_objects_soap $ac_bdir$ac_obj.lo"
1.1       misho    87948: 
                   87949:       case $ac_src in
                   87950:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   87951:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   87952:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   87953:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   87954:       esac
                   87955: 
                   87956:     cat >>Makefile.objects<<EOF
                   87957: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   87958:        $ac_comp
                   87959: EOF
                   87960:   done
                   87961: 
                   87962:       case $host_alias in
                   87963:         *netware*)
                   87964: 
                   87965:   install_modules="install-modules"
                   87966: 
                   87967:   case $host_alias in
                   87968:     *aix*)
                   87969:       suffix=so
1.1.1.2 ! misho    87970:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsoap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) $(PHPSOAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsoap.so '$ext_builddir'/phpsoap.so'
1.1       misho    87971:       ;;
                   87972:     *netware*)
                   87973:       suffix=nlm
1.1.1.2 ! misho    87974:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) -L$(top_builddir)/netware -lphp5lib $(SOAP_SHARED_LIBADD)'
1.1       misho    87975:       ;;
                   87976:     *)
                   87977:       suffix=la
1.1.1.2 ! misho    87978:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) $(PHPSOAP_SHARED_LIBADD)'
1.1       misho    87979:       ;;
                   87980:   esac
                   87981: 
                   87982:   if test "x" = "xyes"; then
1.1.1.2 ! misho    87983:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsoap.$suffix"
1.1       misho    87984:   else
1.1.1.2 ! misho    87985:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsoap.$suffix"
1.1       misho    87986:   fi
                   87987: 
1.1.1.2 ! misho    87988:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_soap"
1.1       misho    87989: 
                   87990:   cat >>Makefile.objects<<EOF
1.1.1.2 ! misho    87991: \$(phplibdir)/phpsoap.$suffix: $ext_builddir/phpsoap.$suffix
        !          87992:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsoap.$suffix \$(phplibdir)
1.1       misho    87993: 
1.1.1.2 ! misho    87994: $ext_builddir/phpsoap.$suffix: \$(shared_objects_soap) \$(PHPSOAP_SHARED_DEPENDENCIES)
1.1       misho    87995:        $link_cmd
                   87996: 
                   87997: EOF
                   87998: 
                   87999:           ;;
                   88000:         *)
                   88001: 
                   88002:   install_modules="install-modules"
                   88003: 
                   88004:   case $host_alias in
                   88005:     *aix*)
                   88006:       suffix=so
1.1.1.2 ! misho    88007:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/soap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) $(SOAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/soap.so '$ext_builddir'/soap.so'
1.1       misho    88008:       ;;
                   88009:     *netware*)
                   88010:       suffix=nlm
1.1.1.2 ! misho    88011:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) -L$(top_builddir)/netware -lphp5lib $(P_SHARED_LIBADD)'
1.1       misho    88012:       ;;
                   88013:     *)
                   88014:       suffix=la
1.1.1.2 ! misho    88015:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) $(SOAP_SHARED_LIBADD)'
1.1       misho    88016:       ;;
                   88017:   esac
                   88018: 
                   88019:   if test "x" = "xyes"; then
1.1.1.2 ! misho    88020:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/soap.$suffix"
1.1       misho    88021:   else
1.1.1.2 ! misho    88022:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/soap.$suffix"
1.1       misho    88023:   fi
                   88024: 
1.1.1.2 ! misho    88025:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_soap"
1.1       misho    88026: 
                   88027:   cat >>Makefile.objects<<EOF
1.1.1.2 ! misho    88028: \$(phplibdir)/soap.$suffix: $ext_builddir/soap.$suffix
        !          88029:        \$(LIBTOOL) --mode=install cp $ext_builddir/soap.$suffix \$(phplibdir)
1.1       misho    88030: 
1.1.1.2 ! misho    88031: $ext_builddir/soap.$suffix: \$(shared_objects_soap) \$(SOAP_SHARED_DEPENDENCIES)
1.1       misho    88032:        $link_cmd
                   88033: 
                   88034: EOF
                   88035: 
                   88036:           ;;
                   88037:       esac
                   88038: 
                   88039: cat >>confdefs.h <<_ACEOF
1.1.1.2 ! misho    88040: #define COMPILE_DL_SOAP 1
1.1       misho    88041: _ACEOF
                   88042: 
                   88043:     fi
                   88044:   fi
                   88045: 
                   88046:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
1.1.1.2 ! misho    88047:     PHP_SOAP_SHARED=no
1.1       misho    88048: 
                   88049: 
1.1.1.2 ! misho    88050:   case ext/soap in
1.1       misho    88051:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    88052:   /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          88053:   *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    88054:   esac
                   88055: 
                   88056: 
                   88057: 
                   88058:   b_c_pre=$php_c_pre
                   88059:   b_cxx_pre=$php_cxx_pre
                   88060:   b_c_meta=$php_c_meta
                   88061:   b_cxx_meta=$php_cxx_meta
                   88062:   b_c_post=$php_c_post
                   88063:   b_cxx_post=$php_cxx_post
                   88064:   b_lo=$php_lo
                   88065: 
                   88066: 
                   88067:   old_IFS=$IFS
1.1.1.2 ! misho    88068:   for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
1.1       misho    88069: 
                   88070:       IFS=.
                   88071:       set $ac_src
                   88072:       ac_obj=$1
                   88073:       IFS=$old_IFS
                   88074: 
1.1.1.2 ! misho    88075:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    88076: 
                   88077:       case $ac_src in
                   88078:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88079:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88080:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88081:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   88082:       esac
                   88083: 
                   88084:     cat >>Makefile.objects<<EOF
                   88085: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   88086:        $ac_comp
                   88087: EOF
                   88088:   done
                   88089: 
                   88090: 
                   88091: 
                   88092: 
1.1.1.2 ! misho    88093:   case ext/soap in
1.1       misho    88094:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    88095:   /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          88096:   *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    88097:   esac
                   88098: 
                   88099: 
                   88100: 
                   88101:   b_c_pre=$php_c_pre
                   88102:   b_cxx_pre=$php_cxx_pre
                   88103:   b_c_meta=$php_c_meta
                   88104:   b_cxx_meta=$php_cxx_meta
                   88105:   b_c_post=$php_c_post
                   88106:   b_cxx_post=$php_cxx_post
                   88107:   b_lo=$php_lo
                   88108: 
                   88109: 
                   88110:   old_IFS=$IFS
1.1.1.2 ! misho    88111:   for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
1.1       misho    88112: 
                   88113:       IFS=.
                   88114:       set $ac_src
                   88115:       ac_obj=$1
                   88116:       IFS=$old_IFS
                   88117: 
1.1.1.2 ! misho    88118:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    88119: 
                   88120:       case $ac_src in
                   88121:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88122:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88123:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88124:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   88125:       esac
                   88126: 
                   88127:     cat >>Makefile.objects<<EOF
                   88128: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   88129:        $ac_comp
                   88130: EOF
                   88131:   done
                   88132: 
                   88133: 
                   88134: 
                   88135: 
1.1.1.2 ! misho    88136:   case ext/soap in
1.1       misho    88137:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    88138:   /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          88139:   *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    88140:   esac
                   88141: 
                   88142: 
                   88143: 
                   88144:   b_c_pre=$php_c_pre
                   88145:   b_cxx_pre=$php_cxx_pre
                   88146:   b_c_meta=$php_c_meta
                   88147:   b_cxx_meta=$php_cxx_meta
                   88148:   b_c_post=$php_c_post
                   88149:   b_cxx_post=$php_cxx_post
                   88150:   b_lo=$php_lo
                   88151: 
                   88152: 
                   88153:   old_IFS=$IFS
1.1.1.2 ! misho    88154:   for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
1.1       misho    88155: 
                   88156:       IFS=.
                   88157:       set $ac_src
                   88158:       ac_obj=$1
                   88159:       IFS=$old_IFS
                   88160: 
1.1.1.2 ! misho    88161:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    88162: 
                   88163:       case $ac_src in
                   88164:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88165:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88166:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88167:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   88168:       esac
                   88169: 
                   88170:     cat >>Makefile.objects<<EOF
                   88171: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   88172:        $ac_comp
                   88173: EOF
                   88174:   done
                   88175: 
                   88176: 
1.1.1.2 ! misho    88177:     EXT_CLI_STATIC="$EXT_CLI_STATIC soap"
1.1       misho    88178:   fi
                   88179: 
                   88180: 
                   88181:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   88182: 
                   88183: 
                   88184: 
                   88185:   if test "$ext_builddir" = "."; then
1.1.1.2 ! misho    88186:     PHP_PECL_EXTENSION=soap
1.1       misho    88187: 
                   88188:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   88189: 
                   88190:   fi
                   88191: 
                   88192: 
1.1.1.2 ! misho    88193:   PHP_VAR_SUBST="$PHP_VAR_SUBST SOAP_SHARED_LIBADD"
        !          88194: 
        !          88195: 
        !          88196:     else
        !          88197:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
        !          88198:     fi
        !          88199: else
        !          88200:     as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
        !          88201: 
        !          88202:   fi
1.1       misho    88203: 
                   88204: fi
                   88205: 
                   88206: 
                   88207: 
1.1.1.2 ! misho    88208: php_enable_sockets=no
1.1       misho    88209: 
1.1.1.2 ! misho    88210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sockets support" >&5
        !          88211: $as_echo_n "checking whether to enable sockets support... " >&6; }
        !          88212: # Check whether --enable-sockets was given.
        !          88213: if test "${enable_sockets+set}" = set; then :
        !          88214:   enableval=$enable_sockets; PHP_SOCKETS=$enableval
1.1       misho    88215: else
                   88216: 
1.1.1.2 ! misho    88217:   PHP_SOCKETS=no
        !          88218:   test "$PHP_ENABLE_ALL" && PHP_SOCKETS=$PHP_ENABLE_ALL
1.1       misho    88219: 
                   88220: fi
                   88221: 
                   88222: 
                   88223: 
                   88224: ext_output="yes, shared"
                   88225: ext_shared=yes
1.1.1.2 ! misho    88226: case $PHP_SOCKETS in
1.1       misho    88227: shared,*)
1.1.1.2 ! misho    88228:   PHP_SOCKETS=`echo "$PHP_SOCKETS"|$SED 's/^shared,//'`
1.1       misho    88229:   ;;
                   88230: shared)
1.1.1.2 ! misho    88231:   PHP_SOCKETS=yes
1.1       misho    88232:   ;;
                   88233: no)
                   88234:   ext_output=no
                   88235:   ext_shared=no
                   88236:   ;;
                   88237: *)
                   88238:   ext_output=yes
                   88239:   ext_shared=no
                   88240:   ;;
                   88241: esac
                   88242: 
                   88243: 
                   88244: 
                   88245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   88246: $as_echo "$ext_output" >&6; }
                   88247: 
                   88248: 
                   88249: 
                   88250: 
1.1.1.2 ! misho    88251: if test "$PHP_SOCKETS" != "no"; then
        !          88252:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct cmsghdr" >&5
        !          88253: $as_echo_n "checking for struct cmsghdr... " >&6; }
        !          88254: if ${ac_cv_cmsghdr+:} false; then :
        !          88255:   $as_echo_n "(cached) " >&6
        !          88256: else
1.1       misho    88257: 
1.1.1.2 ! misho    88258:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          88259: /* end confdefs.h.  */
1.1       misho    88260: 
1.1.1.2 ! misho    88261: #include <sys/types.h>
        !          88262: #include <sys/socket.h>
        !          88263: int
        !          88264: main ()
        !          88265: {
        !          88266: struct cmsghdr s; s
        !          88267:   ;
        !          88268:   return 0;
        !          88269: }
        !          88270: _ACEOF
        !          88271: if ac_fn_c_try_compile "$LINENO"; then :
        !          88272:   ac_cv_cmsghdr=yes
1.1       misho    88273: else
1.1.1.2 ! misho    88274:   ac_cv_cmsghdr=no
        !          88275: fi
        !          88276: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       misho    88277: 
1.1.1.2 ! misho    88278: fi
        !          88279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmsghdr" >&5
        !          88280: $as_echo "$ac_cv_cmsghdr" >&6; }
1.1       misho    88281: 
1.1.1.2 ! misho    88282:   if test "$ac_cv_cmsghdr" = yes; then
1.1       misho    88283: 
1.1.1.2 ! misho    88284: $as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
1.1       misho    88285: 
1.1.1.2 ! misho    88286:   fi
1.1       misho    88287: 
1.1.1.2 ! misho    88288:   for ac_func in hstrerror socketpair if_nametoindex if_indextoname
        !          88289: do :
        !          88290:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
        !          88291: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
        !          88292: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
        !          88293:   cat >>confdefs.h <<_ACEOF
        !          88294: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
        !          88295: _ACEOF
1.1       misho    88296: 
1.1.1.2 ! misho    88297: fi
        !          88298: done
1.1       misho    88299: 
1.1.1.2 ! misho    88300:   for ac_header in netdb.h netinet/tcp.h sys/un.h sys/sockio.h errno.h
        !          88301: do :
        !          88302:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
        !          88303: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
        !          88304: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
        !          88305:   cat >>confdefs.h <<_ACEOF
        !          88306: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
        !          88307: _ACEOF
1.1       misho    88308: 
                   88309: fi
                   88310: 
1.1.1.2 ! misho    88311: done
1.1       misho    88312: 
1.1.1.2 ! misho    88313:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          88314: /* end confdefs.h.  */
1.1       misho    88315: 
1.1.1.2 ! misho    88316: #include <sys/types.h>
        !          88317: #include <sys/socket.h>
1.1       misho    88318: 
1.1.1.2 ! misho    88319: int
        !          88320: main ()
        !          88321: {
        !          88322: static struct msghdr tp; int n = (int) tp.msg_flags; return n
        !          88323:   ;
        !          88324:   return 0;
        !          88325: }
        !          88326: _ACEOF
        !          88327: if ac_fn_c_try_compile "$LINENO"; then :
1.1       misho    88328: 
1.1.1.2 ! misho    88329: else
1.1       misho    88330: 
1.1.1.2 ! misho    88331: $as_echo "#define MISSING_MSGHDR_MSGFLAGS 1" >>confdefs.h
1.1       misho    88332: 
                   88333: 
1.1.1.2 ! misho    88334: fi
        !          88335: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       misho    88336: 
1.1.1.2 ! misho    88337: $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
1.1       misho    88338: 
                   88339: 
                   88340: 
1.1.1.2 ! misho    88341:   ext_builddir=ext/sockets
        !          88342:   ext_srcdir=$abs_srcdir/ext/sockets
1.1       misho    88343: 
1.1.1.2 ! misho    88344:   ac_extra=
1.1       misho    88345: 
1.1.1.2 ! misho    88346:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
        !          88347:     PHP_SOCKETS_SHARED=no
1.1       misho    88348: 
                   88349: 
1.1.1.2 ! misho    88350:   case ext/sockets in
        !          88351:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          88352:   /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          88353:   *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    88354:   esac
                   88355: 
                   88356: 
                   88357: 
1.1.1.2 ! misho    88358:   b_c_pre=$php_c_pre
        !          88359:   b_cxx_pre=$php_cxx_pre
        !          88360:   b_c_meta=$php_c_meta
        !          88361:   b_cxx_meta=$php_cxx_meta
        !          88362:   b_c_post=$php_c_post
        !          88363:   b_cxx_post=$php_cxx_post
        !          88364:   b_lo=$php_lo
1.1       misho    88365: 
                   88366: 
1.1.1.2 ! misho    88367:   old_IFS=$IFS
        !          88368:   for ac_src in sockets.c multicast.c; do
1.1       misho    88369: 
1.1.1.2 ! misho    88370:       IFS=.
        !          88371:       set $ac_src
        !          88372:       ac_obj=$1
        !          88373:       IFS=$old_IFS
1.1       misho    88374: 
1.1.1.2 ! misho    88375:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    88376: 
1.1.1.2 ! misho    88377:       case $ac_src in
        !          88378:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          88379:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          88380:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          88381:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
        !          88382:       esac
1.1       misho    88383: 
1.1.1.2 ! misho    88384:     cat >>Makefile.objects<<EOF
        !          88385: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
        !          88386:        $ac_comp
        !          88387: EOF
        !          88388:   done
1.1       misho    88389: 
                   88390: 
1.1.1.2 ! misho    88391:     EXT_STATIC="$EXT_STATIC sockets"
        !          88392:     if test "$ext_shared" != "nocli"; then
        !          88393:       EXT_CLI_STATIC="$EXT_CLI_STATIC sockets"
        !          88394:     fi
        !          88395:   else
        !          88396:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
        !          88397:       PHP_SOCKETS_SHARED=yes
1.1       misho    88398: 
1.1.1.2 ! misho    88399:   case ext/sockets in
        !          88400:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
        !          88401:   /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          88402:   *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
        !          88403:   esac
1.1       misho    88404: 
                   88405: 
                   88406: 
1.1.1.2 ! misho    88407:   b_c_pre=$shared_c_pre
        !          88408:   b_cxx_pre=$shared_cxx_pre
        !          88409:   b_c_meta=$shared_c_meta
        !          88410:   b_cxx_meta=$shared_cxx_meta
        !          88411:   b_c_post=$shared_c_post
        !          88412:   b_cxx_post=$shared_cxx_post
        !          88413:   b_lo=$shared_lo
1.1       misho    88414: 
                   88415: 
1.1.1.2 ! misho    88416:   old_IFS=$IFS
        !          88417:   for ac_src in sockets.c multicast.c; do
1.1       misho    88418: 
1.1.1.2 ! misho    88419:       IFS=.
        !          88420:       set $ac_src
        !          88421:       ac_obj=$1
        !          88422:       IFS=$old_IFS
1.1       misho    88423: 
1.1.1.2 ! misho    88424:       shared_objects_sockets="$shared_objects_sockets $ac_bdir$ac_obj.lo"
1.1       misho    88425: 
1.1.1.2 ! misho    88426:       case $ac_src in
        !          88427:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          88428:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          88429:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          88430:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
        !          88431:       esac
        !          88432: 
        !          88433:     cat >>Makefile.objects<<EOF
        !          88434: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
        !          88435:        $ac_comp
        !          88436: EOF
1.1       misho    88437:   done
                   88438: 
1.1.1.2 ! misho    88439:       case $host_alias in
        !          88440:         *netware*)
1.1       misho    88441: 
1.1.1.2 ! misho    88442:   install_modules="install-modules"
1.1       misho    88443: 
1.1.1.2 ! misho    88444:   case $host_alias in
        !          88445:     *aix*)
        !          88446:       suffix=so
        !          88447:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsockets.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) $(PHPSOCKETS_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsockets.so '$ext_builddir'/phpsockets.so'
        !          88448:       ;;
        !          88449:     *netware*)
        !          88450:       suffix=nlm
        !          88451:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) -L$(top_builddir)/netware -lphp5lib $(SOCKETS_SHARED_LIBADD)'
        !          88452:       ;;
        !          88453:     *)
        !          88454:       suffix=la
        !          88455:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) $(PHPSOCKETS_SHARED_LIBADD)'
        !          88456:       ;;
        !          88457:   esac
1.1       misho    88458: 
1.1.1.2 ! misho    88459:   if test "x" = "xyes"; then
        !          88460:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsockets.$suffix"
1.1       misho    88461:   else
1.1.1.2 ! misho    88462:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsockets.$suffix"
1.1       misho    88463:   fi
                   88464: 
1.1.1.2 ! misho    88465:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sockets"
1.1       misho    88466: 
1.1.1.2 ! misho    88467:   cat >>Makefile.objects<<EOF
        !          88468: \$(phplibdir)/phpsockets.$suffix: $ext_builddir/phpsockets.$suffix
        !          88469:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsockets.$suffix \$(phplibdir)
1.1       misho    88470: 
1.1.1.2 ! misho    88471: $ext_builddir/phpsockets.$suffix: \$(shared_objects_sockets) \$(PHPSOCKETS_SHARED_DEPENDENCIES)
1.1       misho    88472:        $link_cmd
                   88473: 
                   88474: EOF
                   88475: 
                   88476:           ;;
                   88477:         *)
                   88478: 
                   88479:   install_modules="install-modules"
                   88480: 
                   88481:   case $host_alias in
                   88482:     *aix*)
                   88483:       suffix=so
1.1.1.2 ! misho    88484:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sockets.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) $(SOCKETS_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sockets.so '$ext_builddir'/sockets.so'
1.1       misho    88485:       ;;
                   88486:     *netware*)
                   88487:       suffix=nlm
1.1.1.2 ! misho    88488:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) -L$(top_builddir)/netware -lphp5lib $(KETS_SHARED_LIBADD)'
1.1       misho    88489:       ;;
                   88490:     *)
                   88491:       suffix=la
1.1.1.2 ! misho    88492:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) $(SOCKETS_SHARED_LIBADD)'
1.1       misho    88493:       ;;
                   88494:   esac
                   88495: 
                   88496:   if test "x" = "xyes"; then
1.1.1.2 ! misho    88497:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sockets.$suffix"
1.1       misho    88498:   else
1.1.1.2 ! misho    88499:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/sockets.$suffix"
1.1       misho    88500:   fi
                   88501: 
1.1.1.2 ! misho    88502:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sockets"
1.1       misho    88503: 
                   88504:   cat >>Makefile.objects<<EOF
1.1.1.2 ! misho    88505: \$(phplibdir)/sockets.$suffix: $ext_builddir/sockets.$suffix
        !          88506:        \$(LIBTOOL) --mode=install cp $ext_builddir/sockets.$suffix \$(phplibdir)
1.1       misho    88507: 
1.1.1.2 ! misho    88508: $ext_builddir/sockets.$suffix: \$(shared_objects_sockets) \$(SOCKETS_SHARED_DEPENDENCIES)
1.1       misho    88509:        $link_cmd
                   88510: 
                   88511: EOF
                   88512: 
                   88513:           ;;
                   88514:       esac
                   88515: 
                   88516: cat >>confdefs.h <<_ACEOF
1.1.1.2 ! misho    88517: #define COMPILE_DL_SOCKETS 1
1.1       misho    88518: _ACEOF
                   88519: 
                   88520:     fi
                   88521:   fi
                   88522: 
                   88523:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
1.1.1.2 ! misho    88524:     PHP_SOCKETS_SHARED=no
1.1       misho    88525: 
                   88526: 
1.1.1.2 ! misho    88527:   case ext/sockets in
1.1       misho    88528:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    88529:   /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          88530:   *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    88531:   esac
                   88532: 
                   88533: 
                   88534: 
                   88535:   b_c_pre=$php_c_pre
                   88536:   b_cxx_pre=$php_cxx_pre
                   88537:   b_c_meta=$php_c_meta
                   88538:   b_cxx_meta=$php_cxx_meta
                   88539:   b_c_post=$php_c_post
                   88540:   b_cxx_post=$php_cxx_post
                   88541:   b_lo=$php_lo
                   88542: 
                   88543: 
                   88544:   old_IFS=$IFS
1.1.1.2 ! misho    88545:   for ac_src in sockets.c multicast.c; do
1.1       misho    88546: 
                   88547:       IFS=.
                   88548:       set $ac_src
                   88549:       ac_obj=$1
                   88550:       IFS=$old_IFS
                   88551: 
1.1.1.2 ! misho    88552:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    88553: 
                   88554:       case $ac_src in
                   88555:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88556:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88557:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88558:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   88559:       esac
                   88560: 
                   88561:     cat >>Makefile.objects<<EOF
                   88562: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   88563:        $ac_comp
                   88564: EOF
                   88565:   done
                   88566: 
                   88567: 
                   88568: 
                   88569: 
1.1.1.2 ! misho    88570:   case ext/sockets in
1.1       misho    88571:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    88572:   /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          88573:   *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    88574:   esac
                   88575: 
                   88576: 
                   88577: 
                   88578:   b_c_pre=$php_c_pre
                   88579:   b_cxx_pre=$php_cxx_pre
                   88580:   b_c_meta=$php_c_meta
                   88581:   b_cxx_meta=$php_cxx_meta
                   88582:   b_c_post=$php_c_post
                   88583:   b_cxx_post=$php_cxx_post
                   88584:   b_lo=$php_lo
                   88585: 
                   88586: 
                   88587:   old_IFS=$IFS
1.1.1.2 ! misho    88588:   for ac_src in sockets.c multicast.c; do
1.1       misho    88589: 
                   88590:       IFS=.
                   88591:       set $ac_src
                   88592:       ac_obj=$1
                   88593:       IFS=$old_IFS
                   88594: 
1.1.1.2 ! misho    88595:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    88596: 
                   88597:       case $ac_src in
                   88598:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88599:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88600:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88601:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   88602:       esac
                   88603: 
                   88604:     cat >>Makefile.objects<<EOF
                   88605: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   88606:        $ac_comp
                   88607: EOF
                   88608:   done
                   88609: 
                   88610: 
                   88611: 
                   88612: 
1.1.1.2 ! misho    88613:   case ext/sockets in
1.1       misho    88614:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    88615:   /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          88616:   *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    88617:   esac
                   88618: 
                   88619: 
                   88620: 
                   88621:   b_c_pre=$php_c_pre
                   88622:   b_cxx_pre=$php_cxx_pre
                   88623:   b_c_meta=$php_c_meta
                   88624:   b_cxx_meta=$php_cxx_meta
                   88625:   b_c_post=$php_c_post
                   88626:   b_cxx_post=$php_cxx_post
                   88627:   b_lo=$php_lo
                   88628: 
                   88629: 
                   88630:   old_IFS=$IFS
1.1.1.2 ! misho    88631:   for ac_src in sockets.c multicast.c; do
1.1       misho    88632: 
                   88633:       IFS=.
                   88634:       set $ac_src
                   88635:       ac_obj=$1
                   88636:       IFS=$old_IFS
                   88637: 
1.1.1.2 ! misho    88638:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    88639: 
                   88640:       case $ac_src in
                   88641:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88642:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88643:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88644:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   88645:       esac
                   88646: 
                   88647:     cat >>Makefile.objects<<EOF
                   88648: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   88649:        $ac_comp
                   88650: EOF
                   88651:   done
                   88652: 
                   88653: 
1.1.1.2 ! misho    88654:     EXT_CLI_STATIC="$EXT_CLI_STATIC sockets"
1.1       misho    88655:   fi
                   88656: 
                   88657: 
                   88658:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   88659: 
                   88660: 
                   88661: 
                   88662:   if test "$ext_builddir" = "."; then
1.1.1.2 ! misho    88663:     PHP_PECL_EXTENSION=sockets
1.1       misho    88664: 
                   88665:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   88666: 
                   88667:   fi
                   88668: 
                   88669: 
                   88670: 
1.1.1.2 ! misho    88671:     header_path=ext/sockets/
        !          88672:     for header_file in php_sockets.h; do
        !          88673:       hp_hf="$header_path/$header_file"
1.1       misho    88674: 
                   88675: 
1.1.1.2 ! misho    88676:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
1.1       misho    88677: 
1.1.1.2 ! misho    88678:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
        !          88679:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
        !          88680:     eval "INSTALLHEADERS$unique=set"
1.1       misho    88681: 
1.1.1.2 ! misho    88682:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
1.1       misho    88683: 
1.1.1.2 ! misho    88684:   fi
1.1       misho    88685: 
1.1.1.2 ! misho    88686:     done
1.1       misho    88687: 
                   88688: 
                   88689: fi
                   88690: 
                   88691: 
1.1.1.2 ! misho    88692:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zend_object_value is packed" >&5
        !          88693: $as_echo_n "checking whether zend_object_value is packed... " >&6; }
        !          88694:   old_CPPFLAGS=$CPPFLAGS
        !          88695:   CPPFLAGS="$INCLUDES -I$abs_srcdir $CPPFLAGS"
        !          88696:   if test "$cross_compiling" = yes; then :
1.1       misho    88697: 
1.1.1.2 ! misho    88698:     ac_result=0
        !          88699:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
        !          88700: $as_echo "no" >&6; }
1.1       misho    88701: 
                   88702: else
1.1.1.2 ! misho    88703:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       misho    88704: /* end confdefs.h.  */
                   88705: 
1.1.1.2 ! misho    88706: #include "Zend/zend_types.h"
        !          88707: int main(int argc, char **argv) {
        !          88708:        return ((sizeof(zend_object_handle) + sizeof(zend_object_handlers*)) == sizeof(zend_object_value)) ? 0 : 1;
1.1       misho    88709: }
                   88710: 
1.1.1.2 ! misho    88711: _ACEOF
        !          88712: if ac_fn_c_try_run "$LINENO"; then :
1.1       misho    88713: 
1.1.1.2 ! misho    88714:     ac_result=1
        !          88715:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
        !          88716: $as_echo "yes" >&6; }
1.1       misho    88717: 
1.1.1.2 ! misho    88718: else
1.1       misho    88719: 
1.1.1.2 ! misho    88720:     ac_result=0
        !          88721:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
        !          88722: $as_echo "no" >&6; }
1.1       misho    88723: 
                   88724: fi
1.1.1.2 ! misho    88725: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
        !          88726:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1       misho    88727: fi
                   88728: 
1.1.1.2 ! misho    88729:   CPPFLAGS=$old_CPPFLAGS
1.1       misho    88730: 
1.1.1.2 ! misho    88731: cat >>confdefs.h <<_ACEOF
        !          88732: #define HAVE_PACKED_OBJECT_VALUE $ac_result
1.1       misho    88733: _ACEOF
                   88734: 
                   88735: 
1.1.1.2 ! misho    88736: $as_echo "#define HAVE_SPL 1" >>confdefs.h
1.1       misho    88737: 
                   88738: 
1.1.1.2 ! misho    88739:   ext_builddir=ext/spl
        !          88740:   ext_srcdir=$abs_srcdir/ext/spl
1.1       misho    88741: 
                   88742:   ac_extra=
                   88743: 
1.1.1.2 ! misho    88744:   if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
        !          88745:     PHP_SPL_SHARED=no
1.1       misho    88746: 
                   88747: 
1.1.1.2 ! misho    88748:   case ext/spl in
1.1       misho    88749:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    88750:   /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          88751:   *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    88752:   esac
                   88753: 
                   88754: 
                   88755: 
                   88756:   b_c_pre=$php_c_pre
                   88757:   b_cxx_pre=$php_cxx_pre
                   88758:   b_c_meta=$php_c_meta
                   88759:   b_cxx_meta=$php_cxx_meta
                   88760:   b_c_post=$php_c_post
                   88761:   b_cxx_post=$php_cxx_post
                   88762:   b_lo=$php_lo
                   88763: 
                   88764: 
                   88765:   old_IFS=$IFS
1.1.1.2 ! misho    88766:   for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
1.1       misho    88767: 
                   88768:       IFS=.
                   88769:       set $ac_src
                   88770:       ac_obj=$1
                   88771:       IFS=$old_IFS
                   88772: 
                   88773:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   88774: 
                   88775:       case $ac_src in
                   88776:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88777:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88778:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88779:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   88780:       esac
                   88781: 
                   88782:     cat >>Makefile.objects<<EOF
                   88783: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   88784:        $ac_comp
                   88785: EOF
                   88786:   done
                   88787: 
                   88788: 
1.1.1.2 ! misho    88789:     EXT_STATIC="$EXT_STATIC spl"
        !          88790:     if test "no" != "nocli"; then
        !          88791:       EXT_CLI_STATIC="$EXT_CLI_STATIC spl"
1.1       misho    88792:     fi
                   88793:   else
1.1.1.2 ! misho    88794:     if test "no" = "shared" || test "no" = "yes"; then
        !          88795:       PHP_SPL_SHARED=yes
1.1       misho    88796: 
1.1.1.2 ! misho    88797:   case ext/spl in
1.1       misho    88798:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    88799:   /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          88800:   *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    88801:   esac
                   88802: 
                   88803: 
                   88804: 
                   88805:   b_c_pre=$shared_c_pre
                   88806:   b_cxx_pre=$shared_cxx_pre
                   88807:   b_c_meta=$shared_c_meta
                   88808:   b_cxx_meta=$shared_cxx_meta
                   88809:   b_c_post=$shared_c_post
                   88810:   b_cxx_post=$shared_cxx_post
                   88811:   b_lo=$shared_lo
                   88812: 
                   88813: 
                   88814:   old_IFS=$IFS
1.1.1.2 ! misho    88815:   for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
1.1       misho    88816: 
                   88817:       IFS=.
                   88818:       set $ac_src
                   88819:       ac_obj=$1
                   88820:       IFS=$old_IFS
                   88821: 
1.1.1.2 ! misho    88822:       shared_objects_spl="$shared_objects_spl $ac_bdir$ac_obj.lo"
1.1       misho    88823: 
                   88824:       case $ac_src in
                   88825:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88826:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88827:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88828:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   88829:       esac
                   88830: 
                   88831:     cat >>Makefile.objects<<EOF
                   88832: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   88833:        $ac_comp
                   88834: EOF
                   88835:   done
                   88836: 
                   88837:       case $host_alias in
                   88838:         *netware*)
                   88839: 
                   88840:   install_modules="install-modules"
                   88841: 
                   88842:   case $host_alias in
                   88843:     *aix*)
                   88844:       suffix=so
1.1.1.2 ! misho    88845:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpspl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) $(PHPSPL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpspl.so '$ext_builddir'/phpspl.so'
1.1       misho    88846:       ;;
                   88847:     *netware*)
                   88848:       suffix=nlm
1.1.1.2 ! misho    88849:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) -L$(top_builddir)/netware -lphp5lib $(SPL_SHARED_LIBADD)'
1.1       misho    88850:       ;;
                   88851:     *)
                   88852:       suffix=la
1.1.1.2 ! misho    88853:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) $(PHPSPL_SHARED_LIBADD)'
1.1       misho    88854:       ;;
                   88855:   esac
                   88856: 
                   88857:   if test "x" = "xyes"; then
1.1.1.2 ! misho    88858:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpspl.$suffix"
1.1       misho    88859:   else
1.1.1.2 ! misho    88860:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpspl.$suffix"
1.1       misho    88861:   fi
                   88862: 
1.1.1.2 ! misho    88863:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_spl"
1.1       misho    88864: 
                   88865:   cat >>Makefile.objects<<EOF
1.1.1.2 ! misho    88866: \$(phplibdir)/phpspl.$suffix: $ext_builddir/phpspl.$suffix
        !          88867:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpspl.$suffix \$(phplibdir)
1.1       misho    88868: 
1.1.1.2 ! misho    88869: $ext_builddir/phpspl.$suffix: \$(shared_objects_spl) \$(PHPSPL_SHARED_DEPENDENCIES)
1.1       misho    88870:        $link_cmd
                   88871: 
                   88872: EOF
                   88873: 
                   88874:           ;;
                   88875:         *)
                   88876: 
                   88877:   install_modules="install-modules"
                   88878: 
                   88879:   case $host_alias in
                   88880:     *aix*)
                   88881:       suffix=so
1.1.1.2 ! misho    88882:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/spl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) $(SPL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/spl.so '$ext_builddir'/spl.so'
1.1       misho    88883:       ;;
                   88884:     *netware*)
                   88885:       suffix=nlm
1.1.1.2 ! misho    88886:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
1.1       misho    88887:       ;;
                   88888:     *)
                   88889:       suffix=la
1.1.1.2 ! misho    88890:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) $(SPL_SHARED_LIBADD)'
1.1       misho    88891:       ;;
                   88892:   esac
                   88893: 
                   88894:   if test "x" = "xyes"; then
1.1.1.2 ! misho    88895:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/spl.$suffix"
1.1       misho    88896:   else
1.1.1.2 ! misho    88897:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/spl.$suffix"
1.1       misho    88898:   fi
                   88899: 
1.1.1.2 ! misho    88900:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_spl"
1.1       misho    88901: 
                   88902:   cat >>Makefile.objects<<EOF
1.1.1.2 ! misho    88903: \$(phplibdir)/spl.$suffix: $ext_builddir/spl.$suffix
        !          88904:        \$(LIBTOOL) --mode=install cp $ext_builddir/spl.$suffix \$(phplibdir)
1.1       misho    88905: 
1.1.1.2 ! misho    88906: $ext_builddir/spl.$suffix: \$(shared_objects_spl) \$(SPL_SHARED_DEPENDENCIES)
1.1       misho    88907:        $link_cmd
                   88908: 
                   88909: EOF
                   88910: 
                   88911:           ;;
                   88912:       esac
                   88913: 
                   88914: cat >>confdefs.h <<_ACEOF
1.1.1.2 ! misho    88915: #define COMPILE_DL_SPL 1
1.1       misho    88916: _ACEOF
                   88917: 
                   88918:     fi
                   88919:   fi
                   88920: 
1.1.1.2 ! misho    88921:   if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
        !          88922:     PHP_SPL_SHARED=no
1.1       misho    88923: 
                   88924: 
1.1.1.2 ! misho    88925:   case ext/spl in
1.1       misho    88926:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    88927:   /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          88928:   *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    88929:   esac
                   88930: 
                   88931: 
                   88932: 
                   88933:   b_c_pre=$php_c_pre
                   88934:   b_cxx_pre=$php_cxx_pre
                   88935:   b_c_meta=$php_c_meta
                   88936:   b_cxx_meta=$php_cxx_meta
                   88937:   b_c_post=$php_c_post
                   88938:   b_cxx_post=$php_cxx_post
                   88939:   b_lo=$php_lo
                   88940: 
                   88941: 
                   88942:   old_IFS=$IFS
1.1.1.2 ! misho    88943:   for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
1.1       misho    88944: 
                   88945:       IFS=.
                   88946:       set $ac_src
                   88947:       ac_obj=$1
                   88948:       IFS=$old_IFS
                   88949: 
1.1.1.2 ! misho    88950:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    88951: 
                   88952:       case $ac_src in
                   88953:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88954:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88955:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88956:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   88957:       esac
                   88958: 
                   88959:     cat >>Makefile.objects<<EOF
                   88960: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   88961:        $ac_comp
                   88962: EOF
                   88963:   done
                   88964: 
                   88965: 
                   88966: 
                   88967: 
1.1.1.2 ! misho    88968:   case ext/spl in
1.1       misho    88969:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    88970:   /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          88971:   *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    88972:   esac
                   88973: 
                   88974: 
                   88975: 
                   88976:   b_c_pre=$php_c_pre
                   88977:   b_cxx_pre=$php_cxx_pre
                   88978:   b_c_meta=$php_c_meta
                   88979:   b_cxx_meta=$php_cxx_meta
                   88980:   b_c_post=$php_c_post
                   88981:   b_cxx_post=$php_cxx_post
                   88982:   b_lo=$php_lo
                   88983: 
                   88984: 
                   88985:   old_IFS=$IFS
1.1.1.2 ! misho    88986:   for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
1.1       misho    88987: 
                   88988:       IFS=.
                   88989:       set $ac_src
                   88990:       ac_obj=$1
                   88991:       IFS=$old_IFS
                   88992: 
1.1.1.2 ! misho    88993:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    88994: 
                   88995:       case $ac_src in
                   88996:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88997:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88998:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   88999:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   89000:       esac
                   89001: 
                   89002:     cat >>Makefile.objects<<EOF
                   89003: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   89004:        $ac_comp
                   89005: EOF
                   89006:   done
                   89007: 
                   89008: 
                   89009: 
                   89010: 
1.1.1.2 ! misho    89011:   case ext/spl in
1.1       misho    89012:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    89013:   /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          89014:   *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    89015:   esac
                   89016: 
                   89017: 
                   89018: 
                   89019:   b_c_pre=$php_c_pre
                   89020:   b_cxx_pre=$php_cxx_pre
                   89021:   b_c_meta=$php_c_meta
                   89022:   b_cxx_meta=$php_cxx_meta
                   89023:   b_c_post=$php_c_post
                   89024:   b_cxx_post=$php_cxx_post
                   89025:   b_lo=$php_lo
                   89026: 
                   89027: 
                   89028:   old_IFS=$IFS
1.1.1.2 ! misho    89029:   for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
1.1       misho    89030: 
                   89031:       IFS=.
                   89032:       set $ac_src
                   89033:       ac_obj=$1
                   89034:       IFS=$old_IFS
                   89035: 
1.1.1.2 ! misho    89036:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    89037: 
                   89038:       case $ac_src in
                   89039:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   89040:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   89041:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   89042:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   89043:       esac
                   89044: 
                   89045:     cat >>Makefile.objects<<EOF
                   89046: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   89047:        $ac_comp
                   89048: EOF
                   89049:   done
                   89050: 
                   89051: 
1.1.1.2 ! misho    89052:     EXT_CLI_STATIC="$EXT_CLI_STATIC spl"
1.1       misho    89053:   fi
                   89054: 
                   89055: 
                   89056:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   89057: 
                   89058: 
                   89059: 
                   89060:   if test "$ext_builddir" = "."; then
1.1.1.2 ! misho    89061:     PHP_PECL_EXTENSION=spl
1.1       misho    89062: 
                   89063:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   89064: 
                   89065:   fi
                   89066: 
                   89067: 
                   89068: 
1.1.1.2 ! misho    89069:     header_path=ext/spl
        !          89070:     for header_file in php_spl.h spl_array.h spl_directory.h spl_engine.h spl_exceptions.h spl_functions.h spl_iterators.h spl_observer.h spl_dllist.h spl_heap.h spl_fixedarray.h; do
1.1       misho    89071:       hp_hf="$header_path/$header_file"
                   89072: 
                   89073: 
                   89074:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
                   89075: 
                   89076:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   89077:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   89078:     eval "INSTALLHEADERS$unique=set"
                   89079: 
                   89080:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
                   89081: 
                   89082:   fi
                   89083: 
                   89084:     done
                   89085: 
                   89086: 
                   89087: 
1.1.1.2 ! misho    89088:   am_i_shared=$PHP_SPL_SHARED
        !          89089:   is_it_shared=$PHP_PCRE_SHARED
        !          89090:   is_it_enabled=$PHP_PCRE
        !          89091:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
        !          89092:     as_fn_error $? "
        !          89093: You've configured extension spl to build statically, but it
        !          89094: depends on extension pcre, which you've configured to build shared.
        !          89095: You either need to build spl shared or build pcre statically for the
        !          89096: build to be successful.
        !          89097: " "$LINENO" 5
        !          89098:   fi
1.1       misho    89099: 
                   89100: 
1.1.1.2 ! misho    89101: 
        !          89102: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flush should be called explicitly after a buffered io" >&5
        !          89103: $as_echo_n "checking whether flush should be called explicitly after a buffered io... " >&6; }
        !          89104: if ${ac_cv_flush_io+:} false; then :
        !          89105:   $as_echo_n "(cached) " >&6
        !          89106: else
        !          89107: 
        !          89108: if test "$cross_compiling" = yes; then :
        !          89109: 
        !          89110:   ac_cv_flush_io=no
1.1       misho    89111: 
                   89112: else
                   89113:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   89114: /* end confdefs.h.  */
                   89115: 
1.1.1.2 ! misho    89116: #include <stdio.h>
        !          89117: #include <stdlib.h>
        !          89118: 
        !          89119: int main(int argc, char **argv)
        !          89120: {
        !          89121:        char *filename = tmpnam(NULL);
        !          89122:        char buffer[64];
        !          89123:        int result = 0;
        !          89124: 
        !          89125:        FILE *fp = fopen(filename, "wb");
        !          89126:        if (NULL == fp)
        !          89127:                return 0;
        !          89128:        fputs("line 1\n", fp);
        !          89129:        fputs("line 2\n", fp);
        !          89130:        fclose(fp);
        !          89131: 
        !          89132:        fp = fopen(filename, "rb+");
        !          89133:        if (NULL == fp)
        !          89134:                return 0;
        !          89135:        fgets(buffer, sizeof(buffer), fp);
        !          89136:        fputs("line 3\n", fp);
        !          89137:        rewind(fp);
        !          89138:        fgets(buffer, sizeof(buffer), fp);
        !          89139:        if (0 != strcmp(buffer, "line 1\n"))
        !          89140:                result = 1;
        !          89141:        fgets(buffer, sizeof(buffer), fp);
        !          89142:        if (0 != strcmp(buffer, "line 3\n"))
        !          89143:                result = 1;
        !          89144:        fclose(fp);
        !          89145:        unlink(filename);
        !          89146: 
        !          89147:        exit(result);
1.1       misho    89148: }
                   89149: 
                   89150: _ACEOF
                   89151: if ac_fn_c_try_run "$LINENO"; then :
                   89152: 
1.1.1.2 ! misho    89153:   ac_cv_flush_io=no
1.1       misho    89154: 
                   89155: else
                   89156: 
1.1.1.2 ! misho    89157:   ac_cv_flush_io=yes
1.1       misho    89158: 
                   89159: fi
                   89160: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   89161:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   89162: fi
                   89163: 
1.1.1.2 ! misho    89164: fi
        !          89165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flush_io" >&5
        !          89166: $as_echo "$ac_cv_flush_io" >&6; }
        !          89167: if test "$ac_cv_flush_io" = "yes"; then
1.1       misho    89168: 
1.1.1.2 ! misho    89169: $as_echo "#define HAVE_FLUSHIO 1" >>confdefs.h
1.1       misho    89170: 
1.1.1.2 ! misho    89171: fi
1.1       misho    89172: 
1.1.1.2 ! misho    89173: if test "$ac_cv_func_crypt" = "no"; then
        !          89174:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
        !          89175: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
        !          89176: if ${ac_cv_lib_crypt_crypt+:} false; then :
        !          89177:   $as_echo_n "(cached) " >&6
        !          89178: else
        !          89179:   ac_check_lib_save_LIBS=$LIBS
        !          89180: LIBS="-lcrypt  $LIBS"
        !          89181: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          89182: /* end confdefs.h.  */
1.1       misho    89183: 
1.1.1.2 ! misho    89184: /* Override any GCC internal prototype to avoid an error.
        !          89185:    Use char because int might match the return type of a GCC
        !          89186:    builtin and then its argument prototype would still apply.  */
        !          89187: #ifdef __cplusplus
        !          89188: extern "C"
        !          89189: #endif
        !          89190: char crypt ();
        !          89191: int
        !          89192: main ()
        !          89193: {
        !          89194: return crypt ();
        !          89195:   ;
        !          89196:   return 0;
        !          89197: }
        !          89198: _ACEOF
        !          89199: if ac_fn_c_try_link "$LINENO"; then :
        !          89200:   ac_cv_lib_crypt_crypt=yes
        !          89201: else
        !          89202:   ac_cv_lib_crypt_crypt=no
        !          89203: fi
        !          89204: rm -f core conftest.err conftest.$ac_objext \
        !          89205:     conftest$ac_exeext conftest.$ac_ext
        !          89206: LIBS=$ac_check_lib_save_LIBS
        !          89207: fi
        !          89208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
        !          89209: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
        !          89210: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
1.1       misho    89211: 
1.1.1.2 ! misho    89212:     LIBS="-lcrypt $LIBS -lcrypt"
1.1       misho    89213: 
1.1.1.2 ! misho    89214: $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
1.1       misho    89215: 
                   89216: 
1.1.1.2 ! misho    89217: fi
1.1       misho    89218: 
1.1.1.2 ! misho    89219: fi
1.1       misho    89220: 
1.1.1.2 ! misho    89221: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard DES crypt" >&5
        !          89222: $as_echo_n "checking for standard DES crypt... " >&6; }
        !          89223: if ${ac_cv_crypt_des+:} false; then :
        !          89224:   $as_echo_n "(cached) " >&6
        !          89225: else
1.1       misho    89226: 
1.1.1.2 ! misho    89227:   if test "$cross_compiling" = yes; then :
1.1       misho    89228: 
1.1.1.2 ! misho    89229:   ac_cv_crypt_des=yes
1.1       misho    89230: 
1.1.1.2 ! misho    89231: else
        !          89232:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          89233: /* end confdefs.h.  */
1.1       misho    89234: 
1.1.1.2 ! misho    89235: #if HAVE_UNISTD_H
        !          89236: #include <unistd.h>
        !          89237: #endif
1.1       misho    89238: 
1.1.1.2 ! misho    89239: #if HAVE_CRYPT_H
        !          89240: #include <crypt.h>
        !          89241: #endif
1.1       misho    89242: 
1.1.1.2 ! misho    89243: main() {
        !          89244: #if HAVE_CRYPT
        !          89245:     exit (strcmp((char *)crypt("rasmuslerdorf","rl"),"rl.3StKT.4T8M"));
        !          89246: #else
        !          89247:        exit(0);
        !          89248: #endif
        !          89249: }
        !          89250: _ACEOF
        !          89251: if ac_fn_c_try_run "$LINENO"; then :
1.1       misho    89252: 
1.1.1.2 ! misho    89253:   ac_cv_crypt_des=yes
1.1       misho    89254: 
1.1.1.2 ! misho    89255: else
1.1       misho    89256: 
1.1.1.2 ! misho    89257:   ac_cv_crypt_des=no
1.1       misho    89258: 
1.1.1.2 ! misho    89259: fi
        !          89260: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
        !          89261:   conftest.$ac_objext conftest.beam conftest.$ac_ext
        !          89262: fi
1.1       misho    89263: 
1.1.1.2 ! misho    89264: fi
        !          89265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_des" >&5
        !          89266: $as_echo "$ac_cv_crypt_des" >&6; }
1.1       misho    89267: 
1.1.1.2 ! misho    89268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended DES crypt" >&5
        !          89269: $as_echo_n "checking for extended DES crypt... " >&6; }
        !          89270: if ${ac_cv_crypt_ext_des+:} false; then :
        !          89271:   $as_echo_n "(cached) " >&6
        !          89272: else
1.1       misho    89273: 
1.1.1.2 ! misho    89274:   if test "$cross_compiling" = yes; then :
1.1       misho    89275: 
1.1.1.2 ! misho    89276:   ac_cv_crypt_ext_des=no
1.1       misho    89277: 
1.1.1.2 ! misho    89278: else
        !          89279:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          89280: /* end confdefs.h.  */
1.1       misho    89281: 
1.1.1.2 ! misho    89282: #if HAVE_UNISTD_H
        !          89283: #include <unistd.h>
        !          89284: #endif
1.1       misho    89285: 
1.1.1.2 ! misho    89286: #if HAVE_CRYPT_H
        !          89287: #include <crypt.h>
        !          89288: #endif
1.1       misho    89289: 
1.1.1.2 ! misho    89290: main() {
        !          89291: #if HAVE_CRYPT
        !          89292:   exit (strcmp((char *)crypt("rasmuslerdorf","_J9..rasm"),"_J9..rasmBYk8r9AiWNc"));
        !          89293: #else
        !          89294:   exit(0);
        !          89295: #endif
        !          89296: }
        !          89297: _ACEOF
        !          89298: if ac_fn_c_try_run "$LINENO"; then :
1.1       misho    89299: 
1.1.1.2 ! misho    89300:   ac_cv_crypt_ext_des=yes
1.1       misho    89301: 
1.1.1.2 ! misho    89302: else
1.1       misho    89303: 
1.1.1.2 ! misho    89304:   ac_cv_crypt_ext_des=no
1.1       misho    89305: 
1.1.1.2 ! misho    89306: fi
        !          89307: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
        !          89308:   conftest.$ac_objext conftest.beam conftest.$ac_ext
        !          89309: fi
1.1       misho    89310: 
1.1.1.2 ! misho    89311: fi
        !          89312: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_ext_des" >&5
        !          89313: $as_echo "$ac_cv_crypt_ext_des" >&6; }
1.1       misho    89314: 
1.1.1.2 ! misho    89315: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 crypt" >&5
        !          89316: $as_echo_n "checking for MD5 crypt... " >&6; }
        !          89317: if ${ac_cv_crypt_md5+:} false; then :
        !          89318:   $as_echo_n "(cached) " >&6
        !          89319: else
1.1       misho    89320: 
1.1.1.2 ! misho    89321: if test "$cross_compiling" = yes; then :
1.1       misho    89322: 
1.1.1.2 ! misho    89323:   ac_cv_crypt_md5=no
1.1       misho    89324: 
1.1.1.2 ! misho    89325: else
        !          89326:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          89327: /* end confdefs.h.  */
1.1       misho    89328: 
1.1.1.2 ! misho    89329: #if HAVE_UNISTD_H
        !          89330: #include <unistd.h>
        !          89331: #endif
1.1       misho    89332: 
1.1.1.2 ! misho    89333: #if HAVE_CRYPT_H
        !          89334: #include <crypt.h>
        !          89335: #endif
1.1       misho    89336: 
1.1.1.2 ! misho    89337: main() {
        !          89338: #if HAVE_CRYPT
        !          89339:     char salt[15], answer[40];
1.1       misho    89340: 
1.1.1.2 ! misho    89341:     salt[0]='$'; salt[1]='1'; salt[2]='$';
        !          89342:     salt[3]='r'; salt[4]='a'; salt[5]='s';
        !          89343:     salt[6]='m'; salt[7]='u'; salt[8]='s';
        !          89344:     salt[9]='l'; salt[10]='e'; salt[11]='$';
        !          89345:     salt[12]='\0';
        !          89346:     strcpy(answer,salt);
        !          89347:     strcat(answer,"rISCgZzpwk3UhDidwXvin0");
        !          89348:     exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer));
        !          89349: #else
        !          89350:        exit(0);
        !          89351: #endif
        !          89352: }
        !          89353: _ACEOF
        !          89354: if ac_fn_c_try_run "$LINENO"; then :
1.1       misho    89355: 
1.1.1.2 ! misho    89356:   ac_cv_crypt_md5=yes
1.1       misho    89357: 
1.1.1.2 ! misho    89358: else
1.1       misho    89359: 
1.1.1.2 ! misho    89360:   ac_cv_crypt_md5=no
1.1       misho    89361: 
1.1.1.2 ! misho    89362: fi
        !          89363: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
        !          89364:   conftest.$ac_objext conftest.beam conftest.$ac_ext
        !          89365: fi
1.1       misho    89366: 
1.1.1.2 ! misho    89367: fi
        !          89368: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_md5" >&5
        !          89369: $as_echo "$ac_cv_crypt_md5" >&6; }
1.1       misho    89370: 
1.1.1.2 ! misho    89371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Blowfish crypt" >&5
        !          89372: $as_echo_n "checking for Blowfish crypt... " >&6; }
        !          89373: if ${ac_cv_crypt_blowfish+:} false; then :
        !          89374:   $as_echo_n "(cached) " >&6
        !          89375: else
1.1       misho    89376: 
1.1.1.2 ! misho    89377: if test "$cross_compiling" = yes; then :
1.1       misho    89378: 
1.1.1.2 ! misho    89379:   ac_cv_crypt_blowfish=no
1.1       misho    89380: 
1.1.1.2 ! misho    89381: else
        !          89382:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          89383: /* end confdefs.h.  */
1.1       misho    89384: 
1.1.1.2 ! misho    89385: #if HAVE_UNISTD_H
        !          89386: #include <unistd.h>
        !          89387: #endif
1.1       misho    89388: 
1.1.1.2 ! misho    89389: #if HAVE_CRYPT_H
        !          89390: #include <crypt.h>
        !          89391: #endif
1.1       misho    89392: 
1.1.1.2 ! misho    89393: main() {
        !          89394: #if HAVE_CRYPT
        !          89395:     char salt[30], answer[70];
1.1       misho    89396: 
1.1.1.2 ! misho    89397:     salt[0]='$'; salt[1]='2'; salt[2]='a'; salt[3]='$'; salt[4]='0'; salt[5]='7'; salt[6]='$'; salt[7]='\0';
        !          89398:     strcat(salt,"rasmuslerd............");
        !          89399:     strcpy(answer,salt);
        !          89400:     strcpy(&answer[29],"nIdrcHdxcUxWomQX9j6kvERCFjTg7Ra");
        !          89401:     exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer));
        !          89402: #else
        !          89403:        exit(0);
        !          89404: #endif
        !          89405: }
        !          89406: _ACEOF
        !          89407: if ac_fn_c_try_run "$LINENO"; then :
1.1       misho    89408: 
1.1.1.2 ! misho    89409:   ac_cv_crypt_blowfish=yes
1.1       misho    89410: 
1.1.1.2 ! misho    89411: else
1.1       misho    89412: 
1.1.1.2 ! misho    89413:   ac_cv_crypt_blowfish=no
1.1       misho    89414: 
1.1.1.2 ! misho    89415: fi
        !          89416: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
        !          89417:   conftest.$ac_objext conftest.beam conftest.$ac_ext
        !          89418: fi
1.1       misho    89419: 
1.1.1.2 ! misho    89420: fi
        !          89421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_blowfish" >&5
        !          89422: $as_echo "$ac_cv_crypt_blowfish" >&6; }
1.1       misho    89423: 
1.1.1.2 ! misho    89424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512 crypt" >&5
        !          89425: $as_echo_n "checking for SHA512 crypt... " >&6; }
        !          89426: if ${ac_cv_crypt_SHA512+:} false; then :
        !          89427:   $as_echo_n "(cached) " >&6
        !          89428: else
1.1       misho    89429: 
1.1.1.2 ! misho    89430: if test "$cross_compiling" = yes; then :
1.1       misho    89431: 
1.1.1.2 ! misho    89432:   ac_cv_crypt_SHA512=no
1.1       misho    89433: 
1.1.1.2 ! misho    89434: else
        !          89435:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          89436: /* end confdefs.h.  */
1.1       misho    89437: 
1.1.1.2 ! misho    89438: #if HAVE_UNISTD_H
        !          89439: #include <unistd.h>
        !          89440: #endif
1.1       misho    89441: 
1.1.1.2 ! misho    89442: #if HAVE_CRYPT_H
        !          89443: #include <crypt.h>
        !          89444: #endif
1.1       misho    89445: 
1.1.1.2 ! misho    89446: main() {
        !          89447: #if HAVE_CRYPT
        !          89448:     char salt[30], answer[80];
1.1       misho    89449: 
1.1.1.2 ! misho    89450:     salt[0]='$'; salt[1]='6'; salt[2]='$'; salt[3]='$'; salt[4]='b'; salt[5]='a'; salt[6]='r'; salt[7]='\0';
        !          89451:     strcpy(answer, salt);
        !          89452:     strcpy(&answer[29],"$6$$QMXjqd7rHQZPQ1yHsXkQqC1FBzDiVfTHXL.LaeDAeVV.IzMaV9VU4MQ8kPuZa2SOP1A0RPm772EaFYjpEJtdu.");
        !          89453:     exit (strcmp((char *)crypt("foo",salt),answer));
        !          89454: #else
        !          89455:        exit(0);
        !          89456: #endif
        !          89457: }
        !          89458: _ACEOF
        !          89459: if ac_fn_c_try_run "$LINENO"; then :
1.1       misho    89460: 
1.1.1.2 ! misho    89461:   ac_cv_crypt_SHA512=yes
1.1       misho    89462: 
1.1.1.2 ! misho    89463: else
1.1       misho    89464: 
1.1.1.2 ! misho    89465:   ac_cv_crypt_SHA512=no
1.1       misho    89466: 
                   89467: fi
1.1.1.2 ! misho    89468: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
        !          89469:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1       misho    89470: fi
                   89471: 
1.1.1.2 ! misho    89472: fi
        !          89473: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_SHA512" >&5
        !          89474: $as_echo "$ac_cv_crypt_SHA512" >&6; }
1.1       misho    89475: 
1.1.1.2 ! misho    89476: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 crypt" >&5
        !          89477: $as_echo_n "checking for SHA256 crypt... " >&6; }
        !          89478: if ${ac_cv_crypt_SHA256+:} false; then :
1.1       misho    89479:   $as_echo_n "(cached) " >&6
                   89480: else
                   89481: 
1.1.1.2 ! misho    89482: if test "$cross_compiling" = yes; then :
1.1       misho    89483: 
1.1.1.2 ! misho    89484:   ac_cv_crypt_SHA256=no
1.1       misho    89485: 
1.1.1.2 ! misho    89486: else
        !          89487:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          89488: /* end confdefs.h.  */
1.1       misho    89489: 
1.1.1.2 ! misho    89490: #if HAVE_UNISTD_H
        !          89491: #include <unistd.h>
        !          89492: #endif
1.1       misho    89493: 
1.1.1.2 ! misho    89494: #if HAVE_CRYPT_H
        !          89495: #include <crypt.h>
        !          89496: #endif
1.1       misho    89497: 
1.1.1.2 ! misho    89498: main() {
        !          89499: #if HAVE_CRYPT
        !          89500:     char salt[30], answer[80];
        !          89501:     salt[0]='$'; salt[1]='5'; salt[2]='$'; salt[3]='$'; salt[4]='s'; salt[5]='a'; salt[6]='l'; salt[7]='t';  salt[8]='s'; salt[9]='t'; salt[10]='r'; salt[11]='i'; salt[12]='n'; salt[13]='g'; salt[14]='\0';
        !          89502:     strcat(salt,"");
        !          89503:     strcpy(answer, salt);
        !          89504:     strcpy(&answer[29], "$5$saltstring$5B8vYYiY.CVt1RlTTf8KbXBH3hsxY/GNooZaBBGWEc5");
        !          89505:     exit (strcmp((char *)crypt("foo",salt),answer));
        !          89506: #else
        !          89507:        exit(0);
        !          89508: #endif
        !          89509: }
        !          89510: _ACEOF
        !          89511: if ac_fn_c_try_run "$LINENO"; then :
1.1       misho    89512: 
1.1.1.2 ! misho    89513:   ac_cv_crypt_SHA256=yes
1.1       misho    89514: 
1.1.1.2 ! misho    89515: else
1.1       misho    89516: 
1.1.1.2 ! misho    89517:   ac_cv_crypt_SHA256=no
1.1       misho    89518: 
1.1.1.2 ! misho    89519: fi
        !          89520: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
        !          89521:   conftest.$ac_objext conftest.beam conftest.$ac_ext
        !          89522: fi
1.1       misho    89523: 
1.1.1.2 ! misho    89524: fi
        !          89525: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_SHA256" >&5
        !          89526: $as_echo "$ac_cv_crypt_SHA256" >&6; }
1.1       misho    89527: 
                   89528: 
1.1.1.2 ! misho    89529: if test "$ac_cv_crypt_blowfish" = "no" || test "$ac_cv_crypt_des" = "no" || test "$ac_cv_crypt_ext_des" = "no" || test "x$php_crypt_r" = "x0"; then
1.1       misho    89530: 
1.1.1.2 ! misho    89531:         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __alignof__" >&5
        !          89532: $as_echo_n "checking whether the compiler supports __alignof__... " >&6; }
        !          89533: if ${ac_cv_alignof_exists+:} false; then :
1.1       misho    89534:   $as_echo_n "(cached) " >&6
                   89535: else
1.1.1.2 ! misho    89536: 
        !          89537:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       misho    89538: /* end confdefs.h.  */
                   89539: 
1.1.1.2 ! misho    89540: 
1.1       misho    89541: int
                   89542: main ()
                   89543: {
1.1.1.2 ! misho    89544: 
        !          89545:     int align = __alignof__(int);
        !          89546: 
1.1       misho    89547:   ;
                   89548:   return 0;
                   89549: }
                   89550: _ACEOF
1.1.1.2 ! misho    89551: if ac_fn_c_try_compile "$LINENO"; then :
1.1       misho    89552: 
1.1.1.2 ! misho    89553:     ac_cv_alignof_exists=yes
1.1       misho    89554: 
                   89555: else
                   89556: 
1.1.1.2 ! misho    89557:     ac_cv_alignof_exists=no
1.1       misho    89558: 
                   89559: fi
1.1.1.2 ! misho    89560: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          89561: fi
        !          89562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_exists" >&5
        !          89563: $as_echo "$ac_cv_alignof_exists" >&6; }
        !          89564:   if test "$ac_cv_alignof_exists" = "yes"; then
1.1       misho    89565: 
1.1.1.2 ! misho    89566: $as_echo "#define HAVE_ALIGNOF 1" >>confdefs.h
1.1       misho    89567: 
                   89568:   fi
                   89569: 
1.1.1.2 ! misho    89570:         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports aligned attribute" >&5
        !          89571: $as_echo_n "checking whether the compiler supports aligned attribute... " >&6; }
        !          89572: if ${ac_cv_attribute_aligned+:} false; then :
1.1       misho    89573:   $as_echo_n "(cached) " >&6
                   89574: else
                   89575: 
1.1.1.2 ! misho    89576:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          89577: /* end confdefs.h.  */
1.1       misho    89578: 
                   89579: 
1.1.1.2 ! misho    89580: int
        !          89581: main ()
        !          89582: {
1.1       misho    89583: 
1.1.1.2 ! misho    89584:     unsigned char test[32] __attribute__ ((__aligned__ (__alignof__ (int))));
1.1       misho    89585: 
1.1.1.2 ! misho    89586:   ;
        !          89587:   return 0;
        !          89588: }
1.1       misho    89589: _ACEOF
1.1.1.2 ! misho    89590: if ac_fn_c_try_compile "$LINENO"; then :
1.1       misho    89591: 
1.1.1.2 ! misho    89592:     ac_cv_attribute_aligned=yes
1.1       misho    89593: 
1.1.1.2 ! misho    89594: else
1.1       misho    89595: 
1.1.1.2 ! misho    89596:     ac_cv_attribute_aligned=no
1.1       misho    89597: 
1.1.1.2 ! misho    89598: fi
        !          89599: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        !          89600: fi
        !          89601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_attribute_aligned" >&5
        !          89602: $as_echo "$ac_cv_attribute_aligned" >&6; }
        !          89603:   if test "$ac_cv_attribute_aligned" = "yes"; then
1.1       misho    89604: 
1.1.1.2 ! misho    89605: $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
1.1       misho    89606: 
1.1.1.2 ! misho    89607:   fi
1.1       misho    89608: 
                   89609: 
                   89610: 
1.1.1.2 ! misho    89611: cat >>confdefs.h <<_ACEOF
        !          89612: #define PHP_USE_PHP_CRYPT_R 1
        !          89613: _ACEOF
1.1       misho    89614: 
                   89615: 
1.1.1.2 ! misho    89616: cat >>confdefs.h <<_ACEOF
        !          89617: #define PHP_STD_DES_CRYPT 1
        !          89618: _ACEOF
1.1       misho    89619: 
                   89620: 
1.1.1.2 ! misho    89621: cat >>confdefs.h <<_ACEOF
        !          89622: #define PHP_BLOWFISH_CRYPT 1
        !          89623: _ACEOF
1.1       misho    89624: 
                   89625: 
1.1.1.2 ! misho    89626: cat >>confdefs.h <<_ACEOF
        !          89627: #define PHP_EXT_DES_CRYPT 1
        !          89628: _ACEOF
1.1       misho    89629: 
                   89630: 
1.1.1.2 ! misho    89631: cat >>confdefs.h <<_ACEOF
        !          89632: #define PHP_MD5_CRYPT 1
        !          89633: _ACEOF
1.1       misho    89634: 
                   89635: 
1.1.1.2 ! misho    89636: cat >>confdefs.h <<_ACEOF
        !          89637: #define PHP_SHA512_CRYPT 1
        !          89638: _ACEOF
1.1       misho    89639: 
1.1.1.2 ! misho    89640: 
        !          89641: cat >>confdefs.h <<_ACEOF
        !          89642: #define PHP_SHA256_CRYPT 1
        !          89643: _ACEOF
1.1       misho    89644: 
                   89645: 
                   89646: 
                   89647: 
1.1.1.2 ! misho    89648:   case ext/standard in
1.1       misho    89649:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
1.1.1.2 ! misho    89650:   /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
        !          89651:   *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
1.1       misho    89652:   esac
                   89653: 
                   89654: 
                   89655: 
                   89656:   b_c_pre=$php_c_pre
                   89657:   b_cxx_pre=$php_cxx_pre
                   89658:   b_c_meta=$php_c_meta
                   89659:   b_cxx_meta=$php_cxx_meta
                   89660:   b_c_post=$php_c_post
                   89661:   b_cxx_post=$php_cxx_post
                   89662:   b_lo=$php_lo
                   89663: 
                   89664: 
                   89665:   old_IFS=$IFS
1.1.1.2 ! misho    89666:   for ac_src in crypt_freesec.c crypt_blowfish.c crypt_sha512.c crypt_sha256.c php_crypt_r.c; do
1.1       misho    89667: 
                   89668:       IFS=.
                   89669:       set $ac_src
                   89670:       ac_obj=$1
                   89671:       IFS=$old_IFS
                   89672: 
1.1.1.2 ! misho    89673:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    89674: 
                   89675:       case $ac_src in
1.1.1.2 ! misho    89676:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          89677:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          89678:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
        !          89679:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
1.1       misho    89680:       esac
                   89681: 
                   89682:     cat >>Makefile.objects<<EOF
                   89683: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   89684:        $ac_comp
                   89685: EOF
                   89686:   done
                   89687: 
                   89688: 
1.1.1.2 ! misho    89689: else
        !          89690:   if test "$ac_cv_crypt_des" = "yes"; then
        !          89691:     ac_result=1
        !          89692:     ac_crypt_des=1
        !          89693:   else
        !          89694:     ac_result=0
        !          89695:     ac_crypt_des=0
1.1       misho    89696:   fi
                   89697: 
1.1.1.2 ! misho    89698: cat >>confdefs.h <<_ACEOF
        !          89699: #define PHP_STD_DES_CRYPT $ac_result
        !          89700: _ACEOF
1.1       misho    89701: 
                   89702: 
1.1.1.2 ! misho    89703:   if test "$ac_cv_crypt_blowfish" = "yes"; then
        !          89704:     ac_result=1
        !          89705:     ac_crypt_blowfish=1
        !          89706:   else
        !          89707:     ac_result=0
        !          89708:     ac_crypt_blowfish=0
1.1       misho    89709:   fi
                   89710: 
1.1.1.2 ! misho    89711: cat >>confdefs.h <<_ACEOF
        !          89712: #define PHP_BLOWFISH_CRYPT $ac_result
        !          89713: _ACEOF
1.1       misho    89714: 
                   89715: 
1.1.1.2 ! misho    89716:   if test "$ac_cv_crypt_ext_des" = "yes"; then
        !          89717:     ac_result=1
        !          89718:     ac_crypt_edes=1
        !          89719:   else
        !          89720:     ac_result=0
        !          89721:     ac_crypt_edes=0
1.1       misho    89722:   fi
                   89723: 
1.1.1.2 ! misho    89724: cat >>confdefs.h <<_ACEOF
        !          89725: #define PHP_EXT_DES_CRYPT $ac_result
        !          89726: _ACEOF
1.1       misho    89727: 
                   89728: 
1.1.1.2 ! misho    89729:   if test "$ac_cv_crypt_md5" = "yes"; then
        !          89730:     ac_result=1
        !          89731:     ac_crypt_md5=1
        !          89732:   else
        !          89733:     ac_result=0
        !          89734:     ac_crypt_md5=0
1.1       misho    89735:   fi
                   89736: 
                   89737: cat >>confdefs.h <<_ACEOF
1.1.1.2 ! misho    89738: #define PHP_MD5_CRYPT $ac_result
1.1       misho    89739: _ACEOF
                   89740: 
                   89741: 
1.1.1.2 ! misho    89742:   if test "$ac_cv_crypt_sha512" = "yes"; then
        !          89743:     ac_result=1
        !          89744:     ac_crypt_sha512=1
        !          89745:   else
        !          89746:     ac_result=0
        !          89747:     ac_crypt_sha512=0
        !          89748:   fi
1.1       misho    89749: 
1.1.1.2 ! misho    89750: cat >>confdefs.h <<_ACEOF
        !          89751: #define PHP_SHA512_CRYPT $ac_result
        !          89752: _ACEOF
1.1       misho    89753: 
                   89754: 
1.1.1.2 ! misho    89755:   if test "$ac_cv_crypt_sha256" = "yes"; then
        !          89756:     ac_result=1
        !          89757:     ac_crypt_sha256=1
        !          89758:   else
        !          89759:     ac_result=0
        !          89760:     ac_crypt_sha256=0
        !          89761:   fi
1.1       misho    89762: 
1.1.1.2 ! misho    89763: cat >>confdefs.h <<_ACEOF
        !          89764: #define PHP_SHA256_CRYPT $ac_result
        !          89765: _ACEOF
1.1       misho    89766: 
                   89767: 
                   89768: 
1.1.1.2 ! misho    89769: cat >>confdefs.h <<_ACEOF
        !          89770: #define PHP_USE_PHP_CRYPT_R 0
        !          89771: _ACEOF
1.1       misho    89772: 
1.1.1.2 ! misho    89773: fi
1.1       misho    89774: 
1.1.1.2 ! misho    89775: for ac_func in getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass isinf isnan mempcpy strpncpy
1.1       misho    89776: do :
                   89777:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   89778: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   89779: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   89780:   cat >>confdefs.h <<_ACEOF
                   89781: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   89782: _ACEOF
                   89783: 
                   89784: fi
                   89785: done
                   89786: 
1.1.1.2 ! misho    89787: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
        !          89788: $as_echo_n "checking for working POSIX fnmatch... " >&6; }
        !          89789: if ${ac_cv_func_fnmatch_works+:} false; then :
        !          89790:   $as_echo_n "(cached) " >&6
        !          89791: else
        !          89792:   # Some versions of Solaris, SCO, and the GNU C Library
        !          89793:    # have a broken or incompatible fnmatch.
        !          89794:    # So we run a test program.  If we are cross-compiling, take no chance.
        !          89795:    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
        !          89796:    if test "$cross_compiling" = yes; then :
        !          89797:   ac_cv_func_fnmatch_works=cross
        !          89798: else
        !          89799:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          89800: /* end confdefs.h.  */
        !          89801: #include <fnmatch.h>
        !          89802: #         define y(a, b, c) (fnmatch (a, b, c) == 0)
        !          89803: #         define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
        !          89804: 
        !          89805: int
        !          89806: main ()
        !          89807: {
        !          89808: return
        !          89809:           (!(y ("a*", "abc", 0)
        !          89810:              && n ("d*/*1", "d/s/1", FNM_PATHNAME)
        !          89811:              && y ("a\\\\bc", "abc", 0)
        !          89812:              && n ("a\\\\bc", "abc", FNM_NOESCAPE)
        !          89813:              && y ("*x", ".x", 0)
        !          89814:              && n ("*x", ".x", FNM_PERIOD)
        !          89815:              && 1));
        !          89816:   ;
        !          89817:   return 0;
        !          89818: }
1.1       misho    89819: _ACEOF
1.1.1.2 ! misho    89820: if ac_fn_c_try_run "$LINENO"; then :
        !          89821:   ac_cv_func_fnmatch_works=yes
        !          89822: else
        !          89823:   ac_cv_func_fnmatch_works=no
        !          89824: fi
        !          89825: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
        !          89826:   conftest.$ac_objext conftest.beam conftest.$ac_ext
        !          89827: fi
1.1       misho    89828: 
                   89829: fi
1.1.1.2 ! misho    89830: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
        !          89831: $as_echo "$ac_cv_func_fnmatch_works" >&6; }
        !          89832: if test $ac_cv_func_fnmatch_works = yes; then :
1.1       misho    89833: 
1.1.1.2 ! misho    89834: $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
1.1       misho    89835: 
                   89836: fi
                   89837: 
                   89838: 
                   89839: 
                   89840: for ac_func in fork CreateProcess
                   89841: do :
                   89842:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   89843: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   89844: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   89845:   cat >>confdefs.h <<_ACEOF
                   89846: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   89847: _ACEOF
                   89848: 
                   89849:   php_can_support_proc_open=yes
                   89850:   break
                   89851: 
                   89852: else
                   89853: 
                   89854:   php_can_support_proc_open=no
                   89855: 
                   89856: fi
                   89857: done
                   89858: 
                   89859: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your OS can spawn processes with inherited handles" >&5
                   89860: $as_echo_n "checking if your OS can spawn processes with inherited handles... " >&6; }
                   89861: if test "$php_can_support_proc_open" = "yes"; then
                   89862:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   89863: $as_echo "yes" >&6; }
                   89864: 
                   89865: $as_echo "#define PHP_CAN_SUPPORT_PROC_OPEN 1" >>confdefs.h
                   89866: 
                   89867: else
                   89868:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   89869: $as_echo "no" >&6; }
                   89870: fi
                   89871: 
                   89872: if test "$PHP_SAPI" = "cgi" || test "$PHP_SAPI" = "cli" || test "$PHP_SAPI" = "embed"; then
                   89873: 
                   89874: $as_echo "#define ENABLE_CHROOT_FUNC 1" >>confdefs.h
                   89875: 
                   89876: fi
                   89877: 
                   89878: 
                   89879:   unset ac_cv_func_res_nsearch
                   89880:   unset ac_cv_func___res_nsearch
                   89881:   unset found
                   89882: 
                   89883:   ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch"
                   89884: if test "x$ac_cv_func_res_nsearch" = xyes; then :
                   89885:   found=yes
                   89886: else
                   89887:    ac_fn_c_check_func "$LINENO" "__res_nsearch" "ac_cv_func___res_nsearch"
                   89888: if test "x$ac_cv_func___res_nsearch" = xyes; then :
                   89889:   found=yes
                   89890: else
                   89891:   found=no
                   89892: fi
                   89893: 
                   89894: fi
                   89895: 
                   89896: 
                   89897:   case $found in
                   89898:   yes)
                   89899: 
                   89900: $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
                   89901: 
                   89902:     ac_cv_func_res_nsearch=yes
                   89903:   ;;
                   89904: 
                   89905:     *)
                   89906: 
                   89907:   unset ac_cv_lib_resolv_res_nsearch
                   89908:   unset ac_cv_lib_resolv___res_nsearch
                   89909:   unset found
                   89910:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lresolv" >&5
                   89911: $as_echo_n "checking for res_nsearch in -lresolv... " >&6; }
                   89912: if ${ac_cv_lib_resolv_res_nsearch+:} false; then :
                   89913:   $as_echo_n "(cached) " >&6
                   89914: else
                   89915:   ac_check_lib_save_LIBS=$LIBS
                   89916: LIBS="-lresolv  $LIBS"
                   89917: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   89918: /* end confdefs.h.  */
                   89919: 
                   89920: /* Override any GCC internal prototype to avoid an error.
                   89921:    Use char because int might match the return type of a GCC
                   89922:    builtin and then its argument prototype would still apply.  */
                   89923: #ifdef __cplusplus
                   89924: extern "C"
                   89925: #endif
                   89926: char res_nsearch ();
                   89927: int
                   89928: main ()
                   89929: {
                   89930: return res_nsearch ();
                   89931:   ;
                   89932:   return 0;
                   89933: }
                   89934: _ACEOF
                   89935: if ac_fn_c_try_link "$LINENO"; then :
                   89936:   ac_cv_lib_resolv_res_nsearch=yes
                   89937: else
                   89938:   ac_cv_lib_resolv_res_nsearch=no
                   89939: fi
                   89940: rm -f core conftest.err conftest.$ac_objext \
                   89941:     conftest$ac_exeext conftest.$ac_ext
                   89942: LIBS=$ac_check_lib_save_LIBS
                   89943: fi
                   89944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_nsearch" >&5
                   89945: $as_echo "$ac_cv_lib_resolv_res_nsearch" >&6; }
                   89946: if test "x$ac_cv_lib_resolv_res_nsearch" = xyes; then :
                   89947:   found=yes
                   89948: else
                   89949: 
                   89950:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lresolv" >&5
                   89951: $as_echo_n "checking for __res_nsearch in -lresolv... " >&6; }
                   89952: if ${ac_cv_lib_resolv___res_nsearch+:} false; then :
                   89953:   $as_echo_n "(cached) " >&6
                   89954: else
                   89955:   ac_check_lib_save_LIBS=$LIBS
                   89956: LIBS="-lresolv  $LIBS"
                   89957: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   89958: /* end confdefs.h.  */
                   89959: 
                   89960: /* Override any GCC internal prototype to avoid an error.
                   89961:    Use char because int might match the return type of a GCC
                   89962:    builtin and then its argument prototype would still apply.  */
                   89963: #ifdef __cplusplus
                   89964: extern "C"
                   89965: #endif
                   89966: char __res_nsearch ();
                   89967: int
                   89968: main ()
                   89969: {
                   89970: return __res_nsearch ();
                   89971:   ;
                   89972:   return 0;
                   89973: }
                   89974: _ACEOF
                   89975: if ac_fn_c_try_link "$LINENO"; then :
                   89976:   ac_cv_lib_resolv___res_nsearch=yes
                   89977: else
                   89978:   ac_cv_lib_resolv___res_nsearch=no
                   89979: fi
                   89980: rm -f core conftest.err conftest.$ac_objext \
                   89981:     conftest$ac_exeext conftest.$ac_ext
                   89982: LIBS=$ac_check_lib_save_LIBS
                   89983: fi
                   89984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_nsearch" >&5
                   89985: $as_echo "$ac_cv_lib_resolv___res_nsearch" >&6; }
                   89986: if test "x$ac_cv_lib_resolv___res_nsearch" = xyes; then :
                   89987:   found=yes
                   89988: else
                   89989:   found=no
                   89990: fi
                   89991: 
                   89992: 
                   89993: fi
                   89994: 
                   89995: 
                   89996:   if test "$found" = "yes"; then
                   89997:     ac_libs=$LIBS
                   89998:     LIBS="$LIBS -lresolv"
                   89999:     if test "$cross_compiling" = yes; then :
                   90000:   found=no
                   90001: else
                   90002:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90003: /* end confdefs.h.  */
                   90004: main() { return (0); }
                   90005: _ACEOF
                   90006: if ac_fn_c_try_run "$LINENO"; then :
                   90007:   found=yes
                   90008: else
                   90009:   found=no
                   90010: fi
                   90011: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   90012:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   90013: fi
                   90014: 
                   90015:     LIBS=$ac_libs
                   90016:   fi
                   90017: 
                   90018:   if test "$found" = "yes"; then
                   90019: 
                   90020: 
                   90021:   case resolv in
                   90022:   c|c_r|pthread*) ;;
                   90023:   *)
                   90024:       LIBS="-lresolv $LIBS"
                   90025:    ;;
                   90026:   esac
                   90027: 
                   90028: 
                   90029: 
                   90030: $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
                   90031: 
                   90032: 
                   90033: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
                   90034: 
                   90035:     ac_cv_func_res_nsearch=yes
                   90036:   else
                   90037: 
                   90038: 
                   90039:   unset ac_cv_lib_bind_res_nsearch
                   90040:   unset ac_cv_lib_bind___res_nsearch
                   90041:   unset found
                   90042:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lbind" >&5
                   90043: $as_echo_n "checking for res_nsearch in -lbind... " >&6; }
                   90044: if ${ac_cv_lib_bind_res_nsearch+:} false; then :
                   90045:   $as_echo_n "(cached) " >&6
                   90046: else
                   90047:   ac_check_lib_save_LIBS=$LIBS
                   90048: LIBS="-lbind  $LIBS"
                   90049: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90050: /* end confdefs.h.  */
                   90051: 
                   90052: /* Override any GCC internal prototype to avoid an error.
                   90053:    Use char because int might match the return type of a GCC
                   90054:    builtin and then its argument prototype would still apply.  */
                   90055: #ifdef __cplusplus
                   90056: extern "C"
                   90057: #endif
                   90058: char res_nsearch ();
                   90059: int
                   90060: main ()
                   90061: {
                   90062: return res_nsearch ();
                   90063:   ;
                   90064:   return 0;
                   90065: }
                   90066: _ACEOF
                   90067: if ac_fn_c_try_link "$LINENO"; then :
                   90068:   ac_cv_lib_bind_res_nsearch=yes
                   90069: else
                   90070:   ac_cv_lib_bind_res_nsearch=no
                   90071: fi
                   90072: rm -f core conftest.err conftest.$ac_objext \
                   90073:     conftest$ac_exeext conftest.$ac_ext
                   90074: LIBS=$ac_check_lib_save_LIBS
                   90075: fi
                   90076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_nsearch" >&5
                   90077: $as_echo "$ac_cv_lib_bind_res_nsearch" >&6; }
                   90078: if test "x$ac_cv_lib_bind_res_nsearch" = xyes; then :
                   90079:   found=yes
                   90080: else
                   90081: 
                   90082:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lbind" >&5
                   90083: $as_echo_n "checking for __res_nsearch in -lbind... " >&6; }
                   90084: if ${ac_cv_lib_bind___res_nsearch+:} false; then :
                   90085:   $as_echo_n "(cached) " >&6
                   90086: else
                   90087:   ac_check_lib_save_LIBS=$LIBS
                   90088: LIBS="-lbind  $LIBS"
                   90089: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90090: /* end confdefs.h.  */
                   90091: 
                   90092: /* Override any GCC internal prototype to avoid an error.
                   90093:    Use char because int might match the return type of a GCC
                   90094:    builtin and then its argument prototype would still apply.  */
                   90095: #ifdef __cplusplus
                   90096: extern "C"
                   90097: #endif
                   90098: char __res_nsearch ();
                   90099: int
                   90100: main ()
                   90101: {
                   90102: return __res_nsearch ();
                   90103:   ;
                   90104:   return 0;
                   90105: }
                   90106: _ACEOF
                   90107: if ac_fn_c_try_link "$LINENO"; then :
                   90108:   ac_cv_lib_bind___res_nsearch=yes
                   90109: else
                   90110:   ac_cv_lib_bind___res_nsearch=no
                   90111: fi
                   90112: rm -f core conftest.err conftest.$ac_objext \
                   90113:     conftest$ac_exeext conftest.$ac_ext
                   90114: LIBS=$ac_check_lib_save_LIBS
                   90115: fi
                   90116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_nsearch" >&5
                   90117: $as_echo "$ac_cv_lib_bind___res_nsearch" >&6; }
                   90118: if test "x$ac_cv_lib_bind___res_nsearch" = xyes; then :
                   90119:   found=yes
                   90120: else
                   90121:   found=no
                   90122: fi
                   90123: 
                   90124: 
                   90125: fi
                   90126: 
                   90127: 
                   90128:   if test "$found" = "yes"; then
                   90129:     ac_libs=$LIBS
                   90130:     LIBS="$LIBS -lbind"
                   90131:     if test "$cross_compiling" = yes; then :
                   90132:   found=no
                   90133: else
                   90134:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90135: /* end confdefs.h.  */
                   90136: main() { return (0); }
                   90137: _ACEOF
                   90138: if ac_fn_c_try_run "$LINENO"; then :
                   90139:   found=yes
                   90140: else
                   90141:   found=no
                   90142: fi
                   90143: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   90144:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   90145: fi
                   90146: 
                   90147:     LIBS=$ac_libs
                   90148:   fi
                   90149: 
                   90150:   if test "$found" = "yes"; then
                   90151: 
                   90152: 
                   90153:   case bind in
                   90154:   c|c_r|pthread*) ;;
                   90155:   *)
                   90156:       LIBS="-lbind $LIBS"
                   90157:    ;;
                   90158:   esac
                   90159: 
                   90160: 
                   90161: 
                   90162: $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
                   90163: 
                   90164: 
                   90165: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
                   90166: 
                   90167:     ac_cv_func_res_nsearch=yes
                   90168:   else
                   90169: 
                   90170: 
                   90171:   unset ac_cv_lib_socket_res_nsearch
                   90172:   unset ac_cv_lib_socket___res_nsearch
                   90173:   unset found
                   90174:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lsocket" >&5
                   90175: $as_echo_n "checking for res_nsearch in -lsocket... " >&6; }
                   90176: if ${ac_cv_lib_socket_res_nsearch+:} false; then :
                   90177:   $as_echo_n "(cached) " >&6
                   90178: else
                   90179:   ac_check_lib_save_LIBS=$LIBS
                   90180: LIBS="-lsocket  $LIBS"
                   90181: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90182: /* end confdefs.h.  */
                   90183: 
                   90184: /* Override any GCC internal prototype to avoid an error.
                   90185:    Use char because int might match the return type of a GCC
                   90186:    builtin and then its argument prototype would still apply.  */
                   90187: #ifdef __cplusplus
                   90188: extern "C"
                   90189: #endif
                   90190: char res_nsearch ();
                   90191: int
                   90192: main ()
                   90193: {
                   90194: return res_nsearch ();
                   90195:   ;
                   90196:   return 0;
                   90197: }
                   90198: _ACEOF
                   90199: if ac_fn_c_try_link "$LINENO"; then :
                   90200:   ac_cv_lib_socket_res_nsearch=yes
                   90201: else
                   90202:   ac_cv_lib_socket_res_nsearch=no
                   90203: fi
                   90204: rm -f core conftest.err conftest.$ac_objext \
                   90205:     conftest$ac_exeext conftest.$ac_ext
                   90206: LIBS=$ac_check_lib_save_LIBS
                   90207: fi
                   90208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_nsearch" >&5
                   90209: $as_echo "$ac_cv_lib_socket_res_nsearch" >&6; }
                   90210: if test "x$ac_cv_lib_socket_res_nsearch" = xyes; then :
                   90211:   found=yes
                   90212: else
                   90213: 
                   90214:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lsocket" >&5
                   90215: $as_echo_n "checking for __res_nsearch in -lsocket... " >&6; }
                   90216: if ${ac_cv_lib_socket___res_nsearch+:} false; then :
                   90217:   $as_echo_n "(cached) " >&6
                   90218: else
                   90219:   ac_check_lib_save_LIBS=$LIBS
                   90220: LIBS="-lsocket  $LIBS"
                   90221: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90222: /* end confdefs.h.  */
                   90223: 
                   90224: /* Override any GCC internal prototype to avoid an error.
                   90225:    Use char because int might match the return type of a GCC
                   90226:    builtin and then its argument prototype would still apply.  */
                   90227: #ifdef __cplusplus
                   90228: extern "C"
                   90229: #endif
                   90230: char __res_nsearch ();
                   90231: int
                   90232: main ()
                   90233: {
                   90234: return __res_nsearch ();
                   90235:   ;
                   90236:   return 0;
                   90237: }
                   90238: _ACEOF
                   90239: if ac_fn_c_try_link "$LINENO"; then :
                   90240:   ac_cv_lib_socket___res_nsearch=yes
                   90241: else
                   90242:   ac_cv_lib_socket___res_nsearch=no
                   90243: fi
                   90244: rm -f core conftest.err conftest.$ac_objext \
                   90245:     conftest$ac_exeext conftest.$ac_ext
                   90246: LIBS=$ac_check_lib_save_LIBS
                   90247: fi
                   90248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_nsearch" >&5
                   90249: $as_echo "$ac_cv_lib_socket___res_nsearch" >&6; }
                   90250: if test "x$ac_cv_lib_socket___res_nsearch" = xyes; then :
                   90251:   found=yes
                   90252: else
                   90253:   found=no
                   90254: fi
                   90255: 
                   90256: 
                   90257: fi
                   90258: 
                   90259: 
                   90260:   if test "$found" = "yes"; then
                   90261:     ac_libs=$LIBS
                   90262:     LIBS="$LIBS -lsocket"
                   90263:     if test "$cross_compiling" = yes; then :
                   90264:   found=no
                   90265: else
                   90266:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90267: /* end confdefs.h.  */
                   90268: main() { return (0); }
                   90269: _ACEOF
                   90270: if ac_fn_c_try_run "$LINENO"; then :
                   90271:   found=yes
                   90272: else
                   90273:   found=no
                   90274: fi
                   90275: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   90276:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   90277: fi
                   90278: 
                   90279:     LIBS=$ac_libs
                   90280:   fi
                   90281: 
                   90282:   if test "$found" = "yes"; then
                   90283: 
                   90284: 
                   90285:   case socket in
                   90286:   c|c_r|pthread*) ;;
                   90287:   *)
                   90288:       LIBS="-lsocket $LIBS"
                   90289:    ;;
                   90290:   esac
                   90291: 
                   90292: 
                   90293: 
                   90294: $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
                   90295: 
                   90296: 
                   90297: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
                   90298: 
                   90299:     ac_cv_func_res_nsearch=yes
                   90300:   else
                   90301: 
                   90302:   :
                   90303: 
                   90304:   fi
                   90305: 
                   90306: 
                   90307:   fi
                   90308: 
                   90309: 
                   90310:   fi
                   90311: 
                   90312:  ;;
                   90313: 
                   90314:   esac
                   90315: 
                   90316: 
                   90317:   unset ac_cv_func_dns_search
                   90318:   unset ac_cv_func___dns_search
                   90319:   unset found
                   90320: 
                   90321:   ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search"
                   90322: if test "x$ac_cv_func_dns_search" = xyes; then :
                   90323:   found=yes
                   90324: else
                   90325:    ac_fn_c_check_func "$LINENO" "__dns_search" "ac_cv_func___dns_search"
                   90326: if test "x$ac_cv_func___dns_search" = xyes; then :
                   90327:   found=yes
                   90328: else
                   90329:   found=no
                   90330: fi
                   90331: 
                   90332: fi
                   90333: 
                   90334: 
                   90335:   case $found in
                   90336:   yes)
                   90337: 
                   90338: $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
                   90339: 
                   90340:     ac_cv_func_dns_search=yes
                   90341:   ;;
                   90342: 
                   90343:     *)
                   90344: 
                   90345:   unset ac_cv_lib_resolv_dns_search
                   90346:   unset ac_cv_lib_resolv___dns_search
                   90347:   unset found
                   90348:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lresolv" >&5
                   90349: $as_echo_n "checking for dns_search in -lresolv... " >&6; }
                   90350: if ${ac_cv_lib_resolv_dns_search+:} false; then :
                   90351:   $as_echo_n "(cached) " >&6
                   90352: else
                   90353:   ac_check_lib_save_LIBS=$LIBS
                   90354: LIBS="-lresolv  $LIBS"
                   90355: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90356: /* end confdefs.h.  */
                   90357: 
                   90358: /* Override any GCC internal prototype to avoid an error.
                   90359:    Use char because int might match the return type of a GCC
                   90360:    builtin and then its argument prototype would still apply.  */
                   90361: #ifdef __cplusplus
                   90362: extern "C"
                   90363: #endif
                   90364: char dns_search ();
                   90365: int
                   90366: main ()
                   90367: {
                   90368: return dns_search ();
                   90369:   ;
                   90370:   return 0;
                   90371: }
                   90372: _ACEOF
                   90373: if ac_fn_c_try_link "$LINENO"; then :
                   90374:   ac_cv_lib_resolv_dns_search=yes
                   90375: else
                   90376:   ac_cv_lib_resolv_dns_search=no
                   90377: fi
                   90378: rm -f core conftest.err conftest.$ac_objext \
                   90379:     conftest$ac_exeext conftest.$ac_ext
                   90380: LIBS=$ac_check_lib_save_LIBS
                   90381: fi
                   90382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dns_search" >&5
                   90383: $as_echo "$ac_cv_lib_resolv_dns_search" >&6; }
                   90384: if test "x$ac_cv_lib_resolv_dns_search" = xyes; then :
                   90385:   found=yes
                   90386: else
                   90387: 
                   90388:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lresolv" >&5
                   90389: $as_echo_n "checking for __dns_search in -lresolv... " >&6; }
                   90390: if ${ac_cv_lib_resolv___dns_search+:} false; then :
                   90391:   $as_echo_n "(cached) " >&6
                   90392: else
                   90393:   ac_check_lib_save_LIBS=$LIBS
                   90394: LIBS="-lresolv  $LIBS"
                   90395: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90396: /* end confdefs.h.  */
                   90397: 
                   90398: /* Override any GCC internal prototype to avoid an error.
                   90399:    Use char because int might match the return type of a GCC
                   90400:    builtin and then its argument prototype would still apply.  */
                   90401: #ifdef __cplusplus
                   90402: extern "C"
                   90403: #endif
                   90404: char __dns_search ();
                   90405: int
                   90406: main ()
                   90407: {
                   90408: return __dns_search ();
                   90409:   ;
                   90410:   return 0;
                   90411: }
                   90412: _ACEOF
                   90413: if ac_fn_c_try_link "$LINENO"; then :
                   90414:   ac_cv_lib_resolv___dns_search=yes
                   90415: else
                   90416:   ac_cv_lib_resolv___dns_search=no
                   90417: fi
                   90418: rm -f core conftest.err conftest.$ac_objext \
                   90419:     conftest$ac_exeext conftest.$ac_ext
                   90420: LIBS=$ac_check_lib_save_LIBS
                   90421: fi
                   90422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dns_search" >&5
                   90423: $as_echo "$ac_cv_lib_resolv___dns_search" >&6; }
                   90424: if test "x$ac_cv_lib_resolv___dns_search" = xyes; then :
                   90425:   found=yes
                   90426: else
                   90427:   found=no
                   90428: fi
                   90429: 
                   90430: 
                   90431: fi
                   90432: 
                   90433: 
                   90434:   if test "$found" = "yes"; then
                   90435:     ac_libs=$LIBS
                   90436:     LIBS="$LIBS -lresolv"
                   90437:     if test "$cross_compiling" = yes; then :
                   90438:   found=no
                   90439: else
                   90440:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90441: /* end confdefs.h.  */
                   90442: main() { return (0); }
                   90443: _ACEOF
                   90444: if ac_fn_c_try_run "$LINENO"; then :
                   90445:   found=yes
                   90446: else
                   90447:   found=no
                   90448: fi
                   90449: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   90450:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   90451: fi
                   90452: 
                   90453:     LIBS=$ac_libs
                   90454:   fi
                   90455: 
                   90456:   if test "$found" = "yes"; then
                   90457: 
                   90458: 
                   90459:   case resolv in
                   90460:   c|c_r|pthread*) ;;
                   90461:   *)
                   90462:       LIBS="-lresolv $LIBS"
                   90463:    ;;
                   90464:   esac
                   90465: 
                   90466: 
                   90467: 
                   90468: $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
                   90469: 
                   90470: 
                   90471: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
                   90472: 
                   90473:     ac_cv_func_dns_search=yes
                   90474:   else
                   90475: 
                   90476: 
                   90477:   unset ac_cv_lib_bind_dns_search
                   90478:   unset ac_cv_lib_bind___dns_search
                   90479:   unset found
                   90480:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lbind" >&5
                   90481: $as_echo_n "checking for dns_search in -lbind... " >&6; }
                   90482: if ${ac_cv_lib_bind_dns_search+:} false; then :
                   90483:   $as_echo_n "(cached) " >&6
                   90484: else
                   90485:   ac_check_lib_save_LIBS=$LIBS
                   90486: LIBS="-lbind  $LIBS"
                   90487: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90488: /* end confdefs.h.  */
                   90489: 
                   90490: /* Override any GCC internal prototype to avoid an error.
                   90491:    Use char because int might match the return type of a GCC
                   90492:    builtin and then its argument prototype would still apply.  */
                   90493: #ifdef __cplusplus
                   90494: extern "C"
                   90495: #endif
                   90496: char dns_search ();
                   90497: int
                   90498: main ()
                   90499: {
                   90500: return dns_search ();
                   90501:   ;
                   90502:   return 0;
                   90503: }
                   90504: _ACEOF
                   90505: if ac_fn_c_try_link "$LINENO"; then :
                   90506:   ac_cv_lib_bind_dns_search=yes
                   90507: else
                   90508:   ac_cv_lib_bind_dns_search=no
                   90509: fi
                   90510: rm -f core conftest.err conftest.$ac_objext \
                   90511:     conftest$ac_exeext conftest.$ac_ext
                   90512: LIBS=$ac_check_lib_save_LIBS
                   90513: fi
                   90514: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dns_search" >&5
                   90515: $as_echo "$ac_cv_lib_bind_dns_search" >&6; }
                   90516: if test "x$ac_cv_lib_bind_dns_search" = xyes; then :
                   90517:   found=yes
                   90518: else
                   90519: 
                   90520:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lbind" >&5
                   90521: $as_echo_n "checking for __dns_search in -lbind... " >&6; }
                   90522: if ${ac_cv_lib_bind___dns_search+:} false; then :
                   90523:   $as_echo_n "(cached) " >&6
                   90524: else
                   90525:   ac_check_lib_save_LIBS=$LIBS
                   90526: LIBS="-lbind  $LIBS"
                   90527: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90528: /* end confdefs.h.  */
                   90529: 
                   90530: /* Override any GCC internal prototype to avoid an error.
                   90531:    Use char because int might match the return type of a GCC
                   90532:    builtin and then its argument prototype would still apply.  */
                   90533: #ifdef __cplusplus
                   90534: extern "C"
                   90535: #endif
                   90536: char __dns_search ();
                   90537: int
                   90538: main ()
                   90539: {
                   90540: return __dns_search ();
                   90541:   ;
                   90542:   return 0;
                   90543: }
                   90544: _ACEOF
                   90545: if ac_fn_c_try_link "$LINENO"; then :
                   90546:   ac_cv_lib_bind___dns_search=yes
                   90547: else
                   90548:   ac_cv_lib_bind___dns_search=no
                   90549: fi
                   90550: rm -f core conftest.err conftest.$ac_objext \
                   90551:     conftest$ac_exeext conftest.$ac_ext
                   90552: LIBS=$ac_check_lib_save_LIBS
                   90553: fi
                   90554: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dns_search" >&5
                   90555: $as_echo "$ac_cv_lib_bind___dns_search" >&6; }
                   90556: if test "x$ac_cv_lib_bind___dns_search" = xyes; then :
                   90557:   found=yes
                   90558: else
                   90559:   found=no
                   90560: fi
                   90561: 
                   90562: 
                   90563: fi
                   90564: 
                   90565: 
                   90566:   if test "$found" = "yes"; then
                   90567:     ac_libs=$LIBS
                   90568:     LIBS="$LIBS -lbind"
                   90569:     if test "$cross_compiling" = yes; then :
                   90570:   found=no
                   90571: else
                   90572:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90573: /* end confdefs.h.  */
                   90574: main() { return (0); }
                   90575: _ACEOF
                   90576: if ac_fn_c_try_run "$LINENO"; then :
                   90577:   found=yes
                   90578: else
                   90579:   found=no
                   90580: fi
                   90581: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   90582:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   90583: fi
                   90584: 
                   90585:     LIBS=$ac_libs
                   90586:   fi
                   90587: 
                   90588:   if test "$found" = "yes"; then
                   90589: 
                   90590: 
                   90591:   case bind in
                   90592:   c|c_r|pthread*) ;;
                   90593:   *)
                   90594:       LIBS="-lbind $LIBS"
                   90595:    ;;
                   90596:   esac
                   90597: 
                   90598: 
                   90599: 
                   90600: $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
                   90601: 
                   90602: 
                   90603: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
                   90604: 
                   90605:     ac_cv_func_dns_search=yes
                   90606:   else
                   90607: 
                   90608: 
                   90609:   unset ac_cv_lib_socket_dns_search
                   90610:   unset ac_cv_lib_socket___dns_search
                   90611:   unset found
                   90612:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lsocket" >&5
                   90613: $as_echo_n "checking for dns_search in -lsocket... " >&6; }
                   90614: if ${ac_cv_lib_socket_dns_search+:} false; then :
                   90615:   $as_echo_n "(cached) " >&6
                   90616: else
                   90617:   ac_check_lib_save_LIBS=$LIBS
                   90618: LIBS="-lsocket  $LIBS"
                   90619: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90620: /* end confdefs.h.  */
                   90621: 
                   90622: /* Override any GCC internal prototype to avoid an error.
                   90623:    Use char because int might match the return type of a GCC
                   90624:    builtin and then its argument prototype would still apply.  */
                   90625: #ifdef __cplusplus
                   90626: extern "C"
                   90627: #endif
                   90628: char dns_search ();
                   90629: int
                   90630: main ()
                   90631: {
                   90632: return dns_search ();
                   90633:   ;
                   90634:   return 0;
                   90635: }
                   90636: _ACEOF
                   90637: if ac_fn_c_try_link "$LINENO"; then :
                   90638:   ac_cv_lib_socket_dns_search=yes
                   90639: else
                   90640:   ac_cv_lib_socket_dns_search=no
                   90641: fi
                   90642: rm -f core conftest.err conftest.$ac_objext \
                   90643:     conftest$ac_exeext conftest.$ac_ext
                   90644: LIBS=$ac_check_lib_save_LIBS
                   90645: fi
                   90646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dns_search" >&5
                   90647: $as_echo "$ac_cv_lib_socket_dns_search" >&6; }
                   90648: if test "x$ac_cv_lib_socket_dns_search" = xyes; then :
                   90649:   found=yes
                   90650: else
                   90651: 
                   90652:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lsocket" >&5
                   90653: $as_echo_n "checking for __dns_search in -lsocket... " >&6; }
                   90654: if ${ac_cv_lib_socket___dns_search+:} false; then :
                   90655:   $as_echo_n "(cached) " >&6
                   90656: else
                   90657:   ac_check_lib_save_LIBS=$LIBS
                   90658: LIBS="-lsocket  $LIBS"
                   90659: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90660: /* end confdefs.h.  */
                   90661: 
                   90662: /* Override any GCC internal prototype to avoid an error.
                   90663:    Use char because int might match the return type of a GCC
                   90664:    builtin and then its argument prototype would still apply.  */
                   90665: #ifdef __cplusplus
                   90666: extern "C"
                   90667: #endif
                   90668: char __dns_search ();
                   90669: int
                   90670: main ()
                   90671: {
                   90672: return __dns_search ();
                   90673:   ;
                   90674:   return 0;
                   90675: }
                   90676: _ACEOF
                   90677: if ac_fn_c_try_link "$LINENO"; then :
                   90678:   ac_cv_lib_socket___dns_search=yes
                   90679: else
                   90680:   ac_cv_lib_socket___dns_search=no
                   90681: fi
                   90682: rm -f core conftest.err conftest.$ac_objext \
                   90683:     conftest$ac_exeext conftest.$ac_ext
                   90684: LIBS=$ac_check_lib_save_LIBS
                   90685: fi
                   90686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dns_search" >&5
                   90687: $as_echo "$ac_cv_lib_socket___dns_search" >&6; }
                   90688: if test "x$ac_cv_lib_socket___dns_search" = xyes; then :
                   90689:   found=yes
                   90690: else
                   90691:   found=no
                   90692: fi
                   90693: 
                   90694: 
                   90695: fi
                   90696: 
                   90697: 
                   90698:   if test "$found" = "yes"; then
                   90699:     ac_libs=$LIBS
                   90700:     LIBS="$LIBS -lsocket"
                   90701:     if test "$cross_compiling" = yes; then :
                   90702:   found=no
                   90703: else
                   90704:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90705: /* end confdefs.h.  */
                   90706: main() { return (0); }
                   90707: _ACEOF
                   90708: if ac_fn_c_try_run "$LINENO"; then :
                   90709:   found=yes
                   90710: else
                   90711:   found=no
                   90712: fi
                   90713: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   90714:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   90715: fi
                   90716: 
                   90717:     LIBS=$ac_libs
                   90718:   fi
                   90719: 
                   90720:   if test "$found" = "yes"; then
                   90721: 
                   90722: 
                   90723:   case socket in
                   90724:   c|c_r|pthread*) ;;
                   90725:   *)
                   90726:       LIBS="-lsocket $LIBS"
                   90727:    ;;
                   90728:   esac
                   90729: 
                   90730: 
                   90731: 
                   90732: $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
                   90733: 
                   90734: 
                   90735: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
                   90736: 
                   90737:     ac_cv_func_dns_search=yes
                   90738:   else
                   90739: 
                   90740:   :
                   90741: 
                   90742:   fi
                   90743: 
                   90744: 
                   90745:   fi
                   90746: 
                   90747: 
                   90748:   fi
                   90749: 
                   90750:  ;;
                   90751: 
                   90752:   esac
                   90753: 
                   90754: 
                   90755:   unset ac_cv_func_dn_expand
                   90756:   unset ac_cv_func___dn_expand
                   90757:   unset found
                   90758: 
                   90759:   ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand"
                   90760: if test "x$ac_cv_func_dn_expand" = xyes; then :
                   90761:   found=yes
                   90762: else
                   90763:    ac_fn_c_check_func "$LINENO" "__dn_expand" "ac_cv_func___dn_expand"
                   90764: if test "x$ac_cv_func___dn_expand" = xyes; then :
                   90765:   found=yes
                   90766: else
                   90767:   found=no
                   90768: fi
                   90769: 
                   90770: fi
                   90771: 
                   90772: 
                   90773:   case $found in
                   90774:   yes)
                   90775: 
                   90776: $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
                   90777: 
                   90778:     ac_cv_func_dn_expand=yes
                   90779:   ;;
                   90780: 
                   90781:     *)
                   90782: 
                   90783:   unset ac_cv_lib_resolv_dn_expand
                   90784:   unset ac_cv_lib_resolv___dn_expand
                   90785:   unset found
                   90786:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lresolv" >&5
                   90787: $as_echo_n "checking for dn_expand in -lresolv... " >&6; }
                   90788: if ${ac_cv_lib_resolv_dn_expand+:} false; then :
                   90789:   $as_echo_n "(cached) " >&6
                   90790: else
                   90791:   ac_check_lib_save_LIBS=$LIBS
                   90792: LIBS="-lresolv  $LIBS"
                   90793: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90794: /* end confdefs.h.  */
                   90795: 
                   90796: /* Override any GCC internal prototype to avoid an error.
                   90797:    Use char because int might match the return type of a GCC
                   90798:    builtin and then its argument prototype would still apply.  */
                   90799: #ifdef __cplusplus
                   90800: extern "C"
                   90801: #endif
                   90802: char dn_expand ();
                   90803: int
                   90804: main ()
                   90805: {
                   90806: return dn_expand ();
                   90807:   ;
                   90808:   return 0;
                   90809: }
                   90810: _ACEOF
                   90811: if ac_fn_c_try_link "$LINENO"; then :
                   90812:   ac_cv_lib_resolv_dn_expand=yes
                   90813: else
                   90814:   ac_cv_lib_resolv_dn_expand=no
                   90815: fi
                   90816: rm -f core conftest.err conftest.$ac_objext \
                   90817:     conftest$ac_exeext conftest.$ac_ext
                   90818: LIBS=$ac_check_lib_save_LIBS
                   90819: fi
                   90820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_expand" >&5
                   90821: $as_echo "$ac_cv_lib_resolv_dn_expand" >&6; }
                   90822: if test "x$ac_cv_lib_resolv_dn_expand" = xyes; then :
                   90823:   found=yes
                   90824: else
                   90825: 
                   90826:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lresolv" >&5
                   90827: $as_echo_n "checking for __dn_expand in -lresolv... " >&6; }
                   90828: if ${ac_cv_lib_resolv___dn_expand+:} false; then :
                   90829:   $as_echo_n "(cached) " >&6
                   90830: else
                   90831:   ac_check_lib_save_LIBS=$LIBS
                   90832: LIBS="-lresolv  $LIBS"
                   90833: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90834: /* end confdefs.h.  */
                   90835: 
                   90836: /* Override any GCC internal prototype to avoid an error.
                   90837:    Use char because int might match the return type of a GCC
                   90838:    builtin and then its argument prototype would still apply.  */
                   90839: #ifdef __cplusplus
                   90840: extern "C"
                   90841: #endif
                   90842: char __dn_expand ();
                   90843: int
                   90844: main ()
                   90845: {
                   90846: return __dn_expand ();
                   90847:   ;
                   90848:   return 0;
                   90849: }
                   90850: _ACEOF
                   90851: if ac_fn_c_try_link "$LINENO"; then :
                   90852:   ac_cv_lib_resolv___dn_expand=yes
                   90853: else
                   90854:   ac_cv_lib_resolv___dn_expand=no
                   90855: fi
                   90856: rm -f core conftest.err conftest.$ac_objext \
                   90857:     conftest$ac_exeext conftest.$ac_ext
                   90858: LIBS=$ac_check_lib_save_LIBS
                   90859: fi
                   90860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_expand" >&5
                   90861: $as_echo "$ac_cv_lib_resolv___dn_expand" >&6; }
                   90862: if test "x$ac_cv_lib_resolv___dn_expand" = xyes; then :
                   90863:   found=yes
                   90864: else
                   90865:   found=no
                   90866: fi
                   90867: 
                   90868: 
                   90869: fi
                   90870: 
                   90871: 
                   90872:   if test "$found" = "yes"; then
                   90873:     ac_libs=$LIBS
                   90874:     LIBS="$LIBS -lresolv"
                   90875:     if test "$cross_compiling" = yes; then :
                   90876:   found=no
                   90877: else
                   90878:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90879: /* end confdefs.h.  */
                   90880: main() { return (0); }
                   90881: _ACEOF
                   90882: if ac_fn_c_try_run "$LINENO"; then :
                   90883:   found=yes
                   90884: else
                   90885:   found=no
                   90886: fi
                   90887: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   90888:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   90889: fi
                   90890: 
                   90891:     LIBS=$ac_libs
                   90892:   fi
                   90893: 
                   90894:   if test "$found" = "yes"; then
                   90895: 
                   90896: 
                   90897:   case resolv in
                   90898:   c|c_r|pthread*) ;;
                   90899:   *)
                   90900:       LIBS="-lresolv $LIBS"
                   90901:    ;;
                   90902:   esac
                   90903: 
                   90904: 
                   90905: 
                   90906: $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
                   90907: 
                   90908: 
                   90909: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
                   90910: 
                   90911:     ac_cv_func_dn_expand=yes
                   90912:   else
                   90913: 
                   90914: 
                   90915:   unset ac_cv_lib_bind_dn_expand
                   90916:   unset ac_cv_lib_bind___dn_expand
                   90917:   unset found
                   90918:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lbind" >&5
                   90919: $as_echo_n "checking for dn_expand in -lbind... " >&6; }
                   90920: if ${ac_cv_lib_bind_dn_expand+:} false; then :
                   90921:   $as_echo_n "(cached) " >&6
                   90922: else
                   90923:   ac_check_lib_save_LIBS=$LIBS
                   90924: LIBS="-lbind  $LIBS"
                   90925: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90926: /* end confdefs.h.  */
                   90927: 
                   90928: /* Override any GCC internal prototype to avoid an error.
                   90929:    Use char because int might match the return type of a GCC
                   90930:    builtin and then its argument prototype would still apply.  */
                   90931: #ifdef __cplusplus
                   90932: extern "C"
                   90933: #endif
                   90934: char dn_expand ();
                   90935: int
                   90936: main ()
                   90937: {
                   90938: return dn_expand ();
                   90939:   ;
                   90940:   return 0;
                   90941: }
                   90942: _ACEOF
                   90943: if ac_fn_c_try_link "$LINENO"; then :
                   90944:   ac_cv_lib_bind_dn_expand=yes
                   90945: else
                   90946:   ac_cv_lib_bind_dn_expand=no
                   90947: fi
                   90948: rm -f core conftest.err conftest.$ac_objext \
                   90949:     conftest$ac_exeext conftest.$ac_ext
                   90950: LIBS=$ac_check_lib_save_LIBS
                   90951: fi
                   90952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_expand" >&5
                   90953: $as_echo "$ac_cv_lib_bind_dn_expand" >&6; }
                   90954: if test "x$ac_cv_lib_bind_dn_expand" = xyes; then :
                   90955:   found=yes
                   90956: else
                   90957: 
                   90958:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lbind" >&5
                   90959: $as_echo_n "checking for __dn_expand in -lbind... " >&6; }
                   90960: if ${ac_cv_lib_bind___dn_expand+:} false; then :
                   90961:   $as_echo_n "(cached) " >&6
                   90962: else
                   90963:   ac_check_lib_save_LIBS=$LIBS
                   90964: LIBS="-lbind  $LIBS"
                   90965: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   90966: /* end confdefs.h.  */
                   90967: 
                   90968: /* Override any GCC internal prototype to avoid an error.
                   90969:    Use char because int might match the return type of a GCC
                   90970:    builtin and then its argument prototype would still apply.  */
                   90971: #ifdef __cplusplus
                   90972: extern "C"
                   90973: #endif
                   90974: char __dn_expand ();
                   90975: int
                   90976: main ()
                   90977: {
                   90978: return __dn_expand ();
                   90979:   ;
                   90980:   return 0;
                   90981: }
                   90982: _ACEOF
                   90983: if ac_fn_c_try_link "$LINENO"; then :
                   90984:   ac_cv_lib_bind___dn_expand=yes
                   90985: else
                   90986:   ac_cv_lib_bind___dn_expand=no
                   90987: fi
                   90988: rm -f core conftest.err conftest.$ac_objext \
                   90989:     conftest$ac_exeext conftest.$ac_ext
                   90990: LIBS=$ac_check_lib_save_LIBS
                   90991: fi
                   90992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_expand" >&5
                   90993: $as_echo "$ac_cv_lib_bind___dn_expand" >&6; }
                   90994: if test "x$ac_cv_lib_bind___dn_expand" = xyes; then :
                   90995:   found=yes
                   90996: else
                   90997:   found=no
                   90998: fi
                   90999: 
                   91000: 
                   91001: fi
                   91002: 
                   91003: 
                   91004:   if test "$found" = "yes"; then
                   91005:     ac_libs=$LIBS
                   91006:     LIBS="$LIBS -lbind"
                   91007:     if test "$cross_compiling" = yes; then :
                   91008:   found=no
                   91009: else
                   91010:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91011: /* end confdefs.h.  */
                   91012: main() { return (0); }
                   91013: _ACEOF
                   91014: if ac_fn_c_try_run "$LINENO"; then :
                   91015:   found=yes
                   91016: else
                   91017:   found=no
                   91018: fi
                   91019: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   91020:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   91021: fi
                   91022: 
                   91023:     LIBS=$ac_libs
                   91024:   fi
                   91025: 
                   91026:   if test "$found" = "yes"; then
                   91027: 
                   91028: 
                   91029:   case bind in
                   91030:   c|c_r|pthread*) ;;
                   91031:   *)
                   91032:       LIBS="-lbind $LIBS"
                   91033:    ;;
                   91034:   esac
                   91035: 
                   91036: 
                   91037: 
                   91038: $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
                   91039: 
                   91040: 
                   91041: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
                   91042: 
                   91043:     ac_cv_func_dn_expand=yes
                   91044:   else
                   91045: 
                   91046: 
                   91047:   unset ac_cv_lib_socket_dn_expand
                   91048:   unset ac_cv_lib_socket___dn_expand
                   91049:   unset found
                   91050:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lsocket" >&5
                   91051: $as_echo_n "checking for dn_expand in -lsocket... " >&6; }
                   91052: if ${ac_cv_lib_socket_dn_expand+:} false; then :
                   91053:   $as_echo_n "(cached) " >&6
                   91054: else
                   91055:   ac_check_lib_save_LIBS=$LIBS
                   91056: LIBS="-lsocket  $LIBS"
                   91057: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91058: /* end confdefs.h.  */
                   91059: 
                   91060: /* Override any GCC internal prototype to avoid an error.
                   91061:    Use char because int might match the return type of a GCC
                   91062:    builtin and then its argument prototype would still apply.  */
                   91063: #ifdef __cplusplus
                   91064: extern "C"
                   91065: #endif
                   91066: char dn_expand ();
                   91067: int
                   91068: main ()
                   91069: {
                   91070: return dn_expand ();
                   91071:   ;
                   91072:   return 0;
                   91073: }
                   91074: _ACEOF
                   91075: if ac_fn_c_try_link "$LINENO"; then :
                   91076:   ac_cv_lib_socket_dn_expand=yes
                   91077: else
                   91078:   ac_cv_lib_socket_dn_expand=no
                   91079: fi
                   91080: rm -f core conftest.err conftest.$ac_objext \
                   91081:     conftest$ac_exeext conftest.$ac_ext
                   91082: LIBS=$ac_check_lib_save_LIBS
                   91083: fi
                   91084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_expand" >&5
                   91085: $as_echo "$ac_cv_lib_socket_dn_expand" >&6; }
                   91086: if test "x$ac_cv_lib_socket_dn_expand" = xyes; then :
                   91087:   found=yes
                   91088: else
                   91089: 
                   91090:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lsocket" >&5
                   91091: $as_echo_n "checking for __dn_expand in -lsocket... " >&6; }
                   91092: if ${ac_cv_lib_socket___dn_expand+:} false; then :
                   91093:   $as_echo_n "(cached) " >&6
                   91094: else
                   91095:   ac_check_lib_save_LIBS=$LIBS
                   91096: LIBS="-lsocket  $LIBS"
                   91097: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91098: /* end confdefs.h.  */
                   91099: 
                   91100: /* Override any GCC internal prototype to avoid an error.
                   91101:    Use char because int might match the return type of a GCC
                   91102:    builtin and then its argument prototype would still apply.  */
                   91103: #ifdef __cplusplus
                   91104: extern "C"
                   91105: #endif
                   91106: char __dn_expand ();
                   91107: int
                   91108: main ()
                   91109: {
                   91110: return __dn_expand ();
                   91111:   ;
                   91112:   return 0;
                   91113: }
                   91114: _ACEOF
                   91115: if ac_fn_c_try_link "$LINENO"; then :
                   91116:   ac_cv_lib_socket___dn_expand=yes
                   91117: else
                   91118:   ac_cv_lib_socket___dn_expand=no
                   91119: fi
                   91120: rm -f core conftest.err conftest.$ac_objext \
                   91121:     conftest$ac_exeext conftest.$ac_ext
                   91122: LIBS=$ac_check_lib_save_LIBS
                   91123: fi
                   91124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_expand" >&5
                   91125: $as_echo "$ac_cv_lib_socket___dn_expand" >&6; }
                   91126: if test "x$ac_cv_lib_socket___dn_expand" = xyes; then :
                   91127:   found=yes
                   91128: else
                   91129:   found=no
                   91130: fi
                   91131: 
                   91132: 
                   91133: fi
                   91134: 
                   91135: 
                   91136:   if test "$found" = "yes"; then
                   91137:     ac_libs=$LIBS
                   91138:     LIBS="$LIBS -lsocket"
                   91139:     if test "$cross_compiling" = yes; then :
                   91140:   found=no
                   91141: else
                   91142:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91143: /* end confdefs.h.  */
                   91144: main() { return (0); }
                   91145: _ACEOF
                   91146: if ac_fn_c_try_run "$LINENO"; then :
                   91147:   found=yes
                   91148: else
                   91149:   found=no
                   91150: fi
                   91151: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   91152:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   91153: fi
                   91154: 
                   91155:     LIBS=$ac_libs
                   91156:   fi
                   91157: 
                   91158:   if test "$found" = "yes"; then
                   91159: 
                   91160: 
                   91161:   case socket in
                   91162:   c|c_r|pthread*) ;;
                   91163:   *)
                   91164:       LIBS="-lsocket $LIBS"
                   91165:    ;;
                   91166:   esac
                   91167: 
                   91168: 
                   91169: 
                   91170: $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
                   91171: 
                   91172: 
                   91173: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
                   91174: 
                   91175:     ac_cv_func_dn_expand=yes
                   91176:   else
                   91177: 
                   91178:   :
                   91179: 
                   91180:   fi
                   91181: 
                   91182: 
                   91183:   fi
                   91184: 
                   91185: 
                   91186:   fi
                   91187: 
                   91188:  ;;
                   91189: 
                   91190:   esac
                   91191: 
                   91192: 
                   91193:   unset ac_cv_func_dn_skipname
                   91194:   unset ac_cv_func___dn_skipname
                   91195:   unset found
                   91196: 
                   91197:   ac_fn_c_check_func "$LINENO" "dn_skipname" "ac_cv_func_dn_skipname"
                   91198: if test "x$ac_cv_func_dn_skipname" = xyes; then :
                   91199:   found=yes
                   91200: else
                   91201:    ac_fn_c_check_func "$LINENO" "__dn_skipname" "ac_cv_func___dn_skipname"
                   91202: if test "x$ac_cv_func___dn_skipname" = xyes; then :
                   91203:   found=yes
                   91204: else
                   91205:   found=no
                   91206: fi
                   91207: 
                   91208: fi
                   91209: 
                   91210: 
                   91211:   case $found in
                   91212:   yes)
                   91213: 
                   91214: $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
                   91215: 
                   91216:     ac_cv_func_dn_skipname=yes
                   91217:   ;;
                   91218: 
                   91219:     *)
                   91220: 
                   91221:   unset ac_cv_lib_resolv_dn_skipname
                   91222:   unset ac_cv_lib_resolv___dn_skipname
                   91223:   unset found
                   91224:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lresolv" >&5
                   91225: $as_echo_n "checking for dn_skipname in -lresolv... " >&6; }
                   91226: if ${ac_cv_lib_resolv_dn_skipname+:} false; then :
                   91227:   $as_echo_n "(cached) " >&6
                   91228: else
                   91229:   ac_check_lib_save_LIBS=$LIBS
                   91230: LIBS="-lresolv  $LIBS"
                   91231: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91232: /* end confdefs.h.  */
                   91233: 
                   91234: /* Override any GCC internal prototype to avoid an error.
                   91235:    Use char because int might match the return type of a GCC
                   91236:    builtin and then its argument prototype would still apply.  */
                   91237: #ifdef __cplusplus
                   91238: extern "C"
                   91239: #endif
                   91240: char dn_skipname ();
                   91241: int
                   91242: main ()
                   91243: {
                   91244: return dn_skipname ();
                   91245:   ;
                   91246:   return 0;
                   91247: }
                   91248: _ACEOF
                   91249: if ac_fn_c_try_link "$LINENO"; then :
                   91250:   ac_cv_lib_resolv_dn_skipname=yes
                   91251: else
                   91252:   ac_cv_lib_resolv_dn_skipname=no
                   91253: fi
                   91254: rm -f core conftest.err conftest.$ac_objext \
                   91255:     conftest$ac_exeext conftest.$ac_ext
                   91256: LIBS=$ac_check_lib_save_LIBS
                   91257: fi
                   91258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_skipname" >&5
                   91259: $as_echo "$ac_cv_lib_resolv_dn_skipname" >&6; }
                   91260: if test "x$ac_cv_lib_resolv_dn_skipname" = xyes; then :
                   91261:   found=yes
                   91262: else
                   91263: 
                   91264:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lresolv" >&5
                   91265: $as_echo_n "checking for __dn_skipname in -lresolv... " >&6; }
                   91266: if ${ac_cv_lib_resolv___dn_skipname+:} false; then :
                   91267:   $as_echo_n "(cached) " >&6
                   91268: else
                   91269:   ac_check_lib_save_LIBS=$LIBS
                   91270: LIBS="-lresolv  $LIBS"
                   91271: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91272: /* end confdefs.h.  */
                   91273: 
                   91274: /* Override any GCC internal prototype to avoid an error.
                   91275:    Use char because int might match the return type of a GCC
                   91276:    builtin and then its argument prototype would still apply.  */
                   91277: #ifdef __cplusplus
                   91278: extern "C"
                   91279: #endif
                   91280: char __dn_skipname ();
                   91281: int
                   91282: main ()
                   91283: {
                   91284: return __dn_skipname ();
                   91285:   ;
                   91286:   return 0;
                   91287: }
                   91288: _ACEOF
                   91289: if ac_fn_c_try_link "$LINENO"; then :
                   91290:   ac_cv_lib_resolv___dn_skipname=yes
                   91291: else
                   91292:   ac_cv_lib_resolv___dn_skipname=no
                   91293: fi
                   91294: rm -f core conftest.err conftest.$ac_objext \
                   91295:     conftest$ac_exeext conftest.$ac_ext
                   91296: LIBS=$ac_check_lib_save_LIBS
                   91297: fi
                   91298: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_skipname" >&5
                   91299: $as_echo "$ac_cv_lib_resolv___dn_skipname" >&6; }
                   91300: if test "x$ac_cv_lib_resolv___dn_skipname" = xyes; then :
                   91301:   found=yes
                   91302: else
                   91303:   found=no
                   91304: fi
                   91305: 
                   91306: 
                   91307: fi
                   91308: 
                   91309: 
                   91310:   if test "$found" = "yes"; then
                   91311:     ac_libs=$LIBS
                   91312:     LIBS="$LIBS -lresolv"
                   91313:     if test "$cross_compiling" = yes; then :
                   91314:   found=no
                   91315: else
                   91316:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91317: /* end confdefs.h.  */
                   91318: main() { return (0); }
                   91319: _ACEOF
                   91320: if ac_fn_c_try_run "$LINENO"; then :
                   91321:   found=yes
                   91322: else
                   91323:   found=no
                   91324: fi
                   91325: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   91326:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   91327: fi
                   91328: 
                   91329:     LIBS=$ac_libs
                   91330:   fi
                   91331: 
                   91332:   if test "$found" = "yes"; then
                   91333: 
                   91334: 
                   91335:   case resolv in
                   91336:   c|c_r|pthread*) ;;
                   91337:   *)
                   91338:       LIBS="-lresolv $LIBS"
                   91339:    ;;
                   91340:   esac
                   91341: 
                   91342: 
                   91343: 
                   91344: $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
                   91345: 
                   91346: 
                   91347: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
                   91348: 
                   91349:     ac_cv_func_dn_skipname=yes
                   91350:   else
                   91351: 
                   91352: 
                   91353:   unset ac_cv_lib_bind_dn_skipname
                   91354:   unset ac_cv_lib_bind___dn_skipname
                   91355:   unset found
                   91356:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lbind" >&5
                   91357: $as_echo_n "checking for dn_skipname in -lbind... " >&6; }
                   91358: if ${ac_cv_lib_bind_dn_skipname+:} false; then :
                   91359:   $as_echo_n "(cached) " >&6
                   91360: else
                   91361:   ac_check_lib_save_LIBS=$LIBS
                   91362: LIBS="-lbind  $LIBS"
                   91363: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91364: /* end confdefs.h.  */
                   91365: 
                   91366: /* Override any GCC internal prototype to avoid an error.
                   91367:    Use char because int might match the return type of a GCC
                   91368:    builtin and then its argument prototype would still apply.  */
                   91369: #ifdef __cplusplus
                   91370: extern "C"
                   91371: #endif
                   91372: char dn_skipname ();
                   91373: int
                   91374: main ()
                   91375: {
                   91376: return dn_skipname ();
                   91377:   ;
                   91378:   return 0;
                   91379: }
                   91380: _ACEOF
                   91381: if ac_fn_c_try_link "$LINENO"; then :
                   91382:   ac_cv_lib_bind_dn_skipname=yes
                   91383: else
                   91384:   ac_cv_lib_bind_dn_skipname=no
                   91385: fi
                   91386: rm -f core conftest.err conftest.$ac_objext \
                   91387:     conftest$ac_exeext conftest.$ac_ext
                   91388: LIBS=$ac_check_lib_save_LIBS
                   91389: fi
                   91390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_skipname" >&5
                   91391: $as_echo "$ac_cv_lib_bind_dn_skipname" >&6; }
                   91392: if test "x$ac_cv_lib_bind_dn_skipname" = xyes; then :
                   91393:   found=yes
                   91394: else
                   91395: 
                   91396:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lbind" >&5
                   91397: $as_echo_n "checking for __dn_skipname in -lbind... " >&6; }
                   91398: if ${ac_cv_lib_bind___dn_skipname+:} false; then :
                   91399:   $as_echo_n "(cached) " >&6
                   91400: else
                   91401:   ac_check_lib_save_LIBS=$LIBS
                   91402: LIBS="-lbind  $LIBS"
                   91403: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91404: /* end confdefs.h.  */
                   91405: 
                   91406: /* Override any GCC internal prototype to avoid an error.
                   91407:    Use char because int might match the return type of a GCC
                   91408:    builtin and then its argument prototype would still apply.  */
                   91409: #ifdef __cplusplus
                   91410: extern "C"
                   91411: #endif
                   91412: char __dn_skipname ();
                   91413: int
                   91414: main ()
                   91415: {
                   91416: return __dn_skipname ();
                   91417:   ;
                   91418:   return 0;
                   91419: }
                   91420: _ACEOF
                   91421: if ac_fn_c_try_link "$LINENO"; then :
                   91422:   ac_cv_lib_bind___dn_skipname=yes
                   91423: else
                   91424:   ac_cv_lib_bind___dn_skipname=no
                   91425: fi
                   91426: rm -f core conftest.err conftest.$ac_objext \
                   91427:     conftest$ac_exeext conftest.$ac_ext
                   91428: LIBS=$ac_check_lib_save_LIBS
                   91429: fi
                   91430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_skipname" >&5
                   91431: $as_echo "$ac_cv_lib_bind___dn_skipname" >&6; }
                   91432: if test "x$ac_cv_lib_bind___dn_skipname" = xyes; then :
                   91433:   found=yes
                   91434: else
                   91435:   found=no
                   91436: fi
                   91437: 
                   91438: 
                   91439: fi
                   91440: 
                   91441: 
                   91442:   if test "$found" = "yes"; then
                   91443:     ac_libs=$LIBS
                   91444:     LIBS="$LIBS -lbind"
                   91445:     if test "$cross_compiling" = yes; then :
                   91446:   found=no
                   91447: else
                   91448:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91449: /* end confdefs.h.  */
                   91450: main() { return (0); }
                   91451: _ACEOF
                   91452: if ac_fn_c_try_run "$LINENO"; then :
                   91453:   found=yes
                   91454: else
                   91455:   found=no
                   91456: fi
                   91457: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   91458:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   91459: fi
                   91460: 
                   91461:     LIBS=$ac_libs
                   91462:   fi
                   91463: 
                   91464:   if test "$found" = "yes"; then
                   91465: 
                   91466: 
                   91467:   case bind in
                   91468:   c|c_r|pthread*) ;;
                   91469:   *)
                   91470:       LIBS="-lbind $LIBS"
                   91471:    ;;
                   91472:   esac
                   91473: 
                   91474: 
                   91475: 
                   91476: $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
                   91477: 
                   91478: 
                   91479: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
                   91480: 
                   91481:     ac_cv_func_dn_skipname=yes
                   91482:   else
                   91483: 
                   91484: 
                   91485:   unset ac_cv_lib_socket_dn_skipname
                   91486:   unset ac_cv_lib_socket___dn_skipname
                   91487:   unset found
                   91488:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lsocket" >&5
                   91489: $as_echo_n "checking for dn_skipname in -lsocket... " >&6; }
                   91490: if ${ac_cv_lib_socket_dn_skipname+:} false; then :
                   91491:   $as_echo_n "(cached) " >&6
                   91492: else
                   91493:   ac_check_lib_save_LIBS=$LIBS
                   91494: LIBS="-lsocket  $LIBS"
                   91495: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91496: /* end confdefs.h.  */
                   91497: 
                   91498: /* Override any GCC internal prototype to avoid an error.
                   91499:    Use char because int might match the return type of a GCC
                   91500:    builtin and then its argument prototype would still apply.  */
                   91501: #ifdef __cplusplus
                   91502: extern "C"
                   91503: #endif
                   91504: char dn_skipname ();
                   91505: int
                   91506: main ()
                   91507: {
                   91508: return dn_skipname ();
                   91509:   ;
                   91510:   return 0;
                   91511: }
                   91512: _ACEOF
                   91513: if ac_fn_c_try_link "$LINENO"; then :
                   91514:   ac_cv_lib_socket_dn_skipname=yes
                   91515: else
                   91516:   ac_cv_lib_socket_dn_skipname=no
                   91517: fi
                   91518: rm -f core conftest.err conftest.$ac_objext \
                   91519:     conftest$ac_exeext conftest.$ac_ext
                   91520: LIBS=$ac_check_lib_save_LIBS
                   91521: fi
                   91522: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_skipname" >&5
                   91523: $as_echo "$ac_cv_lib_socket_dn_skipname" >&6; }
                   91524: if test "x$ac_cv_lib_socket_dn_skipname" = xyes; then :
                   91525:   found=yes
                   91526: else
                   91527: 
                   91528:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lsocket" >&5
                   91529: $as_echo_n "checking for __dn_skipname in -lsocket... " >&6; }
                   91530: if ${ac_cv_lib_socket___dn_skipname+:} false; then :
                   91531:   $as_echo_n "(cached) " >&6
                   91532: else
                   91533:   ac_check_lib_save_LIBS=$LIBS
                   91534: LIBS="-lsocket  $LIBS"
                   91535: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91536: /* end confdefs.h.  */
                   91537: 
                   91538: /* Override any GCC internal prototype to avoid an error.
                   91539:    Use char because int might match the return type of a GCC
                   91540:    builtin and then its argument prototype would still apply.  */
                   91541: #ifdef __cplusplus
                   91542: extern "C"
                   91543: #endif
                   91544: char __dn_skipname ();
                   91545: int
                   91546: main ()
                   91547: {
                   91548: return __dn_skipname ();
                   91549:   ;
                   91550:   return 0;
                   91551: }
                   91552: _ACEOF
                   91553: if ac_fn_c_try_link "$LINENO"; then :
                   91554:   ac_cv_lib_socket___dn_skipname=yes
                   91555: else
                   91556:   ac_cv_lib_socket___dn_skipname=no
                   91557: fi
                   91558: rm -f core conftest.err conftest.$ac_objext \
                   91559:     conftest$ac_exeext conftest.$ac_ext
                   91560: LIBS=$ac_check_lib_save_LIBS
                   91561: fi
                   91562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_skipname" >&5
                   91563: $as_echo "$ac_cv_lib_socket___dn_skipname" >&6; }
                   91564: if test "x$ac_cv_lib_socket___dn_skipname" = xyes; then :
                   91565:   found=yes
                   91566: else
                   91567:   found=no
                   91568: fi
                   91569: 
                   91570: 
                   91571: fi
                   91572: 
                   91573: 
                   91574:   if test "$found" = "yes"; then
                   91575:     ac_libs=$LIBS
                   91576:     LIBS="$LIBS -lsocket"
                   91577:     if test "$cross_compiling" = yes; then :
                   91578:   found=no
                   91579: else
                   91580:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91581: /* end confdefs.h.  */
                   91582: main() { return (0); }
                   91583: _ACEOF
                   91584: if ac_fn_c_try_run "$LINENO"; then :
                   91585:   found=yes
                   91586: else
                   91587:   found=no
                   91588: fi
                   91589: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   91590:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   91591: fi
                   91592: 
                   91593:     LIBS=$ac_libs
                   91594:   fi
                   91595: 
                   91596:   if test "$found" = "yes"; then
                   91597: 
                   91598: 
                   91599:   case socket in
                   91600:   c|c_r|pthread*) ;;
                   91601:   *)
                   91602:       LIBS="-lsocket $LIBS"
                   91603:    ;;
                   91604:   esac
                   91605: 
                   91606: 
                   91607: 
                   91608: $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
                   91609: 
                   91610: 
                   91611: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
                   91612: 
                   91613:     ac_cv_func_dn_skipname=yes
                   91614:   else
                   91615: 
                   91616:   :
                   91617: 
                   91618:   fi
                   91619: 
                   91620: 
                   91621:   fi
                   91622: 
                   91623: 
                   91624:   fi
                   91625: 
                   91626:  ;;
                   91627: 
                   91628:   esac
                   91629: 
                   91630: 
                   91631: 
                   91632: 
                   91633:   unset ac_cv_func_res_search
                   91634:   unset ac_cv_func___res_search
                   91635:   unset found
                   91636: 
                   91637:   ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
                   91638: if test "x$ac_cv_func_res_search" = xyes; then :
                   91639:   found=yes
                   91640: else
                   91641:    ac_fn_c_check_func "$LINENO" "__res_search" "ac_cv_func___res_search"
                   91642: if test "x$ac_cv_func___res_search" = xyes; then :
                   91643:   found=yes
                   91644: else
                   91645:   found=no
                   91646: fi
                   91647: 
                   91648: fi
                   91649: 
                   91650: 
                   91651:   case $found in
                   91652:   yes)
                   91653: 
                   91654: $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
                   91655: 
                   91656:     ac_cv_func_res_search=yes
                   91657:   ;;
                   91658: 
                   91659:     *)
                   91660: 
                   91661:   unset ac_cv_lib_resolv_res_search
                   91662:   unset ac_cv_lib_resolv___res_search
                   91663:   unset found
                   91664:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
                   91665: $as_echo_n "checking for res_search in -lresolv... " >&6; }
                   91666: if ${ac_cv_lib_resolv_res_search+:} false; then :
                   91667:   $as_echo_n "(cached) " >&6
                   91668: else
                   91669:   ac_check_lib_save_LIBS=$LIBS
                   91670: LIBS="-lresolv  $LIBS"
                   91671: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91672: /* end confdefs.h.  */
                   91673: 
                   91674: /* Override any GCC internal prototype to avoid an error.
                   91675:    Use char because int might match the return type of a GCC
                   91676:    builtin and then its argument prototype would still apply.  */
                   91677: #ifdef __cplusplus
                   91678: extern "C"
                   91679: #endif
                   91680: char res_search ();
                   91681: int
                   91682: main ()
                   91683: {
                   91684: return res_search ();
                   91685:   ;
                   91686:   return 0;
                   91687: }
                   91688: _ACEOF
                   91689: if ac_fn_c_try_link "$LINENO"; then :
                   91690:   ac_cv_lib_resolv_res_search=yes
                   91691: else
                   91692:   ac_cv_lib_resolv_res_search=no
                   91693: fi
                   91694: rm -f core conftest.err conftest.$ac_objext \
                   91695:     conftest$ac_exeext conftest.$ac_ext
                   91696: LIBS=$ac_check_lib_save_LIBS
                   91697: fi
                   91698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
                   91699: $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
                   91700: if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
                   91701:   found=yes
                   91702: else
                   91703: 
                   91704:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lresolv" >&5
                   91705: $as_echo_n "checking for __res_search in -lresolv... " >&6; }
                   91706: if ${ac_cv_lib_resolv___res_search+:} false; then :
                   91707:   $as_echo_n "(cached) " >&6
                   91708: else
                   91709:   ac_check_lib_save_LIBS=$LIBS
                   91710: LIBS="-lresolv  $LIBS"
                   91711: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91712: /* end confdefs.h.  */
                   91713: 
                   91714: /* Override any GCC internal prototype to avoid an error.
                   91715:    Use char because int might match the return type of a GCC
                   91716:    builtin and then its argument prototype would still apply.  */
                   91717: #ifdef __cplusplus
                   91718: extern "C"
                   91719: #endif
                   91720: char __res_search ();
                   91721: int
                   91722: main ()
                   91723: {
                   91724: return __res_search ();
                   91725:   ;
                   91726:   return 0;
                   91727: }
                   91728: _ACEOF
                   91729: if ac_fn_c_try_link "$LINENO"; then :
                   91730:   ac_cv_lib_resolv___res_search=yes
                   91731: else
                   91732:   ac_cv_lib_resolv___res_search=no
                   91733: fi
                   91734: rm -f core conftest.err conftest.$ac_objext \
                   91735:     conftest$ac_exeext conftest.$ac_ext
                   91736: LIBS=$ac_check_lib_save_LIBS
                   91737: fi
                   91738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_search" >&5
                   91739: $as_echo "$ac_cv_lib_resolv___res_search" >&6; }
                   91740: if test "x$ac_cv_lib_resolv___res_search" = xyes; then :
                   91741:   found=yes
                   91742: else
                   91743:   found=no
                   91744: fi
                   91745: 
                   91746: 
                   91747: fi
                   91748: 
                   91749: 
                   91750:   if test "$found" = "yes"; then
                   91751:     ac_libs=$LIBS
                   91752:     LIBS="$LIBS -lresolv"
                   91753:     if test "$cross_compiling" = yes; then :
                   91754:   found=no
                   91755: else
                   91756:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91757: /* end confdefs.h.  */
                   91758: main() { return (0); }
                   91759: _ACEOF
                   91760: if ac_fn_c_try_run "$LINENO"; then :
                   91761:   found=yes
                   91762: else
                   91763:   found=no
                   91764: fi
                   91765: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   91766:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   91767: fi
                   91768: 
                   91769:     LIBS=$ac_libs
                   91770:   fi
                   91771: 
                   91772:   if test "$found" = "yes"; then
                   91773: 
                   91774: 
                   91775:   case resolv in
                   91776:   c|c_r|pthread*) ;;
                   91777:   *)
                   91778:       LIBS="-lresolv $LIBS"
                   91779:    ;;
                   91780:   esac
                   91781: 
                   91782: 
                   91783: 
                   91784: $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
                   91785: 
                   91786: 
                   91787: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
                   91788: 
                   91789:     ac_cv_func_res_search=yes
                   91790:   else
                   91791: 
                   91792: 
                   91793:   unset ac_cv_lib_bind_res_search
                   91794:   unset ac_cv_lib_bind___res_search
                   91795:   unset found
                   91796:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lbind" >&5
                   91797: $as_echo_n "checking for res_search in -lbind... " >&6; }
                   91798: if ${ac_cv_lib_bind_res_search+:} false; then :
                   91799:   $as_echo_n "(cached) " >&6
                   91800: else
                   91801:   ac_check_lib_save_LIBS=$LIBS
                   91802: LIBS="-lbind  $LIBS"
                   91803: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91804: /* end confdefs.h.  */
                   91805: 
                   91806: /* Override any GCC internal prototype to avoid an error.
                   91807:    Use char because int might match the return type of a GCC
                   91808:    builtin and then its argument prototype would still apply.  */
                   91809: #ifdef __cplusplus
                   91810: extern "C"
                   91811: #endif
                   91812: char res_search ();
                   91813: int
                   91814: main ()
                   91815: {
                   91816: return res_search ();
                   91817:   ;
                   91818:   return 0;
                   91819: }
                   91820: _ACEOF
                   91821: if ac_fn_c_try_link "$LINENO"; then :
                   91822:   ac_cv_lib_bind_res_search=yes
                   91823: else
                   91824:   ac_cv_lib_bind_res_search=no
                   91825: fi
                   91826: rm -f core conftest.err conftest.$ac_objext \
                   91827:     conftest$ac_exeext conftest.$ac_ext
                   91828: LIBS=$ac_check_lib_save_LIBS
                   91829: fi
                   91830: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_search" >&5
                   91831: $as_echo "$ac_cv_lib_bind_res_search" >&6; }
                   91832: if test "x$ac_cv_lib_bind_res_search" = xyes; then :
                   91833:   found=yes
                   91834: else
                   91835: 
                   91836:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lbind" >&5
                   91837: $as_echo_n "checking for __res_search in -lbind... " >&6; }
                   91838: if ${ac_cv_lib_bind___res_search+:} false; then :
                   91839:   $as_echo_n "(cached) " >&6
                   91840: else
                   91841:   ac_check_lib_save_LIBS=$LIBS
                   91842: LIBS="-lbind  $LIBS"
                   91843: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91844: /* end confdefs.h.  */
                   91845: 
                   91846: /* Override any GCC internal prototype to avoid an error.
                   91847:    Use char because int might match the return type of a GCC
                   91848:    builtin and then its argument prototype would still apply.  */
                   91849: #ifdef __cplusplus
                   91850: extern "C"
                   91851: #endif
                   91852: char __res_search ();
                   91853: int
                   91854: main ()
                   91855: {
                   91856: return __res_search ();
                   91857:   ;
                   91858:   return 0;
                   91859: }
                   91860: _ACEOF
                   91861: if ac_fn_c_try_link "$LINENO"; then :
                   91862:   ac_cv_lib_bind___res_search=yes
                   91863: else
                   91864:   ac_cv_lib_bind___res_search=no
                   91865: fi
                   91866: rm -f core conftest.err conftest.$ac_objext \
                   91867:     conftest$ac_exeext conftest.$ac_ext
                   91868: LIBS=$ac_check_lib_save_LIBS
                   91869: fi
                   91870: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_search" >&5
                   91871: $as_echo "$ac_cv_lib_bind___res_search" >&6; }
                   91872: if test "x$ac_cv_lib_bind___res_search" = xyes; then :
                   91873:   found=yes
                   91874: else
                   91875:   found=no
                   91876: fi
                   91877: 
                   91878: 
                   91879: fi
                   91880: 
                   91881: 
                   91882:   if test "$found" = "yes"; then
                   91883:     ac_libs=$LIBS
                   91884:     LIBS="$LIBS -lbind"
                   91885:     if test "$cross_compiling" = yes; then :
                   91886:   found=no
                   91887: else
                   91888:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91889: /* end confdefs.h.  */
                   91890: main() { return (0); }
                   91891: _ACEOF
                   91892: if ac_fn_c_try_run "$LINENO"; then :
                   91893:   found=yes
                   91894: else
                   91895:   found=no
                   91896: fi
                   91897: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   91898:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   91899: fi
                   91900: 
                   91901:     LIBS=$ac_libs
                   91902:   fi
                   91903: 
                   91904:   if test "$found" = "yes"; then
                   91905: 
                   91906: 
                   91907:   case bind in
                   91908:   c|c_r|pthread*) ;;
                   91909:   *)
                   91910:       LIBS="-lbind $LIBS"
                   91911:    ;;
                   91912:   esac
                   91913: 
                   91914: 
                   91915: 
                   91916: $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
                   91917: 
                   91918: 
                   91919: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
                   91920: 
                   91921:     ac_cv_func_res_search=yes
                   91922:   else
                   91923: 
                   91924: 
                   91925:   unset ac_cv_lib_socket_res_search
                   91926:   unset ac_cv_lib_socket___res_search
                   91927:   unset found
                   91928:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lsocket" >&5
                   91929: $as_echo_n "checking for res_search in -lsocket... " >&6; }
                   91930: if ${ac_cv_lib_socket_res_search+:} false; then :
                   91931:   $as_echo_n "(cached) " >&6
                   91932: else
                   91933:   ac_check_lib_save_LIBS=$LIBS
                   91934: LIBS="-lsocket  $LIBS"
                   91935: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91936: /* end confdefs.h.  */
                   91937: 
                   91938: /* Override any GCC internal prototype to avoid an error.
                   91939:    Use char because int might match the return type of a GCC
                   91940:    builtin and then its argument prototype would still apply.  */
                   91941: #ifdef __cplusplus
                   91942: extern "C"
                   91943: #endif
                   91944: char res_search ();
                   91945: int
                   91946: main ()
                   91947: {
                   91948: return res_search ();
                   91949:   ;
                   91950:   return 0;
                   91951: }
                   91952: _ACEOF
                   91953: if ac_fn_c_try_link "$LINENO"; then :
                   91954:   ac_cv_lib_socket_res_search=yes
                   91955: else
                   91956:   ac_cv_lib_socket_res_search=no
                   91957: fi
                   91958: rm -f core conftest.err conftest.$ac_objext \
                   91959:     conftest$ac_exeext conftest.$ac_ext
                   91960: LIBS=$ac_check_lib_save_LIBS
                   91961: fi
                   91962: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_search" >&5
                   91963: $as_echo "$ac_cv_lib_socket_res_search" >&6; }
                   91964: if test "x$ac_cv_lib_socket_res_search" = xyes; then :
                   91965:   found=yes
                   91966: else
                   91967: 
                   91968:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lsocket" >&5
                   91969: $as_echo_n "checking for __res_search in -lsocket... " >&6; }
                   91970: if ${ac_cv_lib_socket___res_search+:} false; then :
                   91971:   $as_echo_n "(cached) " >&6
                   91972: else
                   91973:   ac_check_lib_save_LIBS=$LIBS
                   91974: LIBS="-lsocket  $LIBS"
                   91975: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   91976: /* end confdefs.h.  */
                   91977: 
                   91978: /* Override any GCC internal prototype to avoid an error.
                   91979:    Use char because int might match the return type of a GCC
                   91980:    builtin and then its argument prototype would still apply.  */
                   91981: #ifdef __cplusplus
                   91982: extern "C"
                   91983: #endif
                   91984: char __res_search ();
                   91985: int
                   91986: main ()
                   91987: {
                   91988: return __res_search ();
                   91989:   ;
                   91990:   return 0;
                   91991: }
                   91992: _ACEOF
                   91993: if ac_fn_c_try_link "$LINENO"; then :
                   91994:   ac_cv_lib_socket___res_search=yes
                   91995: else
                   91996:   ac_cv_lib_socket___res_search=no
                   91997: fi
                   91998: rm -f core conftest.err conftest.$ac_objext \
                   91999:     conftest$ac_exeext conftest.$ac_ext
                   92000: LIBS=$ac_check_lib_save_LIBS
                   92001: fi
                   92002: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_search" >&5
                   92003: $as_echo "$ac_cv_lib_socket___res_search" >&6; }
                   92004: if test "x$ac_cv_lib_socket___res_search" = xyes; then :
                   92005:   found=yes
                   92006: else
                   92007:   found=no
                   92008: fi
                   92009: 
                   92010: 
                   92011: fi
                   92012: 
                   92013: 
                   92014:   if test "$found" = "yes"; then
                   92015:     ac_libs=$LIBS
                   92016:     LIBS="$LIBS -lsocket"
                   92017:     if test "$cross_compiling" = yes; then :
                   92018:   found=no
                   92019: else
                   92020:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   92021: /* end confdefs.h.  */
                   92022: main() { return (0); }
                   92023: _ACEOF
                   92024: if ac_fn_c_try_run "$LINENO"; then :
                   92025:   found=yes
                   92026: else
                   92027:   found=no
                   92028: fi
                   92029: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   92030:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   92031: fi
                   92032: 
                   92033:     LIBS=$ac_libs
                   92034:   fi
                   92035: 
                   92036:   if test "$found" = "yes"; then
                   92037: 
                   92038: 
                   92039:   case socket in
                   92040:   c|c_r|pthread*) ;;
                   92041:   *)
                   92042:       LIBS="-lsocket $LIBS"
                   92043:    ;;
                   92044:   esac
                   92045: 
                   92046: 
                   92047: 
                   92048: $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
                   92049: 
                   92050: 
                   92051: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
                   92052: 
                   92053:     ac_cv_func_res_search=yes
                   92054:   else
                   92055: 
                   92056:   :
                   92057: 
                   92058:   fi
                   92059: 
                   92060: 
                   92061:   fi
                   92062: 
                   92063: 
                   92064:   fi
                   92065: 
                   92066:  ;;
                   92067: 
                   92068:   esac
                   92069: 
                   92070: 
                   92071: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts NAN" >&5
                   92072: $as_echo_n "checking whether atof() accepts NAN... " >&6; }
                   92073: if ${ac_cv_atof_accept_nan+:} false; then :
                   92074:   $as_echo_n "(cached) " >&6
                   92075: else
                   92076: 
                   92077: if test "$cross_compiling" = yes; then :
                   92078: 
                   92079:   ac_cv_atof_accept_nan=no
                   92080: 
                   92081: else
                   92082:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   92083: /* end confdefs.h.  */
                   92084: 
                   92085: #include <math.h>
                   92086: #include <stdlib.h>
                   92087: 
                   92088: #ifdef HAVE_ISNAN
                   92089: #define zend_isnan(a) isnan(a)
                   92090: #elif defined(HAVE_FPCLASS)
                   92091: #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
                   92092: #else
                   92093: #define zend_isnan(a) 0
                   92094: #endif
                   92095: 
                   92096: int main(int argc, char** argv)
                   92097: {
                   92098:        return zend_isnan(atof("NAN")) ? 0 : 1;
                   92099: }
                   92100: 
                   92101: _ACEOF
                   92102: if ac_fn_c_try_run "$LINENO"; then :
                   92103: 
                   92104:   ac_cv_atof_accept_nan=yes
                   92105: 
                   92106: else
                   92107: 
                   92108:   ac_cv_atof_accept_nan=no
                   92109: 
                   92110: fi
                   92111: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   92112:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   92113: fi
                   92114: 
                   92115: fi
                   92116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_nan" >&5
                   92117: $as_echo "$ac_cv_atof_accept_nan" >&6; }
                   92118: if test "$ac_cv_atof_accept_nan" = "yes"; then
                   92119: 
                   92120: $as_echo "#define HAVE_ATOF_ACCEPTS_NAN 1" >>confdefs.h
                   92121: 
                   92122: fi
                   92123: 
                   92124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts INF" >&5
                   92125: $as_echo_n "checking whether atof() accepts INF... " >&6; }
                   92126: if ${ac_cv_atof_accept_inf+:} false; then :
                   92127:   $as_echo_n "(cached) " >&6
                   92128: else
                   92129: 
                   92130: if test "$cross_compiling" = yes; then :
                   92131: 
                   92132:   ac_cv_atof_accept_inf=no
                   92133: 
                   92134: else
                   92135:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   92136: /* end confdefs.h.  */
                   92137: 
                   92138: #include <math.h>
                   92139: #include <stdlib.h>
                   92140: 
                   92141: #ifdef HAVE_ISINF
                   92142: #define zend_isinf(a) isinf(a)
                   92143: #elif defined(INFINITY)
                   92144: /* Might not work, but is required by ISO C99 */
                   92145: #define zend_isinf(a) (((a)==INFINITY)?1:0)
                   92146: #elif defined(HAVE_FPCLASS)
                   92147: #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
                   92148: #else
                   92149: #define zend_isinf(a) 0
                   92150: #endif
                   92151: 
                   92152: int main(int argc, char** argv)
                   92153: {
                   92154:        return zend_isinf(atof("INF")) && zend_isinf(atof("-INF")) ? 0 : 1;
                   92155: }
                   92156: 
                   92157: _ACEOF
                   92158: if ac_fn_c_try_run "$LINENO"; then :
                   92159: 
                   92160:   ac_cv_atof_accept_inf=yes
                   92161: 
                   92162: else
                   92163: 
                   92164:   ac_cv_atof_accept_inf=no
                   92165: 
                   92166: fi
                   92167: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   92168:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   92169: fi
                   92170: 
                   92171: fi
                   92172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_inf" >&5
                   92173: $as_echo "$ac_cv_atof_accept_inf" >&6; }
                   92174: if test "$ac_cv_atof_accept_inf" = "yes"; then
                   92175: 
                   92176: $as_echo "#define HAVE_ATOF_ACCEPTS_INF 1" >>confdefs.h
                   92177: 
                   92178: fi
                   92179: 
                   92180: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL == INF" >&5
                   92181: $as_echo_n "checking whether HUGE_VAL == INF... " >&6; }
                   92182: if ${ac_cv_huge_val_inf+:} false; then :
                   92183:   $as_echo_n "(cached) " >&6
                   92184: else
                   92185: 
                   92186: if test "$cross_compiling" = yes; then :
                   92187: 
                   92188:   ac_cv_huge_val_inf=yes
                   92189: 
                   92190: else
                   92191:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   92192: /* end confdefs.h.  */
                   92193: 
                   92194: #include <math.h>
                   92195: #include <stdlib.h>
                   92196: 
                   92197: #ifdef HAVE_ISINF
                   92198: #define zend_isinf(a) isinf(a)
                   92199: #elif defined(INFINITY)
                   92200: /* Might not work, but is required by ISO C99 */
                   92201: #define zend_isinf(a) (((a)==INFINITY)?1:0)
                   92202: #elif defined(HAVE_FPCLASS)
                   92203: #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
                   92204: #else
                   92205: #define zend_isinf(a) 0
                   92206: #endif
                   92207: 
                   92208: int main(int argc, char** argv)
                   92209: {
                   92210:        return zend_isinf(HUGE_VAL) ? 0 : 1;
                   92211: }
                   92212: 
                   92213: _ACEOF
                   92214: if ac_fn_c_try_run "$LINENO"; then :
                   92215: 
                   92216:   ac_cv_huge_val_inf=yes
                   92217: 
                   92218: else
                   92219: 
                   92220:   ac_cv_huge_val_inf=no
                   92221: 
                   92222: fi
                   92223: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   92224:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   92225: fi
                   92226: 
                   92227: fi
                   92228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_inf" >&5
                   92229: $as_echo "$ac_cv_huge_val_inf" >&6; }
                   92230: if test "$ac_cv_huge_val_inf" = "yes"; then
                   92231: 
                   92232: $as_echo "#define HAVE_HUGE_VAL_INF 1" >>confdefs.h
                   92233: 
                   92234: fi
                   92235: 
                   92236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL + -HUGEVAL == NAN" >&5
                   92237: $as_echo_n "checking whether HUGE_VAL + -HUGEVAL == NAN... " >&6; }
                   92238: if ${ac_cv_huge_val_nan+:} false; then :
                   92239:   $as_echo_n "(cached) " >&6
                   92240: else
                   92241: 
                   92242: if test "$cross_compiling" = yes; then :
                   92243: 
                   92244:   ac_cv_huge_val_nan=yes
                   92245: 
                   92246: else
                   92247:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   92248: /* end confdefs.h.  */
                   92249: 
                   92250: #include <math.h>
                   92251: #include <stdlib.h>
                   92252: 
                   92253: #ifdef HAVE_ISNAN
                   92254: #define zend_isnan(a) isnan(a)
                   92255: #elif defined(HAVE_FPCLASS)
                   92256: #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
                   92257: #else
                   92258: #define zend_isnan(a) 0
                   92259: #endif
                   92260: 
                   92261: int main(int argc, char** argv)
                   92262: {
                   92263: #if defined(__sparc__) && !(__GNUC__ >= 3)
                   92264:        /* prevent bug #27830 */
                   92265:        return 1;
                   92266: #else
                   92267:        return zend_isnan(HUGE_VAL + -HUGE_VAL) ? 0 : 1;
                   92268: #endif
                   92269: }
                   92270: 
                   92271: _ACEOF
                   92272: if ac_fn_c_try_run "$LINENO"; then :
                   92273: 
                   92274:   ac_cv_huge_val_nan=yes
                   92275: 
                   92276: else
                   92277: 
                   92278:   ac_cv_huge_val_nan=no
                   92279: 
                   92280: fi
                   92281: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   92282:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   92283: fi
                   92284: 
                   92285: fi
                   92286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_nan" >&5
                   92287: $as_echo "$ac_cv_huge_val_nan" >&6; }
                   92288: if test "$ac_cv_huge_val_nan" = "yes"; then
                   92289: 
                   92290: $as_echo "#define HAVE_HUGE_VAL_NAN 1" >>confdefs.h
                   92291: 
                   92292: fi
                   92293: 
                   92294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime() declaration fails" >&5
                   92295: $as_echo_n "checking whether strptime() declaration fails... " >&6; }
                   92296: if ${ac_cv_strptime_decl_fails+:} false; then :
                   92297:   $as_echo_n "(cached) " >&6
                   92298: else
                   92299: 
                   92300: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   92301: /* end confdefs.h.  */
                   92302: 
                   92303: #include <time.h>
                   92304: 
                   92305: int
                   92306: main ()
                   92307: {
                   92308: 
                   92309: #ifndef HAVE_STRPTIME
                   92310: #error no strptime() on this platform
                   92311: #else
                   92312: /* use invalid strptime() declaration to see if it fails to compile */
                   92313: int strptime(const char *s, const char *format, struct tm *tm);
                   92314: #endif
                   92315: 
                   92316:   ;
                   92317:   return 0;
                   92318: }
                   92319: _ACEOF
                   92320: if ac_fn_c_try_compile "$LINENO"; then :
                   92321: 
                   92322:   ac_cv_strptime_decl_fails=no
                   92323: 
                   92324: else
                   92325: 
                   92326:   ac_cv_strptime_decl_fails=yes
                   92327: 
                   92328: fi
                   92329: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   92330: fi
                   92331: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_strptime_decl_fails" >&5
                   92332: $as_echo "$ac_cv_strptime_decl_fails" >&6; }
                   92333: if test "$ac_cv_strptime_decl_fails" = "yes"; then
                   92334: 
                   92335: $as_echo "#define HAVE_STRPTIME_DECL_FAILS 1" >>confdefs.h
                   92336: 
                   92337: fi
                   92338: 
                   92339: for ac_header in wchar.h
                   92340: do :
                   92341:   ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
                   92342: if test "x$ac_cv_header_wchar_h" = xyes; then :
                   92343:   cat >>confdefs.h <<_ACEOF
                   92344: #define HAVE_WCHAR_H 1
                   92345: _ACEOF
                   92346: 
                   92347: fi
                   92348: 
                   92349: done
                   92350: 
                   92351: for ac_func in mblen
                   92352: do :
                   92353:   ac_fn_c_check_func "$LINENO" "mblen" "ac_cv_func_mblen"
                   92354: if test "x$ac_cv_func_mblen" = xyes; then :
                   92355:   cat >>confdefs.h <<_ACEOF
                   92356: #define HAVE_MBLEN 1
                   92357: _ACEOF
                   92358: 
                   92359: fi
                   92360: done
                   92361: 
                   92362: for ac_func in mbrlen mbsinit
                   92363: do :
                   92364:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   92365: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   92366: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   92367:   cat >>confdefs.h <<_ACEOF
                   92368: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   92369: _ACEOF
                   92370: 
                   92371: fi
                   92372: done
                   92373: 
                   92374: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
                   92375: $as_echo_n "checking for mbstate_t... " >&6; }
                   92376: if ${ac_cv_type_mbstate_t+:} false; then :
                   92377:   $as_echo_n "(cached) " >&6
                   92378: else
                   92379: 
                   92380: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   92381: /* end confdefs.h.  */
                   92382: 
                   92383: #ifdef HAVE_WCHAR_H
                   92384: # include <wchar.h>
                   92385: #endif
                   92386: 
                   92387: int
                   92388: main ()
                   92389: {
                   92390: 
                   92391: int __tmp__() { mbstate_t a; }
                   92392: 
                   92393:   ;
                   92394:   return 0;
                   92395: }
                   92396: _ACEOF
                   92397: if ac_fn_c_try_compile "$LINENO"; then :
                   92398: 
                   92399:   ac_cv_type_mbstate_t=yes
                   92400: 
                   92401: else
                   92402: 
                   92403:   ac_cv_type_mbstate_t=no
                   92404: 
                   92405: fi
                   92406: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   92407: fi
                   92408: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
                   92409: $as_echo "$ac_cv_type_mbstate_t" >&6; }
                   92410: if test "$ac_cv_type_mbstate_t" = "yes"; then
                   92411: 
                   92412: $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
                   92413: 
                   92414: fi
                   92415: 
                   92416: for ac_header in atomic.h
                   92417: do :
                   92418:   ac_fn_c_check_header_mongrel "$LINENO" "atomic.h" "ac_cv_header_atomic_h" "$ac_includes_default"
                   92419: if test "x$ac_cv_header_atomic_h" = xyes; then :
                   92420:   cat >>confdefs.h <<_ACEOF
                   92421: #define HAVE_ATOMIC_H 1
                   92422: _ACEOF
                   92423: 
                   92424: fi
                   92425: 
                   92426: done
                   92427: 
                   92428: 
                   92429: 
                   92430:   ext_builddir=ext/standard
                   92431:   ext_srcdir=$abs_srcdir/ext/standard
                   92432: 
                   92433:   ac_extra=
                   92434: 
                   92435:   if test "" != "shared" && test "" != "yes" && test "" != "cli"; then
                   92436:     PHP_STANDARD_SHARED=no
                   92437: 
                   92438: 
                   92439:   case ext/standard in
                   92440:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   92441:   /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   92442:   *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   92443:   esac
                   92444: 
                   92445: 
                   92446: 
                   92447:   b_c_pre=$php_c_pre
                   92448:   b_cxx_pre=$php_cxx_pre
                   92449:   b_c_meta=$php_c_meta
                   92450:   b_cxx_meta=$php_cxx_meta
                   92451:   b_c_post=$php_c_post
                   92452:   b_cxx_post=$php_cxx_post
                   92453:   b_lo=$php_lo
                   92454: 
                   92455: 
                   92456:   old_IFS=$IFS
                   92457:   for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
                   92458:                             cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
                   92459:                             flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
                   92460:                             info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
                   92461:                             microtime.c pack.c pageinfo.c quot_print.c rand.c \
                   92462:                             soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
                   92463:                             var.c versioning.c assert.c strnatcmp.c levenshtein.c \
                   92464:                             incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
                   92465:                             http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
                   92466:                             var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
                   92467:                             filters.c proc_open.c streamsfuncs.c http.c; do
                   92468: 
                   92469:       IFS=.
                   92470:       set $ac_src
                   92471:       ac_obj=$1
                   92472:       IFS=$old_IFS
                   92473: 
                   92474:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   92475: 
                   92476:       case $ac_src in
                   92477:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92478:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92479:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92480:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   92481:       esac
                   92482: 
                   92483:     cat >>Makefile.objects<<EOF
                   92484: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   92485:        $ac_comp
                   92486: EOF
                   92487:   done
                   92488: 
                   92489: 
                   92490:     EXT_STATIC="$EXT_STATIC standard"
                   92491:     if test "" != "nocli"; then
                   92492:       EXT_CLI_STATIC="$EXT_CLI_STATIC standard"
                   92493:     fi
                   92494:   else
                   92495:     if test "" = "shared" || test "" = "yes"; then
                   92496:       PHP_STANDARD_SHARED=yes
                   92497: 
                   92498:   case ext/standard in
                   92499:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   92500:   /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   92501:   *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   92502:   esac
                   92503: 
                   92504: 
                   92505: 
                   92506:   b_c_pre=$shared_c_pre
                   92507:   b_cxx_pre=$shared_cxx_pre
                   92508:   b_c_meta=$shared_c_meta
                   92509:   b_cxx_meta=$shared_cxx_meta
                   92510:   b_c_post=$shared_c_post
                   92511:   b_cxx_post=$shared_cxx_post
                   92512:   b_lo=$shared_lo
                   92513: 
                   92514: 
                   92515:   old_IFS=$IFS
                   92516:   for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
                   92517:                             cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
                   92518:                             flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
                   92519:                             info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
                   92520:                             microtime.c pack.c pageinfo.c quot_print.c rand.c \
                   92521:                             soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
                   92522:                             var.c versioning.c assert.c strnatcmp.c levenshtein.c \
                   92523:                             incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
                   92524:                             http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
                   92525:                             var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
                   92526:                             filters.c proc_open.c streamsfuncs.c http.c; do
                   92527: 
                   92528:       IFS=.
                   92529:       set $ac_src
                   92530:       ac_obj=$1
                   92531:       IFS=$old_IFS
                   92532: 
                   92533:       shared_objects_standard="$shared_objects_standard $ac_bdir$ac_obj.lo"
                   92534: 
                   92535:       case $ac_src in
                   92536:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92537:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92538:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92539:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   92540:       esac
                   92541: 
                   92542:     cat >>Makefile.objects<<EOF
                   92543: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   92544:        $ac_comp
                   92545: EOF
                   92546:   done
                   92547: 
                   92548:       case $host_alias in
                   92549:         *netware*)
                   92550: 
                   92551:   install_modules="install-modules"
                   92552: 
                   92553:   case $host_alias in
                   92554:     *aix*)
                   92555:       suffix=so
                   92556:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpstandard.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) $(PHPSTANDARD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpstandard.so '$ext_builddir'/phpstandard.so'
                   92557:       ;;
                   92558:     *netware*)
                   92559:       suffix=nlm
                   92560:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) -L$(top_builddir)/netware -lphp5lib $(STANDARD_SHARED_LIBADD)'
                   92561:       ;;
                   92562:     *)
                   92563:       suffix=la
                   92564:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) $(PHPSTANDARD_SHARED_LIBADD)'
                   92565:       ;;
                   92566:   esac
                   92567: 
                   92568:   if test "x" = "xyes"; then
                   92569:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpstandard.$suffix"
                   92570:   else
                   92571:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpstandard.$suffix"
                   92572:   fi
                   92573: 
                   92574:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_standard"
                   92575: 
                   92576:   cat >>Makefile.objects<<EOF
                   92577: \$(phplibdir)/phpstandard.$suffix: $ext_builddir/phpstandard.$suffix
                   92578:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpstandard.$suffix \$(phplibdir)
                   92579: 
                   92580: $ext_builddir/phpstandard.$suffix: \$(shared_objects_standard) \$(PHPSTANDARD_SHARED_DEPENDENCIES)
                   92581:        $link_cmd
                   92582: 
                   92583: EOF
                   92584: 
                   92585:           ;;
                   92586:         *)
                   92587: 
                   92588:   install_modules="install-modules"
                   92589: 
                   92590:   case $host_alias in
                   92591:     *aix*)
                   92592:       suffix=so
                   92593:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/standard.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) $(STANDARD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/standard.so '$ext_builddir'/standard.so'
                   92594:       ;;
                   92595:     *netware*)
                   92596:       suffix=nlm
                   92597:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) -L$(top_builddir)/netware -lphp5lib $(NDARD_SHARED_LIBADD)'
                   92598:       ;;
                   92599:     *)
                   92600:       suffix=la
                   92601:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) $(STANDARD_SHARED_LIBADD)'
                   92602:       ;;
                   92603:   esac
                   92604: 
                   92605:   if test "x" = "xyes"; then
                   92606:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/standard.$suffix"
                   92607:   else
                   92608:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/standard.$suffix"
                   92609:   fi
                   92610: 
                   92611:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_standard"
                   92612: 
                   92613:   cat >>Makefile.objects<<EOF
                   92614: \$(phplibdir)/standard.$suffix: $ext_builddir/standard.$suffix
                   92615:        \$(LIBTOOL) --mode=install cp $ext_builddir/standard.$suffix \$(phplibdir)
                   92616: 
                   92617: $ext_builddir/standard.$suffix: \$(shared_objects_standard) \$(STANDARD_SHARED_DEPENDENCIES)
                   92618:        $link_cmd
                   92619: 
                   92620: EOF
                   92621: 
                   92622:           ;;
                   92623:       esac
                   92624: 
                   92625: cat >>confdefs.h <<_ACEOF
                   92626: #define COMPILE_DL_STANDARD 1
                   92627: _ACEOF
                   92628: 
                   92629:     fi
                   92630:   fi
                   92631: 
                   92632:   if test "" != "shared" && test "" != "yes" && test "" = "cli"; then
                   92633:     PHP_STANDARD_SHARED=no
                   92634: 
                   92635: 
                   92636:   case ext/standard in
                   92637:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   92638:   /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   92639:   *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   92640:   esac
                   92641: 
                   92642: 
                   92643: 
                   92644:   b_c_pre=$php_c_pre
                   92645:   b_cxx_pre=$php_cxx_pre
                   92646:   b_c_meta=$php_c_meta
                   92647:   b_cxx_meta=$php_cxx_meta
                   92648:   b_c_post=$php_c_post
                   92649:   b_cxx_post=$php_cxx_post
                   92650:   b_lo=$php_lo
                   92651: 
                   92652: 
                   92653:   old_IFS=$IFS
                   92654:   for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
                   92655:                             cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
                   92656:                             flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
                   92657:                             info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
                   92658:                             microtime.c pack.c pageinfo.c quot_print.c rand.c \
                   92659:                             soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
                   92660:                             var.c versioning.c assert.c strnatcmp.c levenshtein.c \
                   92661:                             incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
                   92662:                             http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
                   92663:                             var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
                   92664:                             filters.c proc_open.c streamsfuncs.c http.c; do
                   92665: 
                   92666:       IFS=.
                   92667:       set $ac_src
                   92668:       ac_obj=$1
                   92669:       IFS=$old_IFS
                   92670: 
1.1.1.2 ! misho    92671:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    92672: 
                   92673:       case $ac_src in
                   92674:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92675:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92676:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92677:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   92678:       esac
                   92679: 
                   92680:     cat >>Makefile.objects<<EOF
                   92681: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   92682:        $ac_comp
                   92683: EOF
                   92684:   done
                   92685: 
                   92686: 
                   92687: 
                   92688: 
                   92689:   case ext/standard in
                   92690:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   92691:   /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   92692:   *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   92693:   esac
                   92694: 
                   92695: 
                   92696: 
                   92697:   b_c_pre=$php_c_pre
                   92698:   b_cxx_pre=$php_cxx_pre
                   92699:   b_c_meta=$php_c_meta
                   92700:   b_cxx_meta=$php_cxx_meta
                   92701:   b_c_post=$php_c_post
                   92702:   b_cxx_post=$php_cxx_post
                   92703:   b_lo=$php_lo
                   92704: 
                   92705: 
                   92706:   old_IFS=$IFS
                   92707:   for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
                   92708:                             cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
                   92709:                             flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
                   92710:                             info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
                   92711:                             microtime.c pack.c pageinfo.c quot_print.c rand.c \
                   92712:                             soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
                   92713:                             var.c versioning.c assert.c strnatcmp.c levenshtein.c \
                   92714:                             incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
                   92715:                             http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
                   92716:                             var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
                   92717:                             filters.c proc_open.c streamsfuncs.c http.c; do
                   92718: 
                   92719:       IFS=.
                   92720:       set $ac_src
                   92721:       ac_obj=$1
                   92722:       IFS=$old_IFS
                   92723: 
1.1.1.2 ! misho    92724:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    92725: 
                   92726:       case $ac_src in
                   92727:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92728:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92729:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92730:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   92731:       esac
                   92732: 
                   92733:     cat >>Makefile.objects<<EOF
                   92734: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   92735:        $ac_comp
                   92736: EOF
                   92737:   done
                   92738: 
                   92739: 
                   92740: 
                   92741: 
                   92742:   case ext/standard in
                   92743:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   92744:   /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   92745:   *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   92746:   esac
                   92747: 
                   92748: 
                   92749: 
                   92750:   b_c_pre=$php_c_pre
                   92751:   b_cxx_pre=$php_cxx_pre
                   92752:   b_c_meta=$php_c_meta
                   92753:   b_cxx_meta=$php_cxx_meta
                   92754:   b_c_post=$php_c_post
                   92755:   b_cxx_post=$php_cxx_post
                   92756:   b_lo=$php_lo
                   92757: 
                   92758: 
                   92759:   old_IFS=$IFS
                   92760:   for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
                   92761:                             cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
                   92762:                             flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
                   92763:                             info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
                   92764:                             microtime.c pack.c pageinfo.c quot_print.c rand.c \
                   92765:                             soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
                   92766:                             var.c versioning.c assert.c strnatcmp.c levenshtein.c \
                   92767:                             incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
                   92768:                             http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
                   92769:                             var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
                   92770:                             filters.c proc_open.c streamsfuncs.c http.c; do
                   92771: 
                   92772:       IFS=.
                   92773:       set $ac_src
                   92774:       ac_obj=$1
                   92775:       IFS=$old_IFS
                   92776: 
1.1.1.2 ! misho    92777:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    92778: 
                   92779:       case $ac_src in
                   92780:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92781:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92782:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92783:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   92784:       esac
                   92785: 
                   92786:     cat >>Makefile.objects<<EOF
                   92787: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   92788:        $ac_comp
                   92789: EOF
                   92790:   done
                   92791: 
                   92792: 
                   92793:     EXT_CLI_STATIC="$EXT_CLI_STATIC standard"
                   92794:   fi
                   92795: 
                   92796: 
                   92797:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   92798: 
                   92799: 
                   92800: 
                   92801:   if test "$ext_builddir" = "."; then
                   92802:     PHP_PECL_EXTENSION=standard
                   92803: 
                   92804:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   92805: 
                   92806:   fi
                   92807: 
                   92808: 
                   92809: 
                   92810:   src=$ext_srcdir/Makefile.frag
                   92811:   ac_srcdir=$ext_srcdir
                   92812:   ac_builddir=$ext_builddir
                   92813:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
                   92814: 
                   92815: 
                   92816: 
                   92817:     for header_file in ext/standard/; do
                   92818: 
                   92819: 
                   92820:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
                   92821: 
                   92822:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   92823:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   92824:     eval "INSTALLHEADERS$unique=set"
                   92825: 
                   92826:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
                   92827: 
                   92828:   fi
                   92829: 
                   92830:     done
                   92831: 
                   92832: 
                   92833: 
                   92834: 
                   92835: 
                   92836: php_with_sybase_ct=no
                   92837: 
                   92838: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sybase-CT support" >&5
                   92839: $as_echo_n "checking for Sybase-CT support... " >&6; }
                   92840: 
                   92841: # Check whether --with-sybase-ct was given.
                   92842: if test "${with_sybase_ct+set}" = set; then :
                   92843:   withval=$with_sybase_ct; PHP_SYBASE_CT=$withval
                   92844: else
                   92845: 
                   92846:   PHP_SYBASE_CT=no
                   92847:   test "$PHP_ENABLE_ALL" && PHP_SYBASE_CT=$PHP_ENABLE_ALL
                   92848: 
                   92849: fi
                   92850: 
                   92851: 
                   92852: 
                   92853: ext_output="yes, shared"
                   92854: ext_shared=yes
                   92855: case $PHP_SYBASE_CT in
                   92856: shared,*)
                   92857:   PHP_SYBASE_CT=`echo "$PHP_SYBASE_CT"|$SED 's/^shared,//'`
                   92858:   ;;
                   92859: shared)
                   92860:   PHP_SYBASE_CT=yes
                   92861:   ;;
                   92862: no)
                   92863:   ext_output=no
                   92864:   ext_shared=no
                   92865:   ;;
                   92866: *)
                   92867:   ext_output=yes
                   92868:   ext_shared=no
                   92869:   ;;
                   92870: esac
                   92871: 
                   92872: 
                   92873: 
                   92874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   92875: $as_echo "$ext_output" >&6; }
                   92876: 
                   92877: 
                   92878: 
                   92879: 
                   92880: if test "$PHP_SYBASE_CT" != "no"; then
                   92881: 
                   92882:   if test "$PHP_SYBASE" && test "$PHP_SYBASE" != "no" && test "$ext_shared" = "no"; then
                   92883:     as_fn_error $? "You can not use both --with-sybase and --with-sybase-ct in same build!" "$LINENO" 5
                   92884:   fi
                   92885: 
                   92886: 
                   92887: $as_echo "#define HAVE_SYBASE_CT 1" >>confdefs.h
                   92888: 
                   92889: 
                   92890:   ext_builddir=ext/sybase_ct
                   92891:   ext_srcdir=$abs_srcdir/ext/sybase_ct
                   92892: 
                   92893:   ac_extra=
                   92894: 
                   92895:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   92896:     PHP_SYBASE_CT_SHARED=no
                   92897: 
                   92898: 
                   92899:   case ext/sybase_ct in
                   92900:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   92901:   /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   92902:   *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   92903:   esac
                   92904: 
                   92905: 
                   92906: 
                   92907:   b_c_pre=$php_c_pre
                   92908:   b_cxx_pre=$php_cxx_pre
                   92909:   b_c_meta=$php_c_meta
                   92910:   b_cxx_meta=$php_cxx_meta
                   92911:   b_c_post=$php_c_post
                   92912:   b_cxx_post=$php_cxx_post
                   92913:   b_lo=$php_lo
                   92914: 
                   92915: 
                   92916:   old_IFS=$IFS
                   92917:   for ac_src in php_sybase_ct.c; do
                   92918: 
                   92919:       IFS=.
                   92920:       set $ac_src
                   92921:       ac_obj=$1
                   92922:       IFS=$old_IFS
                   92923: 
                   92924:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   92925: 
                   92926:       case $ac_src in
                   92927:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92928:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92929:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92930:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   92931:       esac
                   92932: 
                   92933:     cat >>Makefile.objects<<EOF
                   92934: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   92935:        $ac_comp
                   92936: EOF
                   92937:   done
                   92938: 
                   92939: 
                   92940:     EXT_STATIC="$EXT_STATIC sybase_ct"
                   92941:     if test "$ext_shared" != "nocli"; then
                   92942:       EXT_CLI_STATIC="$EXT_CLI_STATIC sybase_ct"
                   92943:     fi
                   92944:   else
                   92945:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   92946:       PHP_SYBASE_CT_SHARED=yes
                   92947: 
                   92948:   case ext/sybase_ct in
                   92949:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   92950:   /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   92951:   *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   92952:   esac
                   92953: 
                   92954: 
                   92955: 
                   92956:   b_c_pre=$shared_c_pre
                   92957:   b_cxx_pre=$shared_cxx_pre
                   92958:   b_c_meta=$shared_c_meta
                   92959:   b_cxx_meta=$shared_cxx_meta
                   92960:   b_c_post=$shared_c_post
                   92961:   b_cxx_post=$shared_cxx_post
                   92962:   b_lo=$shared_lo
                   92963: 
                   92964: 
                   92965:   old_IFS=$IFS
                   92966:   for ac_src in php_sybase_ct.c; do
                   92967: 
                   92968:       IFS=.
                   92969:       set $ac_src
                   92970:       ac_obj=$1
                   92971:       IFS=$old_IFS
                   92972: 
                   92973:       shared_objects_sybase_ct="$shared_objects_sybase_ct $ac_bdir$ac_obj.lo"
                   92974: 
                   92975:       case $ac_src in
                   92976:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92977:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92978:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   92979:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   92980:       esac
                   92981: 
                   92982:     cat >>Makefile.objects<<EOF
                   92983: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   92984:        $ac_comp
                   92985: EOF
                   92986:   done
                   92987: 
                   92988:       case $host_alias in
                   92989:         *netware*)
                   92990: 
                   92991:   install_modules="install-modules"
                   92992: 
                   92993:   case $host_alias in
                   92994:     *aix*)
                   92995:       suffix=so
                   92996:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsybase_ct.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) $(PHPSYBASE_CT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsybase_ct.so '$ext_builddir'/phpsybase_ct.so'
                   92997:       ;;
                   92998:     *netware*)
                   92999:       suffix=nlm
                   93000:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) -L$(top_builddir)/netware -lphp5lib $(SYBASE_CT_SHARED_LIBADD)'
                   93001:       ;;
                   93002:     *)
                   93003:       suffix=la
                   93004:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) $(PHPSYBASE_CT_SHARED_LIBADD)'
                   93005:       ;;
                   93006:   esac
                   93007: 
                   93008:   if test "x" = "xyes"; then
                   93009:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsybase_ct.$suffix"
                   93010:   else
                   93011:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsybase_ct.$suffix"
                   93012:   fi
                   93013: 
                   93014:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sybase_ct"
                   93015: 
                   93016:   cat >>Makefile.objects<<EOF
                   93017: \$(phplibdir)/phpsybase_ct.$suffix: $ext_builddir/phpsybase_ct.$suffix
                   93018:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsybase_ct.$suffix \$(phplibdir)
                   93019: 
                   93020: $ext_builddir/phpsybase_ct.$suffix: \$(shared_objects_sybase_ct) \$(PHPSYBASE_CT_SHARED_DEPENDENCIES)
                   93021:        $link_cmd
                   93022: 
                   93023: EOF
                   93024: 
                   93025:           ;;
                   93026:         *)
                   93027: 
                   93028:   install_modules="install-modules"
                   93029: 
                   93030:   case $host_alias in
                   93031:     *aix*)
                   93032:       suffix=so
                   93033:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sybase_ct.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) $(SYBASE_CT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sybase_ct.so '$ext_builddir'/sybase_ct.so'
                   93034:       ;;
                   93035:     *netware*)
                   93036:       suffix=nlm
                   93037:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) -L$(top_builddir)/netware -lphp5lib $(ASE_CT_SHARED_LIBADD)'
                   93038:       ;;
                   93039:     *)
                   93040:       suffix=la
                   93041:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) $(SYBASE_CT_SHARED_LIBADD)'
                   93042:       ;;
                   93043:   esac
                   93044: 
                   93045:   if test "x" = "xyes"; then
                   93046:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sybase_ct.$suffix"
                   93047:   else
                   93048:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/sybase_ct.$suffix"
                   93049:   fi
                   93050: 
                   93051:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sybase_ct"
                   93052: 
                   93053:   cat >>Makefile.objects<<EOF
                   93054: \$(phplibdir)/sybase_ct.$suffix: $ext_builddir/sybase_ct.$suffix
                   93055:        \$(LIBTOOL) --mode=install cp $ext_builddir/sybase_ct.$suffix \$(phplibdir)
                   93056: 
                   93057: $ext_builddir/sybase_ct.$suffix: \$(shared_objects_sybase_ct) \$(SYBASE_CT_SHARED_DEPENDENCIES)
                   93058:        $link_cmd
                   93059: 
                   93060: EOF
                   93061: 
                   93062:           ;;
                   93063:       esac
                   93064: 
                   93065: cat >>confdefs.h <<_ACEOF
                   93066: #define COMPILE_DL_SYBASE_CT 1
                   93067: _ACEOF
                   93068: 
                   93069:     fi
                   93070:   fi
                   93071: 
                   93072:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   93073:     PHP_SYBASE_CT_SHARED=no
                   93074: 
                   93075: 
                   93076:   case ext/sybase_ct in
                   93077:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   93078:   /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   93079:   *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   93080:   esac
                   93081: 
                   93082: 
                   93083: 
                   93084:   b_c_pre=$php_c_pre
                   93085:   b_cxx_pre=$php_cxx_pre
                   93086:   b_c_meta=$php_c_meta
                   93087:   b_cxx_meta=$php_cxx_meta
                   93088:   b_c_post=$php_c_post
                   93089:   b_cxx_post=$php_cxx_post
                   93090:   b_lo=$php_lo
                   93091: 
                   93092: 
                   93093:   old_IFS=$IFS
                   93094:   for ac_src in php_sybase_ct.c; do
                   93095: 
                   93096:       IFS=.
                   93097:       set $ac_src
                   93098:       ac_obj=$1
                   93099:       IFS=$old_IFS
                   93100: 
1.1.1.2 ! misho    93101:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    93102: 
                   93103:       case $ac_src in
                   93104:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   93105:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   93106:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   93107:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   93108:       esac
                   93109: 
                   93110:     cat >>Makefile.objects<<EOF
                   93111: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   93112:        $ac_comp
                   93113: EOF
                   93114:   done
                   93115: 
                   93116: 
                   93117: 
                   93118: 
                   93119:   case ext/sybase_ct in
                   93120:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   93121:   /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   93122:   *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   93123:   esac
                   93124: 
                   93125: 
                   93126: 
                   93127:   b_c_pre=$php_c_pre
                   93128:   b_cxx_pre=$php_cxx_pre
                   93129:   b_c_meta=$php_c_meta
                   93130:   b_cxx_meta=$php_cxx_meta
                   93131:   b_c_post=$php_c_post
                   93132:   b_cxx_post=$php_cxx_post
                   93133:   b_lo=$php_lo
                   93134: 
                   93135: 
                   93136:   old_IFS=$IFS
                   93137:   for ac_src in php_sybase_ct.c; do
                   93138: 
                   93139:       IFS=.
                   93140:       set $ac_src
                   93141:       ac_obj=$1
                   93142:       IFS=$old_IFS
                   93143: 
1.1.1.2 ! misho    93144:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    93145: 
                   93146:       case $ac_src in
                   93147:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   93148:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   93149:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   93150:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   93151:       esac
                   93152: 
                   93153:     cat >>Makefile.objects<<EOF
                   93154: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   93155:        $ac_comp
                   93156: EOF
                   93157:   done
                   93158: 
                   93159: 
                   93160: 
                   93161: 
                   93162:   case ext/sybase_ct in
                   93163:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   93164:   /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   93165:   *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   93166:   esac
                   93167: 
                   93168: 
                   93169: 
                   93170:   b_c_pre=$php_c_pre
                   93171:   b_cxx_pre=$php_cxx_pre
                   93172:   b_c_meta=$php_c_meta
                   93173:   b_cxx_meta=$php_cxx_meta
                   93174:   b_c_post=$php_c_post
                   93175:   b_cxx_post=$php_cxx_post
                   93176:   b_lo=$php_lo
                   93177: 
                   93178: 
                   93179:   old_IFS=$IFS
                   93180:   for ac_src in php_sybase_ct.c; do
                   93181: 
                   93182:       IFS=.
                   93183:       set $ac_src
                   93184:       ac_obj=$1
                   93185:       IFS=$old_IFS
                   93186: 
1.1.1.2 ! misho    93187:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    93188: 
                   93189:       case $ac_src in
                   93190:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   93191:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   93192:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   93193:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   93194:       esac
                   93195: 
                   93196:     cat >>Makefile.objects<<EOF
                   93197: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   93198:        $ac_comp
                   93199: EOF
                   93200:   done
                   93201: 
                   93202: 
                   93203:     EXT_CLI_STATIC="$EXT_CLI_STATIC sybase_ct"
                   93204:   fi
                   93205: 
                   93206: 
                   93207:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   93208: 
                   93209: 
                   93210: 
                   93211:   if test "$ext_builddir" = "."; then
                   93212:     PHP_PECL_EXTENSION=sybase_ct
                   93213: 
                   93214:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   93215: 
                   93216:   fi
                   93217: 
                   93218: 
                   93219:   PHP_VAR_SUBST="$PHP_VAR_SUBST SYBASE_CT_SHARED_LIBADD"
                   93220: 
                   93221: 
                   93222:   if test "$PHP_SYBASE_CT" = "yes"; then
                   93223:     SYBASE_CT_INCDIR=/home/sybase/include
                   93224:     SYBASE_CT_LIBDIR=/home/sybase/lib
                   93225:   else
                   93226:     SYBASE_CT_INCDIR=$PHP_SYBASE_CT/include
                   93227:     SYBASE_CT_LIBDIR=$PHP_SYBASE_CT/lib
                   93228:   fi
                   93229: 
                   93230:     # The cast to long int works around a bug in the HP C Compiler
                   93231: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   93232: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   93233: # This bug is HP SR number 8606223364.
                   93234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   93235: $as_echo_n "checking size of long int... " >&6; }
                   93236: if ${ac_cv_sizeof_long_int+:} false; then :
                   93237:   $as_echo_n "(cached) " >&6
                   93238: else
                   93239:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
                   93240: 
                   93241: else
                   93242:   if test "$ac_cv_type_long_int" = yes; then
                   93243:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   93244: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   93245: as_fn_error 77 "cannot compute sizeof (long int)
                   93246: See \`config.log' for more details" "$LINENO" 5; }
                   93247:    else
                   93248:      ac_cv_sizeof_long_int=0
                   93249:    fi
                   93250: fi
                   93251: 
                   93252: fi
                   93253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   93254: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   93255: 
                   93256: 
                   93257: 
                   93258: cat >>confdefs.h <<_ACEOF
                   93259: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
                   93260: _ACEOF
                   93261: 
                   93262: 
                   93263:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking if we're on a 64-bit platform" >&5
                   93264: $as_echo_n "checking checking if we're on a 64-bit platform... " >&6; }
                   93265:   if test "$ac_cv_sizeof_long_int" = "4"; then
                   93266:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   93267: $as_echo "no" >&6; }
                   93268:     PHP_SYBASE_64=no
                   93269:   else
                   93270:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   93271: $as_echo "yes" >&6; }
                   93272:     PHP_SYBASE_64=yes
                   93273:   fi
                   93274: 
                   93275: 
                   93276:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ctpublic.h" >&5
                   93277: $as_echo_n "checking Checking for ctpublic.h... " >&6; }
                   93278:   if test -f $SYBASE_CT_INCDIR/ctpublic.h; then
                   93279:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $SYBASE_CT_INCDIR" >&5
                   93280: $as_echo "found in $SYBASE_CT_INCDIR" >&6; }
                   93281: 
                   93282:   if test "$SYBASE_CT_INCDIR" != "/usr/include"; then
                   93283: 
                   93284:   if test -z "$SYBASE_CT_INCDIR" || echo "$SYBASE_CT_INCDIR" | grep '^/' >/dev/null ; then
                   93285:     ai_p=$SYBASE_CT_INCDIR
                   93286:   else
                   93287: 
                   93288:     ep_dir="`echo $SYBASE_CT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   93289: 
                   93290:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   93291:     ai_p="$ep_realdir/`basename \"$SYBASE_CT_INCDIR\"`"
                   93292:   fi
                   93293: 
                   93294: 
                   93295: 
                   93296:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   93297: 
                   93298:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   93299:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   93300:     eval "INCLUDEPATH$unique=set"
                   93301: 
                   93302:       if test ""; then
                   93303:         INCLUDES="-I$ai_p $INCLUDES"
                   93304:       else
                   93305:         INCLUDES="$INCLUDES -I$ai_p"
                   93306:       fi
                   93307: 
                   93308:   fi
                   93309: 
                   93310:   fi
                   93311: 
                   93312:   else
                   93313:     as_fn_error $? "ctpublic.h missing!" "$LINENO" 5
                   93314:   fi
                   93315: 
                   93316:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking Sybase libdir" >&5
                   93317: $as_echo_n "checking Checking Sybase libdir... " >&6; }
                   93318:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have $SYBASE_CT_LIBDIR" >&5
                   93319: $as_echo "Have $SYBASE_CT_LIBDIR" >&6; }
                   93320: 
                   93321:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for Sybase platform libraries" >&5
                   93322: $as_echo_n "checking Checking for Sybase platform libraries... " >&6; }
                   93323: 
                   93324: 
                   93325:   if test "$SYBASE_CT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SYBASE_CT_LIBDIR" != "/usr/lib"; then
                   93326: 
                   93327:   if test -z "$SYBASE_CT_LIBDIR" || echo "$SYBASE_CT_LIBDIR" | grep '^/' >/dev/null ; then
                   93328:     ai_p=$SYBASE_CT_LIBDIR
                   93329:   else
                   93330: 
                   93331:     ep_dir="`echo $SYBASE_CT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   93332: 
                   93333:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   93334:     ai_p="$ep_realdir/`basename \"$SYBASE_CT_LIBDIR\"`"
                   93335:   fi
                   93336: 
                   93337: 
                   93338:       if test "$ext_shared" = "yes"; then
                   93339:         SYBASE_CT_SHARED_LIBADD="-L$ai_p $SYBASE_CT_SHARED_LIBADD"
                   93340:         test -n "$ld_runpath_switch" && SYBASE_CT_SHARED_LIBADD="$ld_runpath_switch$ai_p $SYBASE_CT_SHARED_LIBADD"
                   93341:       else
                   93342: 
                   93343: 
                   93344: 
                   93345:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   93346: 
                   93347:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   93348:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   93349:     eval "LIBPATH$unique=set"
                   93350: 
                   93351:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   93352:     LDFLAGS="$LDFLAGS -L$ai_p"
                   93353:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   93354: 
                   93355:   fi
                   93356: 
                   93357: 
                   93358:       fi
                   93359: 
                   93360:   fi
                   93361: 
                   93362:   if test -f $SYBASE_CT_INCDIR/tds.h || test -f $SYBASE_CT_INCDIR/tds_sysdep_public.h; then
                   93363: 
                   93364: 
                   93365:   case ct in
                   93366:   c|c_r|pthread*) ;;
                   93367:   *)
                   93368:     if test "$ext_shared" = "yes"; then
                   93369:         SYBASE_CT_SHARED_LIBADD="-lct $SYBASE_CT_SHARED_LIBADD"
                   93370:     else
                   93371: 
                   93372: 
                   93373:   case ct in
                   93374:   c|c_r|pthread*) ;;
                   93375:   *)
                   93376:       LIBS="-lct $LIBS"
                   93377:    ;;
                   93378:   esac
                   93379: 
                   93380: 
                   93381:     fi
                   93382:    ;;
                   93383:   esac
                   93384: 
                   93385: 
                   93386:     SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct"
                   93387:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeTDS: $SYBASE_CT_LIBS" >&5
                   93388: $as_echo "FreeTDS: $SYBASE_CT_LIBS" >&6; }
                   93389:   elif test -f $SYBASE_CT_LIBDIR/libsybct64.so && test $PHP_SYBASE_64 = "yes"; then
                   93390: 
                   93391: 
                   93392:   case sybcs64 in
                   93393:   c|c_r|pthread*) ;;
                   93394:   *)
                   93395:     if test "$ext_shared" = "yes"; then
                   93396:         SYBASE_CT_SHARED_LIBADD="-lsybcs64 $SYBASE_CT_SHARED_LIBADD"
                   93397:     else
                   93398: 
                   93399: 
                   93400:   case sybcs64 in
                   93401:   c|c_r|pthread*) ;;
                   93402:   *)
                   93403:       LIBS="-lsybcs64 $LIBS"
                   93404:    ;;
                   93405:   esac
                   93406: 
                   93407: 
                   93408:     fi
                   93409:    ;;
                   93410:   esac
                   93411: 
                   93412: 
                   93413: 
                   93414: 
                   93415:   case sybct64 in
                   93416:   c|c_r|pthread*) ;;
                   93417:   *)
                   93418:     if test "$ext_shared" = "yes"; then
                   93419:         SYBASE_CT_SHARED_LIBADD="-lsybct64 $SYBASE_CT_SHARED_LIBADD"
                   93420:     else
                   93421: 
                   93422: 
                   93423:   case sybct64 in
                   93424:   c|c_r|pthread*) ;;
                   93425:   *)
                   93426:       LIBS="-lsybct64 $LIBS"
                   93427:    ;;
                   93428:   esac
                   93429: 
                   93430: 
                   93431:     fi
                   93432:    ;;
                   93433:   esac
                   93434: 
                   93435: 
                   93436: 
                   93437: 
                   93438:   case sybcomn64 in
                   93439:   c|c_r|pthread*) ;;
                   93440:   *)
                   93441:     if test "$ext_shared" = "yes"; then
                   93442:         SYBASE_CT_SHARED_LIBADD="-lsybcomn64 $SYBASE_CT_SHARED_LIBADD"
                   93443:     else
                   93444: 
                   93445: 
                   93446:   case sybcomn64 in
                   93447:   c|c_r|pthread*) ;;
                   93448:   *)
                   93449:       LIBS="-lsybcomn64 $LIBS"
                   93450:    ;;
                   93451:   esac
                   93452: 
                   93453: 
                   93454:     fi
                   93455:    ;;
                   93456:   esac
                   93457: 
                   93458: 
                   93459: 
                   93460: 
                   93461:   case sybintl64 in
                   93462:   c|c_r|pthread*) ;;
                   93463:   *)
                   93464:     if test "$ext_shared" = "yes"; then
                   93465:         SYBASE_CT_SHARED_LIBADD="-lsybintl64 $SYBASE_CT_SHARED_LIBADD"
                   93466:     else
                   93467: 
                   93468: 
                   93469:   case sybintl64 in
                   93470:   c|c_r|pthread*) ;;
                   93471:   *)
                   93472:       LIBS="-lsybintl64 $LIBS"
                   93473:    ;;
                   93474:   esac
                   93475: 
                   93476: 
                   93477:     fi
                   93478:    ;;
                   93479:   esac
                   93480: 
                   93481: 
                   93482: 
                   93483:     ac_solid_uname_s=`uname -s 2>/dev/null`
                   93484:     case $ac_solid_uname_s in
                   93485:       *OSF*)                            ;; # Tru64/DEC OSF does NOT use the SYB_LP64 define
                   93486:       *) CFLAGS="${CFLAGS} -DSYB_LP64"  ;; #
                   93487:     esac
                   93488:     SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs64 -lsybct64 -lsybcomn64 -lsybintl64"
                   93489:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sybase64: $SYBASE_CT_LIBS" >&5
                   93490: $as_echo "Sybase64: $SYBASE_CT_LIBS" >&6; }
                   93491: 
                   93492: 
                   93493:   save_old_LDFLAGS=$LDFLAGS
                   93494:   ac_stuff="
                   93495:       $SYBASE_CT_LIBS
                   93496:     "
                   93497: 
                   93498:   save_ext_shared=$ext_shared
                   93499:   ext_shared=yes
                   93500: 
                   93501:   for ac_i in $ac_stuff; do
                   93502:     case $ac_i in
                   93503:     -pthread)
                   93504:       if test "$ext_shared" = "yes"; then
                   93505:         LDFLAGS="$LDFLAGS -pthread"
                   93506:       else
                   93507: 
                   93508: 
                   93509:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   93510: 
                   93511:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   93512:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   93513:     eval "EXTRA_LDFLAGS$unique=set"
                   93514:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   93515:   fi
                   93516: 
                   93517:       fi
                   93518:     ;;
                   93519:     -l*)
                   93520:       ac_ii=`echo $ac_i|cut -c 3-`
                   93521: 
                   93522: 
                   93523:   case $ac_ii in
                   93524:   c|c_r|pthread*) ;;
                   93525:   *)
                   93526:     if test "$ext_shared" = "yes"; then
                   93527:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   93528:     else
                   93529: 
                   93530: 
                   93531:   case $ac_ii in
                   93532:   c|c_r|pthread*) ;;
                   93533:   *)
                   93534:       LIBS="$LIBS -l$ac_ii"
                   93535:    ;;
                   93536:   esac
                   93537: 
                   93538: 
                   93539:     fi
                   93540:    ;;
                   93541:   esac
                   93542: 
                   93543: 
                   93544:     ;;
                   93545:     -L*)
                   93546:       ac_ii=`echo $ac_i|cut -c 3-`
                   93547: 
                   93548:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   93549: 
                   93550:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   93551:     ai_p=$ac_ii
                   93552:   else
                   93553: 
                   93554:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   93555: 
                   93556:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   93557:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   93558:   fi
                   93559: 
                   93560: 
                   93561:       if test "$ext_shared" = "yes"; then
                   93562:         LDFLAGS="-L$ai_p $LDFLAGS"
                   93563:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   93564:       else
                   93565: 
                   93566: 
                   93567: 
                   93568:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   93569: 
                   93570:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   93571:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   93572:     eval "LIBPATH$unique=set"
                   93573: 
                   93574:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   93575:     LDFLAGS="$LDFLAGS -L$ai_p"
                   93576:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   93577: 
                   93578:   fi
                   93579: 
                   93580: 
                   93581:       fi
                   93582: 
                   93583:   fi
                   93584: 
                   93585:     ;;
                   93586:     esac
                   93587:   done
                   93588: 
                   93589:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -lsybtcl64" >&5
                   93590: $as_echo_n "checking for netg_errstr in -lsybtcl64... " >&6; }
                   93591: if ${ac_cv_lib_sybtcl64_netg_errstr+:} false; then :
                   93592:   $as_echo_n "(cached) " >&6
                   93593: else
                   93594:   ac_check_lib_save_LIBS=$LIBS
                   93595: LIBS="-lsybtcl64  $LIBS"
                   93596: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   93597: /* end confdefs.h.  */
                   93598: 
                   93599: /* Override any GCC internal prototype to avoid an error.
                   93600:    Use char because int might match the return type of a GCC
                   93601:    builtin and then its argument prototype would still apply.  */
                   93602: #ifdef __cplusplus
                   93603: extern "C"
                   93604: #endif
                   93605: char netg_errstr ();
                   93606: int
                   93607: main ()
                   93608: {
                   93609: return netg_errstr ();
                   93610:   ;
                   93611:   return 0;
                   93612: }
                   93613: _ACEOF
                   93614: if ac_fn_c_try_link "$LINENO"; then :
                   93615:   ac_cv_lib_sybtcl64_netg_errstr=yes
                   93616: else
                   93617:   ac_cv_lib_sybtcl64_netg_errstr=no
                   93618: fi
                   93619: rm -f core conftest.err conftest.$ac_objext \
                   93620:     conftest$ac_exeext conftest.$ac_ext
                   93621: LIBS=$ac_check_lib_save_LIBS
                   93622: fi
                   93623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybtcl64_netg_errstr" >&5
                   93624: $as_echo "$ac_cv_lib_sybtcl64_netg_errstr" >&6; }
                   93625: if test "x$ac_cv_lib_sybtcl64_netg_errstr" = xyes; then :
                   93626: 
                   93627:     LDFLAGS=$save_old_LDFLAGS
                   93628:     ext_shared=$save_ext_shared
                   93629: 
                   93630: 
                   93631: 
                   93632:   case sybtcl64 in
                   93633:   c|c_r|pthread*) ;;
                   93634:   *)
                   93635:     if test "$ext_shared" = "yes"; then
                   93636:         SYBASE_CT_SHARED_LIBADD="-lsybtcl64 $SYBASE_CT_SHARED_LIBADD"
                   93637:     else
                   93638: 
                   93639: 
                   93640:   case sybtcl64 in
                   93641:   c|c_r|pthread*) ;;
                   93642:   *)
                   93643:       LIBS="-lsybtcl64 $LIBS"
                   93644:    ;;
                   93645:   esac
                   93646: 
                   93647: 
                   93648:     fi
                   93649:    ;;
                   93650:   esac
                   93651: 
                   93652: 
                   93653: 
                   93654: 
                   93655: else
                   93656: 
                   93657:     LDFLAGS=$save_old_LDFLAGS
                   93658:     ext_shared=$save_ext_shared
                   93659:     unset ac_cv_lib_sybtcl64_netg_errstr
                   93660: 
                   93661: 
                   93662: 
                   93663:   case sybtcl64 in
                   93664:   c|c_r|pthread*) ;;
                   93665:   *)
                   93666:     if test "$ext_shared" = "yes"; then
                   93667:         SYBASE_CT_SHARED_LIBADD="-lsybtcl64 $SYBASE_CT_SHARED_LIBADD"
                   93668:     else
                   93669: 
                   93670: 
                   93671:   case sybtcl64 in
                   93672:   c|c_r|pthread*) ;;
                   93673:   *)
                   93674:       LIBS="-lsybtcl64 $LIBS"
                   93675:    ;;
                   93676:   esac
                   93677: 
                   93678: 
                   93679:     fi
                   93680:    ;;
                   93681:   esac
                   93682: 
                   93683: 
                   93684: 
                   93685: 
                   93686: fi
                   93687: 
                   93688: 
                   93689: 
                   93690:   save_old_LDFLAGS=$LDFLAGS
                   93691:   ac_stuff="-L$SYBASE_CT_LIBDIR"
                   93692: 
                   93693:   save_ext_shared=$ext_shared
                   93694:   ext_shared=yes
                   93695: 
                   93696:   for ac_i in $ac_stuff; do
                   93697:     case $ac_i in
                   93698:     -pthread)
                   93699:       if test "$ext_shared" = "yes"; then
                   93700:         LDFLAGS="$LDFLAGS -pthread"
                   93701:       else
                   93702: 
                   93703: 
                   93704:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   93705: 
                   93706:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   93707:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   93708:     eval "EXTRA_LDFLAGS$unique=set"
                   93709:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   93710:   fi
                   93711: 
                   93712:       fi
                   93713:     ;;
                   93714:     -l*)
                   93715:       ac_ii=`echo $ac_i|cut -c 3-`
                   93716: 
                   93717: 
                   93718:   case $ac_ii in
                   93719:   c|c_r|pthread*) ;;
                   93720:   *)
                   93721:     if test "$ext_shared" = "yes"; then
                   93722:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   93723:     else
                   93724: 
                   93725: 
                   93726:   case $ac_ii in
                   93727:   c|c_r|pthread*) ;;
                   93728:   *)
                   93729:       LIBS="$LIBS -l$ac_ii"
                   93730:    ;;
                   93731:   esac
                   93732: 
                   93733: 
                   93734:     fi
                   93735:    ;;
                   93736:   esac
                   93737: 
                   93738: 
                   93739:     ;;
                   93740:     -L*)
                   93741:       ac_ii=`echo $ac_i|cut -c 3-`
                   93742: 
                   93743:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   93744: 
                   93745:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   93746:     ai_p=$ac_ii
                   93747:   else
                   93748: 
                   93749:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   93750: 
                   93751:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   93752:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   93753:   fi
                   93754: 
                   93755: 
                   93756:       if test "$ext_shared" = "yes"; then
                   93757:         LDFLAGS="-L$ai_p $LDFLAGS"
                   93758:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   93759:       else
                   93760: 
                   93761: 
                   93762: 
                   93763:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   93764: 
                   93765:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   93766:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   93767:     eval "LIBPATH$unique=set"
                   93768: 
                   93769:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   93770:     LDFLAGS="$LDFLAGS -L$ai_p"
                   93771:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   93772: 
                   93773:   fi
                   93774: 
                   93775: 
                   93776:       fi
                   93777: 
                   93778:   fi
                   93779: 
                   93780:     ;;
                   93781:     esac
                   93782:   done
                   93783: 
                   93784:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck64" >&5
                   93785: $as_echo_n "checking for insck__getVdate in -linsck64... " >&6; }
                   93786: if ${ac_cv_lib_insck64_insck__getVdate+:} false; then :
                   93787:   $as_echo_n "(cached) " >&6
                   93788: else
                   93789:   ac_check_lib_save_LIBS=$LIBS
                   93790: LIBS="-linsck64  $LIBS"
                   93791: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   93792: /* end confdefs.h.  */
                   93793: 
                   93794: /* Override any GCC internal prototype to avoid an error.
                   93795:    Use char because int might match the return type of a GCC
                   93796:    builtin and then its argument prototype would still apply.  */
                   93797: #ifdef __cplusplus
                   93798: extern "C"
                   93799: #endif
                   93800: char insck__getVdate ();
                   93801: int
                   93802: main ()
                   93803: {
                   93804: return insck__getVdate ();
                   93805:   ;
                   93806:   return 0;
                   93807: }
                   93808: _ACEOF
                   93809: if ac_fn_c_try_link "$LINENO"; then :
                   93810:   ac_cv_lib_insck64_insck__getVdate=yes
                   93811: else
                   93812:   ac_cv_lib_insck64_insck__getVdate=no
                   93813: fi
                   93814: rm -f core conftest.err conftest.$ac_objext \
                   93815:     conftest$ac_exeext conftest.$ac_ext
                   93816: LIBS=$ac_check_lib_save_LIBS
                   93817: fi
                   93818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck64_insck__getVdate" >&5
                   93819: $as_echo "$ac_cv_lib_insck64_insck__getVdate" >&6; }
                   93820: if test "x$ac_cv_lib_insck64_insck__getVdate" = xyes; then :
                   93821: 
                   93822:     LDFLAGS=$save_old_LDFLAGS
                   93823:     ext_shared=$save_ext_shared
                   93824: 
                   93825: 
                   93826:   case insck64 in
                   93827:   c|c_r|pthread*) ;;
                   93828:   *)
                   93829:     if test "$ext_shared" = "yes"; then
                   93830:         SYBASE_CT_SHARED_LIBADD="-linsck64 $SYBASE_CT_SHARED_LIBADD"
                   93831:     else
                   93832: 
                   93833: 
                   93834:   case insck64 in
                   93835:   c|c_r|pthread*) ;;
                   93836:   *)
                   93837:       LIBS="-linsck64 $LIBS"
                   93838:    ;;
                   93839:   esac
                   93840: 
                   93841: 
                   93842:     fi
                   93843:    ;;
                   93844:   esac
                   93845: 
                   93846: 
                   93847: 
                   93848: else
                   93849: 
                   93850:     LDFLAGS=$save_old_LDFLAGS
                   93851:     ext_shared=$save_ext_shared
                   93852:     unset ac_cv_lib_insck64_insck__getVdate
                   93853: 
                   93854: 
                   93855: fi
                   93856: 
                   93857: 
                   93858:   save_old_LDFLAGS=$LDFLAGS
                   93859:   ac_stuff="-L$SYBASE_CT_LIBDIR"
                   93860: 
                   93861:   save_ext_shared=$ext_shared
                   93862:   ext_shared=yes
                   93863: 
                   93864:   for ac_i in $ac_stuff; do
                   93865:     case $ac_i in
                   93866:     -pthread)
                   93867:       if test "$ext_shared" = "yes"; then
                   93868:         LDFLAGS="$LDFLAGS -pthread"
                   93869:       else
                   93870: 
                   93871: 
                   93872:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   93873: 
                   93874:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   93875:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   93876:     eval "EXTRA_LDFLAGS$unique=set"
                   93877:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   93878:   fi
                   93879: 
                   93880:       fi
                   93881:     ;;
                   93882:     -l*)
                   93883:       ac_ii=`echo $ac_i|cut -c 3-`
                   93884: 
                   93885: 
                   93886:   case $ac_ii in
                   93887:   c|c_r|pthread*) ;;
                   93888:   *)
                   93889:     if test "$ext_shared" = "yes"; then
                   93890:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   93891:     else
                   93892: 
                   93893: 
                   93894:   case $ac_ii in
                   93895:   c|c_r|pthread*) ;;
                   93896:   *)
                   93897:       LIBS="$LIBS -l$ac_ii"
                   93898:    ;;
                   93899:   esac
                   93900: 
                   93901: 
                   93902:     fi
                   93903:    ;;
                   93904:   esac
                   93905: 
                   93906: 
                   93907:     ;;
                   93908:     -L*)
                   93909:       ac_ii=`echo $ac_i|cut -c 3-`
                   93910: 
                   93911:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   93912: 
                   93913:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   93914:     ai_p=$ac_ii
                   93915:   else
                   93916: 
                   93917:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   93918: 
                   93919:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   93920:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   93921:   fi
                   93922: 
                   93923: 
                   93924:       if test "$ext_shared" = "yes"; then
                   93925:         LDFLAGS="-L$ai_p $LDFLAGS"
                   93926:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   93927:       else
                   93928: 
                   93929: 
                   93930: 
                   93931:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   93932: 
                   93933:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   93934:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   93935:     eval "LIBPATH$unique=set"
                   93936: 
                   93937:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   93938:     LDFLAGS="$LDFLAGS -L$ai_p"
                   93939:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   93940: 
                   93941:   fi
                   93942: 
                   93943: 
                   93944:       fi
                   93945: 
                   93946:   fi
                   93947: 
                   93948:     ;;
                   93949:     esac
                   93950:   done
                   93951: 
                   93952:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck64" >&5
                   93953: $as_echo_n "checking for bsd_tcp in -linsck64... " >&6; }
                   93954: if ${ac_cv_lib_insck64_bsd_tcp+:} false; then :
                   93955:   $as_echo_n "(cached) " >&6
                   93956: else
                   93957:   ac_check_lib_save_LIBS=$LIBS
                   93958: LIBS="-linsck64  $LIBS"
                   93959: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   93960: /* end confdefs.h.  */
                   93961: 
                   93962: /* Override any GCC internal prototype to avoid an error.
                   93963:    Use char because int might match the return type of a GCC
                   93964:    builtin and then its argument prototype would still apply.  */
                   93965: #ifdef __cplusplus
                   93966: extern "C"
                   93967: #endif
                   93968: char bsd_tcp ();
                   93969: int
                   93970: main ()
                   93971: {
                   93972: return bsd_tcp ();
                   93973:   ;
                   93974:   return 0;
                   93975: }
                   93976: _ACEOF
                   93977: if ac_fn_c_try_link "$LINENO"; then :
                   93978:   ac_cv_lib_insck64_bsd_tcp=yes
                   93979: else
                   93980:   ac_cv_lib_insck64_bsd_tcp=no
                   93981: fi
                   93982: rm -f core conftest.err conftest.$ac_objext \
                   93983:     conftest$ac_exeext conftest.$ac_ext
                   93984: LIBS=$ac_check_lib_save_LIBS
                   93985: fi
                   93986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck64_bsd_tcp" >&5
                   93987: $as_echo "$ac_cv_lib_insck64_bsd_tcp" >&6; }
                   93988: if test "x$ac_cv_lib_insck64_bsd_tcp" = xyes; then :
                   93989: 
                   93990:     LDFLAGS=$save_old_LDFLAGS
                   93991:     ext_shared=$save_ext_shared
                   93992: 
                   93993: 
                   93994:   case insck64 in
                   93995:   c|c_r|pthread*) ;;
                   93996:   *)
                   93997:     if test "$ext_shared" = "yes"; then
                   93998:         SYBASE_CT_SHARED_LIBADD="-linsck64 $SYBASE_CT_SHARED_LIBADD"
                   93999:     else
                   94000: 
                   94001: 
                   94002:   case insck64 in
                   94003:   c|c_r|pthread*) ;;
                   94004:   *)
                   94005:       LIBS="-linsck64 $LIBS"
                   94006:    ;;
                   94007:   esac
                   94008: 
                   94009: 
                   94010:     fi
                   94011:    ;;
                   94012:   esac
                   94013: 
                   94014: 
                   94015: 
                   94016: else
                   94017: 
                   94018:     LDFLAGS=$save_old_LDFLAGS
                   94019:     ext_shared=$save_ext_shared
                   94020:     unset ac_cv_lib_insck64_bsd_tcp
                   94021: 
                   94022: 
                   94023: fi
                   94024: 
                   94025:   elif test -f $SYBASE_CT_LIBDIR/libsybct.so; then
                   94026: 
                   94027: 
                   94028:   case sybcs in
                   94029:   c|c_r|pthread*) ;;
                   94030:   *)
                   94031:     if test "$ext_shared" = "yes"; then
                   94032:         SYBASE_CT_SHARED_LIBADD="-lsybcs $SYBASE_CT_SHARED_LIBADD"
                   94033:     else
                   94034: 
                   94035: 
                   94036:   case sybcs in
                   94037:   c|c_r|pthread*) ;;
                   94038:   *)
                   94039:       LIBS="-lsybcs $LIBS"
                   94040:    ;;
                   94041:   esac
                   94042: 
                   94043: 
                   94044:     fi
                   94045:    ;;
                   94046:   esac
                   94047: 
                   94048: 
                   94049: 
                   94050: 
                   94051:   case sybct in
                   94052:   c|c_r|pthread*) ;;
                   94053:   *)
                   94054:     if test "$ext_shared" = "yes"; then
                   94055:         SYBASE_CT_SHARED_LIBADD="-lsybct $SYBASE_CT_SHARED_LIBADD"
                   94056:     else
                   94057: 
                   94058: 
                   94059:   case sybct in
                   94060:   c|c_r|pthread*) ;;
                   94061:   *)
                   94062:       LIBS="-lsybct $LIBS"
                   94063:    ;;
                   94064:   esac
                   94065: 
                   94066: 
                   94067:     fi
                   94068:    ;;
                   94069:   esac
                   94070: 
                   94071: 
                   94072: 
                   94073: 
                   94074:   case sybcomn in
                   94075:   c|c_r|pthread*) ;;
                   94076:   *)
                   94077:     if test "$ext_shared" = "yes"; then
                   94078:         SYBASE_CT_SHARED_LIBADD="-lsybcomn $SYBASE_CT_SHARED_LIBADD"
                   94079:     else
                   94080: 
                   94081: 
                   94082:   case sybcomn in
                   94083:   c|c_r|pthread*) ;;
                   94084:   *)
                   94085:       LIBS="-lsybcomn $LIBS"
                   94086:    ;;
                   94087:   esac
                   94088: 
                   94089: 
                   94090:     fi
                   94091:    ;;
                   94092:   esac
                   94093: 
                   94094: 
                   94095: 
                   94096: 
                   94097:   case sybintl in
                   94098:   c|c_r|pthread*) ;;
                   94099:   *)
                   94100:     if test "$ext_shared" = "yes"; then
                   94101:         SYBASE_CT_SHARED_LIBADD="-lsybintl $SYBASE_CT_SHARED_LIBADD"
                   94102:     else
                   94103: 
                   94104: 
                   94105:   case sybintl in
                   94106:   c|c_r|pthread*) ;;
                   94107:   *)
                   94108:       LIBS="-lsybintl $LIBS"
                   94109:    ;;
                   94110:   esac
                   94111: 
                   94112: 
                   94113:     fi
                   94114:    ;;
                   94115:   esac
                   94116: 
                   94117: 
                   94118: 
                   94119:     SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs -lsybct -lsybcomn -lsybintl"
                   94120:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sybase32 syb-prefix: $SYBASE_CT_LIBS" >&5
                   94121: $as_echo "Sybase32 syb-prefix: $SYBASE_CT_LIBS" >&6; }
                   94122: 
                   94123: 
                   94124:   save_old_LDFLAGS=$LDFLAGS
                   94125:   ac_stuff="
                   94126:       $SYBASE_CT_LIBS
                   94127:     "
                   94128: 
                   94129:   save_ext_shared=$ext_shared
                   94130:   ext_shared=yes
                   94131: 
                   94132:   for ac_i in $ac_stuff; do
                   94133:     case $ac_i in
                   94134:     -pthread)
                   94135:       if test "$ext_shared" = "yes"; then
                   94136:         LDFLAGS="$LDFLAGS -pthread"
                   94137:       else
                   94138: 
                   94139: 
                   94140:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   94141: 
                   94142:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   94143:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   94144:     eval "EXTRA_LDFLAGS$unique=set"
                   94145:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   94146:   fi
                   94147: 
                   94148:       fi
                   94149:     ;;
                   94150:     -l*)
                   94151:       ac_ii=`echo $ac_i|cut -c 3-`
                   94152: 
                   94153: 
                   94154:   case $ac_ii in
                   94155:   c|c_r|pthread*) ;;
                   94156:   *)
                   94157:     if test "$ext_shared" = "yes"; then
                   94158:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   94159:     else
                   94160: 
                   94161: 
                   94162:   case $ac_ii in
                   94163:   c|c_r|pthread*) ;;
                   94164:   *)
                   94165:       LIBS="$LIBS -l$ac_ii"
                   94166:    ;;
                   94167:   esac
                   94168: 
                   94169: 
                   94170:     fi
                   94171:    ;;
                   94172:   esac
                   94173: 
                   94174: 
                   94175:     ;;
                   94176:     -L*)
                   94177:       ac_ii=`echo $ac_i|cut -c 3-`
                   94178: 
                   94179:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   94180: 
                   94181:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   94182:     ai_p=$ac_ii
                   94183:   else
                   94184: 
                   94185:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   94186: 
                   94187:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   94188:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   94189:   fi
                   94190: 
                   94191: 
                   94192:       if test "$ext_shared" = "yes"; then
                   94193:         LDFLAGS="-L$ai_p $LDFLAGS"
                   94194:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   94195:       else
                   94196: 
                   94197: 
                   94198: 
                   94199:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   94200: 
                   94201:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   94202:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   94203:     eval "LIBPATH$unique=set"
                   94204: 
                   94205:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   94206:     LDFLAGS="$LDFLAGS -L$ai_p"
                   94207:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   94208: 
                   94209:   fi
                   94210: 
                   94211: 
                   94212:       fi
                   94213: 
                   94214:   fi
                   94215: 
                   94216:     ;;
                   94217:     esac
                   94218:   done
                   94219: 
                   94220:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -lsybtcl" >&5
                   94221: $as_echo_n "checking for netg_errstr in -lsybtcl... " >&6; }
                   94222: if ${ac_cv_lib_sybtcl_netg_errstr+:} false; then :
                   94223:   $as_echo_n "(cached) " >&6
                   94224: else
                   94225:   ac_check_lib_save_LIBS=$LIBS
                   94226: LIBS="-lsybtcl  $LIBS"
                   94227: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   94228: /* end confdefs.h.  */
                   94229: 
                   94230: /* Override any GCC internal prototype to avoid an error.
                   94231:    Use char because int might match the return type of a GCC
                   94232:    builtin and then its argument prototype would still apply.  */
                   94233: #ifdef __cplusplus
                   94234: extern "C"
                   94235: #endif
                   94236: char netg_errstr ();
                   94237: int
                   94238: main ()
                   94239: {
                   94240: return netg_errstr ();
                   94241:   ;
                   94242:   return 0;
                   94243: }
                   94244: _ACEOF
                   94245: if ac_fn_c_try_link "$LINENO"; then :
                   94246:   ac_cv_lib_sybtcl_netg_errstr=yes
                   94247: else
                   94248:   ac_cv_lib_sybtcl_netg_errstr=no
                   94249: fi
                   94250: rm -f core conftest.err conftest.$ac_objext \
                   94251:     conftest$ac_exeext conftest.$ac_ext
                   94252: LIBS=$ac_check_lib_save_LIBS
                   94253: fi
                   94254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybtcl_netg_errstr" >&5
                   94255: $as_echo "$ac_cv_lib_sybtcl_netg_errstr" >&6; }
                   94256: if test "x$ac_cv_lib_sybtcl_netg_errstr" = xyes; then :
                   94257: 
                   94258:     LDFLAGS=$save_old_LDFLAGS
                   94259:     ext_shared=$save_ext_shared
                   94260: 
                   94261: 
                   94262: 
                   94263:   case sybtcl in
                   94264:   c|c_r|pthread*) ;;
                   94265:   *)
                   94266:     if test "$ext_shared" = "yes"; then
                   94267:         SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD"
                   94268:     else
                   94269: 
                   94270: 
                   94271:   case sybtcl in
                   94272:   c|c_r|pthread*) ;;
                   94273:   *)
                   94274:       LIBS="-lsybtcl $LIBS"
                   94275:    ;;
                   94276:   esac
                   94277: 
                   94278: 
                   94279:     fi
                   94280:    ;;
                   94281:   esac
                   94282: 
                   94283: 
                   94284: 
                   94285: 
                   94286: else
                   94287: 
                   94288:     LDFLAGS=$save_old_LDFLAGS
                   94289:     ext_shared=$save_ext_shared
                   94290:     unset ac_cv_lib_sybtcl_netg_errstr
                   94291: 
                   94292: 
                   94293: 
                   94294:   case sybtcl in
                   94295:   c|c_r|pthread*) ;;
                   94296:   *)
                   94297:     if test "$ext_shared" = "yes"; then
                   94298:         SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD"
                   94299:     else
                   94300: 
                   94301: 
                   94302:   case sybtcl in
                   94303:   c|c_r|pthread*) ;;
                   94304:   *)
                   94305:       LIBS="-lsybtcl $LIBS"
                   94306:    ;;
                   94307:   esac
                   94308: 
                   94309: 
                   94310:     fi
                   94311:    ;;
                   94312:   esac
                   94313: 
                   94314: 
                   94315: 
                   94316: 
                   94317: fi
                   94318: 
                   94319: 
                   94320: 
                   94321:   save_old_LDFLAGS=$LDFLAGS
                   94322:   ac_stuff="-L$SYBASE_CT_LIBDIR"
                   94323: 
                   94324:   save_ext_shared=$ext_shared
                   94325:   ext_shared=yes
                   94326: 
                   94327:   for ac_i in $ac_stuff; do
                   94328:     case $ac_i in
                   94329:     -pthread)
                   94330:       if test "$ext_shared" = "yes"; then
                   94331:         LDFLAGS="$LDFLAGS -pthread"
                   94332:       else
                   94333: 
                   94334: 
                   94335:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   94336: 
                   94337:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   94338:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   94339:     eval "EXTRA_LDFLAGS$unique=set"
                   94340:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   94341:   fi
                   94342: 
                   94343:       fi
                   94344:     ;;
                   94345:     -l*)
                   94346:       ac_ii=`echo $ac_i|cut -c 3-`
                   94347: 
                   94348: 
                   94349:   case $ac_ii in
                   94350:   c|c_r|pthread*) ;;
                   94351:   *)
                   94352:     if test "$ext_shared" = "yes"; then
                   94353:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   94354:     else
                   94355: 
                   94356: 
                   94357:   case $ac_ii in
                   94358:   c|c_r|pthread*) ;;
                   94359:   *)
                   94360:       LIBS="$LIBS -l$ac_ii"
                   94361:    ;;
                   94362:   esac
                   94363: 
                   94364: 
                   94365:     fi
                   94366:    ;;
                   94367:   esac
                   94368: 
                   94369: 
                   94370:     ;;
                   94371:     -L*)
                   94372:       ac_ii=`echo $ac_i|cut -c 3-`
                   94373: 
                   94374:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   94375: 
                   94376:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   94377:     ai_p=$ac_ii
                   94378:   else
                   94379: 
                   94380:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   94381: 
                   94382:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   94383:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   94384:   fi
                   94385: 
                   94386: 
                   94387:       if test "$ext_shared" = "yes"; then
                   94388:         LDFLAGS="-L$ai_p $LDFLAGS"
                   94389:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   94390:       else
                   94391: 
                   94392: 
                   94393: 
                   94394:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   94395: 
                   94396:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   94397:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   94398:     eval "LIBPATH$unique=set"
                   94399: 
                   94400:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   94401:     LDFLAGS="$LDFLAGS -L$ai_p"
                   94402:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   94403: 
                   94404:   fi
                   94405: 
                   94406: 
                   94407:       fi
                   94408: 
                   94409:   fi
                   94410: 
                   94411:     ;;
                   94412:     esac
                   94413:   done
                   94414: 
                   94415:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck" >&5
                   94416: $as_echo_n "checking for insck__getVdate in -linsck... " >&6; }
                   94417: if ${ac_cv_lib_insck_insck__getVdate+:} false; then :
                   94418:   $as_echo_n "(cached) " >&6
                   94419: else
                   94420:   ac_check_lib_save_LIBS=$LIBS
                   94421: LIBS="-linsck  $LIBS"
                   94422: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   94423: /* end confdefs.h.  */
                   94424: 
                   94425: /* Override any GCC internal prototype to avoid an error.
                   94426:    Use char because int might match the return type of a GCC
                   94427:    builtin and then its argument prototype would still apply.  */
                   94428: #ifdef __cplusplus
                   94429: extern "C"
                   94430: #endif
                   94431: char insck__getVdate ();
                   94432: int
                   94433: main ()
                   94434: {
                   94435: return insck__getVdate ();
                   94436:   ;
                   94437:   return 0;
                   94438: }
                   94439: _ACEOF
                   94440: if ac_fn_c_try_link "$LINENO"; then :
                   94441:   ac_cv_lib_insck_insck__getVdate=yes
                   94442: else
                   94443:   ac_cv_lib_insck_insck__getVdate=no
                   94444: fi
                   94445: rm -f core conftest.err conftest.$ac_objext \
                   94446:     conftest$ac_exeext conftest.$ac_ext
                   94447: LIBS=$ac_check_lib_save_LIBS
                   94448: fi
                   94449: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_insck__getVdate" >&5
                   94450: $as_echo "$ac_cv_lib_insck_insck__getVdate" >&6; }
                   94451: if test "x$ac_cv_lib_insck_insck__getVdate" = xyes; then :
                   94452: 
                   94453:     LDFLAGS=$save_old_LDFLAGS
                   94454:     ext_shared=$save_ext_shared
                   94455: 
                   94456: 
                   94457:   case insck in
                   94458:   c|c_r|pthread*) ;;
                   94459:   *)
                   94460:     if test "$ext_shared" = "yes"; then
                   94461:         SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
                   94462:     else
                   94463: 
                   94464: 
                   94465:   case insck in
                   94466:   c|c_r|pthread*) ;;
                   94467:   *)
                   94468:       LIBS="-linsck $LIBS"
                   94469:    ;;
                   94470:   esac
                   94471: 
                   94472: 
                   94473:     fi
                   94474:    ;;
                   94475:   esac
                   94476: 
                   94477: 
                   94478: 
                   94479: else
                   94480: 
                   94481:     LDFLAGS=$save_old_LDFLAGS
                   94482:     ext_shared=$save_ext_shared
                   94483:     unset ac_cv_lib_insck_insck__getVdate
                   94484: 
                   94485: 
                   94486: fi
                   94487: 
                   94488: 
                   94489:   save_old_LDFLAGS=$LDFLAGS
                   94490:   ac_stuff="-L$SYBASE_CT_LIBDIR"
                   94491: 
                   94492:   save_ext_shared=$ext_shared
                   94493:   ext_shared=yes
                   94494: 
                   94495:   for ac_i in $ac_stuff; do
                   94496:     case $ac_i in
                   94497:     -pthread)
                   94498:       if test "$ext_shared" = "yes"; then
                   94499:         LDFLAGS="$LDFLAGS -pthread"
                   94500:       else
                   94501: 
                   94502: 
                   94503:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   94504: 
                   94505:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   94506:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   94507:     eval "EXTRA_LDFLAGS$unique=set"
                   94508:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   94509:   fi
                   94510: 
                   94511:       fi
                   94512:     ;;
                   94513:     -l*)
                   94514:       ac_ii=`echo $ac_i|cut -c 3-`
                   94515: 
                   94516: 
                   94517:   case $ac_ii in
                   94518:   c|c_r|pthread*) ;;
                   94519:   *)
                   94520:     if test "$ext_shared" = "yes"; then
                   94521:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   94522:     else
                   94523: 
                   94524: 
                   94525:   case $ac_ii in
                   94526:   c|c_r|pthread*) ;;
                   94527:   *)
                   94528:       LIBS="$LIBS -l$ac_ii"
                   94529:    ;;
                   94530:   esac
                   94531: 
                   94532: 
                   94533:     fi
                   94534:    ;;
                   94535:   esac
                   94536: 
                   94537: 
                   94538:     ;;
                   94539:     -L*)
                   94540:       ac_ii=`echo $ac_i|cut -c 3-`
                   94541: 
                   94542:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   94543: 
                   94544:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   94545:     ai_p=$ac_ii
                   94546:   else
                   94547: 
                   94548:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   94549: 
                   94550:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   94551:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   94552:   fi
                   94553: 
                   94554: 
                   94555:       if test "$ext_shared" = "yes"; then
                   94556:         LDFLAGS="-L$ai_p $LDFLAGS"
                   94557:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   94558:       else
                   94559: 
                   94560: 
                   94561: 
                   94562:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   94563: 
                   94564:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   94565:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   94566:     eval "LIBPATH$unique=set"
                   94567: 
                   94568:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   94569:     LDFLAGS="$LDFLAGS -L$ai_p"
                   94570:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   94571: 
                   94572:   fi
                   94573: 
                   94574: 
                   94575:       fi
                   94576: 
                   94577:   fi
                   94578: 
                   94579:     ;;
                   94580:     esac
                   94581:   done
                   94582: 
                   94583:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck" >&5
                   94584: $as_echo_n "checking for bsd_tcp in -linsck... " >&6; }
                   94585: if ${ac_cv_lib_insck_bsd_tcp+:} false; then :
                   94586:   $as_echo_n "(cached) " >&6
                   94587: else
                   94588:   ac_check_lib_save_LIBS=$LIBS
                   94589: LIBS="-linsck  $LIBS"
                   94590: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   94591: /* end confdefs.h.  */
                   94592: 
                   94593: /* Override any GCC internal prototype to avoid an error.
                   94594:    Use char because int might match the return type of a GCC
                   94595:    builtin and then its argument prototype would still apply.  */
                   94596: #ifdef __cplusplus
                   94597: extern "C"
                   94598: #endif
                   94599: char bsd_tcp ();
                   94600: int
                   94601: main ()
                   94602: {
                   94603: return bsd_tcp ();
                   94604:   ;
                   94605:   return 0;
                   94606: }
                   94607: _ACEOF
                   94608: if ac_fn_c_try_link "$LINENO"; then :
                   94609:   ac_cv_lib_insck_bsd_tcp=yes
                   94610: else
                   94611:   ac_cv_lib_insck_bsd_tcp=no
                   94612: fi
                   94613: rm -f core conftest.err conftest.$ac_objext \
                   94614:     conftest$ac_exeext conftest.$ac_ext
                   94615: LIBS=$ac_check_lib_save_LIBS
                   94616: fi
                   94617: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_bsd_tcp" >&5
                   94618: $as_echo "$ac_cv_lib_insck_bsd_tcp" >&6; }
                   94619: if test "x$ac_cv_lib_insck_bsd_tcp" = xyes; then :
                   94620: 
                   94621:     LDFLAGS=$save_old_LDFLAGS
                   94622:     ext_shared=$save_ext_shared
                   94623: 
                   94624: 
                   94625:   case insck in
                   94626:   c|c_r|pthread*) ;;
                   94627:   *)
                   94628:     if test "$ext_shared" = "yes"; then
                   94629:         SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
                   94630:     else
                   94631: 
                   94632: 
                   94633:   case insck in
                   94634:   c|c_r|pthread*) ;;
                   94635:   *)
                   94636:       LIBS="-linsck $LIBS"
                   94637:    ;;
                   94638:   esac
                   94639: 
                   94640: 
                   94641:     fi
                   94642:    ;;
                   94643:   esac
                   94644: 
                   94645: 
                   94646: 
                   94647: else
                   94648: 
                   94649:     LDFLAGS=$save_old_LDFLAGS
                   94650:     ext_shared=$save_ext_shared
                   94651:     unset ac_cv_lib_insck_bsd_tcp
                   94652: 
                   94653: 
                   94654: fi
                   94655: 
                   94656:   else
                   94657: 
                   94658: 
                   94659:   case cs in
                   94660:   c|c_r|pthread*) ;;
                   94661:   *)
                   94662:     if test "$ext_shared" = "yes"; then
                   94663:         SYBASE_CT_SHARED_LIBADD="-lcs $SYBASE_CT_SHARED_LIBADD"
                   94664:     else
                   94665: 
                   94666: 
                   94667:   case cs in
                   94668:   c|c_r|pthread*) ;;
                   94669:   *)
                   94670:       LIBS="-lcs $LIBS"
                   94671:    ;;
                   94672:   esac
                   94673: 
                   94674: 
                   94675:     fi
                   94676:    ;;
                   94677:   esac
                   94678: 
                   94679: 
                   94680: 
                   94681: 
                   94682:   case ct in
                   94683:   c|c_r|pthread*) ;;
                   94684:   *)
                   94685:     if test "$ext_shared" = "yes"; then
                   94686:         SYBASE_CT_SHARED_LIBADD="-lct $SYBASE_CT_SHARED_LIBADD"
                   94687:     else
                   94688: 
                   94689: 
                   94690:   case ct in
                   94691:   c|c_r|pthread*) ;;
                   94692:   *)
                   94693:       LIBS="-lct $LIBS"
                   94694:    ;;
                   94695:   esac
                   94696: 
                   94697: 
                   94698:     fi
                   94699:    ;;
                   94700:   esac
                   94701: 
                   94702: 
                   94703: 
                   94704: 
                   94705:   case comn in
                   94706:   c|c_r|pthread*) ;;
                   94707:   *)
                   94708:     if test "$ext_shared" = "yes"; then
                   94709:         SYBASE_CT_SHARED_LIBADD="-lcomn $SYBASE_CT_SHARED_LIBADD"
                   94710:     else
                   94711: 
                   94712: 
                   94713:   case comn in
                   94714:   c|c_r|pthread*) ;;
                   94715:   *)
                   94716:       LIBS="-lcomn $LIBS"
                   94717:    ;;
                   94718:   esac
                   94719: 
                   94720: 
                   94721:     fi
                   94722:    ;;
                   94723:   esac
                   94724: 
                   94725: 
                   94726: 
                   94727: 
                   94728:   case intl in
                   94729:   c|c_r|pthread*) ;;
                   94730:   *)
                   94731:     if test "$ext_shared" = "yes"; then
                   94732:         SYBASE_CT_SHARED_LIBADD="-lintl $SYBASE_CT_SHARED_LIBADD"
                   94733:     else
                   94734: 
                   94735: 
                   94736:   case intl in
                   94737:   c|c_r|pthread*) ;;
                   94738:   *)
                   94739:       LIBS="-lintl $LIBS"
                   94740:    ;;
                   94741:   esac
                   94742: 
                   94743: 
                   94744:     fi
                   94745:    ;;
                   94746:   esac
                   94747: 
                   94748: 
                   94749: 
                   94750:     SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl"
                   94751:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sybase32 default: $SYBASE_CT_LIBS" >&5
                   94752: $as_echo "Sybase32 default: $SYBASE_CT_LIBS" >&6; }
                   94753: 
                   94754: 
                   94755:   save_old_LDFLAGS=$LDFLAGS
                   94756:   ac_stuff="
                   94757:       $SYBASE_CT_LIBS
                   94758:     "
                   94759: 
                   94760:   save_ext_shared=$ext_shared
                   94761:   ext_shared=yes
                   94762: 
                   94763:   for ac_i in $ac_stuff; do
                   94764:     case $ac_i in
                   94765:     -pthread)
                   94766:       if test "$ext_shared" = "yes"; then
                   94767:         LDFLAGS="$LDFLAGS -pthread"
                   94768:       else
                   94769: 
                   94770: 
                   94771:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   94772: 
                   94773:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   94774:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   94775:     eval "EXTRA_LDFLAGS$unique=set"
                   94776:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   94777:   fi
                   94778: 
                   94779:       fi
                   94780:     ;;
                   94781:     -l*)
                   94782:       ac_ii=`echo $ac_i|cut -c 3-`
                   94783: 
                   94784: 
                   94785:   case $ac_ii in
                   94786:   c|c_r|pthread*) ;;
                   94787:   *)
                   94788:     if test "$ext_shared" = "yes"; then
                   94789:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   94790:     else
                   94791: 
                   94792: 
                   94793:   case $ac_ii in
                   94794:   c|c_r|pthread*) ;;
                   94795:   *)
                   94796:       LIBS="$LIBS -l$ac_ii"
                   94797:    ;;
                   94798:   esac
                   94799: 
                   94800: 
                   94801:     fi
                   94802:    ;;
                   94803:   esac
                   94804: 
                   94805: 
                   94806:     ;;
                   94807:     -L*)
                   94808:       ac_ii=`echo $ac_i|cut -c 3-`
                   94809: 
                   94810:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   94811: 
                   94812:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   94813:     ai_p=$ac_ii
                   94814:   else
                   94815: 
                   94816:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   94817: 
                   94818:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   94819:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   94820:   fi
                   94821: 
                   94822: 
                   94823:       if test "$ext_shared" = "yes"; then
                   94824:         LDFLAGS="-L$ai_p $LDFLAGS"
                   94825:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   94826:       else
                   94827: 
                   94828: 
                   94829: 
                   94830:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   94831: 
                   94832:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   94833:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   94834:     eval "LIBPATH$unique=set"
                   94835: 
                   94836:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   94837:     LDFLAGS="$LDFLAGS -L$ai_p"
                   94838:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   94839: 
                   94840:   fi
                   94841: 
                   94842: 
                   94843:       fi
                   94844: 
                   94845:   fi
                   94846: 
                   94847:     ;;
                   94848:     esac
                   94849:   done
                   94850: 
                   94851:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -ltcl" >&5
                   94852: $as_echo_n "checking for netg_errstr in -ltcl... " >&6; }
                   94853: if ${ac_cv_lib_tcl_netg_errstr+:} false; then :
                   94854:   $as_echo_n "(cached) " >&6
                   94855: else
                   94856:   ac_check_lib_save_LIBS=$LIBS
                   94857: LIBS="-ltcl  $LIBS"
                   94858: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   94859: /* end confdefs.h.  */
                   94860: 
                   94861: /* Override any GCC internal prototype to avoid an error.
                   94862:    Use char because int might match the return type of a GCC
                   94863:    builtin and then its argument prototype would still apply.  */
                   94864: #ifdef __cplusplus
                   94865: extern "C"
                   94866: #endif
                   94867: char netg_errstr ();
                   94868: int
                   94869: main ()
                   94870: {
                   94871: return netg_errstr ();
                   94872:   ;
                   94873:   return 0;
                   94874: }
                   94875: _ACEOF
                   94876: if ac_fn_c_try_link "$LINENO"; then :
                   94877:   ac_cv_lib_tcl_netg_errstr=yes
                   94878: else
                   94879:   ac_cv_lib_tcl_netg_errstr=no
                   94880: fi
                   94881: rm -f core conftest.err conftest.$ac_objext \
                   94882:     conftest$ac_exeext conftest.$ac_ext
                   94883: LIBS=$ac_check_lib_save_LIBS
                   94884: fi
                   94885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl_netg_errstr" >&5
                   94886: $as_echo "$ac_cv_lib_tcl_netg_errstr" >&6; }
                   94887: if test "x$ac_cv_lib_tcl_netg_errstr" = xyes; then :
                   94888: 
                   94889:     LDFLAGS=$save_old_LDFLAGS
                   94890:     ext_shared=$save_ext_shared
                   94891: 
                   94892: 
                   94893: 
                   94894:   case tcl in
                   94895:   c|c_r|pthread*) ;;
                   94896:   *)
                   94897:     if test "$ext_shared" = "yes"; then
                   94898:         SYBASE_CT_SHARED_LIBADD="-ltcl $SYBASE_CT_SHARED_LIBADD"
                   94899:     else
                   94900: 
                   94901: 
                   94902:   case tcl in
                   94903:   c|c_r|pthread*) ;;
                   94904:   *)
                   94905:       LIBS="-ltcl $LIBS"
                   94906:    ;;
                   94907:   esac
                   94908: 
                   94909: 
                   94910:     fi
                   94911:    ;;
                   94912:   esac
                   94913: 
                   94914: 
                   94915: 
                   94916: 
                   94917: else
                   94918: 
                   94919:     LDFLAGS=$save_old_LDFLAGS
                   94920:     ext_shared=$save_ext_shared
                   94921:     unset ac_cv_lib_tcl_netg_errstr
                   94922: 
                   94923: 
                   94924: 
                   94925:   case sybtcl in
                   94926:   c|c_r|pthread*) ;;
                   94927:   *)
                   94928:     if test "$ext_shared" = "yes"; then
                   94929:         SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD"
                   94930:     else
                   94931: 
                   94932: 
                   94933:   case sybtcl in
                   94934:   c|c_r|pthread*) ;;
                   94935:   *)
                   94936:       LIBS="-lsybtcl $LIBS"
                   94937:    ;;
                   94938:   esac
                   94939: 
                   94940: 
                   94941:     fi
                   94942:    ;;
                   94943:   esac
                   94944: 
                   94945: 
                   94946: 
                   94947: 
                   94948: fi
                   94949: 
                   94950: 
                   94951: 
                   94952:   save_old_LDFLAGS=$LDFLAGS
                   94953:   ac_stuff="-L$SYBASE_CT_LIBDIR"
                   94954: 
                   94955:   save_ext_shared=$ext_shared
                   94956:   ext_shared=yes
                   94957: 
                   94958:   for ac_i in $ac_stuff; do
                   94959:     case $ac_i in
                   94960:     -pthread)
                   94961:       if test "$ext_shared" = "yes"; then
                   94962:         LDFLAGS="$LDFLAGS -pthread"
                   94963:       else
                   94964: 
                   94965: 
                   94966:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   94967: 
                   94968:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   94969:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   94970:     eval "EXTRA_LDFLAGS$unique=set"
                   94971:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   94972:   fi
                   94973: 
                   94974:       fi
                   94975:     ;;
                   94976:     -l*)
                   94977:       ac_ii=`echo $ac_i|cut -c 3-`
                   94978: 
                   94979: 
                   94980:   case $ac_ii in
                   94981:   c|c_r|pthread*) ;;
                   94982:   *)
                   94983:     if test "$ext_shared" = "yes"; then
                   94984:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   94985:     else
                   94986: 
                   94987: 
                   94988:   case $ac_ii in
                   94989:   c|c_r|pthread*) ;;
                   94990:   *)
                   94991:       LIBS="$LIBS -l$ac_ii"
                   94992:    ;;
                   94993:   esac
                   94994: 
                   94995: 
                   94996:     fi
                   94997:    ;;
                   94998:   esac
                   94999: 
                   95000: 
                   95001:     ;;
                   95002:     -L*)
                   95003:       ac_ii=`echo $ac_i|cut -c 3-`
                   95004: 
                   95005:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   95006: 
                   95007:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   95008:     ai_p=$ac_ii
                   95009:   else
                   95010: 
                   95011:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   95012: 
                   95013:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   95014:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   95015:   fi
                   95016: 
                   95017: 
                   95018:       if test "$ext_shared" = "yes"; then
                   95019:         LDFLAGS="-L$ai_p $LDFLAGS"
                   95020:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   95021:       else
                   95022: 
                   95023: 
                   95024: 
                   95025:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   95026: 
                   95027:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   95028:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   95029:     eval "LIBPATH$unique=set"
                   95030: 
                   95031:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   95032:     LDFLAGS="$LDFLAGS -L$ai_p"
                   95033:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   95034: 
                   95035:   fi
                   95036: 
                   95037: 
                   95038:       fi
                   95039: 
                   95040:   fi
                   95041: 
                   95042:     ;;
                   95043:     esac
                   95044:   done
                   95045: 
                   95046:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck" >&5
                   95047: $as_echo_n "checking for insck__getVdate in -linsck... " >&6; }
                   95048: if ${ac_cv_lib_insck_insck__getVdate+:} false; then :
                   95049:   $as_echo_n "(cached) " >&6
                   95050: else
                   95051:   ac_check_lib_save_LIBS=$LIBS
                   95052: LIBS="-linsck  $LIBS"
                   95053: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   95054: /* end confdefs.h.  */
                   95055: 
                   95056: /* Override any GCC internal prototype to avoid an error.
                   95057:    Use char because int might match the return type of a GCC
                   95058:    builtin and then its argument prototype would still apply.  */
                   95059: #ifdef __cplusplus
                   95060: extern "C"
                   95061: #endif
                   95062: char insck__getVdate ();
                   95063: int
                   95064: main ()
                   95065: {
                   95066: return insck__getVdate ();
                   95067:   ;
                   95068:   return 0;
                   95069: }
                   95070: _ACEOF
                   95071: if ac_fn_c_try_link "$LINENO"; then :
                   95072:   ac_cv_lib_insck_insck__getVdate=yes
                   95073: else
                   95074:   ac_cv_lib_insck_insck__getVdate=no
                   95075: fi
                   95076: rm -f core conftest.err conftest.$ac_objext \
                   95077:     conftest$ac_exeext conftest.$ac_ext
                   95078: LIBS=$ac_check_lib_save_LIBS
                   95079: fi
                   95080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_insck__getVdate" >&5
                   95081: $as_echo "$ac_cv_lib_insck_insck__getVdate" >&6; }
                   95082: if test "x$ac_cv_lib_insck_insck__getVdate" = xyes; then :
                   95083: 
                   95084:     LDFLAGS=$save_old_LDFLAGS
                   95085:     ext_shared=$save_ext_shared
                   95086: 
                   95087: 
                   95088:   case insck in
                   95089:   c|c_r|pthread*) ;;
                   95090:   *)
                   95091:     if test "$ext_shared" = "yes"; then
                   95092:         SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
                   95093:     else
                   95094: 
                   95095: 
                   95096:   case insck in
                   95097:   c|c_r|pthread*) ;;
                   95098:   *)
                   95099:       LIBS="-linsck $LIBS"
                   95100:    ;;
                   95101:   esac
                   95102: 
                   95103: 
                   95104:     fi
                   95105:    ;;
                   95106:   esac
                   95107: 
                   95108: 
                   95109: 
                   95110: else
                   95111: 
                   95112:     LDFLAGS=$save_old_LDFLAGS
                   95113:     ext_shared=$save_ext_shared
                   95114:     unset ac_cv_lib_insck_insck__getVdate
                   95115: 
                   95116: 
                   95117: fi
                   95118: 
                   95119: 
                   95120:   save_old_LDFLAGS=$LDFLAGS
                   95121:   ac_stuff="-L$SYBASE_CT_LIBDIR"
                   95122: 
                   95123:   save_ext_shared=$ext_shared
                   95124:   ext_shared=yes
                   95125: 
                   95126:   for ac_i in $ac_stuff; do
                   95127:     case $ac_i in
                   95128:     -pthread)
                   95129:       if test "$ext_shared" = "yes"; then
                   95130:         LDFLAGS="$LDFLAGS -pthread"
                   95131:       else
                   95132: 
                   95133: 
                   95134:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   95135: 
                   95136:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   95137:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   95138:     eval "EXTRA_LDFLAGS$unique=set"
                   95139:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   95140:   fi
                   95141: 
                   95142:       fi
                   95143:     ;;
                   95144:     -l*)
                   95145:       ac_ii=`echo $ac_i|cut -c 3-`
                   95146: 
                   95147: 
                   95148:   case $ac_ii in
                   95149:   c|c_r|pthread*) ;;
                   95150:   *)
                   95151:     if test "$ext_shared" = "yes"; then
                   95152:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   95153:     else
                   95154: 
                   95155: 
                   95156:   case $ac_ii in
                   95157:   c|c_r|pthread*) ;;
                   95158:   *)
                   95159:       LIBS="$LIBS -l$ac_ii"
                   95160:    ;;
                   95161:   esac
                   95162: 
                   95163: 
                   95164:     fi
                   95165:    ;;
                   95166:   esac
                   95167: 
                   95168: 
                   95169:     ;;
                   95170:     -L*)
                   95171:       ac_ii=`echo $ac_i|cut -c 3-`
                   95172: 
                   95173:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   95174: 
                   95175:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   95176:     ai_p=$ac_ii
                   95177:   else
                   95178: 
                   95179:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   95180: 
                   95181:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   95182:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   95183:   fi
                   95184: 
                   95185: 
                   95186:       if test "$ext_shared" = "yes"; then
                   95187:         LDFLAGS="-L$ai_p $LDFLAGS"
                   95188:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   95189:       else
                   95190: 
                   95191: 
                   95192: 
                   95193:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   95194: 
                   95195:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   95196:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   95197:     eval "LIBPATH$unique=set"
                   95198: 
                   95199:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   95200:     LDFLAGS="$LDFLAGS -L$ai_p"
                   95201:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   95202: 
                   95203:   fi
                   95204: 
                   95205: 
                   95206:       fi
                   95207: 
                   95208:   fi
                   95209: 
                   95210:     ;;
                   95211:     esac
                   95212:   done
                   95213: 
                   95214:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck" >&5
                   95215: $as_echo_n "checking for bsd_tcp in -linsck... " >&6; }
                   95216: if ${ac_cv_lib_insck_bsd_tcp+:} false; then :
                   95217:   $as_echo_n "(cached) " >&6
                   95218: else
                   95219:   ac_check_lib_save_LIBS=$LIBS
                   95220: LIBS="-linsck  $LIBS"
                   95221: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   95222: /* end confdefs.h.  */
                   95223: 
                   95224: /* Override any GCC internal prototype to avoid an error.
                   95225:    Use char because int might match the return type of a GCC
                   95226:    builtin and then its argument prototype would still apply.  */
                   95227: #ifdef __cplusplus
                   95228: extern "C"
                   95229: #endif
                   95230: char bsd_tcp ();
                   95231: int
                   95232: main ()
                   95233: {
                   95234: return bsd_tcp ();
                   95235:   ;
                   95236:   return 0;
                   95237: }
                   95238: _ACEOF
                   95239: if ac_fn_c_try_link "$LINENO"; then :
                   95240:   ac_cv_lib_insck_bsd_tcp=yes
                   95241: else
                   95242:   ac_cv_lib_insck_bsd_tcp=no
                   95243: fi
                   95244: rm -f core conftest.err conftest.$ac_objext \
                   95245:     conftest$ac_exeext conftest.$ac_ext
                   95246: LIBS=$ac_check_lib_save_LIBS
                   95247: fi
                   95248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_bsd_tcp" >&5
                   95249: $as_echo "$ac_cv_lib_insck_bsd_tcp" >&6; }
                   95250: if test "x$ac_cv_lib_insck_bsd_tcp" = xyes; then :
                   95251: 
                   95252:     LDFLAGS=$save_old_LDFLAGS
                   95253:     ext_shared=$save_ext_shared
                   95254: 
                   95255: 
                   95256:   case insck in
                   95257:   c|c_r|pthread*) ;;
                   95258:   *)
                   95259:     if test "$ext_shared" = "yes"; then
                   95260:         SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
                   95261:     else
                   95262: 
                   95263: 
                   95264:   case insck in
                   95265:   c|c_r|pthread*) ;;
                   95266:   *)
                   95267:       LIBS="-linsck $LIBS"
                   95268:    ;;
                   95269:   esac
                   95270: 
                   95271: 
                   95272:     fi
                   95273:    ;;
                   95274:   esac
                   95275: 
                   95276: 
                   95277: 
                   95278: else
                   95279: 
                   95280:     LDFLAGS=$save_old_LDFLAGS
                   95281:     ext_shared=$save_ext_shared
                   95282:     unset ac_cv_lib_insck_bsd_tcp
                   95283: 
                   95284: 
                   95285: fi
                   95286: 
                   95287:   fi
                   95288: fi
                   95289: 
                   95290: 
                   95291: 
                   95292: php_enable_sysvmsg=no
                   95293: 
                   95294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V IPC support" >&5
                   95295: $as_echo_n "checking whether to enable System V IPC support... " >&6; }
                   95296: # Check whether --enable-sysvmsg was given.
                   95297: if test "${enable_sysvmsg+set}" = set; then :
                   95298:   enableval=$enable_sysvmsg; PHP_SYSVMSG=$enableval
                   95299: else
                   95300: 
                   95301:   PHP_SYSVMSG=no
                   95302:   test "$PHP_ENABLE_ALL" && PHP_SYSVMSG=$PHP_ENABLE_ALL
                   95303: 
                   95304: fi
                   95305: 
                   95306: 
                   95307: 
                   95308: ext_output="yes, shared"
                   95309: ext_shared=yes
                   95310: case $PHP_SYSVMSG in
                   95311: shared,*)
                   95312:   PHP_SYSVMSG=`echo "$PHP_SYSVMSG"|$SED 's/^shared,//'`
                   95313:   ;;
                   95314: shared)
                   95315:   PHP_SYSVMSG=yes
                   95316:   ;;
                   95317: no)
                   95318:   ext_output=no
                   95319:   ext_shared=no
                   95320:   ;;
                   95321: *)
                   95322:   ext_output=yes
                   95323:   ext_shared=no
                   95324:   ;;
                   95325: esac
                   95326: 
                   95327: 
                   95328: 
                   95329: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   95330: $as_echo "$ext_output" >&6; }
                   95331: 
                   95332: 
                   95333: 
                   95334: 
                   95335: if test "$PHP_SYSVMSG" != "no"; then
                   95336:   ac_fn_c_check_header_mongrel "$LINENO" "sys/msg.h" "ac_cv_header_sys_msg_h" "$ac_includes_default"
                   95337: if test "x$ac_cv_header_sys_msg_h" = xyes; then :
                   95338: 
                   95339: else
                   95340:   as_fn_error $? "Cannot enable System V IPC support, sys/msg.h is missing" "$LINENO" 5
                   95341: 
                   95342: fi
                   95343: 
                   95344: 
                   95345: 
                   95346: 
                   95347: $as_echo "#define HAVE_SYSVMSG 1" >>confdefs.h
                   95348: 
                   95349: 
                   95350:   ext_builddir=ext/sysvmsg
                   95351:   ext_srcdir=$abs_srcdir/ext/sysvmsg
                   95352: 
                   95353:   ac_extra=
                   95354: 
                   95355:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   95356:     PHP_SYSVMSG_SHARED=no
                   95357: 
                   95358: 
                   95359:   case ext/sysvmsg in
                   95360:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   95361:   /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   95362:   *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   95363:   esac
                   95364: 
                   95365: 
                   95366: 
                   95367:   b_c_pre=$php_c_pre
                   95368:   b_cxx_pre=$php_cxx_pre
                   95369:   b_c_meta=$php_c_meta
                   95370:   b_cxx_meta=$php_cxx_meta
                   95371:   b_c_post=$php_c_post
                   95372:   b_cxx_post=$php_cxx_post
                   95373:   b_lo=$php_lo
                   95374: 
                   95375: 
                   95376:   old_IFS=$IFS
                   95377:   for ac_src in sysvmsg.c; do
                   95378: 
                   95379:       IFS=.
                   95380:       set $ac_src
                   95381:       ac_obj=$1
                   95382:       IFS=$old_IFS
                   95383: 
                   95384:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   95385: 
                   95386:       case $ac_src in
                   95387:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95388:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95389:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95390:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   95391:       esac
                   95392: 
                   95393:     cat >>Makefile.objects<<EOF
                   95394: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   95395:        $ac_comp
                   95396: EOF
                   95397:   done
                   95398: 
                   95399: 
                   95400:     EXT_STATIC="$EXT_STATIC sysvmsg"
                   95401:     if test "$ext_shared" != "nocli"; then
                   95402:       EXT_CLI_STATIC="$EXT_CLI_STATIC sysvmsg"
                   95403:     fi
                   95404:   else
                   95405:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   95406:       PHP_SYSVMSG_SHARED=yes
                   95407: 
                   95408:   case ext/sysvmsg in
                   95409:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   95410:   /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   95411:   *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   95412:   esac
                   95413: 
                   95414: 
                   95415: 
                   95416:   b_c_pre=$shared_c_pre
                   95417:   b_cxx_pre=$shared_cxx_pre
                   95418:   b_c_meta=$shared_c_meta
                   95419:   b_cxx_meta=$shared_cxx_meta
                   95420:   b_c_post=$shared_c_post
                   95421:   b_cxx_post=$shared_cxx_post
                   95422:   b_lo=$shared_lo
                   95423: 
                   95424: 
                   95425:   old_IFS=$IFS
                   95426:   for ac_src in sysvmsg.c; do
                   95427: 
                   95428:       IFS=.
                   95429:       set $ac_src
                   95430:       ac_obj=$1
                   95431:       IFS=$old_IFS
                   95432: 
                   95433:       shared_objects_sysvmsg="$shared_objects_sysvmsg $ac_bdir$ac_obj.lo"
                   95434: 
                   95435:       case $ac_src in
                   95436:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95437:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95438:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95439:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   95440:       esac
                   95441: 
                   95442:     cat >>Makefile.objects<<EOF
                   95443: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   95444:        $ac_comp
                   95445: EOF
                   95446:   done
                   95447: 
                   95448:       case $host_alias in
                   95449:         *netware*)
                   95450: 
                   95451:   install_modules="install-modules"
                   95452: 
                   95453:   case $host_alias in
                   95454:     *aix*)
                   95455:       suffix=so
                   95456:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsysvmsg.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) $(PHPSYSVMSG_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsysvmsg.so '$ext_builddir'/phpsysvmsg.so'
                   95457:       ;;
                   95458:     *netware*)
                   95459:       suffix=nlm
                   95460:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) -L$(top_builddir)/netware -lphp5lib $(SYSVMSG_SHARED_LIBADD)'
                   95461:       ;;
                   95462:     *)
                   95463:       suffix=la
                   95464:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) $(PHPSYSVMSG_SHARED_LIBADD)'
                   95465:       ;;
                   95466:   esac
                   95467: 
                   95468:   if test "x" = "xyes"; then
                   95469:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsysvmsg.$suffix"
                   95470:   else
                   95471:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsysvmsg.$suffix"
                   95472:   fi
                   95473: 
                   95474:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvmsg"
                   95475: 
                   95476:   cat >>Makefile.objects<<EOF
                   95477: \$(phplibdir)/phpsysvmsg.$suffix: $ext_builddir/phpsysvmsg.$suffix
                   95478:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsysvmsg.$suffix \$(phplibdir)
                   95479: 
                   95480: $ext_builddir/phpsysvmsg.$suffix: \$(shared_objects_sysvmsg) \$(PHPSYSVMSG_SHARED_DEPENDENCIES)
                   95481:        $link_cmd
                   95482: 
                   95483: EOF
                   95484: 
                   95485:           ;;
                   95486:         *)
                   95487: 
                   95488:   install_modules="install-modules"
                   95489: 
                   95490:   case $host_alias in
                   95491:     *aix*)
                   95492:       suffix=so
                   95493:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sysvmsg.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) $(SYSVMSG_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sysvmsg.so '$ext_builddir'/sysvmsg.so'
                   95494:       ;;
                   95495:     *netware*)
                   95496:       suffix=nlm
                   95497:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) -L$(top_builddir)/netware -lphp5lib $(VMSG_SHARED_LIBADD)'
                   95498:       ;;
                   95499:     *)
                   95500:       suffix=la
                   95501:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) $(SYSVMSG_SHARED_LIBADD)'
                   95502:       ;;
                   95503:   esac
                   95504: 
                   95505:   if test "x" = "xyes"; then
                   95506:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvmsg.$suffix"
                   95507:   else
                   95508:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvmsg.$suffix"
                   95509:   fi
                   95510: 
                   95511:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvmsg"
                   95512: 
                   95513:   cat >>Makefile.objects<<EOF
                   95514: \$(phplibdir)/sysvmsg.$suffix: $ext_builddir/sysvmsg.$suffix
                   95515:        \$(LIBTOOL) --mode=install cp $ext_builddir/sysvmsg.$suffix \$(phplibdir)
                   95516: 
                   95517: $ext_builddir/sysvmsg.$suffix: \$(shared_objects_sysvmsg) \$(SYSVMSG_SHARED_DEPENDENCIES)
                   95518:        $link_cmd
                   95519: 
                   95520: EOF
                   95521: 
                   95522:           ;;
                   95523:       esac
                   95524: 
                   95525: cat >>confdefs.h <<_ACEOF
                   95526: #define COMPILE_DL_SYSVMSG 1
                   95527: _ACEOF
                   95528: 
                   95529:     fi
                   95530:   fi
                   95531: 
                   95532:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   95533:     PHP_SYSVMSG_SHARED=no
                   95534: 
                   95535: 
                   95536:   case ext/sysvmsg in
                   95537:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   95538:   /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   95539:   *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   95540:   esac
                   95541: 
                   95542: 
                   95543: 
                   95544:   b_c_pre=$php_c_pre
                   95545:   b_cxx_pre=$php_cxx_pre
                   95546:   b_c_meta=$php_c_meta
                   95547:   b_cxx_meta=$php_cxx_meta
                   95548:   b_c_post=$php_c_post
                   95549:   b_cxx_post=$php_cxx_post
                   95550:   b_lo=$php_lo
                   95551: 
                   95552: 
                   95553:   old_IFS=$IFS
                   95554:   for ac_src in sysvmsg.c; do
                   95555: 
                   95556:       IFS=.
                   95557:       set $ac_src
                   95558:       ac_obj=$1
                   95559:       IFS=$old_IFS
                   95560: 
1.1.1.2 ! misho    95561:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    95562: 
                   95563:       case $ac_src in
                   95564:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95565:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95566:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95567:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   95568:       esac
                   95569: 
                   95570:     cat >>Makefile.objects<<EOF
                   95571: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   95572:        $ac_comp
                   95573: EOF
                   95574:   done
                   95575: 
                   95576: 
                   95577: 
                   95578: 
                   95579:   case ext/sysvmsg in
                   95580:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   95581:   /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   95582:   *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   95583:   esac
                   95584: 
                   95585: 
                   95586: 
                   95587:   b_c_pre=$php_c_pre
                   95588:   b_cxx_pre=$php_cxx_pre
                   95589:   b_c_meta=$php_c_meta
                   95590:   b_cxx_meta=$php_cxx_meta
                   95591:   b_c_post=$php_c_post
                   95592:   b_cxx_post=$php_cxx_post
                   95593:   b_lo=$php_lo
                   95594: 
                   95595: 
                   95596:   old_IFS=$IFS
                   95597:   for ac_src in sysvmsg.c; do
                   95598: 
                   95599:       IFS=.
                   95600:       set $ac_src
                   95601:       ac_obj=$1
                   95602:       IFS=$old_IFS
                   95603: 
1.1.1.2 ! misho    95604:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    95605: 
                   95606:       case $ac_src in
                   95607:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95608:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95609:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95610:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   95611:       esac
                   95612: 
                   95613:     cat >>Makefile.objects<<EOF
                   95614: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   95615:        $ac_comp
                   95616: EOF
                   95617:   done
                   95618: 
                   95619: 
                   95620: 
                   95621: 
                   95622:   case ext/sysvmsg in
                   95623:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   95624:   /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   95625:   *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   95626:   esac
                   95627: 
                   95628: 
                   95629: 
                   95630:   b_c_pre=$php_c_pre
                   95631:   b_cxx_pre=$php_cxx_pre
                   95632:   b_c_meta=$php_c_meta
                   95633:   b_cxx_meta=$php_cxx_meta
                   95634:   b_c_post=$php_c_post
                   95635:   b_cxx_post=$php_cxx_post
                   95636:   b_lo=$php_lo
                   95637: 
                   95638: 
                   95639:   old_IFS=$IFS
                   95640:   for ac_src in sysvmsg.c; do
                   95641: 
                   95642:       IFS=.
                   95643:       set $ac_src
                   95644:       ac_obj=$1
                   95645:       IFS=$old_IFS
                   95646: 
1.1.1.2 ! misho    95647:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    95648: 
                   95649:       case $ac_src in
                   95650:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95651:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95652:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95653:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   95654:       esac
                   95655: 
                   95656:     cat >>Makefile.objects<<EOF
                   95657: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   95658:        $ac_comp
                   95659: EOF
                   95660:   done
                   95661: 
                   95662: 
                   95663:     EXT_CLI_STATIC="$EXT_CLI_STATIC sysvmsg"
                   95664:   fi
                   95665: 
                   95666: 
                   95667:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   95668: 
                   95669: 
                   95670: 
                   95671:   if test "$ext_builddir" = "."; then
                   95672:     PHP_PECL_EXTENSION=sysvmsg
                   95673: 
                   95674:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   95675: 
                   95676:   fi
                   95677: 
                   95678: fi
                   95679: 
                   95680: 
                   95681: 
                   95682: php_enable_sysvsem=no
                   95683: 
                   95684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V semaphore support" >&5
                   95685: $as_echo_n "checking whether to enable System V semaphore support... " >&6; }
                   95686: # Check whether --enable-sysvsem was given.
                   95687: if test "${enable_sysvsem+set}" = set; then :
                   95688:   enableval=$enable_sysvsem; PHP_SYSVSEM=$enableval
                   95689: else
                   95690: 
                   95691:   PHP_SYSVSEM=no
                   95692:   test "$PHP_ENABLE_ALL" && PHP_SYSVSEM=$PHP_ENABLE_ALL
                   95693: 
                   95694: fi
                   95695: 
                   95696: 
                   95697: 
                   95698: ext_output="yes, shared"
                   95699: ext_shared=yes
                   95700: case $PHP_SYSVSEM in
                   95701: shared,*)
                   95702:   PHP_SYSVSEM=`echo "$PHP_SYSVSEM"|$SED 's/^shared,//'`
                   95703:   ;;
                   95704: shared)
                   95705:   PHP_SYSVSEM=yes
                   95706:   ;;
                   95707: no)
                   95708:   ext_output=no
                   95709:   ext_shared=no
                   95710:   ;;
                   95711: *)
                   95712:   ext_output=yes
                   95713:   ext_shared=no
                   95714:   ;;
                   95715: esac
                   95716: 
                   95717: 
                   95718: 
                   95719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   95720: $as_echo "$ext_output" >&6; }
                   95721: 
                   95722: 
                   95723: 
                   95724: 
                   95725: if test "$PHP_SYSVSEM" != "no"; then
                   95726: 
                   95727:   ext_builddir=ext/sysvsem
                   95728:   ext_srcdir=$abs_srcdir/ext/sysvsem
                   95729: 
                   95730:   ac_extra=
                   95731: 
                   95732:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   95733:     PHP_SYSVSEM_SHARED=no
                   95734: 
                   95735: 
                   95736:   case ext/sysvsem in
                   95737:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   95738:   /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   95739:   *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   95740:   esac
                   95741: 
                   95742: 
                   95743: 
                   95744:   b_c_pre=$php_c_pre
                   95745:   b_cxx_pre=$php_cxx_pre
                   95746:   b_c_meta=$php_c_meta
                   95747:   b_cxx_meta=$php_cxx_meta
                   95748:   b_c_post=$php_c_post
                   95749:   b_cxx_post=$php_cxx_post
                   95750:   b_lo=$php_lo
                   95751: 
                   95752: 
                   95753:   old_IFS=$IFS
                   95754:   for ac_src in sysvsem.c; do
                   95755: 
                   95756:       IFS=.
                   95757:       set $ac_src
                   95758:       ac_obj=$1
                   95759:       IFS=$old_IFS
                   95760: 
                   95761:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   95762: 
                   95763:       case $ac_src in
                   95764:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95765:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95766:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95767:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   95768:       esac
                   95769: 
                   95770:     cat >>Makefile.objects<<EOF
                   95771: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   95772:        $ac_comp
                   95773: EOF
                   95774:   done
                   95775: 
                   95776: 
                   95777:     EXT_STATIC="$EXT_STATIC sysvsem"
                   95778:     if test "$ext_shared" != "nocli"; then
                   95779:       EXT_CLI_STATIC="$EXT_CLI_STATIC sysvsem"
                   95780:     fi
                   95781:   else
                   95782:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   95783:       PHP_SYSVSEM_SHARED=yes
                   95784: 
                   95785:   case ext/sysvsem in
                   95786:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   95787:   /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   95788:   *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   95789:   esac
                   95790: 
                   95791: 
                   95792: 
                   95793:   b_c_pre=$shared_c_pre
                   95794:   b_cxx_pre=$shared_cxx_pre
                   95795:   b_c_meta=$shared_c_meta
                   95796:   b_cxx_meta=$shared_cxx_meta
                   95797:   b_c_post=$shared_c_post
                   95798:   b_cxx_post=$shared_cxx_post
                   95799:   b_lo=$shared_lo
                   95800: 
                   95801: 
                   95802:   old_IFS=$IFS
                   95803:   for ac_src in sysvsem.c; do
                   95804: 
                   95805:       IFS=.
                   95806:       set $ac_src
                   95807:       ac_obj=$1
                   95808:       IFS=$old_IFS
                   95809: 
                   95810:       shared_objects_sysvsem="$shared_objects_sysvsem $ac_bdir$ac_obj.lo"
                   95811: 
                   95812:       case $ac_src in
                   95813:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95814:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95815:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95816:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   95817:       esac
                   95818: 
                   95819:     cat >>Makefile.objects<<EOF
                   95820: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   95821:        $ac_comp
                   95822: EOF
                   95823:   done
                   95824: 
                   95825:       case $host_alias in
                   95826:         *netware*)
                   95827: 
                   95828:   install_modules="install-modules"
                   95829: 
                   95830:   case $host_alias in
                   95831:     *aix*)
                   95832:       suffix=so
                   95833:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsysvsem.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) $(PHPSYSVSEM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsysvsem.so '$ext_builddir'/phpsysvsem.so'
                   95834:       ;;
                   95835:     *netware*)
                   95836:       suffix=nlm
                   95837:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) -L$(top_builddir)/netware -lphp5lib $(SYSVSEM_SHARED_LIBADD)'
                   95838:       ;;
                   95839:     *)
                   95840:       suffix=la
                   95841:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) $(PHPSYSVSEM_SHARED_LIBADD)'
                   95842:       ;;
                   95843:   esac
                   95844: 
                   95845:   if test "x" = "xyes"; then
                   95846:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsysvsem.$suffix"
                   95847:   else
                   95848:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsysvsem.$suffix"
                   95849:   fi
                   95850: 
                   95851:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvsem"
                   95852: 
                   95853:   cat >>Makefile.objects<<EOF
                   95854: \$(phplibdir)/phpsysvsem.$suffix: $ext_builddir/phpsysvsem.$suffix
                   95855:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsysvsem.$suffix \$(phplibdir)
                   95856: 
                   95857: $ext_builddir/phpsysvsem.$suffix: \$(shared_objects_sysvsem) \$(PHPSYSVSEM_SHARED_DEPENDENCIES)
                   95858:        $link_cmd
                   95859: 
                   95860: EOF
                   95861: 
                   95862:           ;;
                   95863:         *)
                   95864: 
                   95865:   install_modules="install-modules"
                   95866: 
                   95867:   case $host_alias in
                   95868:     *aix*)
                   95869:       suffix=so
                   95870:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sysvsem.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) $(SYSVSEM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sysvsem.so '$ext_builddir'/sysvsem.so'
                   95871:       ;;
                   95872:     *netware*)
                   95873:       suffix=nlm
                   95874:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) -L$(top_builddir)/netware -lphp5lib $(VSEM_SHARED_LIBADD)'
                   95875:       ;;
                   95876:     *)
                   95877:       suffix=la
                   95878:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) $(SYSVSEM_SHARED_LIBADD)'
                   95879:       ;;
                   95880:   esac
                   95881: 
                   95882:   if test "x" = "xyes"; then
                   95883:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvsem.$suffix"
                   95884:   else
                   95885:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvsem.$suffix"
                   95886:   fi
                   95887: 
                   95888:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvsem"
                   95889: 
                   95890:   cat >>Makefile.objects<<EOF
                   95891: \$(phplibdir)/sysvsem.$suffix: $ext_builddir/sysvsem.$suffix
                   95892:        \$(LIBTOOL) --mode=install cp $ext_builddir/sysvsem.$suffix \$(phplibdir)
                   95893: 
                   95894: $ext_builddir/sysvsem.$suffix: \$(shared_objects_sysvsem) \$(SYSVSEM_SHARED_DEPENDENCIES)
                   95895:        $link_cmd
                   95896: 
                   95897: EOF
                   95898: 
                   95899:           ;;
                   95900:       esac
                   95901: 
                   95902: cat >>confdefs.h <<_ACEOF
                   95903: #define COMPILE_DL_SYSVSEM 1
                   95904: _ACEOF
                   95905: 
                   95906:     fi
                   95907:   fi
                   95908: 
                   95909:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   95910:     PHP_SYSVSEM_SHARED=no
                   95911: 
                   95912: 
                   95913:   case ext/sysvsem in
                   95914:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   95915:   /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   95916:   *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   95917:   esac
                   95918: 
                   95919: 
                   95920: 
                   95921:   b_c_pre=$php_c_pre
                   95922:   b_cxx_pre=$php_cxx_pre
                   95923:   b_c_meta=$php_c_meta
                   95924:   b_cxx_meta=$php_cxx_meta
                   95925:   b_c_post=$php_c_post
                   95926:   b_cxx_post=$php_cxx_post
                   95927:   b_lo=$php_lo
                   95928: 
                   95929: 
                   95930:   old_IFS=$IFS
                   95931:   for ac_src in sysvsem.c; do
                   95932: 
                   95933:       IFS=.
                   95934:       set $ac_src
                   95935:       ac_obj=$1
                   95936:       IFS=$old_IFS
                   95937: 
1.1.1.2 ! misho    95938:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    95939: 
                   95940:       case $ac_src in
                   95941:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95942:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95943:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95944:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   95945:       esac
                   95946: 
                   95947:     cat >>Makefile.objects<<EOF
                   95948: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   95949:        $ac_comp
                   95950: EOF
                   95951:   done
                   95952: 
                   95953: 
                   95954: 
                   95955: 
                   95956:   case ext/sysvsem in
                   95957:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   95958:   /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   95959:   *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   95960:   esac
                   95961: 
                   95962: 
                   95963: 
                   95964:   b_c_pre=$php_c_pre
                   95965:   b_cxx_pre=$php_cxx_pre
                   95966:   b_c_meta=$php_c_meta
                   95967:   b_cxx_meta=$php_cxx_meta
                   95968:   b_c_post=$php_c_post
                   95969:   b_cxx_post=$php_cxx_post
                   95970:   b_lo=$php_lo
                   95971: 
                   95972: 
                   95973:   old_IFS=$IFS
                   95974:   for ac_src in sysvsem.c; do
                   95975: 
                   95976:       IFS=.
                   95977:       set $ac_src
                   95978:       ac_obj=$1
                   95979:       IFS=$old_IFS
                   95980: 
1.1.1.2 ! misho    95981:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    95982: 
                   95983:       case $ac_src in
                   95984:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95985:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95986:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   95987:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   95988:       esac
                   95989: 
                   95990:     cat >>Makefile.objects<<EOF
                   95991: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   95992:        $ac_comp
                   95993: EOF
                   95994:   done
                   95995: 
                   95996: 
                   95997: 
                   95998: 
                   95999:   case ext/sysvsem in
                   96000:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   96001:   /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   96002:   *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   96003:   esac
                   96004: 
                   96005: 
                   96006: 
                   96007:   b_c_pre=$php_c_pre
                   96008:   b_cxx_pre=$php_cxx_pre
                   96009:   b_c_meta=$php_c_meta
                   96010:   b_cxx_meta=$php_cxx_meta
                   96011:   b_c_post=$php_c_post
                   96012:   b_cxx_post=$php_cxx_post
                   96013:   b_lo=$php_lo
                   96014: 
                   96015: 
                   96016:   old_IFS=$IFS
                   96017:   for ac_src in sysvsem.c; do
                   96018: 
                   96019:       IFS=.
                   96020:       set $ac_src
                   96021:       ac_obj=$1
                   96022:       IFS=$old_IFS
                   96023: 
1.1.1.2 ! misho    96024:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    96025: 
                   96026:       case $ac_src in
                   96027:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96028:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96029:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96030:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   96031:       esac
                   96032: 
                   96033:     cat >>Makefile.objects<<EOF
                   96034: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   96035:        $ac_comp
                   96036: EOF
                   96037:   done
                   96038: 
                   96039: 
                   96040:     EXT_CLI_STATIC="$EXT_CLI_STATIC sysvsem"
                   96041:   fi
                   96042: 
                   96043: 
                   96044:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   96045: 
                   96046: 
                   96047: 
                   96048:   if test "$ext_builddir" = "."; then
                   96049:     PHP_PECL_EXTENSION=sysvsem
                   96050: 
                   96051:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   96052: 
                   96053:   fi
                   96054: 
                   96055: 
                   96056: $as_echo "#define HAVE_SYSVSEM 1" >>confdefs.h
                   96057: 
                   96058:  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun" >&5
                   96059: $as_echo_n "checking for union semun... " >&6; }
                   96060: if ${php_cv_semun+:} false; then :
                   96061:   $as_echo_n "(cached) " >&6
                   96062: else
                   96063:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   96064: /* end confdefs.h.  */
                   96065: 
                   96066: #include <sys/types.h>
                   96067: #include <sys/ipc.h>
                   96068: #include <sys/sem.h>
                   96069: 
                   96070: int
                   96071: main ()
                   96072: {
                   96073: union semun x;
                   96074:   ;
                   96075:   return 0;
                   96076: }
                   96077: _ACEOF
                   96078: if ac_fn_c_try_compile "$LINENO"; then :
                   96079: 
                   96080:      php_cv_semun=yes
                   96081: 
                   96082: else
                   96083: 
                   96084:      php_cv_semun=no
                   96085: 
                   96086: fi
                   96087: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   96088: 
                   96089: fi
                   96090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_semun" >&5
                   96091: $as_echo "$php_cv_semun" >&6; }
                   96092:  if test "$php_cv_semun" = "yes"; then
                   96093: 
                   96094: $as_echo "#define HAVE_SEMUN 1" >>confdefs.h
                   96095: 
                   96096:  else
                   96097: 
                   96098: $as_echo "#define HAVE_SEMUN 0" >>confdefs.h
                   96099: 
                   96100:  fi
                   96101: fi
                   96102: 
                   96103: 
                   96104: 
                   96105: php_enable_sysvshm=no
                   96106: 
                   96107: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V shared memory support" >&5
                   96108: $as_echo_n "checking whether to enable System V shared memory support... " >&6; }
                   96109: # Check whether --enable-sysvshm was given.
                   96110: if test "${enable_sysvshm+set}" = set; then :
                   96111:   enableval=$enable_sysvshm; PHP_SYSVSHM=$enableval
                   96112: else
                   96113: 
                   96114:   PHP_SYSVSHM=no
                   96115:   test "$PHP_ENABLE_ALL" && PHP_SYSVSHM=$PHP_ENABLE_ALL
                   96116: 
                   96117: fi
                   96118: 
                   96119: 
                   96120: 
                   96121: ext_output="yes, shared"
                   96122: ext_shared=yes
                   96123: case $PHP_SYSVSHM in
                   96124: shared,*)
                   96125:   PHP_SYSVSHM=`echo "$PHP_SYSVSHM"|$SED 's/^shared,//'`
                   96126:   ;;
                   96127: shared)
                   96128:   PHP_SYSVSHM=yes
                   96129:   ;;
                   96130: no)
                   96131:   ext_output=no
                   96132:   ext_shared=no
                   96133:   ;;
                   96134: *)
                   96135:   ext_output=yes
                   96136:   ext_shared=no
                   96137:   ;;
                   96138: esac
                   96139: 
                   96140: 
                   96141: 
                   96142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   96143: $as_echo "$ext_output" >&6; }
                   96144: 
                   96145: 
                   96146: 
                   96147: 
                   96148: if test "$PHP_SYSVSHM" != "no"; then
                   96149: 
                   96150: $as_echo "#define HAVE_SYSVSHM 1" >>confdefs.h
                   96151: 
                   96152: 
                   96153:   ext_builddir=ext/sysvshm
                   96154:   ext_srcdir=$abs_srcdir/ext/sysvshm
                   96155: 
                   96156:   ac_extra=
                   96157: 
                   96158:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   96159:     PHP_SYSVSHM_SHARED=no
                   96160: 
                   96161: 
                   96162:   case ext/sysvshm in
                   96163:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   96164:   /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   96165:   *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   96166:   esac
                   96167: 
                   96168: 
                   96169: 
                   96170:   b_c_pre=$php_c_pre
                   96171:   b_cxx_pre=$php_cxx_pre
                   96172:   b_c_meta=$php_c_meta
                   96173:   b_cxx_meta=$php_cxx_meta
                   96174:   b_c_post=$php_c_post
                   96175:   b_cxx_post=$php_cxx_post
                   96176:   b_lo=$php_lo
                   96177: 
                   96178: 
                   96179:   old_IFS=$IFS
                   96180:   for ac_src in sysvshm.c; do
                   96181: 
                   96182:       IFS=.
                   96183:       set $ac_src
                   96184:       ac_obj=$1
                   96185:       IFS=$old_IFS
                   96186: 
                   96187:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   96188: 
                   96189:       case $ac_src in
                   96190:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96191:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96192:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96193:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   96194:       esac
                   96195: 
                   96196:     cat >>Makefile.objects<<EOF
                   96197: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   96198:        $ac_comp
                   96199: EOF
                   96200:   done
                   96201: 
                   96202: 
                   96203:     EXT_STATIC="$EXT_STATIC sysvshm"
                   96204:     if test "$ext_shared" != "nocli"; then
                   96205:       EXT_CLI_STATIC="$EXT_CLI_STATIC sysvshm"
                   96206:     fi
                   96207:   else
                   96208:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   96209:       PHP_SYSVSHM_SHARED=yes
                   96210: 
                   96211:   case ext/sysvshm in
                   96212:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   96213:   /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   96214:   *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   96215:   esac
                   96216: 
                   96217: 
                   96218: 
                   96219:   b_c_pre=$shared_c_pre
                   96220:   b_cxx_pre=$shared_cxx_pre
                   96221:   b_c_meta=$shared_c_meta
                   96222:   b_cxx_meta=$shared_cxx_meta
                   96223:   b_c_post=$shared_c_post
                   96224:   b_cxx_post=$shared_cxx_post
                   96225:   b_lo=$shared_lo
                   96226: 
                   96227: 
                   96228:   old_IFS=$IFS
                   96229:   for ac_src in sysvshm.c; do
                   96230: 
                   96231:       IFS=.
                   96232:       set $ac_src
                   96233:       ac_obj=$1
                   96234:       IFS=$old_IFS
                   96235: 
                   96236:       shared_objects_sysvshm="$shared_objects_sysvshm $ac_bdir$ac_obj.lo"
                   96237: 
                   96238:       case $ac_src in
                   96239:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96240:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96241:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96242:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   96243:       esac
                   96244: 
                   96245:     cat >>Makefile.objects<<EOF
                   96246: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   96247:        $ac_comp
                   96248: EOF
                   96249:   done
                   96250: 
                   96251:       case $host_alias in
                   96252:         *netware*)
                   96253: 
                   96254:   install_modules="install-modules"
                   96255: 
                   96256:   case $host_alias in
                   96257:     *aix*)
                   96258:       suffix=so
                   96259:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsysvshm.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) $(PHPSYSVSHM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsysvshm.so '$ext_builddir'/phpsysvshm.so'
                   96260:       ;;
                   96261:     *netware*)
                   96262:       suffix=nlm
                   96263:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) -L$(top_builddir)/netware -lphp5lib $(SYSVSHM_SHARED_LIBADD)'
                   96264:       ;;
                   96265:     *)
                   96266:       suffix=la
                   96267:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) $(PHPSYSVSHM_SHARED_LIBADD)'
                   96268:       ;;
                   96269:   esac
                   96270: 
                   96271:   if test "x" = "xyes"; then
                   96272:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsysvshm.$suffix"
                   96273:   else
                   96274:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsysvshm.$suffix"
                   96275:   fi
                   96276: 
                   96277:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvshm"
                   96278: 
                   96279:   cat >>Makefile.objects<<EOF
                   96280: \$(phplibdir)/phpsysvshm.$suffix: $ext_builddir/phpsysvshm.$suffix
                   96281:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsysvshm.$suffix \$(phplibdir)
                   96282: 
                   96283: $ext_builddir/phpsysvshm.$suffix: \$(shared_objects_sysvshm) \$(PHPSYSVSHM_SHARED_DEPENDENCIES)
                   96284:        $link_cmd
                   96285: 
                   96286: EOF
                   96287: 
                   96288:           ;;
                   96289:         *)
                   96290: 
                   96291:   install_modules="install-modules"
                   96292: 
                   96293:   case $host_alias in
                   96294:     *aix*)
                   96295:       suffix=so
                   96296:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sysvshm.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) $(SYSVSHM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sysvshm.so '$ext_builddir'/sysvshm.so'
                   96297:       ;;
                   96298:     *netware*)
                   96299:       suffix=nlm
                   96300:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) -L$(top_builddir)/netware -lphp5lib $(VSHM_SHARED_LIBADD)'
                   96301:       ;;
                   96302:     *)
                   96303:       suffix=la
                   96304:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) $(SYSVSHM_SHARED_LIBADD)'
                   96305:       ;;
                   96306:   esac
                   96307: 
                   96308:   if test "x" = "xyes"; then
                   96309:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvshm.$suffix"
                   96310:   else
                   96311:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvshm.$suffix"
                   96312:   fi
                   96313: 
                   96314:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvshm"
                   96315: 
                   96316:   cat >>Makefile.objects<<EOF
                   96317: \$(phplibdir)/sysvshm.$suffix: $ext_builddir/sysvshm.$suffix
                   96318:        \$(LIBTOOL) --mode=install cp $ext_builddir/sysvshm.$suffix \$(phplibdir)
                   96319: 
                   96320: $ext_builddir/sysvshm.$suffix: \$(shared_objects_sysvshm) \$(SYSVSHM_SHARED_DEPENDENCIES)
                   96321:        $link_cmd
                   96322: 
                   96323: EOF
                   96324: 
                   96325:           ;;
                   96326:       esac
                   96327: 
                   96328: cat >>confdefs.h <<_ACEOF
                   96329: #define COMPILE_DL_SYSVSHM 1
                   96330: _ACEOF
                   96331: 
                   96332:     fi
                   96333:   fi
                   96334: 
                   96335:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   96336:     PHP_SYSVSHM_SHARED=no
                   96337: 
                   96338: 
                   96339:   case ext/sysvshm in
                   96340:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   96341:   /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   96342:   *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   96343:   esac
                   96344: 
                   96345: 
                   96346: 
                   96347:   b_c_pre=$php_c_pre
                   96348:   b_cxx_pre=$php_cxx_pre
                   96349:   b_c_meta=$php_c_meta
                   96350:   b_cxx_meta=$php_cxx_meta
                   96351:   b_c_post=$php_c_post
                   96352:   b_cxx_post=$php_cxx_post
                   96353:   b_lo=$php_lo
                   96354: 
                   96355: 
                   96356:   old_IFS=$IFS
                   96357:   for ac_src in sysvshm.c; do
                   96358: 
                   96359:       IFS=.
                   96360:       set $ac_src
                   96361:       ac_obj=$1
                   96362:       IFS=$old_IFS
                   96363: 
1.1.1.2 ! misho    96364:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    96365: 
                   96366:       case $ac_src in
                   96367:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96368:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96369:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96370:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   96371:       esac
                   96372: 
                   96373:     cat >>Makefile.objects<<EOF
                   96374: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   96375:        $ac_comp
                   96376: EOF
                   96377:   done
                   96378: 
                   96379: 
                   96380: 
                   96381: 
                   96382:   case ext/sysvshm in
                   96383:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   96384:   /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   96385:   *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   96386:   esac
                   96387: 
                   96388: 
                   96389: 
                   96390:   b_c_pre=$php_c_pre
                   96391:   b_cxx_pre=$php_cxx_pre
                   96392:   b_c_meta=$php_c_meta
                   96393:   b_cxx_meta=$php_cxx_meta
                   96394:   b_c_post=$php_c_post
                   96395:   b_cxx_post=$php_cxx_post
                   96396:   b_lo=$php_lo
                   96397: 
                   96398: 
                   96399:   old_IFS=$IFS
                   96400:   for ac_src in sysvshm.c; do
                   96401: 
                   96402:       IFS=.
                   96403:       set $ac_src
                   96404:       ac_obj=$1
                   96405:       IFS=$old_IFS
                   96406: 
1.1.1.2 ! misho    96407:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    96408: 
                   96409:       case $ac_src in
                   96410:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96411:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96412:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96413:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   96414:       esac
                   96415: 
                   96416:     cat >>Makefile.objects<<EOF
                   96417: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   96418:        $ac_comp
                   96419: EOF
                   96420:   done
                   96421: 
                   96422: 
                   96423: 
                   96424: 
                   96425:   case ext/sysvshm in
                   96426:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   96427:   /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   96428:   *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   96429:   esac
                   96430: 
                   96431: 
                   96432: 
                   96433:   b_c_pre=$php_c_pre
                   96434:   b_cxx_pre=$php_cxx_pre
                   96435:   b_c_meta=$php_c_meta
                   96436:   b_cxx_meta=$php_cxx_meta
                   96437:   b_c_post=$php_c_post
                   96438:   b_cxx_post=$php_cxx_post
                   96439:   b_lo=$php_lo
                   96440: 
                   96441: 
                   96442:   old_IFS=$IFS
                   96443:   for ac_src in sysvshm.c; do
                   96444: 
                   96445:       IFS=.
                   96446:       set $ac_src
                   96447:       ac_obj=$1
                   96448:       IFS=$old_IFS
                   96449: 
1.1.1.2 ! misho    96450:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    96451: 
                   96452:       case $ac_src in
                   96453:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96454:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96455:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96456:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   96457:       esac
                   96458: 
                   96459:     cat >>Makefile.objects<<EOF
                   96460: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   96461:        $ac_comp
                   96462: EOF
                   96463:   done
                   96464: 
                   96465: 
                   96466:     EXT_CLI_STATIC="$EXT_CLI_STATIC sysvshm"
                   96467:   fi
                   96468: 
                   96469: 
                   96470:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   96471: 
                   96472: 
                   96473: 
                   96474:   if test "$ext_builddir" = "."; then
                   96475:     PHP_PECL_EXTENSION=sysvshm
                   96476: 
                   96477:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   96478: 
                   96479:   fi
                   96480: 
                   96481: fi
                   96482: 
                   96483: 
                   96484: 
                   96485: php_with_tidy=no
                   96486: 
                   96487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIDY support" >&5
                   96488: $as_echo_n "checking for TIDY support... " >&6; }
                   96489: 
                   96490: # Check whether --with-tidy was given.
                   96491: if test "${with_tidy+set}" = set; then :
                   96492:   withval=$with_tidy; PHP_TIDY=$withval
                   96493: else
                   96494: 
                   96495:   PHP_TIDY=no
                   96496:   test "$PHP_ENABLE_ALL" && PHP_TIDY=$PHP_ENABLE_ALL
                   96497: 
                   96498: fi
                   96499: 
                   96500: 
                   96501: 
                   96502: ext_output="yes, shared"
                   96503: ext_shared=yes
                   96504: case $PHP_TIDY in
                   96505: shared,*)
                   96506:   PHP_TIDY=`echo "$PHP_TIDY"|$SED 's/^shared,//'`
                   96507:   ;;
                   96508: shared)
                   96509:   PHP_TIDY=yes
                   96510:   ;;
                   96511: no)
                   96512:   ext_output=no
                   96513:   ext_shared=no
                   96514:   ;;
                   96515: *)
                   96516:   ext_output=yes
                   96517:   ext_shared=no
                   96518:   ;;
                   96519: esac
                   96520: 
                   96521: 
                   96522: 
                   96523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   96524: $as_echo "$ext_output" >&6; }
                   96525: 
                   96526: 
                   96527: 
                   96528: 
                   96529: if test "$PHP_TIDY" != "no"; then
                   96530: 
                   96531:   if test "$PHP_TIDY" != "yes"; then
                   96532:     TIDY_SEARCH_DIRS=$PHP_TIDY
                   96533:   else
                   96534:     TIDY_SEARCH_DIRS="/usr/local /usr"
                   96535:   fi
                   96536: 
                   96537:   for i in $TIDY_SEARCH_DIRS; do
                   96538:     if test -f $i/include/tidy/tidy.h; then
                   96539:       TIDY_DIR=$i
                   96540:       TIDY_INCDIR=$i/include/tidy
                   96541:     elif test -f $i/include/tidy.h; then
                   96542:       TIDY_DIR=$i
                   96543:       TIDY_INCDIR=$i/include
                   96544:     fi
                   96545:   done
                   96546: 
                   96547:   if test -z "$TIDY_DIR"; then
                   96548:     as_fn_error $? "Cannot find libtidy" "$LINENO" 5
                   96549:   fi
                   96550: 
                   96551:   TIDY_LIBDIR=$TIDY_DIR/$PHP_LIBDIR
                   96552: 
                   96553: 
                   96554: 
                   96555:   if test "$ext_shared" = "yes"; then
                   96556:     TIDY_SHARED_LIBADD="-ltidy $TIDY_SHARED_LIBADD"
                   96557:     if test -n "$TIDY_LIBDIR"; then
                   96558: 
                   96559:   if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then
                   96560: 
                   96561:   if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then
                   96562:     ai_p=$TIDY_LIBDIR
                   96563:   else
                   96564: 
                   96565:     ep_dir="`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   96566: 
                   96567:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   96568:     ai_p="$ep_realdir/`basename \"$TIDY_LIBDIR\"`"
                   96569:   fi
                   96570: 
                   96571: 
                   96572:       if test "$ext_shared" = "yes"; then
                   96573:         TIDY_SHARED_LIBADD="-L$ai_p $TIDY_SHARED_LIBADD"
                   96574:         test -n "$ld_runpath_switch" && TIDY_SHARED_LIBADD="$ld_runpath_switch$ai_p $TIDY_SHARED_LIBADD"
                   96575:       else
                   96576: 
                   96577: 
                   96578: 
                   96579:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   96580: 
                   96581:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   96582:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   96583:     eval "LIBPATH$unique=set"
                   96584: 
                   96585:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   96586:     LDFLAGS="$LDFLAGS -L$ai_p"
                   96587:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   96588: 
                   96589:   fi
                   96590: 
                   96591: 
                   96592:       fi
                   96593: 
                   96594:   fi
                   96595: 
                   96596:     fi
                   96597:   else
                   96598: 
                   96599: 
                   96600:   if test -n "$TIDY_LIBDIR"; then
                   96601: 
                   96602:   if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then
                   96603: 
                   96604:   if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then
                   96605:     ai_p=$TIDY_LIBDIR
                   96606:   else
                   96607: 
                   96608:     ep_dir="`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   96609: 
                   96610:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   96611:     ai_p="$ep_realdir/`basename \"$TIDY_LIBDIR\"`"
                   96612:   fi
                   96613: 
                   96614: 
                   96615: 
                   96616: 
                   96617: 
                   96618:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   96619: 
                   96620:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   96621:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   96622:     eval "LIBPATH$unique=set"
                   96623: 
                   96624:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   96625:     LDFLAGS="$LDFLAGS -L$ai_p"
                   96626:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   96627: 
                   96628:   fi
                   96629: 
                   96630: 
                   96631: 
                   96632:   fi
                   96633: 
                   96634:   fi
                   96635: 
                   96636: 
                   96637:   case tidy in
                   96638:   c|c_r|pthread*) ;;
                   96639:   *)
                   96640:       LIBS="-ltidy $LIBS"
                   96641:    ;;
                   96642:   esac
                   96643: 
                   96644: 
                   96645: 
                   96646: 
                   96647:   fi
                   96648: 
                   96649: 
                   96650: 
                   96651:   if test "$TIDY_INCDIR" != "/usr/include"; then
                   96652: 
                   96653:   if test -z "$TIDY_INCDIR" || echo "$TIDY_INCDIR" | grep '^/' >/dev/null ; then
                   96654:     ai_p=$TIDY_INCDIR
                   96655:   else
                   96656: 
                   96657:     ep_dir="`echo $TIDY_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   96658: 
                   96659:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   96660:     ai_p="$ep_realdir/`basename \"$TIDY_INCDIR\"`"
                   96661:   fi
                   96662: 
                   96663: 
                   96664: 
                   96665:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   96666: 
                   96667:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   96668:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   96669:     eval "INCLUDEPATH$unique=set"
                   96670: 
                   96671:       if test ""; then
                   96672:         INCLUDES="-I$ai_p $INCLUDES"
                   96673:       else
                   96674:         INCLUDES="$INCLUDES -I$ai_p"
                   96675:       fi
                   96676: 
                   96677:   fi
                   96678: 
                   96679:   fi
                   96680: 
                   96681: 
                   96682: 
                   96683:   save_old_LDFLAGS=$LDFLAGS
                   96684:   ac_stuff=""
                   96685: 
                   96686:   save_ext_shared=$ext_shared
                   96687:   ext_shared=yes
                   96688: 
                   96689:   for ac_i in $ac_stuff; do
                   96690:     case $ac_i in
                   96691:     -pthread)
                   96692:       if test "$ext_shared" = "yes"; then
                   96693:         LDFLAGS="$LDFLAGS -pthread"
                   96694:       else
                   96695: 
                   96696: 
                   96697:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   96698: 
                   96699:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   96700:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   96701:     eval "EXTRA_LDFLAGS$unique=set"
                   96702:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   96703:   fi
                   96704: 
                   96705:       fi
                   96706:     ;;
                   96707:     -l*)
                   96708:       ac_ii=`echo $ac_i|cut -c 3-`
                   96709: 
                   96710: 
                   96711:   case $ac_ii in
                   96712:   c|c_r|pthread*) ;;
                   96713:   *)
                   96714:     if test "$ext_shared" = "yes"; then
                   96715:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   96716:     else
                   96717: 
                   96718: 
                   96719:   case $ac_ii in
                   96720:   c|c_r|pthread*) ;;
                   96721:   *)
                   96722:       LIBS="$LIBS -l$ac_ii"
                   96723:    ;;
                   96724:   esac
                   96725: 
                   96726: 
                   96727:     fi
                   96728:    ;;
                   96729:   esac
                   96730: 
                   96731: 
                   96732:     ;;
                   96733:     -L*)
                   96734:       ac_ii=`echo $ac_i|cut -c 3-`
                   96735: 
                   96736:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   96737: 
                   96738:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   96739:     ai_p=$ac_ii
                   96740:   else
                   96741: 
                   96742:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   96743: 
                   96744:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   96745:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   96746:   fi
                   96747: 
                   96748: 
                   96749:       if test "$ext_shared" = "yes"; then
                   96750:         LDFLAGS="-L$ai_p $LDFLAGS"
                   96751:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   96752:       else
                   96753: 
                   96754: 
                   96755: 
                   96756:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   96757: 
                   96758:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   96759:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   96760:     eval "LIBPATH$unique=set"
                   96761: 
                   96762:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   96763:     LDFLAGS="$LDFLAGS -L$ai_p"
                   96764:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   96765: 
                   96766:   fi
                   96767: 
                   96768: 
                   96769:       fi
                   96770: 
                   96771:   fi
                   96772: 
                   96773:     ;;
                   96774:     esac
                   96775:   done
                   96776: 
                   96777:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -ltidy" >&5
                   96778: $as_echo_n "checking for tidyOptGetDoc in -ltidy... " >&6; }
                   96779: if ${ac_cv_lib_tidy_tidyOptGetDoc+:} false; then :
                   96780:   $as_echo_n "(cached) " >&6
                   96781: else
                   96782:   ac_check_lib_save_LIBS=$LIBS
                   96783: LIBS="-ltidy  $LIBS"
                   96784: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   96785: /* end confdefs.h.  */
                   96786: 
                   96787: /* Override any GCC internal prototype to avoid an error.
                   96788:    Use char because int might match the return type of a GCC
                   96789:    builtin and then its argument prototype would still apply.  */
                   96790: #ifdef __cplusplus
                   96791: extern "C"
                   96792: #endif
                   96793: char tidyOptGetDoc ();
                   96794: int
                   96795: main ()
                   96796: {
                   96797: return tidyOptGetDoc ();
                   96798:   ;
                   96799:   return 0;
                   96800: }
                   96801: _ACEOF
                   96802: if ac_fn_c_try_link "$LINENO"; then :
                   96803:   ac_cv_lib_tidy_tidyOptGetDoc=yes
                   96804: else
                   96805:   ac_cv_lib_tidy_tidyOptGetDoc=no
                   96806: fi
                   96807: rm -f core conftest.err conftest.$ac_objext \
                   96808:     conftest$ac_exeext conftest.$ac_ext
                   96809: LIBS=$ac_check_lib_save_LIBS
                   96810: fi
                   96811: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tidy_tidyOptGetDoc" >&5
                   96812: $as_echo "$ac_cv_lib_tidy_tidyOptGetDoc" >&6; }
                   96813: if test "x$ac_cv_lib_tidy_tidyOptGetDoc" = xyes; then :
                   96814: 
                   96815:     LDFLAGS=$save_old_LDFLAGS
                   96816:     ext_shared=$save_ext_shared
                   96817: 
                   96818: 
                   96819: $as_echo "#define HAVE_TIDYOPTGETDOC 1" >>confdefs.h
                   96820: 
                   96821: 
                   96822: 
                   96823: else
                   96824: 
                   96825:     LDFLAGS=$save_old_LDFLAGS
                   96826:     ext_shared=$save_ext_shared
                   96827:     unset ac_cv_lib_tidy_tidyOptGetDoc
                   96828: 
                   96829: 
                   96830: fi
                   96831: 
                   96832: 
                   96833: 
                   96834: 
                   96835:   ext_builddir=ext/tidy
                   96836:   ext_srcdir=$abs_srcdir/ext/tidy
                   96837: 
                   96838:   ac_extra=
                   96839: 
                   96840:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   96841:     PHP_TIDY_SHARED=no
                   96842: 
                   96843: 
                   96844:   case ext/tidy in
                   96845:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   96846:   /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   96847:   *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   96848:   esac
                   96849: 
                   96850: 
                   96851: 
                   96852:   b_c_pre=$php_c_pre
                   96853:   b_cxx_pre=$php_cxx_pre
                   96854:   b_c_meta=$php_c_meta
                   96855:   b_cxx_meta=$php_cxx_meta
                   96856:   b_c_post=$php_c_post
                   96857:   b_cxx_post=$php_cxx_post
                   96858:   b_lo=$php_lo
                   96859: 
                   96860: 
                   96861:   old_IFS=$IFS
                   96862:   for ac_src in tidy.c; do
                   96863: 
                   96864:       IFS=.
                   96865:       set $ac_src
                   96866:       ac_obj=$1
                   96867:       IFS=$old_IFS
                   96868: 
                   96869:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   96870: 
                   96871:       case $ac_src in
                   96872:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96873:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96874:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96875:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   96876:       esac
                   96877: 
                   96878:     cat >>Makefile.objects<<EOF
                   96879: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   96880:        $ac_comp
                   96881: EOF
                   96882:   done
                   96883: 
                   96884: 
                   96885:     EXT_STATIC="$EXT_STATIC tidy"
                   96886:     if test "$ext_shared" != "nocli"; then
                   96887:       EXT_CLI_STATIC="$EXT_CLI_STATIC tidy"
                   96888:     fi
                   96889:   else
                   96890:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   96891:       PHP_TIDY_SHARED=yes
                   96892: 
                   96893:   case ext/tidy in
                   96894:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   96895:   /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   96896:   *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   96897:   esac
                   96898: 
                   96899: 
                   96900: 
                   96901:   b_c_pre=$shared_c_pre
                   96902:   b_cxx_pre=$shared_cxx_pre
                   96903:   b_c_meta=$shared_c_meta
                   96904:   b_cxx_meta=$shared_cxx_meta
                   96905:   b_c_post=$shared_c_post
                   96906:   b_cxx_post=$shared_cxx_post
                   96907:   b_lo=$shared_lo
                   96908: 
                   96909: 
                   96910:   old_IFS=$IFS
                   96911:   for ac_src in tidy.c; do
                   96912: 
                   96913:       IFS=.
                   96914:       set $ac_src
                   96915:       ac_obj=$1
                   96916:       IFS=$old_IFS
                   96917: 
                   96918:       shared_objects_tidy="$shared_objects_tidy $ac_bdir$ac_obj.lo"
                   96919: 
                   96920:       case $ac_src in
                   96921:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96922:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96923:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   96924:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   96925:       esac
                   96926: 
                   96927:     cat >>Makefile.objects<<EOF
                   96928: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   96929:        $ac_comp
                   96930: EOF
                   96931:   done
                   96932: 
                   96933:       case $host_alias in
                   96934:         *netware*)
                   96935: 
                   96936:   install_modules="install-modules"
                   96937: 
                   96938:   case $host_alias in
                   96939:     *aix*)
                   96940:       suffix=so
                   96941:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phptidy.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) $(PHPTIDY_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phptidy.so '$ext_builddir'/phptidy.so'
                   96942:       ;;
                   96943:     *netware*)
                   96944:       suffix=nlm
                   96945:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) -L$(top_builddir)/netware -lphp5lib $(TIDY_SHARED_LIBADD)'
                   96946:       ;;
                   96947:     *)
                   96948:       suffix=la
                   96949:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) $(PHPTIDY_SHARED_LIBADD)'
                   96950:       ;;
                   96951:   esac
                   96952: 
                   96953:   if test "x" = "xyes"; then
                   96954:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phptidy.$suffix"
                   96955:   else
                   96956:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phptidy.$suffix"
                   96957:   fi
                   96958: 
                   96959:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tidy"
                   96960: 
                   96961:   cat >>Makefile.objects<<EOF
                   96962: \$(phplibdir)/phptidy.$suffix: $ext_builddir/phptidy.$suffix
                   96963:        \$(LIBTOOL) --mode=install cp $ext_builddir/phptidy.$suffix \$(phplibdir)
                   96964: 
                   96965: $ext_builddir/phptidy.$suffix: \$(shared_objects_tidy) \$(PHPTIDY_SHARED_DEPENDENCIES)
                   96966:        $link_cmd
                   96967: 
                   96968: EOF
                   96969: 
                   96970:           ;;
                   96971:         *)
                   96972: 
                   96973:   install_modules="install-modules"
                   96974: 
                   96975:   case $host_alias in
                   96976:     *aix*)
                   96977:       suffix=so
                   96978:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/tidy.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) $(TIDY_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/tidy.so '$ext_builddir'/tidy.so'
                   96979:       ;;
                   96980:     *netware*)
                   96981:       suffix=nlm
                   96982:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) -L$(top_builddir)/netware -lphp5lib $(Y_SHARED_LIBADD)'
                   96983:       ;;
                   96984:     *)
                   96985:       suffix=la
                   96986:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) $(TIDY_SHARED_LIBADD)'
                   96987:       ;;
                   96988:   esac
                   96989: 
                   96990:   if test "x" = "xyes"; then
                   96991:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/tidy.$suffix"
                   96992:   else
                   96993:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/tidy.$suffix"
                   96994:   fi
                   96995: 
                   96996:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tidy"
                   96997: 
                   96998:   cat >>Makefile.objects<<EOF
                   96999: \$(phplibdir)/tidy.$suffix: $ext_builddir/tidy.$suffix
                   97000:        \$(LIBTOOL) --mode=install cp $ext_builddir/tidy.$suffix \$(phplibdir)
                   97001: 
                   97002: $ext_builddir/tidy.$suffix: \$(shared_objects_tidy) \$(TIDY_SHARED_DEPENDENCIES)
                   97003:        $link_cmd
                   97004: 
                   97005: EOF
                   97006: 
                   97007:           ;;
                   97008:       esac
                   97009: 
                   97010: cat >>confdefs.h <<_ACEOF
                   97011: #define COMPILE_DL_TIDY 1
                   97012: _ACEOF
                   97013: 
                   97014:     fi
                   97015:   fi
                   97016: 
                   97017:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   97018:     PHP_TIDY_SHARED=no
                   97019: 
                   97020: 
                   97021:   case ext/tidy in
                   97022:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   97023:   /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   97024:   *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   97025:   esac
                   97026: 
                   97027: 
                   97028: 
                   97029:   b_c_pre=$php_c_pre
                   97030:   b_cxx_pre=$php_cxx_pre
                   97031:   b_c_meta=$php_c_meta
                   97032:   b_cxx_meta=$php_cxx_meta
                   97033:   b_c_post=$php_c_post
                   97034:   b_cxx_post=$php_cxx_post
                   97035:   b_lo=$php_lo
                   97036: 
                   97037: 
                   97038:   old_IFS=$IFS
                   97039:   for ac_src in tidy.c; do
                   97040: 
                   97041:       IFS=.
                   97042:       set $ac_src
                   97043:       ac_obj=$1
                   97044:       IFS=$old_IFS
                   97045: 
1.1.1.2 ! misho    97046:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    97047: 
                   97048:       case $ac_src in
                   97049:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97050:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97051:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97052:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   97053:       esac
                   97054: 
                   97055:     cat >>Makefile.objects<<EOF
                   97056: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   97057:        $ac_comp
                   97058: EOF
                   97059:   done
                   97060: 
                   97061: 
                   97062: 
                   97063: 
                   97064:   case ext/tidy in
                   97065:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   97066:   /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   97067:   *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   97068:   esac
                   97069: 
                   97070: 
                   97071: 
                   97072:   b_c_pre=$php_c_pre
                   97073:   b_cxx_pre=$php_cxx_pre
                   97074:   b_c_meta=$php_c_meta
                   97075:   b_cxx_meta=$php_cxx_meta
                   97076:   b_c_post=$php_c_post
                   97077:   b_cxx_post=$php_cxx_post
                   97078:   b_lo=$php_lo
                   97079: 
                   97080: 
                   97081:   old_IFS=$IFS
                   97082:   for ac_src in tidy.c; do
                   97083: 
                   97084:       IFS=.
                   97085:       set $ac_src
                   97086:       ac_obj=$1
                   97087:       IFS=$old_IFS
                   97088: 
1.1.1.2 ! misho    97089:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    97090: 
                   97091:       case $ac_src in
                   97092:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97093:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97094:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97095:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   97096:       esac
                   97097: 
                   97098:     cat >>Makefile.objects<<EOF
                   97099: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   97100:        $ac_comp
                   97101: EOF
                   97102:   done
                   97103: 
                   97104: 
                   97105: 
                   97106: 
                   97107:   case ext/tidy in
                   97108:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   97109:   /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   97110:   *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   97111:   esac
                   97112: 
                   97113: 
                   97114: 
                   97115:   b_c_pre=$php_c_pre
                   97116:   b_cxx_pre=$php_cxx_pre
                   97117:   b_c_meta=$php_c_meta
                   97118:   b_cxx_meta=$php_cxx_meta
                   97119:   b_c_post=$php_c_post
                   97120:   b_cxx_post=$php_cxx_post
                   97121:   b_lo=$php_lo
                   97122: 
                   97123: 
                   97124:   old_IFS=$IFS
                   97125:   for ac_src in tidy.c; do
                   97126: 
                   97127:       IFS=.
                   97128:       set $ac_src
                   97129:       ac_obj=$1
                   97130:       IFS=$old_IFS
                   97131: 
1.1.1.2 ! misho    97132:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    97133: 
                   97134:       case $ac_src in
                   97135:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97136:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97137:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97138:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   97139:       esac
                   97140: 
                   97141:     cat >>Makefile.objects<<EOF
                   97142: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   97143:        $ac_comp
                   97144: EOF
                   97145:   done
                   97146: 
                   97147: 
                   97148:     EXT_CLI_STATIC="$EXT_CLI_STATIC tidy"
                   97149:   fi
                   97150: 
                   97151: 
                   97152:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   97153: 
                   97154: 
                   97155: 
                   97156:   if test "$ext_builddir" = "."; then
                   97157:     PHP_PECL_EXTENSION=tidy
                   97158: 
                   97159:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   97160: 
                   97161:   fi
                   97162: 
                   97163: 
                   97164:   PHP_VAR_SUBST="$PHP_VAR_SUBST TIDY_SHARED_LIBADD"
                   97165: 
                   97166: 
                   97167: $as_echo "#define HAVE_TIDY 1" >>confdefs.h
                   97168: 
                   97169: fi
                   97170: 
                   97171: 
                   97172: 
                   97173: 
                   97174: php_enable_tokenizer=yes
                   97175: 
                   97176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tokenizer support" >&5
                   97177: $as_echo_n "checking whether to enable tokenizer support... " >&6; }
                   97178: # Check whether --enable-tokenizer was given.
                   97179: if test "${enable_tokenizer+set}" = set; then :
                   97180:   enableval=$enable_tokenizer; PHP_TOKENIZER=$enableval
                   97181: else
                   97182: 
                   97183:   PHP_TOKENIZER=yes
                   97184:   test "$PHP_ENABLE_ALL" && PHP_TOKENIZER=$PHP_ENABLE_ALL
                   97185: 
                   97186: fi
                   97187: 
                   97188: 
                   97189: 
                   97190: ext_output="yes, shared"
                   97191: ext_shared=yes
                   97192: case $PHP_TOKENIZER in
                   97193: shared,*)
                   97194:   PHP_TOKENIZER=`echo "$PHP_TOKENIZER"|$SED 's/^shared,//'`
                   97195:   ;;
                   97196: shared)
                   97197:   PHP_TOKENIZER=yes
                   97198:   ;;
                   97199: no)
                   97200:   ext_output=no
                   97201:   ext_shared=no
                   97202:   ;;
                   97203: *)
                   97204:   ext_output=yes
                   97205:   ext_shared=no
                   97206:   ;;
                   97207: esac
                   97208: 
                   97209: 
                   97210: 
                   97211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   97212: $as_echo "$ext_output" >&6; }
                   97213: 
                   97214: 
                   97215: 
                   97216: 
                   97217: if test "$PHP_TOKENIZER" != "no"; then
                   97218: 
                   97219:   ext_builddir=ext/tokenizer
                   97220:   ext_srcdir=$abs_srcdir/ext/tokenizer
                   97221: 
                   97222:   ac_extra=
                   97223: 
                   97224:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   97225:     PHP_TOKENIZER_SHARED=no
                   97226: 
                   97227: 
                   97228:   case ext/tokenizer in
                   97229:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   97230:   /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   97231:   *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   97232:   esac
                   97233: 
                   97234: 
                   97235: 
                   97236:   b_c_pre=$php_c_pre
                   97237:   b_cxx_pre=$php_cxx_pre
                   97238:   b_c_meta=$php_c_meta
                   97239:   b_cxx_meta=$php_cxx_meta
                   97240:   b_c_post=$php_c_post
                   97241:   b_cxx_post=$php_cxx_post
                   97242:   b_lo=$php_lo
                   97243: 
                   97244: 
                   97245:   old_IFS=$IFS
                   97246:   for ac_src in tokenizer.c tokenizer_data.c; do
                   97247: 
                   97248:       IFS=.
                   97249:       set $ac_src
                   97250:       ac_obj=$1
                   97251:       IFS=$old_IFS
                   97252: 
                   97253:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   97254: 
                   97255:       case $ac_src in
                   97256:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97257:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97258:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97259:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   97260:       esac
                   97261: 
                   97262:     cat >>Makefile.objects<<EOF
                   97263: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   97264:        $ac_comp
                   97265: EOF
                   97266:   done
                   97267: 
                   97268: 
                   97269:     EXT_STATIC="$EXT_STATIC tokenizer"
                   97270:     if test "$ext_shared" != "nocli"; then
                   97271:       EXT_CLI_STATIC="$EXT_CLI_STATIC tokenizer"
                   97272:     fi
                   97273:   else
                   97274:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   97275:       PHP_TOKENIZER_SHARED=yes
                   97276: 
                   97277:   case ext/tokenizer in
                   97278:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   97279:   /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   97280:   *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   97281:   esac
                   97282: 
                   97283: 
                   97284: 
                   97285:   b_c_pre=$shared_c_pre
                   97286:   b_cxx_pre=$shared_cxx_pre
                   97287:   b_c_meta=$shared_c_meta
                   97288:   b_cxx_meta=$shared_cxx_meta
                   97289:   b_c_post=$shared_c_post
                   97290:   b_cxx_post=$shared_cxx_post
                   97291:   b_lo=$shared_lo
                   97292: 
                   97293: 
                   97294:   old_IFS=$IFS
                   97295:   for ac_src in tokenizer.c tokenizer_data.c; do
                   97296: 
                   97297:       IFS=.
                   97298:       set $ac_src
                   97299:       ac_obj=$1
                   97300:       IFS=$old_IFS
                   97301: 
                   97302:       shared_objects_tokenizer="$shared_objects_tokenizer $ac_bdir$ac_obj.lo"
                   97303: 
                   97304:       case $ac_src in
                   97305:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97306:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97307:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97308:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   97309:       esac
                   97310: 
                   97311:     cat >>Makefile.objects<<EOF
                   97312: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   97313:        $ac_comp
                   97314: EOF
                   97315:   done
                   97316: 
                   97317:       case $host_alias in
                   97318:         *netware*)
                   97319: 
                   97320:   install_modules="install-modules"
                   97321: 
                   97322:   case $host_alias in
                   97323:     *aix*)
                   97324:       suffix=so
                   97325:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phptokenizer.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) $(PHPTOKENIZER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phptokenizer.so '$ext_builddir'/phptokenizer.so'
                   97326:       ;;
                   97327:     *netware*)
                   97328:       suffix=nlm
                   97329:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) -L$(top_builddir)/netware -lphp5lib $(TOKENIZER_SHARED_LIBADD)'
                   97330:       ;;
                   97331:     *)
                   97332:       suffix=la
                   97333:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) $(PHPTOKENIZER_SHARED_LIBADD)'
                   97334:       ;;
                   97335:   esac
                   97336: 
                   97337:   if test "x" = "xyes"; then
                   97338:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phptokenizer.$suffix"
                   97339:   else
                   97340:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phptokenizer.$suffix"
                   97341:   fi
                   97342: 
                   97343:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tokenizer"
                   97344: 
                   97345:   cat >>Makefile.objects<<EOF
                   97346: \$(phplibdir)/phptokenizer.$suffix: $ext_builddir/phptokenizer.$suffix
                   97347:        \$(LIBTOOL) --mode=install cp $ext_builddir/phptokenizer.$suffix \$(phplibdir)
                   97348: 
                   97349: $ext_builddir/phptokenizer.$suffix: \$(shared_objects_tokenizer) \$(PHPTOKENIZER_SHARED_DEPENDENCIES)
                   97350:        $link_cmd
                   97351: 
                   97352: EOF
                   97353: 
                   97354:           ;;
                   97355:         *)
                   97356: 
                   97357:   install_modules="install-modules"
                   97358: 
                   97359:   case $host_alias in
                   97360:     *aix*)
                   97361:       suffix=so
                   97362:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/tokenizer.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) $(TOKENIZER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/tokenizer.so '$ext_builddir'/tokenizer.so'
                   97363:       ;;
                   97364:     *netware*)
                   97365:       suffix=nlm
                   97366:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) -L$(top_builddir)/netware -lphp5lib $(ENIZER_SHARED_LIBADD)'
                   97367:       ;;
                   97368:     *)
                   97369:       suffix=la
                   97370:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) $(TOKENIZER_SHARED_LIBADD)'
                   97371:       ;;
                   97372:   esac
                   97373: 
                   97374:   if test "x" = "xyes"; then
                   97375:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/tokenizer.$suffix"
                   97376:   else
                   97377:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/tokenizer.$suffix"
                   97378:   fi
                   97379: 
                   97380:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tokenizer"
                   97381: 
                   97382:   cat >>Makefile.objects<<EOF
                   97383: \$(phplibdir)/tokenizer.$suffix: $ext_builddir/tokenizer.$suffix
                   97384:        \$(LIBTOOL) --mode=install cp $ext_builddir/tokenizer.$suffix \$(phplibdir)
                   97385: 
                   97386: $ext_builddir/tokenizer.$suffix: \$(shared_objects_tokenizer) \$(TOKENIZER_SHARED_DEPENDENCIES)
                   97387:        $link_cmd
                   97388: 
                   97389: EOF
                   97390: 
                   97391:           ;;
                   97392:       esac
                   97393: 
                   97394: cat >>confdefs.h <<_ACEOF
                   97395: #define COMPILE_DL_TOKENIZER 1
                   97396: _ACEOF
                   97397: 
                   97398:     fi
                   97399:   fi
                   97400: 
                   97401:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   97402:     PHP_TOKENIZER_SHARED=no
                   97403: 
                   97404: 
                   97405:   case ext/tokenizer in
                   97406:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   97407:   /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   97408:   *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   97409:   esac
                   97410: 
                   97411: 
                   97412: 
                   97413:   b_c_pre=$php_c_pre
                   97414:   b_cxx_pre=$php_cxx_pre
                   97415:   b_c_meta=$php_c_meta
                   97416:   b_cxx_meta=$php_cxx_meta
                   97417:   b_c_post=$php_c_post
                   97418:   b_cxx_post=$php_cxx_post
                   97419:   b_lo=$php_lo
                   97420: 
                   97421: 
                   97422:   old_IFS=$IFS
                   97423:   for ac_src in tokenizer.c tokenizer_data.c; do
                   97424: 
                   97425:       IFS=.
                   97426:       set $ac_src
                   97427:       ac_obj=$1
                   97428:       IFS=$old_IFS
                   97429: 
1.1.1.2 ! misho    97430:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    97431: 
                   97432:       case $ac_src in
                   97433:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97434:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97435:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97436:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   97437:       esac
                   97438: 
                   97439:     cat >>Makefile.objects<<EOF
                   97440: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   97441:        $ac_comp
                   97442: EOF
                   97443:   done
                   97444: 
                   97445: 
                   97446: 
                   97447: 
                   97448:   case ext/tokenizer in
                   97449:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   97450:   /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   97451:   *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   97452:   esac
                   97453: 
                   97454: 
                   97455: 
                   97456:   b_c_pre=$php_c_pre
                   97457:   b_cxx_pre=$php_cxx_pre
                   97458:   b_c_meta=$php_c_meta
                   97459:   b_cxx_meta=$php_cxx_meta
                   97460:   b_c_post=$php_c_post
                   97461:   b_cxx_post=$php_cxx_post
                   97462:   b_lo=$php_lo
                   97463: 
                   97464: 
                   97465:   old_IFS=$IFS
                   97466:   for ac_src in tokenizer.c tokenizer_data.c; do
                   97467: 
                   97468:       IFS=.
                   97469:       set $ac_src
                   97470:       ac_obj=$1
                   97471:       IFS=$old_IFS
                   97472: 
1.1.1.2 ! misho    97473:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    97474: 
                   97475:       case $ac_src in
                   97476:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97477:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97478:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97479:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   97480:       esac
                   97481: 
                   97482:     cat >>Makefile.objects<<EOF
                   97483: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   97484:        $ac_comp
                   97485: EOF
                   97486:   done
                   97487: 
                   97488: 
                   97489: 
                   97490: 
                   97491:   case ext/tokenizer in
                   97492:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   97493:   /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   97494:   *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   97495:   esac
                   97496: 
                   97497: 
                   97498: 
                   97499:   b_c_pre=$php_c_pre
                   97500:   b_cxx_pre=$php_cxx_pre
                   97501:   b_c_meta=$php_c_meta
                   97502:   b_cxx_meta=$php_cxx_meta
                   97503:   b_c_post=$php_c_post
                   97504:   b_cxx_post=$php_cxx_post
                   97505:   b_lo=$php_lo
                   97506: 
                   97507: 
                   97508:   old_IFS=$IFS
                   97509:   for ac_src in tokenizer.c tokenizer_data.c; do
                   97510: 
                   97511:       IFS=.
                   97512:       set $ac_src
                   97513:       ac_obj=$1
                   97514:       IFS=$old_IFS
                   97515: 
1.1.1.2 ! misho    97516:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    97517: 
                   97518:       case $ac_src in
                   97519:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97520:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97521:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97522:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   97523:       esac
                   97524: 
                   97525:     cat >>Makefile.objects<<EOF
                   97526: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   97527:        $ac_comp
                   97528: EOF
                   97529:   done
                   97530: 
                   97531: 
                   97532:     EXT_CLI_STATIC="$EXT_CLI_STATIC tokenizer"
                   97533:   fi
                   97534: 
                   97535: 
                   97536:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   97537: 
                   97538: 
                   97539: 
                   97540:   if test "$ext_builddir" = "."; then
                   97541:     PHP_PECL_EXTENSION=tokenizer
                   97542: 
                   97543:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   97544: 
                   97545:   fi
                   97546: 
                   97547: 
                   97548:   src=$ext_srcdir/Makefile.frag
                   97549:   ac_srcdir=$ext_srcdir
                   97550:   ac_builddir=$ext_builddir
                   97551:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
                   97552: 
                   97553: fi
                   97554: 
                   97555: 
                   97556: 
                   97557: php_enable_wddx=no
                   97558: 
                   97559: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable WDDX support" >&5
                   97560: $as_echo_n "checking whether to enable WDDX support... " >&6; }
                   97561: # Check whether --enable-wddx was given.
                   97562: if test "${enable_wddx+set}" = set; then :
                   97563:   enableval=$enable_wddx; PHP_WDDX=$enableval
                   97564: else
                   97565: 
                   97566:   PHP_WDDX=no
                   97567:   test "$PHP_ENABLE_ALL" && PHP_WDDX=$PHP_ENABLE_ALL
                   97568: 
                   97569: fi
                   97570: 
                   97571: 
                   97572: 
                   97573: ext_output="yes, shared"
                   97574: ext_shared=yes
                   97575: case $PHP_WDDX in
                   97576: shared,*)
                   97577:   PHP_WDDX=`echo "$PHP_WDDX"|$SED 's/^shared,//'`
                   97578:   ;;
                   97579: shared)
                   97580:   PHP_WDDX=yes
                   97581:   ;;
                   97582: no)
                   97583:   ext_output=no
                   97584:   ext_shared=no
                   97585:   ;;
                   97586: *)
                   97587:   ext_output=yes
                   97588:   ext_shared=no
                   97589:   ;;
                   97590: esac
                   97591: 
                   97592: 
                   97593: 
                   97594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   97595: $as_echo "$ext_output" >&6; }
                   97596: 
                   97597: 
                   97598: 
                   97599: 
                   97600: if test -z "$PHP_LIBXML_DIR"; then
                   97601: 
                   97602: php_with_libxml_dir=no
                   97603: 
                   97604: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
                   97605: $as_echo_n "checking libxml2 install dir... " >&6; }
                   97606: 
                   97607: # Check whether --with-libxml-dir was given.
                   97608: if test "${with_libxml_dir+set}" = set; then :
                   97609:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
                   97610: else
                   97611: 
                   97612:   PHP_LIBXML_DIR=no
                   97613: 
                   97614: 
                   97615: fi
                   97616: 
                   97617: 
                   97618: ext_output=$PHP_LIBXML_DIR
                   97619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   97620: $as_echo "$ext_output" >&6; }
                   97621: 
                   97622: 
                   97623: 
                   97624: fi
                   97625: 
                   97626: 
                   97627: php_with_libexpat_dir=no
                   97628: 
                   97629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat dir for WDDX" >&5
                   97630: $as_echo_n "checking libexpat dir for WDDX... " >&6; }
                   97631: 
                   97632: # Check whether --with-libexpat-dir was given.
                   97633: if test "${with_libexpat_dir+set}" = set; then :
                   97634:   withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
                   97635: else
                   97636: 
                   97637:   PHP_LIBEXPAT_DIR=no
                   97638: 
                   97639: 
                   97640: fi
                   97641: 
                   97642: 
                   97643: ext_output=$PHP_LIBEXPAT_DIR
                   97644: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   97645: $as_echo "$ext_output" >&6; }
                   97646: 
                   97647: 
                   97648: 
                   97649: 
                   97650: if test "$PHP_WDDX" != "no"; then
                   97651: 
                   97652:         if test "$PHP_LIBEXPAT_DIR" = "no"; then
                   97653:     if test "$PHP_LIBXML" = "no"; then
                   97654:       as_fn_error $? "WDDX extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
                   97655:     fi
                   97656: 
                   97657: 
                   97658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
                   97659: $as_echo_n "checking for xml2-config path... " >&6; }
                   97660: if ${ac_cv_php_xml2_config_path+:} false; then :
                   97661:   $as_echo_n "(cached) " >&6
                   97662: else
                   97663: 
                   97664:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
                   97665:     if test -x "$i/bin/xml2-config"; then
                   97666:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
                   97667:       break
                   97668:     fi
                   97669:   done
                   97670: 
                   97671: fi
                   97672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
                   97673: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
                   97674: 
                   97675:   if test -x "$ac_cv_php_xml2_config_path"; then
                   97676:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
                   97677:     libxml_full_version=`$XML2_CONFIG --version`
                   97678:     ac_IFS=$IFS
                   97679:     IFS="."
                   97680:     set $libxml_full_version
                   97681:     IFS=$ac_IFS
                   97682:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
                   97683:     if test "$LIBXML_VERSION" -ge "2006011"; then
                   97684:       LIBXML_LIBS=`$XML2_CONFIG --libs`
                   97685:       LIBXML_INCS=`$XML2_CONFIG --cflags`
                   97686: 
                   97687:   for ac_i in $LIBXML_LIBS; do
                   97688:     case $ac_i in
                   97689:     -pthread)
                   97690:       if test "$ext_shared" = "yes"; then
                   97691:         WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -pthread"
                   97692:       else
                   97693: 
                   97694: 
                   97695:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   97696: 
                   97697:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   97698:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   97699:     eval "EXTRA_LDFLAGS$unique=set"
                   97700:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   97701:   fi
                   97702: 
                   97703:       fi
                   97704:     ;;
                   97705:     -l*)
                   97706:       ac_ii=`echo $ac_i|cut -c 3-`
                   97707: 
                   97708: 
                   97709:   case $ac_ii in
                   97710:   c|c_r|pthread*) ;;
                   97711:   *)
                   97712:     if test "$ext_shared" = "yes"; then
                   97713:         WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -l$ac_ii"
                   97714:     else
                   97715: 
                   97716: 
                   97717:   case $ac_ii in
                   97718:   c|c_r|pthread*) ;;
                   97719:   *)
                   97720:       LIBS="$LIBS -l$ac_ii"
                   97721:    ;;
                   97722:   esac
                   97723: 
                   97724: 
                   97725:     fi
                   97726:    ;;
                   97727:   esac
                   97728: 
                   97729: 
                   97730:     ;;
                   97731:     -L*)
                   97732:       ac_ii=`echo $ac_i|cut -c 3-`
                   97733: 
                   97734:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   97735: 
                   97736:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   97737:     ai_p=$ac_ii
                   97738:   else
                   97739: 
                   97740:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   97741: 
                   97742:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   97743:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   97744:   fi
                   97745: 
                   97746: 
                   97747:       if test "$ext_shared" = "yes"; then
                   97748:         WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD"
                   97749:         test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD"
                   97750:       else
                   97751: 
                   97752: 
                   97753: 
                   97754:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   97755: 
                   97756:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   97757:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   97758:     eval "LIBPATH$unique=set"
                   97759: 
                   97760:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   97761:     LDFLAGS="$LDFLAGS -L$ai_p"
                   97762:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   97763: 
                   97764:   fi
                   97765: 
                   97766: 
                   97767:       fi
                   97768: 
                   97769:   fi
                   97770: 
                   97771:     ;;
                   97772:     esac
                   97773:   done
                   97774: 
                   97775: 
                   97776:   for ac_i in $LIBXML_INCS; do
                   97777:     case $ac_i in
                   97778:     -I*)
                   97779:       ac_ii=`echo $ac_i|cut -c 3-`
                   97780: 
                   97781:   if test "$ac_ii" != "/usr/include"; then
                   97782: 
                   97783:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   97784:     ai_p=$ac_ii
                   97785:   else
                   97786: 
                   97787:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   97788: 
                   97789:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   97790:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   97791:   fi
                   97792: 
                   97793: 
                   97794: 
                   97795:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   97796: 
                   97797:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   97798:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   97799:     eval "INCLUDEPATH$unique=set"
                   97800: 
                   97801:       if test ""; then
                   97802:         INCLUDES="-I$ai_p $INCLUDES"
                   97803:       else
                   97804:         INCLUDES="$INCLUDES -I$ai_p"
                   97805:       fi
                   97806: 
                   97807:   fi
                   97808: 
                   97809:   fi
                   97810: 
                   97811:     ;;
                   97812:     esac
                   97813:   done
                   97814: 
                   97815: 
                   97816:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
                   97817: $as_echo_n "checking whether libxml build works... " >&6; }
                   97818: if ${php_cv_libxml_build_works+:} false; then :
                   97819:   $as_echo_n "(cached) " >&6
                   97820: else
                   97821: 
                   97822: 
                   97823:   old_LIBS=$LIBS
                   97824:   LIBS="
                   97825:           $WDDX_SHARED_LIBADD
                   97826:          $LIBS"
                   97827:   if test "$cross_compiling" = yes; then :
                   97828: 
                   97829:     LIBS=$old_LIBS
                   97830: 
                   97831: else
                   97832:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   97833: /* end confdefs.h.  */
                   97834: 
                   97835: 
                   97836:     char xmlInitParser();
                   97837:     int main() {
                   97838:       xmlInitParser();
                   97839:       return 0;
                   97840:     }
                   97841: 
                   97842: _ACEOF
                   97843: if ac_fn_c_try_run "$LINENO"; then :
                   97844: 
                   97845:     LIBS=$old_LIBS
                   97846: 
                   97847:           php_cv_libxml_build_works=yes
                   97848: 
                   97849: 
                   97850: else
                   97851: 
                   97852:     LIBS=$old_LIBS
                   97853: 
                   97854:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   97855: $as_echo "no" >&6; }
                   97856:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
                   97857: 
                   97858: 
                   97859: fi
                   97860: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   97861:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   97862: fi
                   97863: 
                   97864: 
                   97865: 
                   97866: fi
                   97867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
                   97868: $as_echo "$php_cv_libxml_build_works" >&6; }
                   97869:       if test "$php_cv_libxml_build_works" = "yes"; then
                   97870: 
                   97871: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
                   97872: 
                   97873:       fi
                   97874: 
                   97875:       if test "$PHP_XML" = "no"; then
                   97876: 
                   97877: 
                   97878:   case ext/xml in
                   97879:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   97880:   /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   97881:   *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   97882:   esac
                   97883: 
                   97884: 
                   97885: 
                   97886:   b_c_pre=$php_c_pre
                   97887:   b_cxx_pre=$php_cxx_pre
                   97888:   b_c_meta=$php_c_meta
                   97889:   b_cxx_meta=$php_cxx_meta
                   97890:   b_c_post=$php_c_post
                   97891:   b_cxx_post=$php_cxx_post
                   97892:   b_lo=$php_lo
                   97893: 
                   97894: 
                   97895:   old_IFS=$IFS
                   97896:   for ac_src in compat.c; do
                   97897: 
                   97898:       IFS=.
                   97899:       set $ac_src
                   97900:       ac_obj=$1
                   97901:       IFS=$old_IFS
                   97902: 
                   97903:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   97904: 
                   97905:       case $ac_src in
                   97906:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97907:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97908:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   97909:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   97910:       esac
                   97911: 
                   97912:     cat >>Makefile.objects<<EOF
                   97913: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   97914:        $ac_comp
                   97915: EOF
                   97916:   done
                   97917: 
                   97918: 
                   97919: 
                   97920: 
                   97921:     BUILD_DIR="$BUILD_DIR ext/xml"
                   97922: 
                   97923: 
                   97924:       fi
                   97925: 
                   97926:     else
                   97927:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
                   97928:     fi
                   97929: else
                   97930:       as_fn_error $? "xml2-config not found. Use --with-libxml-dir=<DIR>" "$LINENO" 5
                   97931: 
                   97932:   fi
                   97933: 
                   97934:   fi
                   97935: 
                   97936:         if test "$PHP_LIBEXPAT_DIR" != "no"; then
                   97937:     for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do
                   97938:       if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then
                   97939:         EXPAT_DIR=$i
                   97940:         break
                   97941:       fi
                   97942:     done
                   97943: 
                   97944:     if test -z "$EXPAT_DIR"; then
                   97945:       as_fn_error $? "not found. Please reinstall the expat distribution." "$LINENO" 5
                   97946:     fi
                   97947: 
                   97948: 
                   97949:   if test "$EXPAT_DIR/include" != "/usr/include"; then
                   97950: 
                   97951:   if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then
                   97952:     ai_p=$EXPAT_DIR/include
                   97953:   else
                   97954: 
                   97955:     ep_dir="`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   97956: 
                   97957:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   97958:     ai_p="$ep_realdir/`basename \"$EXPAT_DIR/include\"`"
                   97959:   fi
                   97960: 
                   97961: 
                   97962: 
                   97963:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   97964: 
                   97965:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   97966:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   97967:     eval "INCLUDEPATH$unique=set"
                   97968: 
                   97969:       if test ""; then
                   97970:         INCLUDES="-I$ai_p $INCLUDES"
                   97971:       else
                   97972:         INCLUDES="$INCLUDES -I$ai_p"
                   97973:       fi
                   97974: 
                   97975:   fi
                   97976: 
                   97977:   fi
                   97978: 
                   97979: 
                   97980: 
                   97981:   if test "$ext_shared" = "yes"; then
                   97982:     WDDX_SHARED_LIBADD="-lexpat $WDDX_SHARED_LIBADD"
                   97983:     if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
                   97984: 
                   97985:   if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   97986: 
                   97987:   if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   97988:     ai_p=$EXPAT_DIR/$PHP_LIBDIR
                   97989:   else
                   97990: 
                   97991:     ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   97992: 
                   97993:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   97994:     ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
                   97995:   fi
                   97996: 
                   97997: 
                   97998:       if test "$ext_shared" = "yes"; then
                   97999:         WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD"
                   98000:         test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD"
                   98001:       else
                   98002: 
                   98003: 
                   98004: 
                   98005:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   98006: 
                   98007:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   98008:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   98009:     eval "LIBPATH$unique=set"
                   98010: 
                   98011:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   98012:     LDFLAGS="$LDFLAGS -L$ai_p"
                   98013:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   98014: 
                   98015:   fi
                   98016: 
                   98017: 
                   98018:       fi
                   98019: 
                   98020:   fi
                   98021: 
                   98022:     fi
                   98023:   else
                   98024: 
                   98025: 
                   98026:   if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
                   98027: 
                   98028:   if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   98029: 
                   98030:   if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   98031:     ai_p=$EXPAT_DIR/$PHP_LIBDIR
                   98032:   else
                   98033: 
                   98034:     ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   98035: 
                   98036:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   98037:     ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
                   98038:   fi
                   98039: 
                   98040: 
                   98041: 
                   98042: 
                   98043: 
                   98044:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   98045: 
                   98046:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   98047:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   98048:     eval "LIBPATH$unique=set"
                   98049: 
                   98050:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   98051:     LDFLAGS="$LDFLAGS -L$ai_p"
                   98052:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   98053: 
                   98054:   fi
                   98055: 
                   98056: 
                   98057: 
                   98058:   fi
                   98059: 
                   98060:   fi
                   98061: 
                   98062: 
                   98063:   case expat in
                   98064:   c|c_r|pthread*) ;;
                   98065:   *)
                   98066:       LIBS="-lexpat $LIBS"
                   98067:    ;;
                   98068:   esac
                   98069: 
                   98070: 
                   98071: 
                   98072: 
                   98073:   fi
                   98074: 
                   98075: 
                   98076: 
                   98077: $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
                   98078: 
                   98079:   fi
                   98080: 
                   98081: 
                   98082: $as_echo "#define HAVE_WDDX 1" >>confdefs.h
                   98083: 
                   98084: 
                   98085:   ext_builddir=ext/wddx
                   98086:   ext_srcdir=$abs_srcdir/ext/wddx
                   98087: 
                   98088:   ac_extra=
                   98089: 
                   98090:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   98091:     PHP_WDDX_SHARED=no
                   98092: 
                   98093: 
                   98094:   case ext/wddx in
                   98095:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   98096:   /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   98097:   *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   98098:   esac
                   98099: 
                   98100: 
                   98101: 
                   98102:   b_c_pre=$php_c_pre
                   98103:   b_cxx_pre=$php_cxx_pre
                   98104:   b_c_meta=$php_c_meta
                   98105:   b_cxx_meta=$php_cxx_meta
                   98106:   b_c_post=$php_c_post
                   98107:   b_cxx_post=$php_cxx_post
                   98108:   b_lo=$php_lo
                   98109: 
                   98110: 
                   98111:   old_IFS=$IFS
                   98112:   for ac_src in wddx.c; do
                   98113: 
                   98114:       IFS=.
                   98115:       set $ac_src
                   98116:       ac_obj=$1
                   98117:       IFS=$old_IFS
                   98118: 
                   98119:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   98120: 
                   98121:       case $ac_src in
                   98122:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98123:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98124:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98125:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   98126:       esac
                   98127: 
                   98128:     cat >>Makefile.objects<<EOF
                   98129: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   98130:        $ac_comp
                   98131: EOF
                   98132:   done
                   98133: 
                   98134: 
                   98135:     EXT_STATIC="$EXT_STATIC wddx"
                   98136:     if test "$ext_shared" != "nocli"; then
                   98137:       EXT_CLI_STATIC="$EXT_CLI_STATIC wddx"
                   98138:     fi
                   98139:   else
                   98140:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   98141:       PHP_WDDX_SHARED=yes
                   98142: 
                   98143:   case ext/wddx in
                   98144:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   98145:   /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   98146:   *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   98147:   esac
                   98148: 
                   98149: 
                   98150: 
                   98151:   b_c_pre=$shared_c_pre
                   98152:   b_cxx_pre=$shared_cxx_pre
                   98153:   b_c_meta=$shared_c_meta
                   98154:   b_cxx_meta=$shared_cxx_meta
                   98155:   b_c_post=$shared_c_post
                   98156:   b_cxx_post=$shared_cxx_post
                   98157:   b_lo=$shared_lo
                   98158: 
                   98159: 
                   98160:   old_IFS=$IFS
                   98161:   for ac_src in wddx.c; do
                   98162: 
                   98163:       IFS=.
                   98164:       set $ac_src
                   98165:       ac_obj=$1
                   98166:       IFS=$old_IFS
                   98167: 
                   98168:       shared_objects_wddx="$shared_objects_wddx $ac_bdir$ac_obj.lo"
                   98169: 
                   98170:       case $ac_src in
                   98171:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98172:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98173:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98174:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   98175:       esac
                   98176: 
                   98177:     cat >>Makefile.objects<<EOF
                   98178: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   98179:        $ac_comp
                   98180: EOF
                   98181:   done
                   98182: 
                   98183:       case $host_alias in
                   98184:         *netware*)
                   98185: 
                   98186:   install_modules="install-modules"
                   98187: 
                   98188:   case $host_alias in
                   98189:     *aix*)
                   98190:       suffix=so
                   98191:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpwddx.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) $(PHPWDDX_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpwddx.so '$ext_builddir'/phpwddx.so'
                   98192:       ;;
                   98193:     *netware*)
                   98194:       suffix=nlm
                   98195:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) -L$(top_builddir)/netware -lphp5lib $(WDDX_SHARED_LIBADD)'
                   98196:       ;;
                   98197:     *)
                   98198:       suffix=la
                   98199:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) $(PHPWDDX_SHARED_LIBADD)'
                   98200:       ;;
                   98201:   esac
                   98202: 
                   98203:   if test "x" = "xyes"; then
                   98204:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpwddx.$suffix"
                   98205:   else
                   98206:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpwddx.$suffix"
                   98207:   fi
                   98208: 
                   98209:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_wddx"
                   98210: 
                   98211:   cat >>Makefile.objects<<EOF
                   98212: \$(phplibdir)/phpwddx.$suffix: $ext_builddir/phpwddx.$suffix
                   98213:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpwddx.$suffix \$(phplibdir)
                   98214: 
                   98215: $ext_builddir/phpwddx.$suffix: \$(shared_objects_wddx) \$(PHPWDDX_SHARED_DEPENDENCIES)
                   98216:        $link_cmd
                   98217: 
                   98218: EOF
                   98219: 
                   98220:           ;;
                   98221:         *)
                   98222: 
                   98223:   install_modules="install-modules"
                   98224: 
                   98225:   case $host_alias in
                   98226:     *aix*)
                   98227:       suffix=so
                   98228:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/wddx.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) $(WDDX_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/wddx.so '$ext_builddir'/wddx.so'
                   98229:       ;;
                   98230:     *netware*)
                   98231:       suffix=nlm
                   98232:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) -L$(top_builddir)/netware -lphp5lib $(X_SHARED_LIBADD)'
                   98233:       ;;
                   98234:     *)
                   98235:       suffix=la
                   98236:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) $(WDDX_SHARED_LIBADD)'
                   98237:       ;;
                   98238:   esac
                   98239: 
                   98240:   if test "x" = "xyes"; then
                   98241:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/wddx.$suffix"
                   98242:   else
                   98243:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/wddx.$suffix"
                   98244:   fi
                   98245: 
                   98246:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_wddx"
                   98247: 
                   98248:   cat >>Makefile.objects<<EOF
                   98249: \$(phplibdir)/wddx.$suffix: $ext_builddir/wddx.$suffix
                   98250:        \$(LIBTOOL) --mode=install cp $ext_builddir/wddx.$suffix \$(phplibdir)
                   98251: 
                   98252: $ext_builddir/wddx.$suffix: \$(shared_objects_wddx) \$(WDDX_SHARED_DEPENDENCIES)
                   98253:        $link_cmd
                   98254: 
                   98255: EOF
                   98256: 
                   98257:           ;;
                   98258:       esac
                   98259: 
                   98260: cat >>confdefs.h <<_ACEOF
                   98261: #define COMPILE_DL_WDDX 1
                   98262: _ACEOF
                   98263: 
                   98264:     fi
                   98265:   fi
                   98266: 
                   98267:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   98268:     PHP_WDDX_SHARED=no
                   98269: 
                   98270: 
                   98271:   case ext/wddx in
                   98272:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   98273:   /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   98274:   *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   98275:   esac
                   98276: 
                   98277: 
                   98278: 
                   98279:   b_c_pre=$php_c_pre
                   98280:   b_cxx_pre=$php_cxx_pre
                   98281:   b_c_meta=$php_c_meta
                   98282:   b_cxx_meta=$php_cxx_meta
                   98283:   b_c_post=$php_c_post
                   98284:   b_cxx_post=$php_cxx_post
                   98285:   b_lo=$php_lo
                   98286: 
                   98287: 
                   98288:   old_IFS=$IFS
                   98289:   for ac_src in wddx.c; do
                   98290: 
                   98291:       IFS=.
                   98292:       set $ac_src
                   98293:       ac_obj=$1
                   98294:       IFS=$old_IFS
                   98295: 
1.1.1.2 ! misho    98296:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    98297: 
                   98298:       case $ac_src in
                   98299:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98300:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98301:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98302:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   98303:       esac
                   98304: 
                   98305:     cat >>Makefile.objects<<EOF
                   98306: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   98307:        $ac_comp
                   98308: EOF
                   98309:   done
                   98310: 
                   98311: 
                   98312: 
                   98313: 
                   98314:   case ext/wddx in
                   98315:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   98316:   /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   98317:   *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   98318:   esac
                   98319: 
                   98320: 
                   98321: 
                   98322:   b_c_pre=$php_c_pre
                   98323:   b_cxx_pre=$php_cxx_pre
                   98324:   b_c_meta=$php_c_meta
                   98325:   b_cxx_meta=$php_cxx_meta
                   98326:   b_c_post=$php_c_post
                   98327:   b_cxx_post=$php_cxx_post
                   98328:   b_lo=$php_lo
                   98329: 
                   98330: 
                   98331:   old_IFS=$IFS
                   98332:   for ac_src in wddx.c; do
                   98333: 
                   98334:       IFS=.
                   98335:       set $ac_src
                   98336:       ac_obj=$1
                   98337:       IFS=$old_IFS
                   98338: 
1.1.1.2 ! misho    98339:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    98340: 
                   98341:       case $ac_src in
                   98342:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98343:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98344:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98345:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   98346:       esac
                   98347: 
                   98348:     cat >>Makefile.objects<<EOF
                   98349: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   98350:        $ac_comp
                   98351: EOF
                   98352:   done
                   98353: 
                   98354: 
                   98355: 
                   98356: 
                   98357:   case ext/wddx in
                   98358:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   98359:   /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   98360:   *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   98361:   esac
                   98362: 
                   98363: 
                   98364: 
                   98365:   b_c_pre=$php_c_pre
                   98366:   b_cxx_pre=$php_cxx_pre
                   98367:   b_c_meta=$php_c_meta
                   98368:   b_cxx_meta=$php_cxx_meta
                   98369:   b_c_post=$php_c_post
                   98370:   b_cxx_post=$php_cxx_post
                   98371:   b_lo=$php_lo
                   98372: 
                   98373: 
                   98374:   old_IFS=$IFS
                   98375:   for ac_src in wddx.c; do
                   98376: 
                   98377:       IFS=.
                   98378:       set $ac_src
                   98379:       ac_obj=$1
                   98380:       IFS=$old_IFS
                   98381: 
1.1.1.2 ! misho    98382:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    98383: 
                   98384:       case $ac_src in
                   98385:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98386:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98387:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98388:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   98389:       esac
                   98390: 
                   98391:     cat >>Makefile.objects<<EOF
                   98392: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   98393:        $ac_comp
                   98394: EOF
                   98395:   done
                   98396: 
                   98397: 
                   98398:     EXT_CLI_STATIC="$EXT_CLI_STATIC wddx"
                   98399:   fi
                   98400: 
                   98401: 
                   98402:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   98403: 
                   98404: 
                   98405: 
                   98406:   if test "$ext_builddir" = "."; then
                   98407:     PHP_PECL_EXTENSION=wddx
                   98408: 
                   98409:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   98410: 
                   98411:   fi
                   98412: 
                   98413: 
                   98414:   am_i_shared=$PHP_WDDX_SHARED
                   98415:   is_it_shared=$PHP_LIBXML_SHARED
                   98416:   is_it_enabled=$PHP_LIBXML
                   98417:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   98418:     as_fn_error $? "
                   98419: You've configured extension wddx to build statically, but it
                   98420: depends on extension libxml, which you've configured to build shared.
                   98421: You either need to build wddx shared or build libxml statically for the
                   98422: build to be successful.
                   98423: " "$LINENO" 5
                   98424:   fi
                   98425: 
                   98426: 
                   98427:   PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD"
                   98428: 
                   98429: fi
                   98430: 
                   98431: 
                   98432: 
                   98433: php_enable_xml=yes
                   98434: 
                   98435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XML support" >&5
                   98436: $as_echo_n "checking whether to enable XML support... " >&6; }
                   98437: # Check whether --enable-xml was given.
                   98438: if test "${enable_xml+set}" = set; then :
                   98439:   enableval=$enable_xml; PHP_XML=$enableval
                   98440: else
                   98441: 
                   98442:   PHP_XML=yes
                   98443:   test "$PHP_ENABLE_ALL" && PHP_XML=$PHP_ENABLE_ALL
                   98444: 
                   98445: fi
                   98446: 
                   98447: 
                   98448: 
                   98449: ext_output="yes, shared"
                   98450: ext_shared=yes
                   98451: case $PHP_XML in
                   98452: shared,*)
                   98453:   PHP_XML=`echo "$PHP_XML"|$SED 's/^shared,//'`
                   98454:   ;;
                   98455: shared)
                   98456:   PHP_XML=yes
                   98457:   ;;
                   98458: no)
                   98459:   ext_output=no
                   98460:   ext_shared=no
                   98461:   ;;
                   98462: *)
                   98463:   ext_output=yes
                   98464:   ext_shared=no
                   98465:   ;;
                   98466: esac
                   98467: 
                   98468: 
                   98469: 
                   98470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   98471: $as_echo "$ext_output" >&6; }
                   98472: 
                   98473: 
                   98474: 
                   98475: 
                   98476: if test -z "$PHP_LIBXML_DIR"; then
                   98477: 
                   98478: php_with_libxml_dir=no
                   98479: 
                   98480: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
                   98481: $as_echo_n "checking libxml2 install dir... " >&6; }
                   98482: 
                   98483: # Check whether --with-libxml-dir was given.
                   98484: if test "${with_libxml_dir+set}" = set; then :
                   98485:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
                   98486: else
                   98487: 
                   98488:   PHP_LIBXML_DIR=no
                   98489: 
                   98490: 
                   98491: fi
                   98492: 
                   98493: 
                   98494: ext_output=$PHP_LIBXML_DIR
                   98495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   98496: $as_echo "$ext_output" >&6; }
                   98497: 
                   98498: 
                   98499: 
                   98500: fi
                   98501: 
                   98502: 
                   98503: php_with_libexpat_dir=no
                   98504: 
                   98505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat install dir" >&5
                   98506: $as_echo_n "checking libexpat install dir... " >&6; }
                   98507: 
                   98508: # Check whether --with-libexpat-dir was given.
                   98509: if test "${with_libexpat_dir+set}" = set; then :
                   98510:   withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
                   98511: else
                   98512: 
                   98513:   PHP_LIBEXPAT_DIR=no
                   98514: 
                   98515: 
                   98516: fi
                   98517: 
                   98518: 
                   98519: ext_output=$PHP_LIBEXPAT_DIR
                   98520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   98521: $as_echo "$ext_output" >&6; }
                   98522: 
                   98523: 
                   98524: 
                   98525: 
                   98526: if test "$PHP_XML" != "no"; then
                   98527: 
                   98528:         if test "$PHP_LIBEXPAT_DIR" = "no"; then
                   98529: 
                   98530:     if test "$PHP_LIBXML" = "no"; then
                   98531:       as_fn_error $? "XML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
                   98532:     fi
                   98533: 
                   98534: 
                   98535: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
                   98536: $as_echo_n "checking for xml2-config path... " >&6; }
                   98537: if ${ac_cv_php_xml2_config_path+:} false; then :
                   98538:   $as_echo_n "(cached) " >&6
                   98539: else
                   98540: 
                   98541:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
                   98542:     if test -x "$i/bin/xml2-config"; then
                   98543:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
                   98544:       break
                   98545:     fi
                   98546:   done
                   98547: 
                   98548: fi
                   98549: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
                   98550: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
                   98551: 
                   98552:   if test -x "$ac_cv_php_xml2_config_path"; then
                   98553:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
                   98554:     libxml_full_version=`$XML2_CONFIG --version`
                   98555:     ac_IFS=$IFS
                   98556:     IFS="."
                   98557:     set $libxml_full_version
                   98558:     IFS=$ac_IFS
                   98559:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
                   98560:     if test "$LIBXML_VERSION" -ge "2006011"; then
                   98561:       LIBXML_LIBS=`$XML2_CONFIG --libs`
                   98562:       LIBXML_INCS=`$XML2_CONFIG --cflags`
                   98563: 
                   98564:   for ac_i in $LIBXML_LIBS; do
                   98565:     case $ac_i in
                   98566:     -pthread)
                   98567:       if test "$ext_shared" = "yes"; then
                   98568:         XML_SHARED_LIBADD="$XML_SHARED_LIBADD -pthread"
                   98569:       else
                   98570: 
                   98571: 
                   98572:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   98573: 
                   98574:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   98575:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   98576:     eval "EXTRA_LDFLAGS$unique=set"
                   98577:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   98578:   fi
                   98579: 
                   98580:       fi
                   98581:     ;;
                   98582:     -l*)
                   98583:       ac_ii=`echo $ac_i|cut -c 3-`
                   98584: 
                   98585: 
                   98586:   case $ac_ii in
                   98587:   c|c_r|pthread*) ;;
                   98588:   *)
                   98589:     if test "$ext_shared" = "yes"; then
                   98590:         XML_SHARED_LIBADD="$XML_SHARED_LIBADD -l$ac_ii"
                   98591:     else
                   98592: 
                   98593: 
                   98594:   case $ac_ii in
                   98595:   c|c_r|pthread*) ;;
                   98596:   *)
                   98597:       LIBS="$LIBS -l$ac_ii"
                   98598:    ;;
                   98599:   esac
                   98600: 
                   98601: 
                   98602:     fi
                   98603:    ;;
                   98604:   esac
                   98605: 
                   98606: 
                   98607:     ;;
                   98608:     -L*)
                   98609:       ac_ii=`echo $ac_i|cut -c 3-`
                   98610: 
                   98611:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   98612: 
                   98613:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   98614:     ai_p=$ac_ii
                   98615:   else
                   98616: 
                   98617:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   98618: 
                   98619:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   98620:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   98621:   fi
                   98622: 
                   98623: 
                   98624:       if test "$ext_shared" = "yes"; then
                   98625:         XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD"
                   98626:         test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD"
                   98627:       else
                   98628: 
                   98629: 
                   98630: 
                   98631:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   98632: 
                   98633:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   98634:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   98635:     eval "LIBPATH$unique=set"
                   98636: 
                   98637:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   98638:     LDFLAGS="$LDFLAGS -L$ai_p"
                   98639:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   98640: 
                   98641:   fi
                   98642: 
                   98643: 
                   98644:       fi
                   98645: 
                   98646:   fi
                   98647: 
                   98648:     ;;
                   98649:     esac
                   98650:   done
                   98651: 
                   98652: 
                   98653:   for ac_i in $LIBXML_INCS; do
                   98654:     case $ac_i in
                   98655:     -I*)
                   98656:       ac_ii=`echo $ac_i|cut -c 3-`
                   98657: 
                   98658:   if test "$ac_ii" != "/usr/include"; then
                   98659: 
                   98660:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   98661:     ai_p=$ac_ii
                   98662:   else
                   98663: 
                   98664:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   98665: 
                   98666:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   98667:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   98668:   fi
                   98669: 
                   98670: 
                   98671: 
                   98672:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   98673: 
                   98674:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   98675:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   98676:     eval "INCLUDEPATH$unique=set"
                   98677: 
                   98678:       if test ""; then
                   98679:         INCLUDES="-I$ai_p $INCLUDES"
                   98680:       else
                   98681:         INCLUDES="$INCLUDES -I$ai_p"
                   98682:       fi
                   98683: 
                   98684:   fi
                   98685: 
                   98686:   fi
                   98687: 
                   98688:     ;;
                   98689:     esac
                   98690:   done
                   98691: 
                   98692: 
                   98693:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
                   98694: $as_echo_n "checking whether libxml build works... " >&6; }
                   98695: if ${php_cv_libxml_build_works+:} false; then :
                   98696:   $as_echo_n "(cached) " >&6
                   98697: else
                   98698: 
                   98699: 
                   98700:   old_LIBS=$LIBS
                   98701:   LIBS="
                   98702:           $XML_SHARED_LIBADD
                   98703:          $LIBS"
                   98704:   if test "$cross_compiling" = yes; then :
                   98705: 
                   98706:     LIBS=$old_LIBS
                   98707: 
                   98708: else
                   98709:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   98710: /* end confdefs.h.  */
                   98711: 
                   98712: 
                   98713:     char xmlInitParser();
                   98714:     int main() {
                   98715:       xmlInitParser();
                   98716:       return 0;
                   98717:     }
                   98718: 
                   98719: _ACEOF
                   98720: if ac_fn_c_try_run "$LINENO"; then :
                   98721: 
                   98722:     LIBS=$old_LIBS
                   98723: 
                   98724:           php_cv_libxml_build_works=yes
                   98725: 
                   98726: 
                   98727: else
                   98728: 
                   98729:     LIBS=$old_LIBS
                   98730: 
                   98731:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   98732: $as_echo "no" >&6; }
                   98733:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
                   98734: 
                   98735: 
                   98736: fi
                   98737: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   98738:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   98739: fi
                   98740: 
                   98741: 
                   98742: 
                   98743: fi
                   98744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
                   98745: $as_echo "$php_cv_libxml_build_works" >&6; }
                   98746:       if test "$php_cv_libxml_build_works" = "yes"; then
                   98747: 
                   98748: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
                   98749: 
                   98750:       fi
                   98751: 
                   98752:       xml_extra_sources="compat.c"
                   98753: 
                   98754:   am_i_shared=$PHP_XML_SHARED
                   98755:   is_it_shared=$PHP_LIBXML_SHARED
                   98756:   is_it_enabled=$PHP_LIBXML
                   98757:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   98758:     as_fn_error $? "
                   98759: You've configured extension xml to build statically, but it
                   98760: depends on extension libxml, which you've configured to build shared.
                   98761: You either need to build xml shared or build libxml statically for the
                   98762: build to be successful.
                   98763: " "$LINENO" 5
                   98764:   fi
                   98765: 
                   98766: 
                   98767:     else
                   98768:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
                   98769:     fi
                   98770: else
                   98771:       as_fn_error $? "xml2-config not found. Use --with-libxml-dir=<DIR>" "$LINENO" 5
                   98772: 
                   98773:   fi
                   98774: 
                   98775:   fi
                   98776: 
                   98777:         if test "$PHP_LIBEXPAT_DIR" != "no"; then
                   98778:     for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do
                   98779:       if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then
                   98780:         EXPAT_DIR=$i
                   98781:         break
                   98782:       fi
                   98783:     done
                   98784: 
                   98785:     if test -z "$EXPAT_DIR"; then
                   98786:       as_fn_error $? "not found. Please reinstall the expat distribution." "$LINENO" 5
                   98787:     fi
                   98788: 
                   98789: 
                   98790:   if test "$EXPAT_DIR/include" != "/usr/include"; then
                   98791: 
                   98792:   if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then
                   98793:     ai_p=$EXPAT_DIR/include
                   98794:   else
                   98795: 
                   98796:     ep_dir="`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   98797: 
                   98798:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   98799:     ai_p="$ep_realdir/`basename \"$EXPAT_DIR/include\"`"
                   98800:   fi
                   98801: 
                   98802: 
                   98803: 
                   98804:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   98805: 
                   98806:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   98807:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   98808:     eval "INCLUDEPATH$unique=set"
                   98809: 
                   98810:       if test ""; then
                   98811:         INCLUDES="-I$ai_p $INCLUDES"
                   98812:       else
                   98813:         INCLUDES="$INCLUDES -I$ai_p"
                   98814:       fi
                   98815: 
                   98816:   fi
                   98817: 
                   98818:   fi
                   98819: 
                   98820: 
                   98821: 
                   98822:   if test "$ext_shared" = "yes"; then
                   98823:     XML_SHARED_LIBADD="-lexpat $XML_SHARED_LIBADD"
                   98824:     if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
                   98825: 
                   98826:   if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   98827: 
                   98828:   if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   98829:     ai_p=$EXPAT_DIR/$PHP_LIBDIR
                   98830:   else
                   98831: 
                   98832:     ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   98833: 
                   98834:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   98835:     ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
                   98836:   fi
                   98837: 
                   98838: 
                   98839:       if test "$ext_shared" = "yes"; then
                   98840:         XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD"
                   98841:         test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD"
                   98842:       else
                   98843: 
                   98844: 
                   98845: 
                   98846:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   98847: 
                   98848:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   98849:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   98850:     eval "LIBPATH$unique=set"
                   98851: 
                   98852:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   98853:     LDFLAGS="$LDFLAGS -L$ai_p"
                   98854:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   98855: 
                   98856:   fi
                   98857: 
                   98858: 
                   98859:       fi
                   98860: 
                   98861:   fi
                   98862: 
                   98863:     fi
                   98864:   else
                   98865: 
                   98866: 
                   98867:   if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
                   98868: 
                   98869:   if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   98870: 
                   98871:   if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   98872:     ai_p=$EXPAT_DIR/$PHP_LIBDIR
                   98873:   else
                   98874: 
                   98875:     ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   98876: 
                   98877:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   98878:     ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
                   98879:   fi
                   98880: 
                   98881: 
                   98882: 
                   98883: 
                   98884: 
                   98885:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   98886: 
                   98887:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   98888:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   98889:     eval "LIBPATH$unique=set"
                   98890: 
                   98891:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   98892:     LDFLAGS="$LDFLAGS -L$ai_p"
                   98893:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   98894: 
                   98895:   fi
                   98896: 
                   98897: 
                   98898: 
                   98899:   fi
                   98900: 
                   98901:   fi
                   98902: 
                   98903: 
                   98904:   case expat in
                   98905:   c|c_r|pthread*) ;;
                   98906:   *)
                   98907:       LIBS="-lexpat $LIBS"
                   98908:    ;;
                   98909:   esac
                   98910: 
                   98911: 
                   98912: 
                   98913: 
                   98914:   fi
                   98915: 
                   98916: 
                   98917: 
                   98918: $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
                   98919: 
                   98920:   fi
                   98921: 
                   98922: 
                   98923:   ext_builddir=ext/xml
                   98924:   ext_srcdir=$abs_srcdir/ext/xml
                   98925: 
                   98926:   ac_extra=
                   98927: 
                   98928:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   98929:     PHP_XML_SHARED=no
                   98930: 
                   98931: 
                   98932:   case ext/xml in
                   98933:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   98934:   /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   98935:   *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   98936:   esac
                   98937: 
                   98938: 
                   98939: 
                   98940:   b_c_pre=$php_c_pre
                   98941:   b_cxx_pre=$php_cxx_pre
                   98942:   b_c_meta=$php_c_meta
                   98943:   b_cxx_meta=$php_cxx_meta
                   98944:   b_c_post=$php_c_post
                   98945:   b_cxx_post=$php_cxx_post
                   98946:   b_lo=$php_lo
                   98947: 
                   98948: 
                   98949:   old_IFS=$IFS
                   98950:   for ac_src in xml.c $xml_extra_sources; do
                   98951: 
                   98952:       IFS=.
                   98953:       set $ac_src
                   98954:       ac_obj=$1
                   98955:       IFS=$old_IFS
                   98956: 
                   98957:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   98958: 
                   98959:       case $ac_src in
                   98960:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98961:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98962:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   98963:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   98964:       esac
                   98965: 
                   98966:     cat >>Makefile.objects<<EOF
                   98967: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   98968:        $ac_comp
                   98969: EOF
                   98970:   done
                   98971: 
                   98972: 
                   98973:     EXT_STATIC="$EXT_STATIC xml"
                   98974:     if test "$ext_shared" != "nocli"; then
                   98975:       EXT_CLI_STATIC="$EXT_CLI_STATIC xml"
                   98976:     fi
                   98977:   else
                   98978:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   98979:       PHP_XML_SHARED=yes
                   98980: 
                   98981:   case ext/xml in
                   98982:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   98983:   /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   98984:   *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   98985:   esac
                   98986: 
                   98987: 
                   98988: 
                   98989:   b_c_pre=$shared_c_pre
                   98990:   b_cxx_pre=$shared_cxx_pre
                   98991:   b_c_meta=$shared_c_meta
                   98992:   b_cxx_meta=$shared_cxx_meta
                   98993:   b_c_post=$shared_c_post
                   98994:   b_cxx_post=$shared_cxx_post
                   98995:   b_lo=$shared_lo
                   98996: 
                   98997: 
                   98998:   old_IFS=$IFS
                   98999:   for ac_src in xml.c $xml_extra_sources; do
                   99000: 
                   99001:       IFS=.
                   99002:       set $ac_src
                   99003:       ac_obj=$1
                   99004:       IFS=$old_IFS
                   99005: 
                   99006:       shared_objects_xml="$shared_objects_xml $ac_bdir$ac_obj.lo"
                   99007: 
                   99008:       case $ac_src in
                   99009:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99010:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99011:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99012:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   99013:       esac
                   99014: 
                   99015:     cat >>Makefile.objects<<EOF
                   99016: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   99017:        $ac_comp
                   99018: EOF
                   99019:   done
                   99020: 
                   99021:       case $host_alias in
                   99022:         *netware*)
                   99023: 
                   99024:   install_modules="install-modules"
                   99025: 
                   99026:   case $host_alias in
                   99027:     *aix*)
                   99028:       suffix=so
                   99029:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) $(PHPXML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxml.so '$ext_builddir'/phpxml.so'
                   99030:       ;;
                   99031:     *netware*)
                   99032:       suffix=nlm
                   99033:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) -L$(top_builddir)/netware -lphp5lib $(XML_SHARED_LIBADD)'
                   99034:       ;;
                   99035:     *)
                   99036:       suffix=la
                   99037:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) $(PHPXML_SHARED_LIBADD)'
                   99038:       ;;
                   99039:   esac
                   99040: 
                   99041:   if test "x" = "xyes"; then
                   99042:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxml.$suffix"
                   99043:   else
                   99044:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxml.$suffix"
                   99045:   fi
                   99046: 
                   99047:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xml"
                   99048: 
                   99049:   cat >>Makefile.objects<<EOF
                   99050: \$(phplibdir)/phpxml.$suffix: $ext_builddir/phpxml.$suffix
                   99051:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpxml.$suffix \$(phplibdir)
                   99052: 
                   99053: $ext_builddir/phpxml.$suffix: \$(shared_objects_xml) \$(PHPXML_SHARED_DEPENDENCIES)
                   99054:        $link_cmd
                   99055: 
                   99056: EOF
                   99057: 
                   99058:           ;;
                   99059:         *)
                   99060: 
                   99061:   install_modules="install-modules"
                   99062: 
                   99063:   case $host_alias in
                   99064:     *aix*)
                   99065:       suffix=so
                   99066:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) $(XML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xml.so '$ext_builddir'/xml.so'
                   99067:       ;;
                   99068:     *netware*)
                   99069:       suffix=nlm
                   99070:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
                   99071:       ;;
                   99072:     *)
                   99073:       suffix=la
                   99074:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) $(XML_SHARED_LIBADD)'
                   99075:       ;;
                   99076:   esac
                   99077: 
                   99078:   if test "x" = "xyes"; then
                   99079:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xml.$suffix"
                   99080:   else
                   99081:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/xml.$suffix"
                   99082:   fi
                   99083: 
                   99084:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xml"
                   99085: 
                   99086:   cat >>Makefile.objects<<EOF
                   99087: \$(phplibdir)/xml.$suffix: $ext_builddir/xml.$suffix
                   99088:        \$(LIBTOOL) --mode=install cp $ext_builddir/xml.$suffix \$(phplibdir)
                   99089: 
                   99090: $ext_builddir/xml.$suffix: \$(shared_objects_xml) \$(XML_SHARED_DEPENDENCIES)
                   99091:        $link_cmd
                   99092: 
                   99093: EOF
                   99094: 
                   99095:           ;;
                   99096:       esac
                   99097: 
                   99098: cat >>confdefs.h <<_ACEOF
                   99099: #define COMPILE_DL_XML 1
                   99100: _ACEOF
                   99101: 
                   99102:     fi
                   99103:   fi
                   99104: 
                   99105:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   99106:     PHP_XML_SHARED=no
                   99107: 
                   99108: 
                   99109:   case ext/xml in
                   99110:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   99111:   /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   99112:   *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   99113:   esac
                   99114: 
                   99115: 
                   99116: 
                   99117:   b_c_pre=$php_c_pre
                   99118:   b_cxx_pre=$php_cxx_pre
                   99119:   b_c_meta=$php_c_meta
                   99120:   b_cxx_meta=$php_cxx_meta
                   99121:   b_c_post=$php_c_post
                   99122:   b_cxx_post=$php_cxx_post
                   99123:   b_lo=$php_lo
                   99124: 
                   99125: 
                   99126:   old_IFS=$IFS
                   99127:   for ac_src in xml.c $xml_extra_sources; do
                   99128: 
                   99129:       IFS=.
                   99130:       set $ac_src
                   99131:       ac_obj=$1
                   99132:       IFS=$old_IFS
                   99133: 
1.1.1.2 ! misho    99134:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    99135: 
                   99136:       case $ac_src in
                   99137:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99138:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99139:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99140:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   99141:       esac
                   99142: 
                   99143:     cat >>Makefile.objects<<EOF
                   99144: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   99145:        $ac_comp
                   99146: EOF
                   99147:   done
                   99148: 
                   99149: 
                   99150: 
                   99151: 
                   99152:   case ext/xml in
                   99153:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   99154:   /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   99155:   *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   99156:   esac
                   99157: 
                   99158: 
                   99159: 
                   99160:   b_c_pre=$php_c_pre
                   99161:   b_cxx_pre=$php_cxx_pre
                   99162:   b_c_meta=$php_c_meta
                   99163:   b_cxx_meta=$php_cxx_meta
                   99164:   b_c_post=$php_c_post
                   99165:   b_cxx_post=$php_cxx_post
                   99166:   b_lo=$php_lo
                   99167: 
                   99168: 
                   99169:   old_IFS=$IFS
                   99170:   for ac_src in xml.c $xml_extra_sources; do
                   99171: 
                   99172:       IFS=.
                   99173:       set $ac_src
                   99174:       ac_obj=$1
                   99175:       IFS=$old_IFS
                   99176: 
1.1.1.2 ! misho    99177:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    99178: 
                   99179:       case $ac_src in
                   99180:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99181:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99182:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99183:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   99184:       esac
                   99185: 
                   99186:     cat >>Makefile.objects<<EOF
                   99187: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   99188:        $ac_comp
                   99189: EOF
                   99190:   done
                   99191: 
                   99192: 
                   99193: 
                   99194: 
                   99195:   case ext/xml in
                   99196:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   99197:   /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   99198:   *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   99199:   esac
                   99200: 
                   99201: 
                   99202: 
                   99203:   b_c_pre=$php_c_pre
                   99204:   b_cxx_pre=$php_cxx_pre
                   99205:   b_c_meta=$php_c_meta
                   99206:   b_cxx_meta=$php_cxx_meta
                   99207:   b_c_post=$php_c_post
                   99208:   b_cxx_post=$php_cxx_post
                   99209:   b_lo=$php_lo
                   99210: 
                   99211: 
                   99212:   old_IFS=$IFS
                   99213:   for ac_src in xml.c $xml_extra_sources; do
                   99214: 
                   99215:       IFS=.
                   99216:       set $ac_src
                   99217:       ac_obj=$1
                   99218:       IFS=$old_IFS
                   99219: 
1.1.1.2 ! misho    99220:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    99221: 
                   99222:       case $ac_src in
                   99223:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99224:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99225:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99226:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   99227:       esac
                   99228: 
                   99229:     cat >>Makefile.objects<<EOF
                   99230: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   99231:        $ac_comp
                   99232: EOF
                   99233:   done
                   99234: 
                   99235: 
                   99236:     EXT_CLI_STATIC="$EXT_CLI_STATIC xml"
                   99237:   fi
                   99238: 
                   99239: 
                   99240:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   99241: 
                   99242: 
                   99243: 
                   99244:   if test "$ext_builddir" = "."; then
                   99245:     PHP_PECL_EXTENSION=xml
                   99246: 
                   99247:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   99248: 
                   99249:   fi
                   99250: 
                   99251: 
                   99252:   PHP_VAR_SUBST="$PHP_VAR_SUBST XML_SHARED_LIBADD"
                   99253: 
                   99254: 
                   99255: 
                   99256:     for header_file in ext/xml/; do
                   99257: 
                   99258: 
                   99259:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
                   99260: 
                   99261:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   99262:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   99263:     eval "INSTALLHEADERS$unique=set"
                   99264: 
                   99265:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
                   99266: 
                   99267:   fi
                   99268: 
                   99269:     done
                   99270: 
                   99271: 
                   99272: 
                   99273: $as_echo "#define HAVE_XML 1" >>confdefs.h
                   99274: 
                   99275: fi
                   99276: 
                   99277: 
                   99278: 
                   99279: php_enable_xmlreader=yes
                   99280: 
                   99281: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLReader support" >&5
                   99282: $as_echo_n "checking whether to enable XMLReader support... " >&6; }
                   99283: # Check whether --enable-xmlreader was given.
                   99284: if test "${enable_xmlreader+set}" = set; then :
                   99285:   enableval=$enable_xmlreader; PHP_XMLREADER=$enableval
                   99286: else
                   99287: 
                   99288:   PHP_XMLREADER=yes
                   99289:   test "$PHP_ENABLE_ALL" && PHP_XMLREADER=$PHP_ENABLE_ALL
                   99290: 
                   99291: fi
                   99292: 
                   99293: 
                   99294: 
                   99295: ext_output="yes, shared"
                   99296: ext_shared=yes
                   99297: case $PHP_XMLREADER in
                   99298: shared,*)
                   99299:   PHP_XMLREADER=`echo "$PHP_XMLREADER"|$SED 's/^shared,//'`
                   99300:   ;;
                   99301: shared)
                   99302:   PHP_XMLREADER=yes
                   99303:   ;;
                   99304: no)
                   99305:   ext_output=no
                   99306:   ext_shared=no
                   99307:   ;;
                   99308: *)
                   99309:   ext_output=yes
                   99310:   ext_shared=no
                   99311:   ;;
                   99312: esac
                   99313: 
                   99314: 
                   99315: 
                   99316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   99317: $as_echo "$ext_output" >&6; }
                   99318: 
                   99319: 
                   99320: 
                   99321: 
                   99322: if test -z "$PHP_LIBXML_DIR"; then
                   99323: 
                   99324: php_with_libxml_dir=no
                   99325: 
                   99326: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
                   99327: $as_echo_n "checking libxml2 install dir... " >&6; }
                   99328: 
                   99329: # Check whether --with-libxml-dir was given.
                   99330: if test "${with_libxml_dir+set}" = set; then :
                   99331:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
                   99332: else
                   99333: 
                   99334:   PHP_LIBXML_DIR=no
                   99335: 
                   99336: 
                   99337: fi
                   99338: 
                   99339: 
                   99340: ext_output=$PHP_LIBXML_DIR
                   99341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   99342: $as_echo "$ext_output" >&6; }
                   99343: 
                   99344: 
                   99345: 
                   99346: fi
                   99347: 
                   99348: if test "$PHP_XMLREADER" != "no"; then
                   99349: 
                   99350:   if test "$PHP_LIBXML" = "no"; then
                   99351:     as_fn_error $? "XMLReader extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
                   99352:   fi
                   99353: 
                   99354: 
                   99355: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
                   99356: $as_echo_n "checking for xml2-config path... " >&6; }
                   99357: if ${ac_cv_php_xml2_config_path+:} false; then :
                   99358:   $as_echo_n "(cached) " >&6
                   99359: else
                   99360: 
                   99361:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
                   99362:     if test -x "$i/bin/xml2-config"; then
                   99363:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
                   99364:       break
                   99365:     fi
                   99366:   done
                   99367: 
                   99368: fi
                   99369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
                   99370: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
                   99371: 
                   99372:   if test -x "$ac_cv_php_xml2_config_path"; then
                   99373:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
                   99374:     libxml_full_version=`$XML2_CONFIG --version`
                   99375:     ac_IFS=$IFS
                   99376:     IFS="."
                   99377:     set $libxml_full_version
                   99378:     IFS=$ac_IFS
                   99379:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
                   99380:     if test "$LIBXML_VERSION" -ge "2006011"; then
                   99381:       LIBXML_LIBS=`$XML2_CONFIG --libs`
                   99382:       LIBXML_INCS=`$XML2_CONFIG --cflags`
                   99383: 
                   99384:   for ac_i in $LIBXML_LIBS; do
                   99385:     case $ac_i in
                   99386:     -pthread)
                   99387:       if test "$ext_shared" = "yes"; then
                   99388:         XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -pthread"
                   99389:       else
                   99390: 
                   99391: 
                   99392:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   99393: 
                   99394:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   99395:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   99396:     eval "EXTRA_LDFLAGS$unique=set"
                   99397:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   99398:   fi
                   99399: 
                   99400:       fi
                   99401:     ;;
                   99402:     -l*)
                   99403:       ac_ii=`echo $ac_i|cut -c 3-`
                   99404: 
                   99405: 
                   99406:   case $ac_ii in
                   99407:   c|c_r|pthread*) ;;
                   99408:   *)
                   99409:     if test "$ext_shared" = "yes"; then
                   99410:         XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -l$ac_ii"
                   99411:     else
                   99412: 
                   99413: 
                   99414:   case $ac_ii in
                   99415:   c|c_r|pthread*) ;;
                   99416:   *)
                   99417:       LIBS="$LIBS -l$ac_ii"
                   99418:    ;;
                   99419:   esac
                   99420: 
                   99421: 
                   99422:     fi
                   99423:    ;;
                   99424:   esac
                   99425: 
                   99426: 
                   99427:     ;;
                   99428:     -L*)
                   99429:       ac_ii=`echo $ac_i|cut -c 3-`
                   99430: 
                   99431:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   99432: 
                   99433:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   99434:     ai_p=$ac_ii
                   99435:   else
                   99436: 
                   99437:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   99438: 
                   99439:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   99440:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   99441:   fi
                   99442: 
                   99443: 
                   99444:       if test "$ext_shared" = "yes"; then
                   99445:         XMLREADER_SHARED_LIBADD="-L$ai_p $XMLREADER_SHARED_LIBADD"
                   99446:         test -n "$ld_runpath_switch" && XMLREADER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLREADER_SHARED_LIBADD"
                   99447:       else
                   99448: 
                   99449: 
                   99450: 
                   99451:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   99452: 
                   99453:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   99454:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   99455:     eval "LIBPATH$unique=set"
                   99456: 
                   99457:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   99458:     LDFLAGS="$LDFLAGS -L$ai_p"
                   99459:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   99460: 
                   99461:   fi
                   99462: 
                   99463: 
                   99464:       fi
                   99465: 
                   99466:   fi
                   99467: 
                   99468:     ;;
                   99469:     esac
                   99470:   done
                   99471: 
                   99472: 
                   99473:   for ac_i in $LIBXML_INCS; do
                   99474:     case $ac_i in
                   99475:     -I*)
                   99476:       ac_ii=`echo $ac_i|cut -c 3-`
                   99477: 
                   99478:   if test "$ac_ii" != "/usr/include"; then
                   99479: 
                   99480:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   99481:     ai_p=$ac_ii
                   99482:   else
                   99483: 
                   99484:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   99485: 
                   99486:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   99487:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   99488:   fi
                   99489: 
                   99490: 
                   99491: 
                   99492:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   99493: 
                   99494:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   99495:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   99496:     eval "INCLUDEPATH$unique=set"
                   99497: 
                   99498:       if test ""; then
                   99499:         INCLUDES="-I$ai_p $INCLUDES"
                   99500:       else
                   99501:         INCLUDES="$INCLUDES -I$ai_p"
                   99502:       fi
                   99503: 
                   99504:   fi
                   99505: 
                   99506:   fi
                   99507: 
                   99508:     ;;
                   99509:     esac
                   99510:   done
                   99511: 
                   99512: 
                   99513:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
                   99514: $as_echo_n "checking whether libxml build works... " >&6; }
                   99515: if ${php_cv_libxml_build_works+:} false; then :
                   99516:   $as_echo_n "(cached) " >&6
                   99517: else
                   99518: 
                   99519: 
                   99520:   old_LIBS=$LIBS
                   99521:   LIBS="
                   99522:           $XMLREADER_SHARED_LIBADD
                   99523:          $LIBS"
                   99524:   if test "$cross_compiling" = yes; then :
                   99525: 
                   99526:     LIBS=$old_LIBS
                   99527: 
                   99528: else
                   99529:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   99530: /* end confdefs.h.  */
                   99531: 
                   99532: 
                   99533:     char xmlInitParser();
                   99534:     int main() {
                   99535:       xmlInitParser();
                   99536:       return 0;
                   99537:     }
                   99538: 
                   99539: _ACEOF
                   99540: if ac_fn_c_try_run "$LINENO"; then :
                   99541: 
                   99542:     LIBS=$old_LIBS
                   99543: 
                   99544:           php_cv_libxml_build_works=yes
                   99545: 
                   99546: 
                   99547: else
                   99548: 
                   99549:     LIBS=$old_LIBS
                   99550: 
                   99551:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   99552: $as_echo "no" >&6; }
                   99553:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
                   99554: 
                   99555: 
                   99556: fi
                   99557: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   99558:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   99559: fi
                   99560: 
                   99561: 
                   99562: 
                   99563: fi
                   99564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
                   99565: $as_echo "$php_cv_libxml_build_works" >&6; }
                   99566:       if test "$php_cv_libxml_build_works" = "yes"; then
                   99567: 
                   99568: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
                   99569: 
                   99570:       fi
                   99571: 
                   99572: 
                   99573: $as_echo "#define HAVE_XMLREADER 1" >>confdefs.h
                   99574: 
                   99575: 
                   99576:   ext_builddir=ext/xmlreader
                   99577:   ext_srcdir=$abs_srcdir/ext/xmlreader
                   99578: 
                   99579:   ac_extra=
                   99580: 
                   99581:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   99582:     PHP_XMLREADER_SHARED=no
                   99583: 
                   99584: 
                   99585:   case ext/xmlreader in
                   99586:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   99587:   /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   99588:   *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   99589:   esac
                   99590: 
                   99591: 
                   99592: 
                   99593:   b_c_pre=$php_c_pre
                   99594:   b_cxx_pre=$php_cxx_pre
                   99595:   b_c_meta=$php_c_meta
                   99596:   b_cxx_meta=$php_cxx_meta
                   99597:   b_c_post=$php_c_post
                   99598:   b_cxx_post=$php_cxx_post
                   99599:   b_lo=$php_lo
                   99600: 
                   99601: 
                   99602:   old_IFS=$IFS
                   99603:   for ac_src in php_xmlreader.c; do
                   99604: 
                   99605:       IFS=.
                   99606:       set $ac_src
                   99607:       ac_obj=$1
                   99608:       IFS=$old_IFS
                   99609: 
                   99610:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   99611: 
                   99612:       case $ac_src in
                   99613:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99614:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99615:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99616:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   99617:       esac
                   99618: 
                   99619:     cat >>Makefile.objects<<EOF
                   99620: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   99621:        $ac_comp
                   99622: EOF
                   99623:   done
                   99624: 
                   99625: 
                   99626:     EXT_STATIC="$EXT_STATIC xmlreader"
                   99627:     if test "$ext_shared" != "nocli"; then
                   99628:       EXT_CLI_STATIC="$EXT_CLI_STATIC xmlreader"
                   99629:     fi
                   99630:   else
                   99631:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   99632:       PHP_XMLREADER_SHARED=yes
                   99633: 
                   99634:   case ext/xmlreader in
                   99635:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   99636:   /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   99637:   *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   99638:   esac
                   99639: 
                   99640: 
                   99641: 
                   99642:   b_c_pre=$shared_c_pre
                   99643:   b_cxx_pre=$shared_cxx_pre
                   99644:   b_c_meta=$shared_c_meta
                   99645:   b_cxx_meta=$shared_cxx_meta
                   99646:   b_c_post=$shared_c_post
                   99647:   b_cxx_post=$shared_cxx_post
                   99648:   b_lo=$shared_lo
                   99649: 
                   99650: 
                   99651:   old_IFS=$IFS
                   99652:   for ac_src in php_xmlreader.c; do
                   99653: 
                   99654:       IFS=.
                   99655:       set $ac_src
                   99656:       ac_obj=$1
                   99657:       IFS=$old_IFS
                   99658: 
                   99659:       shared_objects_xmlreader="$shared_objects_xmlreader $ac_bdir$ac_obj.lo"
                   99660: 
                   99661:       case $ac_src in
                   99662:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99663:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99664:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99665:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   99666:       esac
                   99667: 
                   99668:     cat >>Makefile.objects<<EOF
                   99669: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   99670:        $ac_comp
                   99671: EOF
                   99672:   done
                   99673: 
                   99674:       case $host_alias in
                   99675:         *netware*)
                   99676: 
                   99677:   install_modules="install-modules"
                   99678: 
                   99679:   case $host_alias in
                   99680:     *aix*)
                   99681:       suffix=so
                   99682:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxmlreader.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) $(PHPXMLREADER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxmlreader.so '$ext_builddir'/phpxmlreader.so'
                   99683:       ;;
                   99684:     *netware*)
                   99685:       suffix=nlm
                   99686:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) -L$(top_builddir)/netware -lphp5lib $(XMLREADER_SHARED_LIBADD)'
                   99687:       ;;
                   99688:     *)
                   99689:       suffix=la
                   99690:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) $(PHPXMLREADER_SHARED_LIBADD)'
                   99691:       ;;
                   99692:   esac
                   99693: 
                   99694:   if test "x" = "xyes"; then
                   99695:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlreader.$suffix"
                   99696:   else
                   99697:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlreader.$suffix"
                   99698:   fi
                   99699: 
                   99700:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlreader"
                   99701: 
                   99702:   cat >>Makefile.objects<<EOF
                   99703: \$(phplibdir)/phpxmlreader.$suffix: $ext_builddir/phpxmlreader.$suffix
                   99704:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlreader.$suffix \$(phplibdir)
                   99705: 
                   99706: $ext_builddir/phpxmlreader.$suffix: \$(shared_objects_xmlreader) \$(PHPXMLREADER_SHARED_DEPENDENCIES)
                   99707:        $link_cmd
                   99708: 
                   99709: EOF
                   99710: 
                   99711:           ;;
                   99712:         *)
                   99713: 
                   99714:   install_modules="install-modules"
                   99715: 
                   99716:   case $host_alias in
                   99717:     *aix*)
                   99718:       suffix=so
                   99719:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xmlreader.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) $(XMLREADER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xmlreader.so '$ext_builddir'/xmlreader.so'
                   99720:       ;;
                   99721:     *netware*)
                   99722:       suffix=nlm
                   99723:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) -L$(top_builddir)/netware -lphp5lib $(READER_SHARED_LIBADD)'
                   99724:       ;;
                   99725:     *)
                   99726:       suffix=la
                   99727:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) $(XMLREADER_SHARED_LIBADD)'
                   99728:       ;;
                   99729:   esac
                   99730: 
                   99731:   if test "x" = "xyes"; then
                   99732:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlreader.$suffix"
                   99733:   else
                   99734:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlreader.$suffix"
                   99735:   fi
                   99736: 
                   99737:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlreader"
                   99738: 
                   99739:   cat >>Makefile.objects<<EOF
                   99740: \$(phplibdir)/xmlreader.$suffix: $ext_builddir/xmlreader.$suffix
                   99741:        \$(LIBTOOL) --mode=install cp $ext_builddir/xmlreader.$suffix \$(phplibdir)
                   99742: 
                   99743: $ext_builddir/xmlreader.$suffix: \$(shared_objects_xmlreader) \$(XMLREADER_SHARED_DEPENDENCIES)
                   99744:        $link_cmd
                   99745: 
                   99746: EOF
                   99747: 
                   99748:           ;;
                   99749:       esac
                   99750: 
                   99751: cat >>confdefs.h <<_ACEOF
                   99752: #define COMPILE_DL_XMLREADER 1
                   99753: _ACEOF
                   99754: 
                   99755:     fi
                   99756:   fi
                   99757: 
                   99758:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   99759:     PHP_XMLREADER_SHARED=no
                   99760: 
                   99761: 
                   99762:   case ext/xmlreader in
                   99763:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   99764:   /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   99765:   *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   99766:   esac
                   99767: 
                   99768: 
                   99769: 
                   99770:   b_c_pre=$php_c_pre
                   99771:   b_cxx_pre=$php_cxx_pre
                   99772:   b_c_meta=$php_c_meta
                   99773:   b_cxx_meta=$php_cxx_meta
                   99774:   b_c_post=$php_c_post
                   99775:   b_cxx_post=$php_cxx_post
                   99776:   b_lo=$php_lo
                   99777: 
                   99778: 
                   99779:   old_IFS=$IFS
                   99780:   for ac_src in php_xmlreader.c; do
                   99781: 
                   99782:       IFS=.
                   99783:       set $ac_src
                   99784:       ac_obj=$1
                   99785:       IFS=$old_IFS
                   99786: 
1.1.1.2 ! misho    99787:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    99788: 
                   99789:       case $ac_src in
                   99790:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99791:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99792:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99793:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   99794:       esac
                   99795: 
                   99796:     cat >>Makefile.objects<<EOF
                   99797: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   99798:        $ac_comp
                   99799: EOF
                   99800:   done
                   99801: 
                   99802: 
                   99803: 
                   99804: 
                   99805:   case ext/xmlreader in
                   99806:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   99807:   /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   99808:   *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   99809:   esac
                   99810: 
                   99811: 
                   99812: 
                   99813:   b_c_pre=$php_c_pre
                   99814:   b_cxx_pre=$php_cxx_pre
                   99815:   b_c_meta=$php_c_meta
                   99816:   b_cxx_meta=$php_cxx_meta
                   99817:   b_c_post=$php_c_post
                   99818:   b_cxx_post=$php_cxx_post
                   99819:   b_lo=$php_lo
                   99820: 
                   99821: 
                   99822:   old_IFS=$IFS
                   99823:   for ac_src in php_xmlreader.c; do
                   99824: 
                   99825:       IFS=.
                   99826:       set $ac_src
                   99827:       ac_obj=$1
                   99828:       IFS=$old_IFS
                   99829: 
1.1.1.2 ! misho    99830:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    99831: 
                   99832:       case $ac_src in
                   99833:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99834:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99835:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99836:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   99837:       esac
                   99838: 
                   99839:     cat >>Makefile.objects<<EOF
                   99840: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   99841:        $ac_comp
                   99842: EOF
                   99843:   done
                   99844: 
                   99845: 
                   99846: 
                   99847: 
                   99848:   case ext/xmlreader in
                   99849:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   99850:   /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   99851:   *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   99852:   esac
                   99853: 
                   99854: 
                   99855: 
                   99856:   b_c_pre=$php_c_pre
                   99857:   b_cxx_pre=$php_cxx_pre
                   99858:   b_c_meta=$php_c_meta
                   99859:   b_cxx_meta=$php_cxx_meta
                   99860:   b_c_post=$php_c_post
                   99861:   b_cxx_post=$php_cxx_post
                   99862:   b_lo=$php_lo
                   99863: 
                   99864: 
                   99865:   old_IFS=$IFS
                   99866:   for ac_src in php_xmlreader.c; do
                   99867: 
                   99868:       IFS=.
                   99869:       set $ac_src
                   99870:       ac_obj=$1
                   99871:       IFS=$old_IFS
                   99872: 
1.1.1.2 ! misho    99873:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    99874: 
                   99875:       case $ac_src in
                   99876:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99877:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99878:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   99879:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   99880:       esac
                   99881: 
                   99882:     cat >>Makefile.objects<<EOF
                   99883: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   99884:        $ac_comp
                   99885: EOF
                   99886:   done
                   99887: 
                   99888: 
                   99889:     EXT_CLI_STATIC="$EXT_CLI_STATIC xmlreader"
                   99890:   fi
                   99891: 
                   99892: 
                   99893:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   99894: 
                   99895: 
                   99896: 
                   99897:   if test "$ext_builddir" = "."; then
                   99898:     PHP_PECL_EXTENSION=xmlreader
                   99899: 
                   99900:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   99901: 
                   99902:   fi
                   99903: 
                   99904: 
                   99905:   am_i_shared=$PHP_XMLREADER_SHARED
                   99906:   is_it_shared=$PHP_DOM_SHARED
                   99907:   is_it_enabled=$PHP_DOM
                   99908:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   99909:     as_fn_error $? "
                   99910: You've configured extension xmlreader to build statically, but it
                   99911: depends on extension dom, which you've configured to build shared.
                   99912: You either need to build xmlreader shared or build dom statically for the
                   99913: build to be successful.
                   99914: " "$LINENO" 5
                   99915:   fi
                   99916: 
                   99917: 
                   99918:   PHP_VAR_SUBST="$PHP_VAR_SUBST XMLREADER_SHARED_LIBADD"
                   99919: 
                   99920: 
                   99921:     else
                   99922:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
                   99923:     fi
                   99924: else
                   99925:     as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
                   99926: 
                   99927:   fi
                   99928: 
                   99929: fi
                   99930: 
                   99931: 
                   99932: # Local macros for automake & autoconf
                   99933: 
                   99934: 
                   99935: 
                   99936: 
                   99937: 
                   99938: 
                   99939: 
                   99940: 
                   99941: 
                   99942: 
                   99943: 
                   99944: 
                   99945: 
                   99946: php_with_xmlrpc=no
                   99947: 
                   99948: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLRPC-EPI support" >&5
                   99949: $as_echo_n "checking for XMLRPC-EPI support... " >&6; }
                   99950: 
                   99951: # Check whether --with-xmlrpc was given.
                   99952: if test "${with_xmlrpc+set}" = set; then :
                   99953:   withval=$with_xmlrpc; PHP_XMLRPC=$withval
                   99954: else
                   99955: 
                   99956:   PHP_XMLRPC=no
                   99957:   test "$PHP_ENABLE_ALL" && PHP_XMLRPC=$PHP_ENABLE_ALL
                   99958: 
                   99959: fi
                   99960: 
                   99961: 
                   99962: 
                   99963: ext_output="yes, shared"
                   99964: ext_shared=yes
                   99965: case $PHP_XMLRPC in
                   99966: shared,*)
                   99967:   PHP_XMLRPC=`echo "$PHP_XMLRPC"|$SED 's/^shared,//'`
                   99968:   ;;
                   99969: shared)
                   99970:   PHP_XMLRPC=yes
                   99971:   ;;
                   99972: no)
                   99973:   ext_output=no
                   99974:   ext_shared=no
                   99975:   ;;
                   99976: *)
                   99977:   ext_output=yes
                   99978:   ext_shared=no
                   99979:   ;;
                   99980: esac
                   99981: 
                   99982: 
                   99983: 
                   99984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   99985: $as_echo "$ext_output" >&6; }
                   99986: 
                   99987: 
                   99988: 
                   99989: 
                   99990: if test -z "$PHP_LIBXML_DIR"; then
                   99991: 
                   99992: php_with_libxml_dir=no
                   99993: 
                   99994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
                   99995: $as_echo_n "checking libxml2 install dir... " >&6; }
                   99996: 
                   99997: # Check whether --with-libxml-dir was given.
                   99998: if test "${with_libxml_dir+set}" = set; then :
                   99999:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
                   100000: else
                   100001: 
                   100002:   PHP_LIBXML_DIR=no
                   100003: 
                   100004: 
                   100005: fi
                   100006: 
                   100007: 
                   100008: ext_output=$PHP_LIBXML_DIR
                   100009: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   100010: $as_echo "$ext_output" >&6; }
                   100011: 
                   100012: 
                   100013: 
                   100014: fi
                   100015: 
                   100016: 
                   100017: php_with_libexpat_dir=no
                   100018: 
                   100019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat dir for XMLRPC-EPI" >&5
                   100020: $as_echo_n "checking libexpat dir for XMLRPC-EPI... " >&6; }
                   100021: 
                   100022: # Check whether --with-libexpat-dir was given.
                   100023: if test "${with_libexpat_dir+set}" = set; then :
                   100024:   withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
                   100025: else
                   100026: 
                   100027:   PHP_LIBEXPAT_DIR=no
                   100028: 
                   100029: 
                   100030: fi
                   100031: 
                   100032: 
                   100033: ext_output=$PHP_LIBEXPAT_DIR
                   100034: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   100035: $as_echo "$ext_output" >&6; }
                   100036: 
                   100037: 
                   100038: 
                   100039: 
                   100040: 
                   100041: php_with_iconv_dir=no
                   100042: 
                   100043: { $as_echo "$as_me:${as_lineno-$LINENO}: checking iconv dir for XMLRPC-EPI" >&5
                   100044: $as_echo_n "checking iconv dir for XMLRPC-EPI... " >&6; }
                   100045: 
                   100046: # Check whether --with-iconv-dir was given.
                   100047: if test "${with_iconv_dir+set}" = set; then :
                   100048:   withval=$with_iconv_dir; PHP_ICONV_DIR=$withval
                   100049: else
                   100050: 
                   100051:   PHP_ICONV_DIR=no
                   100052: 
                   100053: 
                   100054: fi
                   100055: 
                   100056: 
                   100057: ext_output=$PHP_ICONV_DIR
                   100058: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   100059: $as_echo "$ext_output" >&6; }
                   100060: 
                   100061: 
                   100062: 
                   100063: 
                   100064: if test "$PHP_XMLRPC" != "no"; then
                   100065: 
                   100066: 
                   100067:   am_i_shared=$PHP_XMLRPC_SHARED
                   100068:   is_it_shared=$PHP_LIBXML_SHARED
                   100069:   is_it_enabled=$PHP_LIBXML
                   100070:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   100071:     as_fn_error $? "
                   100072: You've configured extension xmlrpc to build statically, but it
                   100073: depends on extension libxml, which you've configured to build shared.
                   100074: You either need to build xmlrpc shared or build libxml statically for the
                   100075: build to be successful.
                   100076: " "$LINENO" 5
                   100077:   fi
                   100078: 
                   100079: 
                   100080:   PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD"
                   100081: 
                   100082: 
                   100083: $as_echo "#define HAVE_XMLRPC 1" >>confdefs.h
                   100084: 
                   100085: 
                   100086:         if test "$PHP_LIBEXPAT_DIR" = "no"; then
                   100087: 
                   100088:     if test "$PHP_LIBXML" = "no"; then
                   100089:       as_fn_error $? "XML-RPC extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
                   100090:     fi
                   100091: 
                   100092: 
                   100093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
                   100094: $as_echo_n "checking for xml2-config path... " >&6; }
                   100095: if ${ac_cv_php_xml2_config_path+:} false; then :
                   100096:   $as_echo_n "(cached) " >&6
                   100097: else
                   100098: 
                   100099:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
                   100100:     if test -x "$i/bin/xml2-config"; then
                   100101:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
                   100102:       break
                   100103:     fi
                   100104:   done
                   100105: 
                   100106: fi
                   100107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
                   100108: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
                   100109: 
                   100110:   if test -x "$ac_cv_php_xml2_config_path"; then
                   100111:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
                   100112:     libxml_full_version=`$XML2_CONFIG --version`
                   100113:     ac_IFS=$IFS
                   100114:     IFS="."
                   100115:     set $libxml_full_version
                   100116:     IFS=$ac_IFS
                   100117:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
                   100118:     if test "$LIBXML_VERSION" -ge "2006011"; then
                   100119:       LIBXML_LIBS=`$XML2_CONFIG --libs`
                   100120:       LIBXML_INCS=`$XML2_CONFIG --cflags`
                   100121: 
                   100122:   for ac_i in $LIBXML_LIBS; do
                   100123:     case $ac_i in
                   100124:     -pthread)
                   100125:       if test "$ext_shared" = "yes"; then
                   100126:         XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -pthread"
                   100127:       else
                   100128: 
                   100129: 
                   100130:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   100131: 
                   100132:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   100133:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   100134:     eval "EXTRA_LDFLAGS$unique=set"
                   100135:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   100136:   fi
                   100137: 
                   100138:       fi
                   100139:     ;;
                   100140:     -l*)
                   100141:       ac_ii=`echo $ac_i|cut -c 3-`
                   100142: 
                   100143: 
                   100144:   case $ac_ii in
                   100145:   c|c_r|pthread*) ;;
                   100146:   *)
                   100147:     if test "$ext_shared" = "yes"; then
                   100148:         XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -l$ac_ii"
                   100149:     else
                   100150: 
                   100151: 
                   100152:   case $ac_ii in
                   100153:   c|c_r|pthread*) ;;
                   100154:   *)
                   100155:       LIBS="$LIBS -l$ac_ii"
                   100156:    ;;
                   100157:   esac
                   100158: 
                   100159: 
                   100160:     fi
                   100161:    ;;
                   100162:   esac
                   100163: 
                   100164: 
                   100165:     ;;
                   100166:     -L*)
                   100167:       ac_ii=`echo $ac_i|cut -c 3-`
                   100168: 
                   100169:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   100170: 
                   100171:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   100172:     ai_p=$ac_ii
                   100173:   else
                   100174: 
                   100175:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   100176: 
                   100177:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   100178:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   100179:   fi
                   100180: 
                   100181: 
                   100182:       if test "$ext_shared" = "yes"; then
                   100183:         XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
                   100184:         test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
                   100185:       else
                   100186: 
                   100187: 
                   100188: 
                   100189:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   100190: 
                   100191:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   100192:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   100193:     eval "LIBPATH$unique=set"
                   100194: 
                   100195:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   100196:     LDFLAGS="$LDFLAGS -L$ai_p"
                   100197:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   100198: 
                   100199:   fi
                   100200: 
                   100201: 
                   100202:       fi
                   100203: 
                   100204:   fi
                   100205: 
                   100206:     ;;
                   100207:     esac
                   100208:   done
                   100209: 
                   100210: 
                   100211:   for ac_i in $LIBXML_INCS; do
                   100212:     case $ac_i in
                   100213:     -I*)
                   100214:       ac_ii=`echo $ac_i|cut -c 3-`
                   100215: 
                   100216:   if test "$ac_ii" != "/usr/include"; then
                   100217: 
                   100218:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   100219:     ai_p=$ac_ii
                   100220:   else
                   100221: 
                   100222:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   100223: 
                   100224:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   100225:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   100226:   fi
                   100227: 
                   100228: 
                   100229: 
                   100230:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   100231: 
                   100232:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   100233:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   100234:     eval "INCLUDEPATH$unique=set"
                   100235: 
                   100236:       if test ""; then
                   100237:         INCLUDES="-I$ai_p $INCLUDES"
                   100238:       else
                   100239:         INCLUDES="$INCLUDES -I$ai_p"
                   100240:       fi
                   100241: 
                   100242:   fi
                   100243: 
                   100244:   fi
                   100245: 
                   100246:     ;;
                   100247:     esac
                   100248:   done
                   100249: 
                   100250: 
                   100251:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
                   100252: $as_echo_n "checking whether libxml build works... " >&6; }
                   100253: if ${php_cv_libxml_build_works+:} false; then :
                   100254:   $as_echo_n "(cached) " >&6
                   100255: else
                   100256: 
                   100257: 
                   100258:   old_LIBS=$LIBS
                   100259:   LIBS="
                   100260:           $XMLRPC_SHARED_LIBADD
                   100261:          $LIBS"
                   100262:   if test "$cross_compiling" = yes; then :
                   100263: 
                   100264:     LIBS=$old_LIBS
                   100265: 
                   100266: else
                   100267:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   100268: /* end confdefs.h.  */
                   100269: 
                   100270: 
                   100271:     char xmlInitParser();
                   100272:     int main() {
                   100273:       xmlInitParser();
                   100274:       return 0;
                   100275:     }
                   100276: 
                   100277: _ACEOF
                   100278: if ac_fn_c_try_run "$LINENO"; then :
                   100279: 
                   100280:     LIBS=$old_LIBS
                   100281: 
                   100282:           php_cv_libxml_build_works=yes
                   100283: 
                   100284: 
                   100285: else
                   100286: 
                   100287:     LIBS=$old_LIBS
                   100288: 
                   100289:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   100290: $as_echo "no" >&6; }
                   100291:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
                   100292: 
                   100293: 
                   100294: fi
                   100295: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   100296:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   100297: fi
                   100298: 
                   100299: 
                   100300: 
                   100301: fi
                   100302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
                   100303: $as_echo "$php_cv_libxml_build_works" >&6; }
                   100304:       if test "$php_cv_libxml_build_works" = "yes"; then
                   100305: 
                   100306: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
                   100307: 
                   100308:       fi
                   100309: 
                   100310:       if test "$PHP_XML" = "no"; then
                   100311: 
                   100312: 
                   100313:   case ext/xml in
                   100314:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   100315:   /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   100316:   *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   100317:   esac
                   100318: 
                   100319: 
                   100320: 
                   100321:   b_c_pre=$php_c_pre
                   100322:   b_cxx_pre=$php_cxx_pre
                   100323:   b_c_meta=$php_c_meta
                   100324:   b_cxx_meta=$php_cxx_meta
                   100325:   b_c_post=$php_c_post
                   100326:   b_cxx_post=$php_cxx_post
                   100327:   b_lo=$php_lo
                   100328: 
                   100329: 
                   100330:   old_IFS=$IFS
                   100331:   for ac_src in compat.c; do
                   100332: 
                   100333:       IFS=.
                   100334:       set $ac_src
                   100335:       ac_obj=$1
                   100336:       IFS=$old_IFS
                   100337: 
                   100338:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   100339: 
                   100340:       case $ac_src in
                   100341:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   100342:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   100343:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   100344:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   100345:       esac
                   100346: 
                   100347:     cat >>Makefile.objects<<EOF
                   100348: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   100349:        $ac_comp
                   100350: EOF
                   100351:   done
                   100352: 
                   100353: 
                   100354: 
                   100355: 
                   100356:     BUILD_DIR="$BUILD_DIR ext/xml"
                   100357: 
                   100358: 
                   100359:       fi
                   100360: 
                   100361:     else
                   100362:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
                   100363:     fi
                   100364: else
                   100365:       as_fn_error $? "xml2-config not found. Use --with-libxml-dir=<DIR>" "$LINENO" 5
                   100366: 
                   100367:   fi
                   100368: 
                   100369:   else
                   100370:     testval=no
                   100371:     for i in $PHP_LIBEXPAT_DIR $XMLRPC_DIR /usr/local /usr; do
                   100372:       if test -f $i/$PHP_LIBDIR/libexpat.a || test -f $i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME; then
                   100373: 
                   100374: $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
                   100375: 
                   100376: 
                   100377: 
                   100378:   if test "$ext_shared" = "yes"; then
                   100379:     XMLRPC_SHARED_LIBADD="-lexpat $XMLRPC_SHARED_LIBADD"
                   100380:     if test -n "$i/$PHP_LIBDIR"; then
                   100381: 
                   100382:   if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then
                   100383: 
                   100384:   if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   100385:     ai_p=$i/$PHP_LIBDIR
                   100386:   else
                   100387: 
                   100388:     ep_dir="`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   100389: 
                   100390:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   100391:     ai_p="$ep_realdir/`basename \"$i/$PHP_LIBDIR\"`"
                   100392:   fi
                   100393: 
                   100394: 
                   100395:       if test "$ext_shared" = "yes"; then
                   100396:         XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
                   100397:         test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
                   100398:       else
                   100399: 
                   100400: 
                   100401: 
                   100402:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   100403: 
                   100404:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   100405:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   100406:     eval "LIBPATH$unique=set"
                   100407: 
                   100408:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   100409:     LDFLAGS="$LDFLAGS -L$ai_p"
                   100410:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   100411: 
                   100412:   fi
                   100413: 
                   100414: 
                   100415:       fi
                   100416: 
                   100417:   fi
                   100418: 
                   100419:     fi
                   100420:   else
                   100421: 
                   100422: 
                   100423:   if test -n "$i/$PHP_LIBDIR"; then
                   100424: 
                   100425:   if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then
                   100426: 
                   100427:   if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   100428:     ai_p=$i/$PHP_LIBDIR
                   100429:   else
                   100430: 
                   100431:     ep_dir="`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   100432: 
                   100433:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   100434:     ai_p="$ep_realdir/`basename \"$i/$PHP_LIBDIR\"`"
                   100435:   fi
                   100436: 
                   100437: 
                   100438: 
                   100439: 
                   100440: 
                   100441:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   100442: 
                   100443:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   100444:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   100445:     eval "LIBPATH$unique=set"
                   100446: 
                   100447:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   100448:     LDFLAGS="$LDFLAGS -L$ai_p"
                   100449:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   100450: 
                   100451:   fi
                   100452: 
                   100453: 
                   100454: 
                   100455:   fi
                   100456: 
                   100457:   fi
                   100458: 
                   100459: 
                   100460:   case expat in
                   100461:   c|c_r|pthread*) ;;
                   100462:   *)
                   100463:       LIBS="-lexpat $LIBS"
                   100464:    ;;
                   100465:   esac
                   100466: 
                   100467: 
                   100468: 
                   100469: 
                   100470:   fi
                   100471: 
                   100472: 
                   100473: 
                   100474:   if test "$i/include" != "/usr/include"; then
                   100475: 
                   100476:   if test -z "$i/include" || echo "$i/include" | grep '^/' >/dev/null ; then
                   100477:     ai_p=$i/include
                   100478:   else
                   100479: 
                   100480:     ep_dir="`echo $i/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   100481: 
                   100482:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   100483:     ai_p="$ep_realdir/`basename \"$i/include\"`"
                   100484:   fi
                   100485: 
                   100486: 
                   100487: 
                   100488:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   100489: 
                   100490:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   100491:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   100492:     eval "INCLUDEPATH$unique=set"
                   100493: 
                   100494:       if test ""; then
                   100495:         INCLUDES="-I$ai_p $INCLUDES"
                   100496:       else
                   100497:         INCLUDES="$INCLUDES -I$ai_p"
                   100498:       fi
                   100499: 
                   100500:   fi
                   100501: 
                   100502:   fi
                   100503: 
                   100504:         testval=yes
                   100505:         break
                   100506:       fi
                   100507:     done
                   100508: 
                   100509:     if test "$testval" = "no"; then
                   100510:       as_fn_error $? "XML-RPC support requires libexpat. Use --with-libexpat-dir=<DIR> (deprecated!)" "$LINENO" 5
                   100511:     fi
                   100512:   fi
                   100513: 
                   100514:     if test "$PHP_ICONV_SHARED" = "yes" || test "$PHP_ICONV" = "no"; then
                   100515: 
                   100516:     if test "$PHP_ICONV_DIR" != "no"; then
                   100517:       PHP_ICONV=$PHP_ICONV_DIR
                   100518:     fi
                   100519: 
                   100520:     if test -z "$PHP_ICONV" || test "$PHP_ICONV" = "no"; then
                   100521:       PHP_ICONV=yes
                   100522:     fi
                   100523: 
                   100524: 
                   100525:   found_iconv=no
                   100526:   unset ICONV_DIR
                   100527: 
                   100528:   # Create the directories for a VPATH build:
                   100529:   $php_shtool mkdir -p ext/iconv
                   100530: 
                   100531:   echo > ext/iconv/php_have_bsd_iconv.h
                   100532:   echo > ext/iconv/php_have_ibm_iconv.h
                   100533:   echo > ext/iconv/php_have_glibc_iconv.h
                   100534:   echo > ext/iconv/php_have_libiconv.h
                   100535:   echo > ext/iconv/php_have_iconv.h
                   100536:   echo > ext/iconv/php_php_iconv_impl.h
                   100537:   echo > ext/iconv/php_iconv_aliased_libiconv.h
                   100538:   echo > ext/iconv/php_php_iconv_h_path.h
                   100539:   echo > ext/iconv/php_iconv_supports_errno.h
                   100540: 
                   100541:         if test "$PHP_ICONV" = "yes"; then
                   100542:     ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
                   100543: if test "x$ac_cv_func_iconv" = xyes; then :
                   100544: 
                   100545:       found_iconv=yes
                   100546: 
                   100547: else
                   100548: 
                   100549:       ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv"
                   100550: if test "x$ac_cv_func_libiconv" = xyes; then :
                   100551: 
                   100552: 
                   100553:   echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
                   100554: 
                   100555: 
                   100556: $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
                   100557: 
                   100558:         found_iconv=yes
                   100559: 
                   100560: fi
                   100561: 
                   100562: 
                   100563: fi
                   100564: 
                   100565:   fi
                   100566: 
                   100567:         if test "$found_iconv" = "no"; then
                   100568: 
                   100569:     for i in $PHP_ICONV /usr/local /usr; do
                   100570:       if test -r $i/include/giconv.h; then
                   100571: 
                   100572: $as_echo "#define HAVE_GICONV_H 1" >>confdefs.h
                   100573: 
                   100574:         ICONV_DIR=$i
                   100575:         iconv_lib_name=giconv
                   100576:         break
                   100577:       elif test -r $i/include/iconv.h; then
                   100578:         ICONV_DIR=$i
                   100579:         iconv_lib_name=iconv
                   100580:         break
                   100581:       fi
                   100582:     done
                   100583: 
                   100584:     if test -z "$ICONV_DIR"; then
                   100585:       as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=<DIR>" "$LINENO" 5
                   100586:     fi
                   100587: 
                   100588:     if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a ||
                   100589:        test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME
                   100590:     then
                   100591: 
                   100592:   save_old_LDFLAGS=$LDFLAGS
                   100593:   ac_stuff="
                   100594:         -L$ICONV_DIR/$PHP_LIBDIR
                   100595:       "
                   100596: 
                   100597:   save_ext_shared=$ext_shared
                   100598:   ext_shared=yes
                   100599: 
                   100600:   for ac_i in $ac_stuff; do
                   100601:     case $ac_i in
                   100602:     -pthread)
                   100603:       if test "$ext_shared" = "yes"; then
                   100604:         LDFLAGS="$LDFLAGS -pthread"
                   100605:       else
                   100606: 
                   100607: 
                   100608:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   100609: 
                   100610:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   100611:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   100612:     eval "EXTRA_LDFLAGS$unique=set"
                   100613:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   100614:   fi
                   100615: 
                   100616:       fi
                   100617:     ;;
                   100618:     -l*)
                   100619:       ac_ii=`echo $ac_i|cut -c 3-`
                   100620: 
                   100621: 
                   100622:   case $ac_ii in
                   100623:   c|c_r|pthread*) ;;
                   100624:   *)
                   100625:     if test "$ext_shared" = "yes"; then
                   100626:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   100627:     else
                   100628: 
                   100629: 
                   100630:   case $ac_ii in
                   100631:   c|c_r|pthread*) ;;
                   100632:   *)
                   100633:       LIBS="$LIBS -l$ac_ii"
                   100634:    ;;
                   100635:   esac
                   100636: 
                   100637: 
                   100638:     fi
                   100639:    ;;
                   100640:   esac
                   100641: 
                   100642: 
                   100643:     ;;
                   100644:     -L*)
                   100645:       ac_ii=`echo $ac_i|cut -c 3-`
                   100646: 
                   100647:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   100648: 
                   100649:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   100650:     ai_p=$ac_ii
                   100651:   else
                   100652: 
                   100653:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   100654: 
                   100655:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   100656:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   100657:   fi
                   100658: 
                   100659: 
                   100660:       if test "$ext_shared" = "yes"; then
                   100661:         LDFLAGS="-L$ai_p $LDFLAGS"
                   100662:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   100663:       else
                   100664: 
                   100665: 
                   100666: 
                   100667:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   100668: 
                   100669:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   100670:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   100671:     eval "LIBPATH$unique=set"
                   100672: 
                   100673:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   100674:     LDFLAGS="$LDFLAGS -L$ai_p"
                   100675:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   100676: 
                   100677:   fi
                   100678: 
                   100679: 
                   100680:       fi
                   100681: 
                   100682:   fi
                   100683: 
                   100684:     ;;
                   100685:     esac
                   100686:   done
                   100687: 
                   100688:   as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh`
                   100689: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5
                   100690: $as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; }
                   100691: if eval \${$as_ac_Lib+:} false; then :
                   100692:   $as_echo_n "(cached) " >&6
                   100693: else
                   100694:   ac_check_lib_save_LIBS=$LIBS
                   100695: LIBS="-l$iconv_lib_name  $LIBS"
                   100696: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   100697: /* end confdefs.h.  */
                   100698: 
                   100699: /* Override any GCC internal prototype to avoid an error.
                   100700:    Use char because int might match the return type of a GCC
                   100701:    builtin and then its argument prototype would still apply.  */
                   100702: #ifdef __cplusplus
                   100703: extern "C"
                   100704: #endif
                   100705: char libiconv ();
                   100706: int
                   100707: main ()
                   100708: {
                   100709: return libiconv ();
                   100710:   ;
                   100711:   return 0;
                   100712: }
                   100713: _ACEOF
                   100714: if ac_fn_c_try_link "$LINENO"; then :
                   100715:   eval "$as_ac_Lib=yes"
                   100716: else
                   100717:   eval "$as_ac_Lib=no"
                   100718: fi
                   100719: rm -f core conftest.err conftest.$ac_objext \
                   100720:     conftest$ac_exeext conftest.$ac_ext
                   100721: LIBS=$ac_check_lib_save_LIBS
                   100722: fi
                   100723: eval ac_res=\$$as_ac_Lib
                   100724:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   100725: $as_echo "$ac_res" >&6; }
                   100726: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   100727: 
                   100728:     LDFLAGS=$save_old_LDFLAGS
                   100729:     ext_shared=$save_ext_shared
                   100730: 
                   100731:         found_iconv=yes
                   100732: 
                   100733:   echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
                   100734: 
                   100735: 
                   100736: $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
                   100737: 
                   100738: 
                   100739:   echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h
                   100740: 
                   100741: 
                   100742: $as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h
                   100743: 
                   100744: 
                   100745: 
                   100746: else
                   100747: 
                   100748:     LDFLAGS=$save_old_LDFLAGS
                   100749:     ext_shared=$save_ext_shared
                   100750:     unset ac_cv_lib_$iconv_lib_name_libiconv
                   100751: 
                   100752: 
                   100753:   save_old_LDFLAGS=$LDFLAGS
                   100754:   ac_stuff="
                   100755:           -L$ICONV_DIR/$PHP_LIBDIR
                   100756:         "
                   100757: 
                   100758:   save_ext_shared=$ext_shared
                   100759:   ext_shared=yes
                   100760: 
                   100761:   for ac_i in $ac_stuff; do
                   100762:     case $ac_i in
                   100763:     -pthread)
                   100764:       if test "$ext_shared" = "yes"; then
                   100765:         LDFLAGS="$LDFLAGS -pthread"
                   100766:       else
                   100767: 
                   100768: 
                   100769:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   100770: 
                   100771:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   100772:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   100773:     eval "EXTRA_LDFLAGS$unique=set"
                   100774:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   100775:   fi
                   100776: 
                   100777:       fi
                   100778:     ;;
                   100779:     -l*)
                   100780:       ac_ii=`echo $ac_i|cut -c 3-`
                   100781: 
                   100782: 
                   100783:   case $ac_ii in
                   100784:   c|c_r|pthread*) ;;
                   100785:   *)
                   100786:     if test "$ext_shared" = "yes"; then
                   100787:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   100788:     else
                   100789: 
                   100790: 
                   100791:   case $ac_ii in
                   100792:   c|c_r|pthread*) ;;
                   100793:   *)
                   100794:       LIBS="$LIBS -l$ac_ii"
                   100795:    ;;
                   100796:   esac
                   100797: 
                   100798: 
                   100799:     fi
                   100800:    ;;
                   100801:   esac
                   100802: 
                   100803: 
                   100804:     ;;
                   100805:     -L*)
                   100806:       ac_ii=`echo $ac_i|cut -c 3-`
                   100807: 
                   100808:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   100809: 
                   100810:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   100811:     ai_p=$ac_ii
                   100812:   else
                   100813: 
                   100814:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   100815: 
                   100816:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   100817:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   100818:   fi
                   100819: 
                   100820: 
                   100821:       if test "$ext_shared" = "yes"; then
                   100822:         LDFLAGS="-L$ai_p $LDFLAGS"
                   100823:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   100824:       else
                   100825: 
                   100826: 
                   100827: 
                   100828:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   100829: 
                   100830:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   100831:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   100832:     eval "LIBPATH$unique=set"
                   100833: 
                   100834:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   100835:     LDFLAGS="$LDFLAGS -L$ai_p"
                   100836:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   100837: 
                   100838:   fi
                   100839: 
                   100840: 
                   100841:       fi
                   100842: 
                   100843:   fi
                   100844: 
                   100845:     ;;
                   100846:     esac
                   100847:   done
                   100848: 
                   100849:   as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh`
                   100850: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5
                   100851: $as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; }
                   100852: if eval \${$as_ac_Lib+:} false; then :
                   100853:   $as_echo_n "(cached) " >&6
                   100854: else
                   100855:   ac_check_lib_save_LIBS=$LIBS
                   100856: LIBS="-l$iconv_lib_name  $LIBS"
                   100857: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   100858: /* end confdefs.h.  */
                   100859: 
                   100860: /* Override any GCC internal prototype to avoid an error.
                   100861:    Use char because int might match the return type of a GCC
                   100862:    builtin and then its argument prototype would still apply.  */
                   100863: #ifdef __cplusplus
                   100864: extern "C"
                   100865: #endif
                   100866: char iconv ();
                   100867: int
                   100868: main ()
                   100869: {
                   100870: return iconv ();
                   100871:   ;
                   100872:   return 0;
                   100873: }
                   100874: _ACEOF
                   100875: if ac_fn_c_try_link "$LINENO"; then :
                   100876:   eval "$as_ac_Lib=yes"
                   100877: else
                   100878:   eval "$as_ac_Lib=no"
                   100879: fi
                   100880: rm -f core conftest.err conftest.$ac_objext \
                   100881:     conftest$ac_exeext conftest.$ac_ext
                   100882: LIBS=$ac_check_lib_save_LIBS
                   100883: fi
                   100884: eval ac_res=\$$as_ac_Lib
                   100885:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   100886: $as_echo "$ac_res" >&6; }
                   100887: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   100888: 
                   100889:     LDFLAGS=$save_old_LDFLAGS
                   100890:     ext_shared=$save_ext_shared
                   100891: 
                   100892:           found_iconv=yes
                   100893: 
                   100894: 
                   100895: else
                   100896: 
                   100897:     LDFLAGS=$save_old_LDFLAGS
                   100898:     ext_shared=$save_ext_shared
                   100899:     unset ac_cv_lib_$iconv_lib_name_iconv
                   100900: 
                   100901: 
                   100902: fi
                   100903: 
                   100904: 
                   100905: 
                   100906: fi
                   100907: 
                   100908:     fi
                   100909:   fi
                   100910: 
                   100911:   if test "$found_iconv" = "yes"; then
                   100912: 
                   100913:   echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h
                   100914: 
                   100915: 
                   100916: $as_echo "#define HAVE_ICONV 1" >>confdefs.h
                   100917: 
                   100918:     if test -n "$ICONV_DIR"; then
                   100919: 
                   100920: 
                   100921:   if test "$ext_shared" = "yes"; then
                   100922:     XMLRPC_SHARED_LIBADD="-l$iconv_lib_name $XMLRPC_SHARED_LIBADD"
                   100923:     if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
                   100924: 
                   100925:   if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   100926: 
                   100927:   if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   100928:     ai_p=$ICONV_DIR/$PHP_LIBDIR
                   100929:   else
                   100930: 
                   100931:     ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   100932: 
                   100933:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   100934:     ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
                   100935:   fi
                   100936: 
                   100937: 
                   100938:       if test "$ext_shared" = "yes"; then
                   100939:         XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
                   100940:         test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
                   100941:       else
                   100942: 
                   100943: 
                   100944: 
                   100945:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   100946: 
                   100947:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   100948:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   100949:     eval "LIBPATH$unique=set"
                   100950: 
                   100951:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   100952:     LDFLAGS="$LDFLAGS -L$ai_p"
                   100953:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   100954: 
                   100955:   fi
                   100956: 
                   100957: 
                   100958:       fi
                   100959: 
                   100960:   fi
                   100961: 
                   100962:     fi
                   100963:   else
                   100964: 
                   100965: 
                   100966:   if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
                   100967: 
                   100968:   if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   100969: 
                   100970:   if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   100971:     ai_p=$ICONV_DIR/$PHP_LIBDIR
                   100972:   else
                   100973: 
                   100974:     ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   100975: 
                   100976:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   100977:     ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
                   100978:   fi
                   100979: 
                   100980: 
                   100981: 
                   100982: 
                   100983: 
                   100984:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   100985: 
                   100986:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   100987:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   100988:     eval "LIBPATH$unique=set"
                   100989: 
                   100990:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   100991:     LDFLAGS="$LDFLAGS -L$ai_p"
                   100992:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   100993: 
                   100994:   fi
                   100995: 
                   100996: 
                   100997: 
                   100998:   fi
                   100999: 
                   101000:   fi
                   101001: 
                   101002: 
                   101003:   case $iconv_lib_name in
                   101004:   c|c_r|pthread*) ;;
                   101005:   *)
                   101006:       LIBS="-l$iconv_lib_name $LIBS"
                   101007:    ;;
                   101008:   esac
                   101009: 
                   101010: 
                   101011: 
                   101012: 
                   101013:   fi
                   101014: 
                   101015: 
                   101016: 
                   101017:   if test "$ICONV_DIR/include" != "/usr/include"; then
                   101018: 
                   101019:   if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then
                   101020:     ai_p=$ICONV_DIR/include
                   101021:   else
                   101022: 
                   101023:     ep_dir="`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   101024: 
                   101025:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   101026:     ai_p="$ep_realdir/`basename \"$ICONV_DIR/include\"`"
                   101027:   fi
                   101028: 
                   101029: 
                   101030: 
                   101031:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   101032: 
                   101033:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   101034:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   101035:     eval "INCLUDEPATH$unique=set"
                   101036: 
                   101037:       if test ""; then
                   101038:         INCLUDES="-I$ai_p $INCLUDES"
                   101039:       else
                   101040:         INCLUDES="$INCLUDES -I$ai_p"
                   101041:       fi
                   101042: 
                   101043:   fi
                   101044: 
                   101045:   fi
                   101046: 
                   101047:     fi
                   101048: 
                   101049: else
                   101050:       as_fn_error $? "iconv not found, in order to build xmlrpc you need the iconv library" "$LINENO" 5
                   101051: 
                   101052:   fi
                   101053: 
                   101054:   fi
                   101055: fi
                   101056: 
                   101057: if test "$PHP_XMLRPC" = "yes"; then
                   101058:   if test -n "$ac_tool_prefix"; then
                   101059:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   101060: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   101061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   101062: $as_echo_n "checking for $ac_word... " >&6; }
                   101063: if ${ac_cv_prog_RANLIB+:} false; then :
                   101064:   $as_echo_n "(cached) " >&6
                   101065: else
                   101066:   if test -n "$RANLIB"; then
                   101067:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   101068: else
                   101069: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   101070: for as_dir in $PATH
                   101071: do
                   101072:   IFS=$as_save_IFS
                   101073:   test -z "$as_dir" && as_dir=.
                   101074:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    101075:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    101076:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   101077:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   101078:     break 2
                   101079:   fi
                   101080: done
                   101081:   done
                   101082: IFS=$as_save_IFS
                   101083: 
                   101084: fi
                   101085: fi
                   101086: RANLIB=$ac_cv_prog_RANLIB
                   101087: if test -n "$RANLIB"; then
                   101088:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   101089: $as_echo "$RANLIB" >&6; }
                   101090: else
                   101091:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   101092: $as_echo "no" >&6; }
                   101093: fi
                   101094: 
                   101095: 
                   101096: fi
                   101097: if test -z "$ac_cv_prog_RANLIB"; then
                   101098:   ac_ct_RANLIB=$RANLIB
                   101099:   # Extract the first word of "ranlib", so it can be a program name with args.
                   101100: set dummy ranlib; ac_word=$2
                   101101: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   101102: $as_echo_n "checking for $ac_word... " >&6; }
                   101103: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
                   101104:   $as_echo_n "(cached) " >&6
                   101105: else
                   101106:   if test -n "$ac_ct_RANLIB"; then
                   101107:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   101108: else
                   101109: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   101110: for as_dir in $PATH
                   101111: do
                   101112:   IFS=$as_save_IFS
                   101113:   test -z "$as_dir" && as_dir=.
                   101114:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    101115:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    101116:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   101117:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   101118:     break 2
                   101119:   fi
                   101120: done
                   101121:   done
                   101122: IFS=$as_save_IFS
                   101123: 
                   101124: fi
                   101125: fi
                   101126: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   101127: if test -n "$ac_ct_RANLIB"; then
                   101128:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   101129: $as_echo "$ac_ct_RANLIB" >&6; }
                   101130: else
                   101131:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   101132: $as_echo "no" >&6; }
                   101133: fi
                   101134: 
                   101135:   if test "x$ac_ct_RANLIB" = x; then
                   101136:     RANLIB=":"
                   101137:   else
                   101138:     case $cross_compiling:$ac_tool_warned in
                   101139: yes:)
                   101140: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   101141: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   101142: ac_tool_warned=yes ;;
                   101143: esac
                   101144:     RANLIB=$ac_ct_RANLIB
                   101145:   fi
                   101146: else
                   101147:   RANLIB="$ac_cv_prog_RANLIB"
                   101148: fi
                   101149: 
                   101150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
                   101151: $as_echo_n "checking for inline... " >&6; }
                   101152: if ${ac_cv_c_inline+:} false; then :
                   101153:   $as_echo_n "(cached) " >&6
                   101154: else
                   101155:   ac_cv_c_inline=no
                   101156: for ac_kw in inline __inline__ __inline; do
                   101157:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   101158: /* end confdefs.h.  */
                   101159: #ifndef __cplusplus
                   101160: typedef int foo_t;
                   101161: static $ac_kw foo_t static_foo () {return 0; }
                   101162: $ac_kw foo_t foo () {return 0; }
                   101163: #endif
                   101164: 
                   101165: _ACEOF
                   101166: if ac_fn_c_try_compile "$LINENO"; then :
                   101167:   ac_cv_c_inline=$ac_kw
                   101168: fi
                   101169: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   101170:   test "$ac_cv_c_inline" != no && break
                   101171: done
                   101172: 
                   101173: fi
                   101174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
                   101175: $as_echo "$ac_cv_c_inline" >&6; }
                   101176: 
                   101177: case $ac_cv_c_inline in
                   101178:   inline | yes) ;;
                   101179:   *)
                   101180:     case $ac_cv_c_inline in
                   101181:       no) ac_val=;;
                   101182:       *) ac_val=$ac_cv_c_inline;;
                   101183:     esac
                   101184:     cat >>confdefs.h <<_ACEOF
                   101185: #ifndef __cplusplus
                   101186: #define inline $ac_val
                   101187: #endif
                   101188: _ACEOF
                   101189:     ;;
                   101190: esac
                   101191: 
                   101192: 
                   101193: 
                   101194: 
                   101195: 
                   101196: 
                   101197: 
                   101198: 
                   101199: $as_echo "#define UNDEF_THREADS_HACK /**/" >>confdefs.h
                   101200: 
                   101201: 
                   101202: 
                   101203: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   101204: $as_echo_n "checking for ANSI C header files... " >&6; }
                   101205: if ${ac_cv_header_stdc+:} false; then :
                   101206:   $as_echo_n "(cached) " >&6
                   101207: else
                   101208:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   101209: /* end confdefs.h.  */
                   101210: #include <stdlib.h>
                   101211: #include <stdarg.h>
                   101212: #include <string.h>
                   101213: #include <float.h>
                   101214: 
                   101215: int
                   101216: main ()
                   101217: {
                   101218: 
                   101219:   ;
                   101220:   return 0;
                   101221: }
                   101222: _ACEOF
                   101223: if ac_fn_c_try_compile "$LINENO"; then :
                   101224:   ac_cv_header_stdc=yes
                   101225: else
                   101226:   ac_cv_header_stdc=no
                   101227: fi
                   101228: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   101229: 
                   101230: if test $ac_cv_header_stdc = yes; then
                   101231:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   101232:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   101233: /* end confdefs.h.  */
                   101234: #include <string.h>
                   101235: 
                   101236: _ACEOF
                   101237: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   101238:   $EGREP "memchr" >/dev/null 2>&1; then :
                   101239: 
                   101240: else
                   101241:   ac_cv_header_stdc=no
                   101242: fi
                   101243: rm -f conftest*
                   101244: 
                   101245: fi
                   101246: 
                   101247: if test $ac_cv_header_stdc = yes; then
                   101248:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   101249:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   101250: /* end confdefs.h.  */
                   101251: #include <stdlib.h>
                   101252: 
                   101253: _ACEOF
                   101254: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   101255:   $EGREP "free" >/dev/null 2>&1; then :
                   101256: 
                   101257: else
                   101258:   ac_cv_header_stdc=no
                   101259: fi
                   101260: rm -f conftest*
                   101261: 
                   101262: fi
                   101263: 
                   101264: if test $ac_cv_header_stdc = yes; then
                   101265:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   101266:   if test "$cross_compiling" = yes; then :
                   101267:   :
                   101268: else
                   101269:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   101270: /* end confdefs.h.  */
                   101271: #include <ctype.h>
                   101272: #include <stdlib.h>
                   101273: #if ((' ' & 0x0FF) == 0x020)
                   101274: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   101275: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   101276: #else
                   101277: # define ISLOWER(c) \
                   101278:                   (('a' <= (c) && (c) <= 'i') \
                   101279:                     || ('j' <= (c) && (c) <= 'r') \
                   101280:                     || ('s' <= (c) && (c) <= 'z'))
                   101281: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   101282: #endif
                   101283: 
                   101284: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   101285: int
                   101286: main ()
                   101287: {
                   101288:   int i;
                   101289:   for (i = 0; i < 256; i++)
                   101290:     if (XOR (islower (i), ISLOWER (i))
                   101291:        || toupper (i) != TOUPPER (i))
                   101292:       return 2;
                   101293:   return 0;
                   101294: }
                   101295: _ACEOF
                   101296: if ac_fn_c_try_run "$LINENO"; then :
                   101297: 
                   101298: else
                   101299:   ac_cv_header_stdc=no
                   101300: fi
                   101301: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   101302:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   101303: fi
                   101304: 
                   101305: fi
                   101306: fi
                   101307: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   101308: $as_echo "$ac_cv_header_stdc" >&6; }
                   101309: if test $ac_cv_header_stdc = yes; then
                   101310: 
                   101311: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
                   101312: 
                   101313: fi
                   101314: 
                   101315: for ac_header in xmlparse.h xmltok.h stdlib.h strings.h string.h
                   101316: do :
                   101317:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   101318: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   101319: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   101320:   cat >>confdefs.h <<_ACEOF
                   101321: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   101322: _ACEOF
                   101323: 
                   101324: fi
                   101325: 
                   101326: done
                   101327: 
                   101328: 
                   101329: 
                   101330: 
                   101331: 
                   101332: 
                   101333: # The cast to long int works around a bug in the HP C Compiler
                   101334: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   101335: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   101336: # This bug is HP SR number 8606223364.
                   101337: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   101338: $as_echo_n "checking size of char... " >&6; }
                   101339: if ${ac_cv_sizeof_char+:} false; then :
                   101340:   $as_echo_n "(cached) " >&6
                   101341: else
                   101342:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   101343: 
                   101344: else
                   101345:   if test "$ac_cv_type_char" = yes; then
                   101346:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   101347: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   101348: as_fn_error 77 "cannot compute sizeof (char)
                   101349: See \`config.log' for more details" "$LINENO" 5; }
                   101350:    else
                   101351:      ac_cv_sizeof_char=0
                   101352:    fi
                   101353: fi
                   101354: 
                   101355: fi
                   101356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   101357: $as_echo "$ac_cv_sizeof_char" >&6; }
                   101358: 
                   101359: 
                   101360: 
                   101361: cat >>confdefs.h <<_ACEOF
                   101362: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   101363: _ACEOF
                   101364: 
                   101365: 
                   101366: 
                   101367: # The cast to long int works around a bug in the HP C Compiler
                   101368: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   101369: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   101370: # This bug is HP SR number 8606223364.
                   101371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   101372: $as_echo_n "checking size of int... " >&6; }
                   101373: if ${ac_cv_sizeof_int+:} false; then :
                   101374:   $as_echo_n "(cached) " >&6
                   101375: else
                   101376:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
                   101377: 
                   101378: else
                   101379:   if test "$ac_cv_type_int" = yes; then
                   101380:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   101381: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   101382: as_fn_error 77 "cannot compute sizeof (int)
                   101383: See \`config.log' for more details" "$LINENO" 5; }
                   101384:    else
                   101385:      ac_cv_sizeof_int=0
                   101386:    fi
                   101387: fi
                   101388: 
                   101389: fi
                   101390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   101391: $as_echo "$ac_cv_sizeof_int" >&6; }
                   101392: 
                   101393: 
                   101394: 
                   101395: cat >>confdefs.h <<_ACEOF
                   101396: #define SIZEOF_INT $ac_cv_sizeof_int
                   101397: _ACEOF
                   101398: 
                   101399: 
                   101400: # The cast to long int works around a bug in the HP C Compiler
                   101401: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   101402: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   101403: # This bug is HP SR number 8606223364.
                   101404: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
                   101405: $as_echo_n "checking size of long... " >&6; }
                   101406: if ${ac_cv_sizeof_long+:} false; then :
                   101407:   $as_echo_n "(cached) " >&6
                   101408: else
                   101409:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
                   101410: 
                   101411: else
                   101412:   if test "$ac_cv_type_long" = yes; then
                   101413:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   101414: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   101415: as_fn_error 77 "cannot compute sizeof (long)
                   101416: See \`config.log' for more details" "$LINENO" 5; }
                   101417:    else
                   101418:      ac_cv_sizeof_long=0
                   101419:    fi
                   101420: fi
                   101421: 
                   101422: fi
                   101423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
                   101424: $as_echo "$ac_cv_sizeof_long" >&6; }
                   101425: 
                   101426: 
                   101427: 
                   101428: cat >>confdefs.h <<_ACEOF
                   101429: #define SIZEOF_LONG $ac_cv_sizeof_long
                   101430: _ACEOF
                   101431: 
                   101432: 
                   101433: # The cast to long int works around a bug in the HP C Compiler
                   101434: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   101435: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   101436: # This bug is HP SR number 8606223364.
                   101437: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
                   101438: $as_echo_n "checking size of long long... " >&6; }
                   101439: if ${ac_cv_sizeof_long_long+:} false; then :
                   101440:   $as_echo_n "(cached) " >&6
                   101441: else
                   101442:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
                   101443: 
                   101444: else
                   101445:   if test "$ac_cv_type_long_long" = yes; then
                   101446:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   101447: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   101448: as_fn_error 77 "cannot compute sizeof (long long)
                   101449: See \`config.log' for more details" "$LINENO" 5; }
                   101450:    else
                   101451:      ac_cv_sizeof_long_long=0
                   101452:    fi
                   101453: fi
                   101454: 
                   101455: fi
                   101456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
                   101457: $as_echo "$ac_cv_sizeof_long_long" >&6; }
                   101458: 
                   101459: 
                   101460: 
                   101461: cat >>confdefs.h <<_ACEOF
                   101462: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
                   101463: _ACEOF
                   101464: 
                   101465: 
                   101466: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
                   101467: if test "x$ac_cv_type_size_t" = xyes; then :
                   101468: 
                   101469: else
                   101470: 
                   101471: cat >>confdefs.h <<_ACEOF
                   101472: #define size_t unsigned int
                   101473: _ACEOF
                   101474: 
                   101475: fi
                   101476: 
                   101477: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   101478: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
                   101479: if ${ac_cv_header_time+:} false; then :
                   101480:   $as_echo_n "(cached) " >&6
                   101481: else
                   101482:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   101483: /* end confdefs.h.  */
                   101484: #include <sys/types.h>
                   101485: #include <sys/time.h>
                   101486: #include <time.h>
                   101487: 
                   101488: int
                   101489: main ()
                   101490: {
                   101491: if ((struct tm *) 0)
                   101492: return 0;
                   101493:   ;
                   101494:   return 0;
                   101495: }
                   101496: _ACEOF
                   101497: if ac_fn_c_try_compile "$LINENO"; then :
                   101498:   ac_cv_header_time=yes
                   101499: else
                   101500:   ac_cv_header_time=no
                   101501: fi
                   101502: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   101503: fi
                   101504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   101505: $as_echo "$ac_cv_header_time" >&6; }
                   101506: if test $ac_cv_header_time = yes; then
                   101507: 
                   101508: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
                   101509: 
                   101510: fi
                   101511: 
                   101512: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   101513: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
                   101514: if ${ac_cv_type_uid_t+:} false; then :
                   101515:   $as_echo_n "(cached) " >&6
                   101516: else
                   101517:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   101518: /* end confdefs.h.  */
                   101519: #include <sys/types.h>
                   101520: 
                   101521: _ACEOF
                   101522: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   101523:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   101524:   ac_cv_type_uid_t=yes
                   101525: else
                   101526:   ac_cv_type_uid_t=no
                   101527: fi
                   101528: rm -f conftest*
                   101529: 
                   101530: fi
                   101531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   101532: $as_echo "$ac_cv_type_uid_t" >&6; }
                   101533: if test $ac_cv_type_uid_t = no; then
                   101534: 
                   101535: $as_echo "#define uid_t int" >>confdefs.h
                   101536: 
                   101537: 
                   101538: $as_echo "#define gid_t int" >>confdefs.h
                   101539: 
                   101540: fi
                   101541: 
                   101542: 
                   101543: 
                   101544: 
                   101545: 
                   101546: 
                   101547: # Standard XMLRPC list
                   101548: for ac_func in \
                   101549:  strtoul strtoull snprintf \
                   101550:  strstr strpbrk strerror\
                   101551:  memcpy memmove
                   101552: do :
                   101553:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   101554: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   101555: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   101556:   cat >>confdefs.h <<_ACEOF
                   101557: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   101558: _ACEOF
                   101559: 
                   101560: fi
                   101561: done
                   101562: 
                   101563: 
                   101564: 
                   101565: 
                   101566: 
                   101567:   ext_builddir=ext/xmlrpc
                   101568:   ext_srcdir=$abs_srcdir/ext/xmlrpc
                   101569: 
                   101570:   ac_extra=`echo "-I@ext_srcdir@/libxmlrpc -DVERSION="0.50""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
                   101571: 
                   101572:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   101573:     PHP_XMLRPC_SHARED=no
                   101574: 
                   101575: 
                   101576:   case ext/xmlrpc in
                   101577:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   101578:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   101579:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   101580:   esac
                   101581: 
                   101582: 
                   101583: 
                   101584:   b_c_pre=$php_c_pre
                   101585:   b_cxx_pre=$php_cxx_pre
                   101586:   b_c_meta=$php_c_meta
                   101587:   b_cxx_meta=$php_cxx_meta
                   101588:   b_c_post=$php_c_post
                   101589:   b_cxx_post=$php_cxx_post
                   101590:   b_lo=$php_lo
                   101591: 
                   101592: 
                   101593:   old_IFS=$IFS
                   101594:   for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
                   101595:           libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
                   101596:           libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
                   101597:           libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
                   101598:           libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
                   101599:           libxmlrpc/xml_to_soap.c; do
                   101600: 
                   101601:       IFS=.
                   101602:       set $ac_src
                   101603:       ac_obj=$1
                   101604:       IFS=$old_IFS
                   101605: 
                   101606:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   101607: 
                   101608:       case $ac_src in
                   101609:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   101610:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   101611:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   101612:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   101613:       esac
                   101614: 
                   101615:     cat >>Makefile.objects<<EOF
                   101616: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   101617:        $ac_comp
                   101618: EOF
                   101619:   done
                   101620: 
                   101621: 
                   101622:     EXT_STATIC="$EXT_STATIC xmlrpc"
                   101623:     if test "$ext_shared" != "nocli"; then
                   101624:       EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
                   101625:     fi
                   101626:   else
                   101627:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   101628:       PHP_XMLRPC_SHARED=yes
                   101629: 
                   101630:   case ext/xmlrpc in
                   101631:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   101632:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   101633:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   101634:   esac
                   101635: 
                   101636: 
                   101637: 
                   101638:   b_c_pre=$shared_c_pre
                   101639:   b_cxx_pre=$shared_cxx_pre
                   101640:   b_c_meta=$shared_c_meta
                   101641:   b_cxx_meta=$shared_cxx_meta
                   101642:   b_c_post=$shared_c_post
                   101643:   b_cxx_post=$shared_cxx_post
                   101644:   b_lo=$shared_lo
                   101645: 
                   101646: 
                   101647:   old_IFS=$IFS
                   101648:   for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
                   101649:           libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
                   101650:           libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
                   101651:           libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
                   101652:           libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
                   101653:           libxmlrpc/xml_to_soap.c; do
                   101654: 
                   101655:       IFS=.
                   101656:       set $ac_src
                   101657:       ac_obj=$1
                   101658:       IFS=$old_IFS
                   101659: 
                   101660:       shared_objects_xmlrpc="$shared_objects_xmlrpc $ac_bdir$ac_obj.lo"
                   101661: 
                   101662:       case $ac_src in
                   101663:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   101664:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   101665:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   101666:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   101667:       esac
                   101668: 
                   101669:     cat >>Makefile.objects<<EOF
                   101670: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   101671:        $ac_comp
                   101672: EOF
                   101673:   done
                   101674: 
                   101675:       case $host_alias in
                   101676:         *netware*)
                   101677: 
                   101678:   install_modules="install-modules"
                   101679: 
                   101680:   case $host_alias in
                   101681:     *aix*)
                   101682:       suffix=so
                   101683:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxmlrpc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(PHPXMLRPC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxmlrpc.so '$ext_builddir'/phpxmlrpc.so'
                   101684:       ;;
                   101685:     *netware*)
                   101686:       suffix=nlm
                   101687:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) -L$(top_builddir)/netware -lphp5lib $(XMLRPC_SHARED_LIBADD)'
                   101688:       ;;
                   101689:     *)
                   101690:       suffix=la
                   101691:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(PHPXMLRPC_SHARED_LIBADD)'
                   101692:       ;;
                   101693:   esac
                   101694: 
                   101695:   if test "x" = "xyes"; then
                   101696:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlrpc.$suffix"
                   101697:   else
                   101698:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlrpc.$suffix"
                   101699:   fi
                   101700: 
                   101701:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
                   101702: 
                   101703:   cat >>Makefile.objects<<EOF
                   101704: \$(phplibdir)/phpxmlrpc.$suffix: $ext_builddir/phpxmlrpc.$suffix
                   101705:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlrpc.$suffix \$(phplibdir)
                   101706: 
                   101707: $ext_builddir/phpxmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(PHPXMLRPC_SHARED_DEPENDENCIES)
                   101708:        $link_cmd
                   101709: 
                   101710: EOF
                   101711: 
                   101712:           ;;
                   101713:         *)
                   101714: 
                   101715:   install_modules="install-modules"
                   101716: 
                   101717:   case $host_alias in
                   101718:     *aix*)
                   101719:       suffix=so
                   101720:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xmlrpc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(XMLRPC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xmlrpc.so '$ext_builddir'/xmlrpc.so'
                   101721:       ;;
                   101722:     *netware*)
                   101723:       suffix=nlm
                   101724:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) -L$(top_builddir)/netware -lphp5lib $(RPC_SHARED_LIBADD)'
                   101725:       ;;
                   101726:     *)
                   101727:       suffix=la
                   101728:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(XMLRPC_SHARED_LIBADD)'
                   101729:       ;;
                   101730:   esac
                   101731: 
                   101732:   if test "x" = "xyes"; then
                   101733:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlrpc.$suffix"
                   101734:   else
                   101735:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlrpc.$suffix"
                   101736:   fi
                   101737: 
                   101738:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
                   101739: 
                   101740:   cat >>Makefile.objects<<EOF
                   101741: \$(phplibdir)/xmlrpc.$suffix: $ext_builddir/xmlrpc.$suffix
                   101742:        \$(LIBTOOL) --mode=install cp $ext_builddir/xmlrpc.$suffix \$(phplibdir)
                   101743: 
                   101744: $ext_builddir/xmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(XMLRPC_SHARED_DEPENDENCIES)
                   101745:        $link_cmd
                   101746: 
                   101747: EOF
                   101748: 
                   101749:           ;;
                   101750:       esac
                   101751: 
                   101752: cat >>confdefs.h <<_ACEOF
                   101753: #define COMPILE_DL_XMLRPC 1
                   101754: _ACEOF
                   101755: 
                   101756:     fi
                   101757:   fi
                   101758: 
                   101759:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   101760:     PHP_XMLRPC_SHARED=no
                   101761: 
                   101762: 
                   101763:   case ext/xmlrpc in
                   101764:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   101765:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   101766:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   101767:   esac
                   101768: 
                   101769: 
                   101770: 
                   101771:   b_c_pre=$php_c_pre
                   101772:   b_cxx_pre=$php_cxx_pre
                   101773:   b_c_meta=$php_c_meta
                   101774:   b_cxx_meta=$php_cxx_meta
                   101775:   b_c_post=$php_c_post
                   101776:   b_cxx_post=$php_cxx_post
                   101777:   b_lo=$php_lo
                   101778: 
                   101779: 
                   101780:   old_IFS=$IFS
                   101781:   for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
                   101782:           libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
                   101783:           libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
                   101784:           libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
                   101785:           libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
                   101786:           libxmlrpc/xml_to_soap.c; do
                   101787: 
                   101788:       IFS=.
                   101789:       set $ac_src
                   101790:       ac_obj=$1
                   101791:       IFS=$old_IFS
                   101792: 
1.1.1.2 ! misho    101793:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    101794: 
                   101795:       case $ac_src in
                   101796:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   101797:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   101798:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   101799:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   101800:       esac
                   101801: 
                   101802:     cat >>Makefile.objects<<EOF
                   101803: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   101804:        $ac_comp
                   101805: EOF
                   101806:   done
                   101807: 
                   101808: 
                   101809: 
                   101810: 
                   101811:   case ext/xmlrpc in
                   101812:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   101813:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   101814:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   101815:   esac
                   101816: 
                   101817: 
                   101818: 
                   101819:   b_c_pre=$php_c_pre
                   101820:   b_cxx_pre=$php_cxx_pre
                   101821:   b_c_meta=$php_c_meta
                   101822:   b_cxx_meta=$php_cxx_meta
                   101823:   b_c_post=$php_c_post
                   101824:   b_cxx_post=$php_cxx_post
                   101825:   b_lo=$php_lo
                   101826: 
                   101827: 
                   101828:   old_IFS=$IFS
                   101829:   for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
                   101830:           libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
                   101831:           libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
                   101832:           libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
                   101833:           libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
                   101834:           libxmlrpc/xml_to_soap.c; do
                   101835: 
                   101836:       IFS=.
                   101837:       set $ac_src
                   101838:       ac_obj=$1
                   101839:       IFS=$old_IFS
                   101840: 
1.1.1.2 ! misho    101841:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    101842: 
                   101843:       case $ac_src in
                   101844:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   101845:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   101846:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   101847:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   101848:       esac
                   101849: 
                   101850:     cat >>Makefile.objects<<EOF
                   101851: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   101852:        $ac_comp
                   101853: EOF
                   101854:   done
                   101855: 
                   101856: 
                   101857: 
                   101858: 
                   101859:   case ext/xmlrpc in
                   101860:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   101861:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   101862:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   101863:   esac
                   101864: 
                   101865: 
                   101866: 
                   101867:   b_c_pre=$php_c_pre
                   101868:   b_cxx_pre=$php_cxx_pre
                   101869:   b_c_meta=$php_c_meta
                   101870:   b_cxx_meta=$php_cxx_meta
                   101871:   b_c_post=$php_c_post
                   101872:   b_cxx_post=$php_cxx_post
                   101873:   b_lo=$php_lo
                   101874: 
                   101875: 
                   101876:   old_IFS=$IFS
                   101877:   for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
                   101878:           libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
                   101879:           libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
                   101880:           libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
                   101881:           libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
                   101882:           libxmlrpc/xml_to_soap.c; do
                   101883: 
                   101884:       IFS=.
                   101885:       set $ac_src
                   101886:       ac_obj=$1
                   101887:       IFS=$old_IFS
                   101888: 
1.1.1.2 ! misho    101889:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    101890: 
                   101891:       case $ac_src in
                   101892:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   101893:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   101894:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   101895:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   101896:       esac
                   101897: 
                   101898:     cat >>Makefile.objects<<EOF
                   101899: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   101900:        $ac_comp
                   101901: EOF
                   101902:   done
                   101903: 
                   101904: 
                   101905:     EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
                   101906:   fi
                   101907: 
                   101908: 
                   101909:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   101910: 
                   101911: 
                   101912: 
                   101913:   if test "$ext_builddir" = "."; then
                   101914:     PHP_PECL_EXTENSION=xmlrpc
                   101915: 
                   101916:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   101917: 
                   101918:   fi
                   101919: 
                   101920: 
                   101921: 
                   101922:     BUILD_DIR="$BUILD_DIR $ext_builddir/libxmlrpc"
                   101923: 
                   101924: 
                   101925:   XMLRPC_MODULE_TYPE=builtin
                   101926: 
                   101927: elif test "$PHP_XMLRPC" != "no"; then
                   101928: 
                   101929:   if test -r $PHP_XMLRPC/include/xmlrpc.h; then
                   101930:     XMLRPC_DIR=$PHP_XMLRPC/include
                   101931:   elif test -r $PHP_XMLRPC/include/xmlrpc-epi/xmlrpc.h; then
                   101932:     XMLRPC_DIR=$PHP_XMLRPC/include/xmlrpc-epi
                   101933:   else
                   101934:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLRPC-EPI in default path" >&5
                   101935: $as_echo_n "checking for XMLRPC-EPI in default path... " >&6; }
                   101936:     for i in /usr/local /usr; do
                   101937:       if test -r $i/include/xmlrpc.h; then
                   101938:         XMLRPC_DIR=$i/include
                   101939:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
                   101940: $as_echo "found in $i" >&6; }
                   101941:         break
                   101942:       fi
                   101943:     done
                   101944:   fi
                   101945: 
                   101946:   if test -z "$XMLRPC_DIR"; then
                   101947:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   101948: $as_echo "not found" >&6; }
                   101949:     as_fn_error $? "Please reinstall the XMLRPC-EPI distribution" "$LINENO" 5
                   101950:   fi
                   101951: 
                   101952: 
                   101953:   if test "$XMLRPC_DIR" != "/usr/include"; then
                   101954: 
                   101955:   if test -z "$XMLRPC_DIR" || echo "$XMLRPC_DIR" | grep '^/' >/dev/null ; then
                   101956:     ai_p=$XMLRPC_DIR
                   101957:   else
                   101958: 
                   101959:     ep_dir="`echo $XMLRPC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   101960: 
                   101961:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   101962:     ai_p="$ep_realdir/`basename \"$XMLRPC_DIR\"`"
                   101963:   fi
                   101964: 
                   101965: 
                   101966: 
                   101967:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   101968: 
                   101969:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   101970:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   101971:     eval "INCLUDEPATH$unique=set"
                   101972: 
                   101973:       if test ""; then
                   101974:         INCLUDES="-I$ai_p $INCLUDES"
                   101975:       else
                   101976:         INCLUDES="$INCLUDES -I$ai_p"
                   101977:       fi
                   101978: 
                   101979:   fi
                   101980: 
                   101981:   fi
                   101982: 
                   101983: 
                   101984: 
                   101985:   if test "$ext_shared" = "yes"; then
                   101986:     XMLRPC_SHARED_LIBADD="-lxmlrpc $XMLRPC_SHARED_LIBADD"
                   101987:     if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then
                   101988: 
                   101989:   if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   101990: 
                   101991:   if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   101992:     ai_p=$XMLRPC_DIR/$PHP_LIBDIR
                   101993:   else
                   101994: 
                   101995:     ep_dir="`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   101996: 
                   101997:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   101998:     ai_p="$ep_realdir/`basename \"$XMLRPC_DIR/$PHP_LIBDIR\"`"
                   101999:   fi
                   102000: 
                   102001: 
                   102002:       if test "$ext_shared" = "yes"; then
                   102003:         XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
                   102004:         test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
                   102005:       else
                   102006: 
                   102007: 
                   102008: 
                   102009:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   102010: 
                   102011:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   102012:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   102013:     eval "LIBPATH$unique=set"
                   102014: 
                   102015:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   102016:     LDFLAGS="$LDFLAGS -L$ai_p"
                   102017:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   102018: 
                   102019:   fi
                   102020: 
                   102021: 
                   102022:       fi
                   102023: 
                   102024:   fi
                   102025: 
                   102026:     fi
                   102027:   else
                   102028: 
                   102029: 
                   102030:   if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then
                   102031: 
                   102032:   if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   102033: 
                   102034:   if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   102035:     ai_p=$XMLRPC_DIR/$PHP_LIBDIR
                   102036:   else
                   102037: 
                   102038:     ep_dir="`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   102039: 
                   102040:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   102041:     ai_p="$ep_realdir/`basename \"$XMLRPC_DIR/$PHP_LIBDIR\"`"
                   102042:   fi
                   102043: 
                   102044: 
                   102045: 
                   102046: 
                   102047: 
                   102048:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   102049: 
                   102050:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   102051:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   102052:     eval "LIBPATH$unique=set"
                   102053: 
                   102054:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   102055:     LDFLAGS="$LDFLAGS -L$ai_p"
                   102056:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   102057: 
                   102058:   fi
                   102059: 
                   102060: 
                   102061: 
                   102062:   fi
                   102063: 
                   102064:   fi
                   102065: 
                   102066: 
                   102067:   case xmlrpc in
                   102068:   c|c_r|pthread*) ;;
                   102069:   *)
                   102070:       LIBS="-lxmlrpc $LIBS"
                   102071:    ;;
                   102072:   esac
                   102073: 
                   102074: 
                   102075: 
                   102076: 
                   102077:   fi
                   102078: 
                   102079: 
                   102080: 
                   102081:   ext_builddir=ext/xmlrpc
                   102082:   ext_srcdir=$abs_srcdir/ext/xmlrpc
                   102083: 
                   102084:   ac_extra=
                   102085: 
                   102086:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   102087:     PHP_XMLRPC_SHARED=no
                   102088: 
                   102089: 
                   102090:   case ext/xmlrpc in
                   102091:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   102092:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   102093:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   102094:   esac
                   102095: 
                   102096: 
                   102097: 
                   102098:   b_c_pre=$php_c_pre
                   102099:   b_cxx_pre=$php_cxx_pre
                   102100:   b_c_meta=$php_c_meta
                   102101:   b_cxx_meta=$php_cxx_meta
                   102102:   b_c_post=$php_c_post
                   102103:   b_cxx_post=$php_cxx_post
                   102104:   b_lo=$php_lo
                   102105: 
                   102106: 
                   102107:   old_IFS=$IFS
                   102108:   for ac_src in xmlrpc-epi-php.c; do
                   102109: 
                   102110:       IFS=.
                   102111:       set $ac_src
                   102112:       ac_obj=$1
                   102113:       IFS=$old_IFS
                   102114: 
                   102115:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   102116: 
                   102117:       case $ac_src in
                   102118:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102119:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102120:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102121:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   102122:       esac
                   102123: 
                   102124:     cat >>Makefile.objects<<EOF
                   102125: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   102126:        $ac_comp
                   102127: EOF
                   102128:   done
                   102129: 
                   102130: 
                   102131:     EXT_STATIC="$EXT_STATIC xmlrpc"
                   102132:     if test "$ext_shared" != "nocli"; then
                   102133:       EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
                   102134:     fi
                   102135:   else
                   102136:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   102137:       PHP_XMLRPC_SHARED=yes
                   102138: 
                   102139:   case ext/xmlrpc in
                   102140:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   102141:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   102142:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   102143:   esac
                   102144: 
                   102145: 
                   102146: 
                   102147:   b_c_pre=$shared_c_pre
                   102148:   b_cxx_pre=$shared_cxx_pre
                   102149:   b_c_meta=$shared_c_meta
                   102150:   b_cxx_meta=$shared_cxx_meta
                   102151:   b_c_post=$shared_c_post
                   102152:   b_cxx_post=$shared_cxx_post
                   102153:   b_lo=$shared_lo
                   102154: 
                   102155: 
                   102156:   old_IFS=$IFS
                   102157:   for ac_src in xmlrpc-epi-php.c; do
                   102158: 
                   102159:       IFS=.
                   102160:       set $ac_src
                   102161:       ac_obj=$1
                   102162:       IFS=$old_IFS
                   102163: 
                   102164:       shared_objects_xmlrpc="$shared_objects_xmlrpc $ac_bdir$ac_obj.lo"
                   102165: 
                   102166:       case $ac_src in
                   102167:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102168:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102169:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102170:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   102171:       esac
                   102172: 
                   102173:     cat >>Makefile.objects<<EOF
                   102174: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   102175:        $ac_comp
                   102176: EOF
                   102177:   done
                   102178: 
                   102179:       case $host_alias in
                   102180:         *netware*)
                   102181: 
                   102182:   install_modules="install-modules"
                   102183: 
                   102184:   case $host_alias in
                   102185:     *aix*)
                   102186:       suffix=so
                   102187:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxmlrpc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(PHPXMLRPC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxmlrpc.so '$ext_builddir'/phpxmlrpc.so'
                   102188:       ;;
                   102189:     *netware*)
                   102190:       suffix=nlm
                   102191:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) -L$(top_builddir)/netware -lphp5lib $(XMLRPC_SHARED_LIBADD)'
                   102192:       ;;
                   102193:     *)
                   102194:       suffix=la
                   102195:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(PHPXMLRPC_SHARED_LIBADD)'
                   102196:       ;;
                   102197:   esac
                   102198: 
                   102199:   if test "x" = "xyes"; then
                   102200:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlrpc.$suffix"
                   102201:   else
                   102202:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlrpc.$suffix"
                   102203:   fi
                   102204: 
                   102205:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
                   102206: 
                   102207:   cat >>Makefile.objects<<EOF
                   102208: \$(phplibdir)/phpxmlrpc.$suffix: $ext_builddir/phpxmlrpc.$suffix
                   102209:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlrpc.$suffix \$(phplibdir)
                   102210: 
                   102211: $ext_builddir/phpxmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(PHPXMLRPC_SHARED_DEPENDENCIES)
                   102212:        $link_cmd
                   102213: 
                   102214: EOF
                   102215: 
                   102216:           ;;
                   102217:         *)
                   102218: 
                   102219:   install_modules="install-modules"
                   102220: 
                   102221:   case $host_alias in
                   102222:     *aix*)
                   102223:       suffix=so
                   102224:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xmlrpc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(XMLRPC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xmlrpc.so '$ext_builddir'/xmlrpc.so'
                   102225:       ;;
                   102226:     *netware*)
                   102227:       suffix=nlm
                   102228:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) -L$(top_builddir)/netware -lphp5lib $(RPC_SHARED_LIBADD)'
                   102229:       ;;
                   102230:     *)
                   102231:       suffix=la
                   102232:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(XMLRPC_SHARED_LIBADD)'
                   102233:       ;;
                   102234:   esac
                   102235: 
                   102236:   if test "x" = "xyes"; then
                   102237:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlrpc.$suffix"
                   102238:   else
                   102239:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlrpc.$suffix"
                   102240:   fi
                   102241: 
                   102242:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
                   102243: 
                   102244:   cat >>Makefile.objects<<EOF
                   102245: \$(phplibdir)/xmlrpc.$suffix: $ext_builddir/xmlrpc.$suffix
                   102246:        \$(LIBTOOL) --mode=install cp $ext_builddir/xmlrpc.$suffix \$(phplibdir)
                   102247: 
                   102248: $ext_builddir/xmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(XMLRPC_SHARED_DEPENDENCIES)
                   102249:        $link_cmd
                   102250: 
                   102251: EOF
                   102252: 
                   102253:           ;;
                   102254:       esac
                   102255: 
                   102256: cat >>confdefs.h <<_ACEOF
                   102257: #define COMPILE_DL_XMLRPC 1
                   102258: _ACEOF
                   102259: 
                   102260:     fi
                   102261:   fi
                   102262: 
                   102263:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   102264:     PHP_XMLRPC_SHARED=no
                   102265: 
                   102266: 
                   102267:   case ext/xmlrpc in
                   102268:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   102269:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   102270:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   102271:   esac
                   102272: 
                   102273: 
                   102274: 
                   102275:   b_c_pre=$php_c_pre
                   102276:   b_cxx_pre=$php_cxx_pre
                   102277:   b_c_meta=$php_c_meta
                   102278:   b_cxx_meta=$php_cxx_meta
                   102279:   b_c_post=$php_c_post
                   102280:   b_cxx_post=$php_cxx_post
                   102281:   b_lo=$php_lo
                   102282: 
                   102283: 
                   102284:   old_IFS=$IFS
                   102285:   for ac_src in xmlrpc-epi-php.c; do
                   102286: 
                   102287:       IFS=.
                   102288:       set $ac_src
                   102289:       ac_obj=$1
                   102290:       IFS=$old_IFS
                   102291: 
1.1.1.2 ! misho    102292:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    102293: 
                   102294:       case $ac_src in
                   102295:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102296:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102297:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102298:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   102299:       esac
                   102300: 
                   102301:     cat >>Makefile.objects<<EOF
                   102302: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   102303:        $ac_comp
                   102304: EOF
                   102305:   done
                   102306: 
                   102307: 
                   102308: 
                   102309: 
                   102310:   case ext/xmlrpc in
                   102311:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   102312:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   102313:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   102314:   esac
                   102315: 
                   102316: 
                   102317: 
                   102318:   b_c_pre=$php_c_pre
                   102319:   b_cxx_pre=$php_cxx_pre
                   102320:   b_c_meta=$php_c_meta
                   102321:   b_cxx_meta=$php_cxx_meta
                   102322:   b_c_post=$php_c_post
                   102323:   b_cxx_post=$php_cxx_post
                   102324:   b_lo=$php_lo
                   102325: 
                   102326: 
                   102327:   old_IFS=$IFS
                   102328:   for ac_src in xmlrpc-epi-php.c; do
                   102329: 
                   102330:       IFS=.
                   102331:       set $ac_src
                   102332:       ac_obj=$1
                   102333:       IFS=$old_IFS
                   102334: 
1.1.1.2 ! misho    102335:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    102336: 
                   102337:       case $ac_src in
                   102338:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102339:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102340:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102341:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   102342:       esac
                   102343: 
                   102344:     cat >>Makefile.objects<<EOF
                   102345: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   102346:        $ac_comp
                   102347: EOF
                   102348:   done
                   102349: 
                   102350: 
                   102351: 
                   102352: 
                   102353:   case ext/xmlrpc in
                   102354:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   102355:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   102356:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   102357:   esac
                   102358: 
                   102359: 
                   102360: 
                   102361:   b_c_pre=$php_c_pre
                   102362:   b_cxx_pre=$php_cxx_pre
                   102363:   b_c_meta=$php_c_meta
                   102364:   b_cxx_meta=$php_cxx_meta
                   102365:   b_c_post=$php_c_post
                   102366:   b_cxx_post=$php_cxx_post
                   102367:   b_lo=$php_lo
                   102368: 
                   102369: 
                   102370:   old_IFS=$IFS
                   102371:   for ac_src in xmlrpc-epi-php.c; do
                   102372: 
                   102373:       IFS=.
                   102374:       set $ac_src
                   102375:       ac_obj=$1
                   102376:       IFS=$old_IFS
                   102377: 
1.1.1.2 ! misho    102378:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    102379: 
                   102380:       case $ac_src in
                   102381:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102382:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102383:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102384:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   102385:       esac
                   102386: 
                   102387:     cat >>Makefile.objects<<EOF
                   102388: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   102389:        $ac_comp
                   102390: EOF
                   102391:   done
                   102392: 
                   102393: 
                   102394:     EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
                   102395:   fi
                   102396: 
                   102397: 
                   102398:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   102399: 
                   102400: 
                   102401: 
                   102402:   if test "$ext_builddir" = "."; then
                   102403:     PHP_PECL_EXTENSION=xmlrpc
                   102404: 
                   102405:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   102406: 
                   102407:   fi
                   102408: 
                   102409:   XMLRPC_MODULE_TYPE=external
                   102410: fi
                   102411: 
                   102412: 
                   102413: 
                   102414: php_enable_xmlwriter=yes
                   102415: 
                   102416: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLWriter support" >&5
                   102417: $as_echo_n "checking whether to enable XMLWriter support... " >&6; }
                   102418: # Check whether --enable-xmlwriter was given.
                   102419: if test "${enable_xmlwriter+set}" = set; then :
                   102420:   enableval=$enable_xmlwriter; PHP_XMLWRITER=$enableval
                   102421: else
                   102422: 
                   102423:   PHP_XMLWRITER=yes
                   102424:   test "$PHP_ENABLE_ALL" && PHP_XMLWRITER=$PHP_ENABLE_ALL
                   102425: 
                   102426: fi
                   102427: 
                   102428: 
                   102429: 
                   102430: ext_output="yes, shared"
                   102431: ext_shared=yes
                   102432: case $PHP_XMLWRITER in
                   102433: shared,*)
                   102434:   PHP_XMLWRITER=`echo "$PHP_XMLWRITER"|$SED 's/^shared,//'`
                   102435:   ;;
                   102436: shared)
                   102437:   PHP_XMLWRITER=yes
                   102438:   ;;
                   102439: no)
                   102440:   ext_output=no
                   102441:   ext_shared=no
                   102442:   ;;
                   102443: *)
                   102444:   ext_output=yes
                   102445:   ext_shared=no
                   102446:   ;;
                   102447: esac
                   102448: 
                   102449: 
                   102450: 
                   102451: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   102452: $as_echo "$ext_output" >&6; }
                   102453: 
                   102454: 
                   102455: 
                   102456: 
                   102457: if test -z "$PHP_LIBXML_DIR"; then
                   102458: 
                   102459: php_with_libxml_dir=no
                   102460: 
                   102461: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
                   102462: $as_echo_n "checking libxml2 install dir... " >&6; }
                   102463: 
                   102464: # Check whether --with-libxml-dir was given.
                   102465: if test "${with_libxml_dir+set}" = set; then :
                   102466:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
                   102467: else
                   102468: 
                   102469:   PHP_LIBXML_DIR=no
                   102470: 
                   102471: 
                   102472: fi
                   102473: 
                   102474: 
                   102475: ext_output=$PHP_LIBXML_DIR
                   102476: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   102477: $as_echo "$ext_output" >&6; }
                   102478: 
                   102479: 
                   102480: 
                   102481: fi
                   102482: 
                   102483: if test "$PHP_XMLWRITER" != "no"; then
                   102484: 
                   102485:   if test "$PHP_LIBXML" = "no"; then
                   102486:     as_fn_error $? "XMLWriter extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
                   102487:   fi
                   102488: 
                   102489: 
                   102490: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
                   102491: $as_echo_n "checking for xml2-config path... " >&6; }
                   102492: if ${ac_cv_php_xml2_config_path+:} false; then :
                   102493:   $as_echo_n "(cached) " >&6
                   102494: else
                   102495: 
                   102496:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
                   102497:     if test -x "$i/bin/xml2-config"; then
                   102498:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
                   102499:       break
                   102500:     fi
                   102501:   done
                   102502: 
                   102503: fi
                   102504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
                   102505: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
                   102506: 
                   102507:   if test -x "$ac_cv_php_xml2_config_path"; then
                   102508:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
                   102509:     libxml_full_version=`$XML2_CONFIG --version`
                   102510:     ac_IFS=$IFS
                   102511:     IFS="."
                   102512:     set $libxml_full_version
                   102513:     IFS=$ac_IFS
                   102514:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
                   102515:     if test "$LIBXML_VERSION" -ge "2006011"; then
                   102516:       LIBXML_LIBS=`$XML2_CONFIG --libs`
                   102517:       LIBXML_INCS=`$XML2_CONFIG --cflags`
                   102518: 
                   102519:   for ac_i in $LIBXML_LIBS; do
                   102520:     case $ac_i in
                   102521:     -pthread)
                   102522:       if test "$ext_shared" = "yes"; then
                   102523:         XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -pthread"
                   102524:       else
                   102525: 
                   102526: 
                   102527:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   102528: 
                   102529:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   102530:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   102531:     eval "EXTRA_LDFLAGS$unique=set"
                   102532:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   102533:   fi
                   102534: 
                   102535:       fi
                   102536:     ;;
                   102537:     -l*)
                   102538:       ac_ii=`echo $ac_i|cut -c 3-`
                   102539: 
                   102540: 
                   102541:   case $ac_ii in
                   102542:   c|c_r|pthread*) ;;
                   102543:   *)
                   102544:     if test "$ext_shared" = "yes"; then
                   102545:         XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -l$ac_ii"
                   102546:     else
                   102547: 
                   102548: 
                   102549:   case $ac_ii in
                   102550:   c|c_r|pthread*) ;;
                   102551:   *)
                   102552:       LIBS="$LIBS -l$ac_ii"
                   102553:    ;;
                   102554:   esac
                   102555: 
                   102556: 
                   102557:     fi
                   102558:    ;;
                   102559:   esac
                   102560: 
                   102561: 
                   102562:     ;;
                   102563:     -L*)
                   102564:       ac_ii=`echo $ac_i|cut -c 3-`
                   102565: 
                   102566:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   102567: 
                   102568:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   102569:     ai_p=$ac_ii
                   102570:   else
                   102571: 
                   102572:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   102573: 
                   102574:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   102575:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   102576:   fi
                   102577: 
                   102578: 
                   102579:       if test "$ext_shared" = "yes"; then
                   102580:         XMLWRITER_SHARED_LIBADD="-L$ai_p $XMLWRITER_SHARED_LIBADD"
                   102581:         test -n "$ld_runpath_switch" && XMLWRITER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLWRITER_SHARED_LIBADD"
                   102582:       else
                   102583: 
                   102584: 
                   102585: 
                   102586:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   102587: 
                   102588:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   102589:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   102590:     eval "LIBPATH$unique=set"
                   102591: 
                   102592:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   102593:     LDFLAGS="$LDFLAGS -L$ai_p"
                   102594:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   102595: 
                   102596:   fi
                   102597: 
                   102598: 
                   102599:       fi
                   102600: 
                   102601:   fi
                   102602: 
                   102603:     ;;
                   102604:     esac
                   102605:   done
                   102606: 
                   102607: 
                   102608:   for ac_i in $LIBXML_INCS; do
                   102609:     case $ac_i in
                   102610:     -I*)
                   102611:       ac_ii=`echo $ac_i|cut -c 3-`
                   102612: 
                   102613:   if test "$ac_ii" != "/usr/include"; then
                   102614: 
                   102615:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   102616:     ai_p=$ac_ii
                   102617:   else
                   102618: 
                   102619:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   102620: 
                   102621:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   102622:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   102623:   fi
                   102624: 
                   102625: 
                   102626: 
                   102627:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   102628: 
                   102629:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   102630:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   102631:     eval "INCLUDEPATH$unique=set"
                   102632: 
                   102633:       if test ""; then
                   102634:         INCLUDES="-I$ai_p $INCLUDES"
                   102635:       else
                   102636:         INCLUDES="$INCLUDES -I$ai_p"
                   102637:       fi
                   102638: 
                   102639:   fi
                   102640: 
                   102641:   fi
                   102642: 
                   102643:     ;;
                   102644:     esac
                   102645:   done
                   102646: 
                   102647: 
                   102648:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
                   102649: $as_echo_n "checking whether libxml build works... " >&6; }
                   102650: if ${php_cv_libxml_build_works+:} false; then :
                   102651:   $as_echo_n "(cached) " >&6
                   102652: else
                   102653: 
                   102654: 
                   102655:   old_LIBS=$LIBS
                   102656:   LIBS="
                   102657:           $XMLWRITER_SHARED_LIBADD
                   102658:          $LIBS"
                   102659:   if test "$cross_compiling" = yes; then :
                   102660: 
                   102661:     LIBS=$old_LIBS
                   102662: 
                   102663: else
                   102664:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   102665: /* end confdefs.h.  */
                   102666: 
                   102667: 
                   102668:     char xmlInitParser();
                   102669:     int main() {
                   102670:       xmlInitParser();
                   102671:       return 0;
                   102672:     }
                   102673: 
                   102674: _ACEOF
                   102675: if ac_fn_c_try_run "$LINENO"; then :
                   102676: 
                   102677:     LIBS=$old_LIBS
                   102678: 
                   102679:           php_cv_libxml_build_works=yes
                   102680: 
                   102681: 
                   102682: else
                   102683: 
                   102684:     LIBS=$old_LIBS
                   102685: 
                   102686:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   102687: $as_echo "no" >&6; }
                   102688:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
                   102689: 
                   102690: 
                   102691: fi
                   102692: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   102693:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   102694: fi
                   102695: 
                   102696: 
                   102697: 
                   102698: fi
                   102699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
                   102700: $as_echo "$php_cv_libxml_build_works" >&6; }
                   102701:       if test "$php_cv_libxml_build_works" = "yes"; then
                   102702: 
                   102703: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
                   102704: 
                   102705:       fi
                   102706: 
                   102707: 
                   102708: $as_echo "#define HAVE_XMLWRITER 1" >>confdefs.h
                   102709: 
                   102710: 
                   102711:   ext_builddir=ext/xmlwriter
                   102712:   ext_srcdir=$abs_srcdir/ext/xmlwriter
                   102713: 
                   102714:   ac_extra=
                   102715: 
                   102716:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   102717:     PHP_XMLWRITER_SHARED=no
                   102718: 
                   102719: 
                   102720:   case ext/xmlwriter in
                   102721:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   102722:   /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   102723:   *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   102724:   esac
                   102725: 
                   102726: 
                   102727: 
                   102728:   b_c_pre=$php_c_pre
                   102729:   b_cxx_pre=$php_cxx_pre
                   102730:   b_c_meta=$php_c_meta
                   102731:   b_cxx_meta=$php_cxx_meta
                   102732:   b_c_post=$php_c_post
                   102733:   b_cxx_post=$php_cxx_post
                   102734:   b_lo=$php_lo
                   102735: 
                   102736: 
                   102737:   old_IFS=$IFS
                   102738:   for ac_src in php_xmlwriter.c; do
                   102739: 
                   102740:       IFS=.
                   102741:       set $ac_src
                   102742:       ac_obj=$1
                   102743:       IFS=$old_IFS
                   102744: 
                   102745:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   102746: 
                   102747:       case $ac_src in
                   102748:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102749:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102750:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102751:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   102752:       esac
                   102753: 
                   102754:     cat >>Makefile.objects<<EOF
                   102755: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   102756:        $ac_comp
                   102757: EOF
                   102758:   done
                   102759: 
                   102760: 
                   102761:     EXT_STATIC="$EXT_STATIC xmlwriter"
                   102762:     if test "$ext_shared" != "nocli"; then
                   102763:       EXT_CLI_STATIC="$EXT_CLI_STATIC xmlwriter"
                   102764:     fi
                   102765:   else
                   102766:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   102767:       PHP_XMLWRITER_SHARED=yes
                   102768: 
                   102769:   case ext/xmlwriter in
                   102770:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   102771:   /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   102772:   *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   102773:   esac
                   102774: 
                   102775: 
                   102776: 
                   102777:   b_c_pre=$shared_c_pre
                   102778:   b_cxx_pre=$shared_cxx_pre
                   102779:   b_c_meta=$shared_c_meta
                   102780:   b_cxx_meta=$shared_cxx_meta
                   102781:   b_c_post=$shared_c_post
                   102782:   b_cxx_post=$shared_cxx_post
                   102783:   b_lo=$shared_lo
                   102784: 
                   102785: 
                   102786:   old_IFS=$IFS
                   102787:   for ac_src in php_xmlwriter.c; do
                   102788: 
                   102789:       IFS=.
                   102790:       set $ac_src
                   102791:       ac_obj=$1
                   102792:       IFS=$old_IFS
                   102793: 
                   102794:       shared_objects_xmlwriter="$shared_objects_xmlwriter $ac_bdir$ac_obj.lo"
                   102795: 
                   102796:       case $ac_src in
                   102797:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102798:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102799:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102800:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   102801:       esac
                   102802: 
                   102803:     cat >>Makefile.objects<<EOF
                   102804: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   102805:        $ac_comp
                   102806: EOF
                   102807:   done
                   102808: 
                   102809:       case $host_alias in
                   102810:         *netware*)
                   102811: 
                   102812:   install_modules="install-modules"
                   102813: 
                   102814:   case $host_alias in
                   102815:     *aix*)
                   102816:       suffix=so
                   102817:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxmlwriter.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) $(PHPXMLWRITER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxmlwriter.so '$ext_builddir'/phpxmlwriter.so'
                   102818:       ;;
                   102819:     *netware*)
                   102820:       suffix=nlm
                   102821:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) -L$(top_builddir)/netware -lphp5lib $(XMLWRITER_SHARED_LIBADD)'
                   102822:       ;;
                   102823:     *)
                   102824:       suffix=la
                   102825:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) $(PHPXMLWRITER_SHARED_LIBADD)'
                   102826:       ;;
                   102827:   esac
                   102828: 
                   102829:   if test "x" = "xyes"; then
                   102830:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlwriter.$suffix"
                   102831:   else
                   102832:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlwriter.$suffix"
                   102833:   fi
                   102834: 
                   102835:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlwriter"
                   102836: 
                   102837:   cat >>Makefile.objects<<EOF
                   102838: \$(phplibdir)/phpxmlwriter.$suffix: $ext_builddir/phpxmlwriter.$suffix
                   102839:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlwriter.$suffix \$(phplibdir)
                   102840: 
                   102841: $ext_builddir/phpxmlwriter.$suffix: \$(shared_objects_xmlwriter) \$(PHPXMLWRITER_SHARED_DEPENDENCIES)
                   102842:        $link_cmd
                   102843: 
                   102844: EOF
                   102845: 
                   102846:           ;;
                   102847:         *)
                   102848: 
                   102849:   install_modules="install-modules"
                   102850: 
                   102851:   case $host_alias in
                   102852:     *aix*)
                   102853:       suffix=so
                   102854:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xmlwriter.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) $(XMLWRITER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xmlwriter.so '$ext_builddir'/xmlwriter.so'
                   102855:       ;;
                   102856:     *netware*)
                   102857:       suffix=nlm
                   102858:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) -L$(top_builddir)/netware -lphp5lib $(WRITER_SHARED_LIBADD)'
                   102859:       ;;
                   102860:     *)
                   102861:       suffix=la
                   102862:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) $(XMLWRITER_SHARED_LIBADD)'
                   102863:       ;;
                   102864:   esac
                   102865: 
                   102866:   if test "x" = "xyes"; then
                   102867:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlwriter.$suffix"
                   102868:   else
                   102869:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlwriter.$suffix"
                   102870:   fi
                   102871: 
                   102872:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlwriter"
                   102873: 
                   102874:   cat >>Makefile.objects<<EOF
                   102875: \$(phplibdir)/xmlwriter.$suffix: $ext_builddir/xmlwriter.$suffix
                   102876:        \$(LIBTOOL) --mode=install cp $ext_builddir/xmlwriter.$suffix \$(phplibdir)
                   102877: 
                   102878: $ext_builddir/xmlwriter.$suffix: \$(shared_objects_xmlwriter) \$(XMLWRITER_SHARED_DEPENDENCIES)
                   102879:        $link_cmd
                   102880: 
                   102881: EOF
                   102882: 
                   102883:           ;;
                   102884:       esac
                   102885: 
                   102886: cat >>confdefs.h <<_ACEOF
                   102887: #define COMPILE_DL_XMLWRITER 1
                   102888: _ACEOF
                   102889: 
                   102890:     fi
                   102891:   fi
                   102892: 
                   102893:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   102894:     PHP_XMLWRITER_SHARED=no
                   102895: 
                   102896: 
                   102897:   case ext/xmlwriter in
                   102898:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   102899:   /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   102900:   *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   102901:   esac
                   102902: 
                   102903: 
                   102904: 
                   102905:   b_c_pre=$php_c_pre
                   102906:   b_cxx_pre=$php_cxx_pre
                   102907:   b_c_meta=$php_c_meta
                   102908:   b_cxx_meta=$php_cxx_meta
                   102909:   b_c_post=$php_c_post
                   102910:   b_cxx_post=$php_cxx_post
                   102911:   b_lo=$php_lo
                   102912: 
                   102913: 
                   102914:   old_IFS=$IFS
                   102915:   for ac_src in php_xmlwriter.c; do
                   102916: 
                   102917:       IFS=.
                   102918:       set $ac_src
                   102919:       ac_obj=$1
                   102920:       IFS=$old_IFS
                   102921: 
1.1.1.2 ! misho    102922:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    102923: 
                   102924:       case $ac_src in
                   102925:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102926:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102927:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102928:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   102929:       esac
                   102930: 
                   102931:     cat >>Makefile.objects<<EOF
                   102932: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   102933:        $ac_comp
                   102934: EOF
                   102935:   done
                   102936: 
                   102937: 
                   102938: 
                   102939: 
                   102940:   case ext/xmlwriter in
                   102941:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   102942:   /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   102943:   *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   102944:   esac
                   102945: 
                   102946: 
                   102947: 
                   102948:   b_c_pre=$php_c_pre
                   102949:   b_cxx_pre=$php_cxx_pre
                   102950:   b_c_meta=$php_c_meta
                   102951:   b_cxx_meta=$php_cxx_meta
                   102952:   b_c_post=$php_c_post
                   102953:   b_cxx_post=$php_cxx_post
                   102954:   b_lo=$php_lo
                   102955: 
                   102956: 
                   102957:   old_IFS=$IFS
                   102958:   for ac_src in php_xmlwriter.c; do
                   102959: 
                   102960:       IFS=.
                   102961:       set $ac_src
                   102962:       ac_obj=$1
                   102963:       IFS=$old_IFS
                   102964: 
1.1.1.2 ! misho    102965:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    102966: 
                   102967:       case $ac_src in
                   102968:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102969:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102970:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   102971:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   102972:       esac
                   102973: 
                   102974:     cat >>Makefile.objects<<EOF
                   102975: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   102976:        $ac_comp
                   102977: EOF
                   102978:   done
                   102979: 
                   102980: 
                   102981: 
                   102982: 
                   102983:   case ext/xmlwriter in
                   102984:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   102985:   /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   102986:   *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   102987:   esac
                   102988: 
                   102989: 
                   102990: 
                   102991:   b_c_pre=$php_c_pre
                   102992:   b_cxx_pre=$php_cxx_pre
                   102993:   b_c_meta=$php_c_meta
                   102994:   b_cxx_meta=$php_cxx_meta
                   102995:   b_c_post=$php_c_post
                   102996:   b_cxx_post=$php_cxx_post
                   102997:   b_lo=$php_lo
                   102998: 
                   102999: 
                   103000:   old_IFS=$IFS
                   103001:   for ac_src in php_xmlwriter.c; do
                   103002: 
                   103003:       IFS=.
                   103004:       set $ac_src
                   103005:       ac_obj=$1
                   103006:       IFS=$old_IFS
                   103007: 
1.1.1.2 ! misho    103008:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    103009: 
                   103010:       case $ac_src in
                   103011:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103012:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103013:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103014:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   103015:       esac
                   103016: 
                   103017:     cat >>Makefile.objects<<EOF
                   103018: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   103019:        $ac_comp
                   103020: EOF
                   103021:   done
                   103022: 
                   103023: 
                   103024:     EXT_CLI_STATIC="$EXT_CLI_STATIC xmlwriter"
                   103025:   fi
                   103026: 
                   103027: 
                   103028:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   103029: 
                   103030: 
                   103031: 
                   103032:   if test "$ext_builddir" = "."; then
                   103033:     PHP_PECL_EXTENSION=xmlwriter
                   103034: 
                   103035:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   103036: 
                   103037:   fi
                   103038: 
                   103039: 
                   103040:   PHP_VAR_SUBST="$PHP_VAR_SUBST XMLWRITER_SHARED_LIBADD"
                   103041: 
                   103042: 
                   103043:     else
                   103044:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
                   103045:     fi
                   103046: else
                   103047:     as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
                   103048: 
                   103049:   fi
                   103050: 
                   103051: fi
                   103052: 
                   103053: 
                   103054: 
                   103055: php_with_xsl=no
                   103056: 
                   103057: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSL support" >&5
                   103058: $as_echo_n "checking for XSL support... " >&6; }
                   103059: 
                   103060: # Check whether --with-xsl was given.
                   103061: if test "${with_xsl+set}" = set; then :
                   103062:   withval=$with_xsl; PHP_XSL=$withval
                   103063: else
                   103064: 
                   103065:   PHP_XSL=no
                   103066:   test "$PHP_ENABLE_ALL" && PHP_XSL=$PHP_ENABLE_ALL
                   103067: 
                   103068: fi
                   103069: 
                   103070: 
                   103071: 
                   103072: ext_output="yes, shared"
                   103073: ext_shared=yes
                   103074: case $PHP_XSL in
                   103075: shared,*)
                   103076:   PHP_XSL=`echo "$PHP_XSL"|$SED 's/^shared,//'`
                   103077:   ;;
                   103078: shared)
                   103079:   PHP_XSL=yes
                   103080:   ;;
                   103081: no)
                   103082:   ext_output=no
                   103083:   ext_shared=no
                   103084:   ;;
                   103085: *)
                   103086:   ext_output=yes
                   103087:   ext_shared=no
                   103088:   ;;
                   103089: esac
                   103090: 
                   103091: 
                   103092: 
                   103093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   103094: $as_echo "$ext_output" >&6; }
                   103095: 
                   103096: 
                   103097: 
                   103098: 
                   103099: if test "$PHP_XSL" != "no"; then
                   103100: 
                   103101:   if test "$PHP_LIBXML" = "no"; then
                   103102:     as_fn_error $? "XSL extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
                   103103:   fi
                   103104: 
                   103105:   if test "$PHP_DOM" = "no"; then
                   103106:     as_fn_error $? "XSL extension requires DOM extension, add --enable-dom" "$LINENO" 5
                   103107:   fi
                   103108: 
                   103109:   for i in $PHP_XSL /usr/local /usr; do
                   103110:     if test -x "$i/bin/xslt-config"; then
                   103111:       XSLT_CONFIG=$i/bin/xslt-config
                   103112:       break
                   103113:     fi
                   103114:   done
                   103115: 
                   103116:   if test -z "$XSLT_CONFIG"; then
                   103117:     as_fn_error $? "xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution" "$LINENO" 5
                   103118:   else
                   103119:     libxslt_full_version=`$XSLT_CONFIG --version`
                   103120:     ac_IFS=$IFS
                   103121:     IFS="."
                   103122:     set $libxslt_full_version
                   103123:     IFS=$ac_IFS
                   103124:     LIBXSLT_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
                   103125:     if test "$LIBXSLT_VERSION" -ge "1001000"; then
                   103126:       XSL_LIBS=`$XSLT_CONFIG --libs`
                   103127:       XSL_INCS=`$XSLT_CONFIG --cflags`
                   103128: 
                   103129:   for ac_i in $XSL_LIBS; do
                   103130:     case $ac_i in
                   103131:     -pthread)
                   103132:       if test "$ext_shared" = "yes"; then
                   103133:         XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -pthread"
                   103134:       else
                   103135: 
                   103136: 
                   103137:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   103138: 
                   103139:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   103140:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   103141:     eval "EXTRA_LDFLAGS$unique=set"
                   103142:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   103143:   fi
                   103144: 
                   103145:       fi
                   103146:     ;;
                   103147:     -l*)
                   103148:       ac_ii=`echo $ac_i|cut -c 3-`
                   103149: 
                   103150: 
                   103151:   case $ac_ii in
                   103152:   c|c_r|pthread*) ;;
                   103153:   *)
                   103154:     if test "$ext_shared" = "yes"; then
                   103155:         XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -l$ac_ii"
                   103156:     else
                   103157: 
                   103158: 
                   103159:   case $ac_ii in
                   103160:   c|c_r|pthread*) ;;
                   103161:   *)
                   103162:       LIBS="$LIBS -l$ac_ii"
                   103163:    ;;
                   103164:   esac
                   103165: 
                   103166: 
                   103167:     fi
                   103168:    ;;
                   103169:   esac
                   103170: 
                   103171: 
                   103172:     ;;
                   103173:     -L*)
                   103174:       ac_ii=`echo $ac_i|cut -c 3-`
                   103175: 
                   103176:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   103177: 
                   103178:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   103179:     ai_p=$ac_ii
                   103180:   else
                   103181: 
                   103182:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   103183: 
                   103184:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   103185:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   103186:   fi
                   103187: 
                   103188: 
                   103189:       if test "$ext_shared" = "yes"; then
                   103190:         XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD"
                   103191:         test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD"
                   103192:       else
                   103193: 
                   103194: 
                   103195: 
                   103196:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   103197: 
                   103198:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   103199:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   103200:     eval "LIBPATH$unique=set"
                   103201: 
                   103202:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   103203:     LDFLAGS="$LDFLAGS -L$ai_p"
                   103204:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   103205: 
                   103206:   fi
                   103207: 
                   103208: 
                   103209:       fi
                   103210: 
                   103211:   fi
                   103212: 
                   103213:     ;;
                   103214:     esac
                   103215:   done
                   103216: 
                   103217: 
                   103218:   for ac_i in $XSL_INCS; do
                   103219:     case $ac_i in
                   103220:     -I*)
                   103221:       ac_ii=`echo $ac_i|cut -c 3-`
                   103222: 
                   103223:   if test "$ac_ii" != "/usr/include"; then
                   103224: 
                   103225:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   103226:     ai_p=$ac_ii
                   103227:   else
                   103228: 
                   103229:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   103230: 
                   103231:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   103232:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   103233:   fi
                   103234: 
                   103235: 
                   103236: 
                   103237:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   103238: 
                   103239:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   103240:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   103241:     eval "INCLUDEPATH$unique=set"
                   103242: 
                   103243:       if test ""; then
                   103244:         INCLUDES="-I$ai_p $INCLUDES"
                   103245:       else
                   103246:         INCLUDES="$INCLUDES -I$ai_p"
                   103247:       fi
                   103248: 
                   103249:   fi
                   103250: 
                   103251:   fi
                   103252: 
                   103253:     ;;
                   103254:     esac
                   103255:   done
                   103256: 
                   103257: 
                   103258:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXSLT support" >&5
                   103259: $as_echo_n "checking for EXSLT support... " >&6; }
                   103260:       for i in $PHP_XSL /usr/local /usr; do
                   103261:         if test -r "$i/include/libexslt/exslt.h"; then
                   103262:           PHP_XSL_EXSL_DIR=$i
                   103263:           break
                   103264:         fi
                   103265:       done
                   103266:       if test -z "$PHP_XSL_EXSL_DIR"; then
                   103267:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
                   103268: $as_echo "not found" >&6; }
                   103269:       else
                   103270:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
                   103271: $as_echo "found" >&6; }
                   103272: 
                   103273: 
                   103274:   if test "$ext_shared" = "yes"; then
                   103275:     XSL_SHARED_LIBADD="-lexslt $XSL_SHARED_LIBADD"
                   103276:     if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then
                   103277: 
                   103278:   if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   103279: 
                   103280:   if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   103281:     ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR
                   103282:   else
                   103283: 
                   103284:     ep_dir="`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   103285: 
                   103286:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   103287:     ai_p="$ep_realdir/`basename \"$PHP_XSL_EXSL_DIR/$PHP_LIBDIR\"`"
                   103288:   fi
                   103289: 
                   103290: 
                   103291:       if test "$ext_shared" = "yes"; then
                   103292:         XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD"
                   103293:         test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD"
                   103294:       else
                   103295: 
                   103296: 
                   103297: 
                   103298:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   103299: 
                   103300:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   103301:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   103302:     eval "LIBPATH$unique=set"
                   103303: 
                   103304:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   103305:     LDFLAGS="$LDFLAGS -L$ai_p"
                   103306:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   103307: 
                   103308:   fi
                   103309: 
                   103310: 
                   103311:       fi
                   103312: 
                   103313:   fi
                   103314: 
                   103315:     fi
                   103316:   else
                   103317: 
                   103318: 
                   103319:   if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then
                   103320: 
                   103321:   if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   103322: 
                   103323:   if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   103324:     ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR
                   103325:   else
                   103326: 
                   103327:     ep_dir="`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   103328: 
                   103329:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   103330:     ai_p="$ep_realdir/`basename \"$PHP_XSL_EXSL_DIR/$PHP_LIBDIR\"`"
                   103331:   fi
                   103332: 
                   103333: 
                   103334: 
                   103335: 
                   103336: 
                   103337:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   103338: 
                   103339:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   103340:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   103341:     eval "LIBPATH$unique=set"
                   103342: 
                   103343:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   103344:     LDFLAGS="$LDFLAGS -L$ai_p"
                   103345:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   103346: 
                   103347:   fi
                   103348: 
                   103349: 
                   103350: 
                   103351:   fi
                   103352: 
                   103353:   fi
                   103354: 
                   103355: 
                   103356:   case exslt in
                   103357:   c|c_r|pthread*) ;;
                   103358:   *)
                   103359:       LIBS="-lexslt $LIBS"
                   103360:    ;;
                   103361:   esac
                   103362: 
                   103363: 
                   103364: 
                   103365: 
                   103366:   fi
                   103367: 
                   103368: 
                   103369: 
                   103370:   if test "$PHP_XSL_EXSL_DIR/include" != "/usr/include"; then
                   103371: 
                   103372:   if test -z "$PHP_XSL_EXSL_DIR/include" || echo "$PHP_XSL_EXSL_DIR/include" | grep '^/' >/dev/null ; then
                   103373:     ai_p=$PHP_XSL_EXSL_DIR/include
                   103374:   else
                   103375: 
                   103376:     ep_dir="`echo $PHP_XSL_EXSL_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
                   103377: 
                   103378:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   103379:     ai_p="$ep_realdir/`basename \"$PHP_XSL_EXSL_DIR/include\"`"
                   103380:   fi
                   103381: 
                   103382: 
                   103383: 
                   103384:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   103385: 
                   103386:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   103387:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   103388:     eval "INCLUDEPATH$unique=set"
                   103389: 
                   103390:       if test ""; then
                   103391:         INCLUDES="-I$ai_p $INCLUDES"
                   103392:       else
                   103393:         INCLUDES="$INCLUDES -I$ai_p"
                   103394:       fi
                   103395: 
                   103396:   fi
                   103397: 
                   103398:   fi
                   103399: 
                   103400: 
                   103401: $as_echo "#define HAVE_XSL_EXSLT 1" >>confdefs.h
                   103402: 
                   103403:       fi
                   103404:     else
                   103405:       as_fn_error $? "libxslt version 1.1.0 or greater required." "$LINENO" 5
                   103406:     fi
                   103407: 
                   103408: 
                   103409:   fi
                   103410: 
                   103411: 
                   103412: $as_echo "#define HAVE_XSL 1" >>confdefs.h
                   103413: 
                   103414: 
                   103415:   ext_builddir=ext/xsl
                   103416:   ext_srcdir=$abs_srcdir/ext/xsl
                   103417: 
                   103418:   ac_extra=
                   103419: 
                   103420:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   103421:     PHP_XSL_SHARED=no
                   103422: 
                   103423: 
                   103424:   case ext/xsl in
                   103425:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   103426:   /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   103427:   *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   103428:   esac
                   103429: 
                   103430: 
                   103431: 
                   103432:   b_c_pre=$php_c_pre
                   103433:   b_cxx_pre=$php_cxx_pre
                   103434:   b_c_meta=$php_c_meta
                   103435:   b_cxx_meta=$php_cxx_meta
                   103436:   b_c_post=$php_c_post
                   103437:   b_cxx_post=$php_cxx_post
                   103438:   b_lo=$php_lo
                   103439: 
                   103440: 
                   103441:   old_IFS=$IFS
                   103442:   for ac_src in php_xsl.c xsltprocessor.c; do
                   103443: 
                   103444:       IFS=.
                   103445:       set $ac_src
                   103446:       ac_obj=$1
                   103447:       IFS=$old_IFS
                   103448: 
                   103449:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   103450: 
                   103451:       case $ac_src in
                   103452:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103453:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103454:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103455:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   103456:       esac
                   103457: 
                   103458:     cat >>Makefile.objects<<EOF
                   103459: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   103460:        $ac_comp
                   103461: EOF
                   103462:   done
                   103463: 
                   103464: 
                   103465:     EXT_STATIC="$EXT_STATIC xsl"
                   103466:     if test "$ext_shared" != "nocli"; then
                   103467:       EXT_CLI_STATIC="$EXT_CLI_STATIC xsl"
                   103468:     fi
                   103469:   else
                   103470:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   103471:       PHP_XSL_SHARED=yes
                   103472: 
                   103473:   case ext/xsl in
                   103474:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   103475:   /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   103476:   *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   103477:   esac
                   103478: 
                   103479: 
                   103480: 
                   103481:   b_c_pre=$shared_c_pre
                   103482:   b_cxx_pre=$shared_cxx_pre
                   103483:   b_c_meta=$shared_c_meta
                   103484:   b_cxx_meta=$shared_cxx_meta
                   103485:   b_c_post=$shared_c_post
                   103486:   b_cxx_post=$shared_cxx_post
                   103487:   b_lo=$shared_lo
                   103488: 
                   103489: 
                   103490:   old_IFS=$IFS
                   103491:   for ac_src in php_xsl.c xsltprocessor.c; do
                   103492: 
                   103493:       IFS=.
                   103494:       set $ac_src
                   103495:       ac_obj=$1
                   103496:       IFS=$old_IFS
                   103497: 
                   103498:       shared_objects_xsl="$shared_objects_xsl $ac_bdir$ac_obj.lo"
                   103499: 
                   103500:       case $ac_src in
                   103501:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103502:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103503:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103504:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   103505:       esac
                   103506: 
                   103507:     cat >>Makefile.objects<<EOF
                   103508: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   103509:        $ac_comp
                   103510: EOF
                   103511:   done
                   103512: 
                   103513:       case $host_alias in
                   103514:         *netware*)
                   103515: 
                   103516:   install_modules="install-modules"
                   103517: 
                   103518:   case $host_alias in
                   103519:     *aix*)
                   103520:       suffix=so
                   103521:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxsl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) $(PHPXSL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxsl.so '$ext_builddir'/phpxsl.so'
                   103522:       ;;
                   103523:     *netware*)
                   103524:       suffix=nlm
                   103525:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) -L$(top_builddir)/netware -lphp5lib $(XSL_SHARED_LIBADD)'
                   103526:       ;;
                   103527:     *)
                   103528:       suffix=la
                   103529:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) $(PHPXSL_SHARED_LIBADD)'
                   103530:       ;;
                   103531:   esac
                   103532: 
                   103533:   if test "x" = "xyes"; then
                   103534:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxsl.$suffix"
                   103535:   else
                   103536:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxsl.$suffix"
                   103537:   fi
                   103538: 
                   103539:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xsl"
                   103540: 
                   103541:   cat >>Makefile.objects<<EOF
                   103542: \$(phplibdir)/phpxsl.$suffix: $ext_builddir/phpxsl.$suffix
                   103543:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpxsl.$suffix \$(phplibdir)
                   103544: 
                   103545: $ext_builddir/phpxsl.$suffix: \$(shared_objects_xsl) \$(PHPXSL_SHARED_DEPENDENCIES)
                   103546:        $link_cmd
                   103547: 
                   103548: EOF
                   103549: 
                   103550:           ;;
                   103551:         *)
                   103552: 
                   103553:   install_modules="install-modules"
                   103554: 
                   103555:   case $host_alias in
                   103556:     *aix*)
                   103557:       suffix=so
                   103558:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xsl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) $(XSL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xsl.so '$ext_builddir'/xsl.so'
                   103559:       ;;
                   103560:     *netware*)
                   103561:       suffix=nlm
                   103562:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
                   103563:       ;;
                   103564:     *)
                   103565:       suffix=la
                   103566:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) $(XSL_SHARED_LIBADD)'
                   103567:       ;;
                   103568:   esac
                   103569: 
                   103570:   if test "x" = "xyes"; then
                   103571:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xsl.$suffix"
                   103572:   else
                   103573:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/xsl.$suffix"
                   103574:   fi
                   103575: 
                   103576:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xsl"
                   103577: 
                   103578:   cat >>Makefile.objects<<EOF
                   103579: \$(phplibdir)/xsl.$suffix: $ext_builddir/xsl.$suffix
                   103580:        \$(LIBTOOL) --mode=install cp $ext_builddir/xsl.$suffix \$(phplibdir)
                   103581: 
                   103582: $ext_builddir/xsl.$suffix: \$(shared_objects_xsl) \$(XSL_SHARED_DEPENDENCIES)
                   103583:        $link_cmd
                   103584: 
                   103585: EOF
                   103586: 
                   103587:           ;;
                   103588:       esac
                   103589: 
                   103590: cat >>confdefs.h <<_ACEOF
                   103591: #define COMPILE_DL_XSL 1
                   103592: _ACEOF
                   103593: 
                   103594:     fi
                   103595:   fi
                   103596: 
                   103597:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   103598:     PHP_XSL_SHARED=no
                   103599: 
                   103600: 
                   103601:   case ext/xsl in
                   103602:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   103603:   /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   103604:   *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   103605:   esac
                   103606: 
                   103607: 
                   103608: 
                   103609:   b_c_pre=$php_c_pre
                   103610:   b_cxx_pre=$php_cxx_pre
                   103611:   b_c_meta=$php_c_meta
                   103612:   b_cxx_meta=$php_cxx_meta
                   103613:   b_c_post=$php_c_post
                   103614:   b_cxx_post=$php_cxx_post
                   103615:   b_lo=$php_lo
                   103616: 
                   103617: 
                   103618:   old_IFS=$IFS
                   103619:   for ac_src in php_xsl.c xsltprocessor.c; do
                   103620: 
                   103621:       IFS=.
                   103622:       set $ac_src
                   103623:       ac_obj=$1
                   103624:       IFS=$old_IFS
                   103625: 
1.1.1.2 ! misho    103626:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    103627: 
                   103628:       case $ac_src in
                   103629:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103630:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103631:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103632:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   103633:       esac
                   103634: 
                   103635:     cat >>Makefile.objects<<EOF
                   103636: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   103637:        $ac_comp
                   103638: EOF
                   103639:   done
                   103640: 
                   103641: 
                   103642: 
                   103643: 
                   103644:   case ext/xsl in
                   103645:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   103646:   /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   103647:   *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   103648:   esac
                   103649: 
                   103650: 
                   103651: 
                   103652:   b_c_pre=$php_c_pre
                   103653:   b_cxx_pre=$php_cxx_pre
                   103654:   b_c_meta=$php_c_meta
                   103655:   b_cxx_meta=$php_cxx_meta
                   103656:   b_c_post=$php_c_post
                   103657:   b_cxx_post=$php_cxx_post
                   103658:   b_lo=$php_lo
                   103659: 
                   103660: 
                   103661:   old_IFS=$IFS
                   103662:   for ac_src in php_xsl.c xsltprocessor.c; do
                   103663: 
                   103664:       IFS=.
                   103665:       set $ac_src
                   103666:       ac_obj=$1
                   103667:       IFS=$old_IFS
                   103668: 
1.1.1.2 ! misho    103669:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    103670: 
                   103671:       case $ac_src in
                   103672:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103673:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103674:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103675:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   103676:       esac
                   103677: 
                   103678:     cat >>Makefile.objects<<EOF
                   103679: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   103680:        $ac_comp
                   103681: EOF
                   103682:   done
                   103683: 
                   103684: 
                   103685: 
                   103686: 
                   103687:   case ext/xsl in
                   103688:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   103689:   /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   103690:   *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   103691:   esac
                   103692: 
                   103693: 
                   103694: 
                   103695:   b_c_pre=$php_c_pre
                   103696:   b_cxx_pre=$php_cxx_pre
                   103697:   b_c_meta=$php_c_meta
                   103698:   b_cxx_meta=$php_cxx_meta
                   103699:   b_c_post=$php_c_post
                   103700:   b_cxx_post=$php_cxx_post
                   103701:   b_lo=$php_lo
                   103702: 
                   103703: 
                   103704:   old_IFS=$IFS
                   103705:   for ac_src in php_xsl.c xsltprocessor.c; do
                   103706: 
                   103707:       IFS=.
                   103708:       set $ac_src
                   103709:       ac_obj=$1
                   103710:       IFS=$old_IFS
                   103711: 
1.1.1.2 ! misho    103712:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    103713: 
                   103714:       case $ac_src in
                   103715:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103716:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103717:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   103718:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   103719:       esac
                   103720: 
                   103721:     cat >>Makefile.objects<<EOF
                   103722: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   103723:        $ac_comp
                   103724: EOF
                   103725:   done
                   103726: 
                   103727: 
                   103728:     EXT_CLI_STATIC="$EXT_CLI_STATIC xsl"
                   103729:   fi
                   103730: 
                   103731: 
                   103732:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   103733: 
                   103734: 
                   103735: 
                   103736:   if test "$ext_builddir" = "."; then
                   103737:     PHP_PECL_EXTENSION=xsl
                   103738: 
                   103739:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   103740: 
                   103741:   fi
                   103742: 
                   103743: 
                   103744:   PHP_VAR_SUBST="$PHP_VAR_SUBST XSL_SHARED_LIBADD"
                   103745: 
                   103746: 
                   103747:   am_i_shared=$PHP_XSL_SHARED
                   103748:   is_it_shared=$PHP_LIBXML_SHARED
                   103749:   is_it_enabled=$PHP_LIBXML
                   103750:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
                   103751:     as_fn_error $? "
                   103752: You've configured extension xsl to build statically, but it
                   103753: depends on extension libxml, which you've configured to build shared.
                   103754: You either need to build xsl shared or build libxml statically for the
                   103755: build to be successful.
                   103756: " "$LINENO" 5
                   103757:   fi
                   103758: 
                   103759: fi
                   103760: 
                   103761: 
                   103762: 
                   103763: php_enable_zip=no
                   103764: 
                   103765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip archive read/writesupport" >&5
                   103766: $as_echo_n "checking for zip archive read/writesupport... " >&6; }
                   103767: # Check whether --enable-zip was given.
                   103768: if test "${enable_zip+set}" = set; then :
                   103769:   enableval=$enable_zip; PHP_ZIP=$enableval
                   103770: else
                   103771: 
                   103772:   PHP_ZIP=no
                   103773:   test "$PHP_ENABLE_ALL" && PHP_ZIP=$PHP_ENABLE_ALL
                   103774: 
                   103775: fi
                   103776: 
                   103777: 
                   103778: 
                   103779: ext_output="yes, shared"
                   103780: ext_shared=yes
                   103781: case $PHP_ZIP in
                   103782: shared,*)
                   103783:   PHP_ZIP=`echo "$PHP_ZIP"|$SED 's/^shared,//'`
                   103784:   ;;
                   103785: shared)
                   103786:   PHP_ZIP=yes
                   103787:   ;;
                   103788: no)
                   103789:   ext_output=no
                   103790:   ext_shared=no
                   103791:   ;;
                   103792: *)
                   103793:   ext_output=yes
                   103794:   ext_shared=no
                   103795:   ;;
                   103796: esac
                   103797: 
                   103798: 
                   103799: 
                   103800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   103801: $as_echo "$ext_output" >&6; }
                   103802: 
                   103803: 
                   103804: 
                   103805: 
                   103806: if test -z "$PHP_ZLIB_DIR"; then
                   103807: 
                   103808: php_with_zlib_dir=no
                   103809: 
                   103810: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
                   103811: $as_echo_n "checking for the location of libz... " >&6; }
                   103812: 
                   103813: # Check whether --with-zlib-dir was given.
                   103814: if test "${with_zlib_dir+set}" = set; then :
                   103815:   withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
                   103816: else
                   103817: 
                   103818:   PHP_ZLIB_DIR=no
                   103819: 
                   103820: 
                   103821: fi
                   103822: 
                   103823: 
                   103824: ext_output=$PHP_ZLIB_DIR
                   103825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   103826: $as_echo "$ext_output" >&6; }
                   103827: 
                   103828: 
                   103829: 
                   103830: fi
                   103831: 
                   103832: 
                   103833: php_with_pcre_dir=no
                   103834: 
                   103835: { $as_echo "$as_me:${as_lineno-$LINENO}: checking pcre install prefix" >&5
                   103836: $as_echo_n "checking pcre install prefix... " >&6; }
                   103837: 
                   103838: # Check whether --with-pcre-dir was given.
                   103839: if test "${with_pcre_dir+set}" = set; then :
                   103840:   withval=$with_pcre_dir; PHP_PCRE_DIR=$withval
                   103841: else
                   103842: 
                   103843:   PHP_PCRE_DIR=no
                   103844: 
                   103845: 
                   103846: fi
                   103847: 
                   103848: 
                   103849: ext_output=$PHP_PCRE_DIR
                   103850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   103851: $as_echo "$ext_output" >&6; }
                   103852: 
                   103853: 
                   103854: 
                   103855: 
                   103856: if test "$PHP_ZIP" != "no"; then
                   103857: 
                   103858:   if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
                   103859:     if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
                   103860:       PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
                   103861:       PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
                   103862:     elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
                   103863:       PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
                   103864:       PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
                   103865:     else
                   103866:       as_fn_error $? "Can not find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5
                   103867:     fi
                   103868:   else
                   103869:     for i in /usr/local /usr; do
                   103870:       if test -f "$i/include/zlib/zlib.h"; then
                   103871:         PHP_ZLIB_DIR="$i"
                   103872:         PHP_ZLIB_INCDIR="$i/include/zlib"
                   103873:       elif test -f "$i/include/zlib.h"; then
                   103874:         PHP_ZLIB_DIR="$i"
                   103875:         PHP_ZLIB_INCDIR="$i/include"
                   103876:       fi
                   103877:     done
                   103878:   fi
                   103879: 
                   103880:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of zlib" >&5
                   103881: $as_echo_n "checking for the location of zlib... " >&6; }
                   103882:   if test "$PHP_ZLIB_DIR" = "no"; then
                   103883:     as_fn_error $? "zip support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located" "$LINENO" 5
                   103884:   else
                   103885:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_ZLIB_DIR" >&5
                   103886: $as_echo "$PHP_ZLIB_DIR" >&6; }
                   103887: 
                   103888: 
                   103889:   if test "$ext_shared" = "yes"; then
                   103890:     ZIP_SHARED_LIBADD="-lz $ZIP_SHARED_LIBADD"
                   103891:     if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
                   103892: 
                   103893:   if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   103894: 
                   103895:   if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   103896:     ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
                   103897:   else
                   103898: 
                   103899:     ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   103900: 
                   103901:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   103902:     ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
                   103903:   fi
                   103904: 
                   103905: 
                   103906:       if test "$ext_shared" = "yes"; then
                   103907:         ZIP_SHARED_LIBADD="-L$ai_p $ZIP_SHARED_LIBADD"
                   103908:         test -n "$ld_runpath_switch" && ZIP_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZIP_SHARED_LIBADD"
                   103909:       else
                   103910: 
                   103911: 
                   103912: 
                   103913:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   103914: 
                   103915:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   103916:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   103917:     eval "LIBPATH$unique=set"
                   103918: 
                   103919:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   103920:     LDFLAGS="$LDFLAGS -L$ai_p"
                   103921:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   103922: 
                   103923:   fi
                   103924: 
                   103925: 
                   103926:       fi
                   103927: 
                   103928:   fi
                   103929: 
                   103930:     fi
                   103931:   else
                   103932: 
                   103933: 
                   103934:   if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
                   103935: 
                   103936:   if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
                   103937: 
                   103938:   if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
                   103939:     ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
                   103940:   else
                   103941: 
                   103942:     ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   103943: 
                   103944:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   103945:     ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
                   103946:   fi
                   103947: 
                   103948: 
                   103949: 
                   103950: 
                   103951: 
                   103952:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   103953: 
                   103954:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   103955:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   103956:     eval "LIBPATH$unique=set"
                   103957: 
                   103958:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   103959:     LDFLAGS="$LDFLAGS -L$ai_p"
                   103960:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   103961: 
                   103962:   fi
                   103963: 
                   103964: 
                   103965: 
                   103966:   fi
                   103967: 
                   103968:   fi
                   103969: 
                   103970: 
                   103971:   case z in
                   103972:   c|c_r|pthread*) ;;
                   103973:   *)
                   103974:       LIBS="-lz $LIBS"
                   103975:    ;;
                   103976:   esac
                   103977: 
                   103978: 
                   103979: 
                   103980: 
                   103981:   fi
                   103982: 
                   103983: 
                   103984: 
                   103985:   if test "$PHP_ZLIB_INCDIR" != "/usr/include"; then
                   103986: 
                   103987:   if test -z "$PHP_ZLIB_INCDIR" || echo "$PHP_ZLIB_INCDIR" | grep '^/' >/dev/null ; then
                   103988:     ai_p=$PHP_ZLIB_INCDIR
                   103989:   else
                   103990: 
                   103991:     ep_dir="`echo $PHP_ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
                   103992: 
                   103993:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   103994:     ai_p="$ep_realdir/`basename \"$PHP_ZLIB_INCDIR\"`"
                   103995:   fi
                   103996: 
                   103997: 
                   103998: 
                   103999:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   104000: 
                   104001:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
                   104002:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   104003:     eval "INCLUDEPATH$unique=set"
                   104004: 
                   104005:       if test ""; then
                   104006:         INCLUDES="-I$ai_p $INCLUDES"
                   104007:       else
                   104008:         INCLUDES="$INCLUDES -I$ai_p"
                   104009:       fi
                   104010: 
                   104011:   fi
                   104012: 
                   104013:   fi
                   104014: 
                   104015:   fi
                   104016: 
                   104017:     old_CPPFLAGS=$CPPFLAGS
                   104018:   CPPFLAGS=$INCLUDES
                   104019:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   104020: /* end confdefs.h.  */
                   104021: 
                   104022: #include <main/php_config.h>
                   104023: #if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
                   104024: yes
                   104025: #endif
                   104026: 
                   104027: _ACEOF
                   104028: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   104029:   $EGREP "yes" >/dev/null 2>&1; then :
                   104030: 
                   104031:     PHP_PCRE_REGEX=yes
                   104032: 
                   104033: else
                   104034: 
                   104035:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   104036: /* end confdefs.h.  */
                   104037: 
                   104038: #include <main/php_config.h>
                   104039: #if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
                   104040: yes
                   104041: #endif
                   104042: 
                   104043: _ACEOF
                   104044: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   104045:   $EGREP "yes" >/dev/null 2>&1; then :
                   104046: 
                   104047:       PHP_PCRE_REGEX=pecl
                   104048: 
                   104049: else
                   104050: 
                   104051:       PHP_PCRE_REGEX=no
                   104052: 
                   104053: fi
                   104054: rm -f conftest*
                   104055: 
                   104056: 
                   104057: fi
                   104058: rm -f conftest*
                   104059: 
                   104060:   CPPFLAGS=$old_CPPFLAGS
                   104061: 
                   104062:   PHP_ZIP_SOURCES="$PHP_ZIP_SOURCES lib/zip_add.c lib/zip_error.c lib/zip_fclose.c \
                   104063:                          lib/zip_fread.c lib/zip_open.c lib/zip_source_filep.c  \
                   104064:                          lib/zip_strerror.c lib/zip_close.c lib/zip_error_get.c \
                   104065:                          lib/zip_file_error_get.c lib/zip_free.c lib/zip_rename.c \
                   104066:                          lib/zip_source_free.c lib/zip_unchange_all.c lib/zip_delete.c \
                   104067:                          lib/zip_error_get_sys_type.c lib/zip_file_get_offset.c \
                   104068:                          lib/zip_get_name.c lib/zip_replace.c lib/zip_source_function.c \
                   104069:                          lib/zip_unchange.c lib/zip_dirent.c lib/zip_error_strerror.c \
                   104070:                          lib/zip_filerange_crc.c lib/zip_file_strerror.c lib/zip_get_num_files.c \
                   104071:                          lib/zip_get_archive_flag.c lib/zip_set_archive_flag.c \
                   104072:                          lib/zip_set_name.c lib/zip_source_zip.c lib/zip_unchange_data.c \
                   104073:                          lib/zip_entry_free.c lib/zip_error_to_str.c lib/zip_fopen.c \
                   104074:                          lib/zip_name_locate.c lib/zip_source_buffer.c lib/zip_stat.c \
                   104075:                          lib/zip_entry_new.c lib/zip_err_str.c lib/zip_fopen_index.c \
                   104076:                          lib/zip_get_archive_comment.c lib/zip_get_file_comment.c \
                   104077:                          lib/zip_new.c lib/zip_source_file.c lib/zip_stat_index.c \
                   104078:                          lib/zip_set_archive_comment.c lib/zip_set_file_comment.c \
                   104079:                          lib/zip_unchange_archive.c lib/zip_memdup.c lib/zip_stat_init.c lib/zip_add_dir.c \
                   104080:                          lib/zip_error_clear.c lib/zip_file_error_clear.c"
                   104081: 
                   104082: 
                   104083: $as_echo "#define HAVE_ZIP 1" >>confdefs.h
                   104084: 
                   104085: 
                   104086:   ext_builddir=ext/zip
                   104087:   ext_srcdir=$abs_srcdir/ext/zip
                   104088: 
                   104089:   ac_extra=
                   104090: 
                   104091:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   104092:     PHP_ZIP_SHARED=no
                   104093: 
                   104094: 
                   104095:   case ext/zip in
                   104096:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   104097:   /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   104098:   *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   104099:   esac
                   104100: 
                   104101: 
                   104102: 
                   104103:   b_c_pre=$php_c_pre
                   104104:   b_cxx_pre=$php_cxx_pre
                   104105:   b_c_meta=$php_c_meta
                   104106:   b_cxx_meta=$php_cxx_meta
                   104107:   b_c_post=$php_c_post
                   104108:   b_cxx_post=$php_cxx_post
                   104109:   b_lo=$php_lo
                   104110: 
                   104111: 
                   104112:   old_IFS=$IFS
                   104113:   for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
                   104114: 
                   104115:       IFS=.
                   104116:       set $ac_src
                   104117:       ac_obj=$1
                   104118:       IFS=$old_IFS
                   104119: 
                   104120:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   104121: 
                   104122:       case $ac_src in
                   104123:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104124:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104125:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104126:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   104127:       esac
                   104128: 
                   104129:     cat >>Makefile.objects<<EOF
                   104130: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   104131:        $ac_comp
                   104132: EOF
                   104133:   done
                   104134: 
                   104135: 
                   104136:     EXT_STATIC="$EXT_STATIC zip"
                   104137:     if test "$ext_shared" != "nocli"; then
                   104138:       EXT_CLI_STATIC="$EXT_CLI_STATIC zip"
                   104139:     fi
                   104140:   else
                   104141:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   104142:       PHP_ZIP_SHARED=yes
                   104143: 
                   104144:   case ext/zip in
                   104145:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   104146:   /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   104147:   *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   104148:   esac
                   104149: 
                   104150: 
                   104151: 
                   104152:   b_c_pre=$shared_c_pre
                   104153:   b_cxx_pre=$shared_cxx_pre
                   104154:   b_c_meta=$shared_c_meta
                   104155:   b_cxx_meta=$shared_cxx_meta
                   104156:   b_c_post=$shared_c_post
                   104157:   b_cxx_post=$shared_cxx_post
                   104158:   b_lo=$shared_lo
                   104159: 
                   104160: 
                   104161:   old_IFS=$IFS
                   104162:   for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
                   104163: 
                   104164:       IFS=.
                   104165:       set $ac_src
                   104166:       ac_obj=$1
                   104167:       IFS=$old_IFS
                   104168: 
                   104169:       shared_objects_zip="$shared_objects_zip $ac_bdir$ac_obj.lo"
                   104170: 
                   104171:       case $ac_src in
                   104172:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104173:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104174:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104175:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   104176:       esac
                   104177: 
                   104178:     cat >>Makefile.objects<<EOF
                   104179: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   104180:        $ac_comp
                   104181: EOF
                   104182:   done
                   104183: 
                   104184:       case $host_alias in
                   104185:         *netware*)
                   104186: 
                   104187:   install_modules="install-modules"
                   104188: 
                   104189:   case $host_alias in
                   104190:     *aix*)
                   104191:       suffix=so
                   104192:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpzip.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) $(PHPZIP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpzip.so '$ext_builddir'/phpzip.so'
                   104193:       ;;
                   104194:     *netware*)
                   104195:       suffix=nlm
                   104196:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) -L$(top_builddir)/netware -lphp5lib $(ZIP_SHARED_LIBADD)'
                   104197:       ;;
                   104198:     *)
                   104199:       suffix=la
                   104200:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) $(PHPZIP_SHARED_LIBADD)'
                   104201:       ;;
                   104202:   esac
                   104203: 
                   104204:   if test "x" = "xyes"; then
                   104205:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpzip.$suffix"
                   104206:   else
                   104207:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpzip.$suffix"
                   104208:   fi
                   104209: 
                   104210:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zip"
                   104211: 
                   104212:   cat >>Makefile.objects<<EOF
                   104213: \$(phplibdir)/phpzip.$suffix: $ext_builddir/phpzip.$suffix
                   104214:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpzip.$suffix \$(phplibdir)
                   104215: 
                   104216: $ext_builddir/phpzip.$suffix: \$(shared_objects_zip) \$(PHPZIP_SHARED_DEPENDENCIES)
                   104217:        $link_cmd
                   104218: 
                   104219: EOF
                   104220: 
                   104221:           ;;
                   104222:         *)
                   104223: 
                   104224:   install_modules="install-modules"
                   104225: 
                   104226:   case $host_alias in
                   104227:     *aix*)
                   104228:       suffix=so
                   104229:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/zip.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) $(ZIP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/zip.so '$ext_builddir'/zip.so'
                   104230:       ;;
                   104231:     *netware*)
                   104232:       suffix=nlm
                   104233:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
                   104234:       ;;
                   104235:     *)
                   104236:       suffix=la
                   104237:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) $(ZIP_SHARED_LIBADD)'
                   104238:       ;;
                   104239:   esac
                   104240: 
                   104241:   if test "x" = "xyes"; then
                   104242:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/zip.$suffix"
                   104243:   else
                   104244:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/zip.$suffix"
                   104245:   fi
                   104246: 
                   104247:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zip"
                   104248: 
                   104249:   cat >>Makefile.objects<<EOF
                   104250: \$(phplibdir)/zip.$suffix: $ext_builddir/zip.$suffix
                   104251:        \$(LIBTOOL) --mode=install cp $ext_builddir/zip.$suffix \$(phplibdir)
                   104252: 
                   104253: $ext_builddir/zip.$suffix: \$(shared_objects_zip) \$(ZIP_SHARED_DEPENDENCIES)
                   104254:        $link_cmd
                   104255: 
                   104256: EOF
                   104257: 
                   104258:           ;;
                   104259:       esac
                   104260: 
                   104261: cat >>confdefs.h <<_ACEOF
                   104262: #define COMPILE_DL_ZIP 1
                   104263: _ACEOF
                   104264: 
                   104265:     fi
                   104266:   fi
                   104267: 
                   104268:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   104269:     PHP_ZIP_SHARED=no
                   104270: 
                   104271: 
                   104272:   case ext/zip in
                   104273:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   104274:   /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   104275:   *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   104276:   esac
                   104277: 
                   104278: 
                   104279: 
                   104280:   b_c_pre=$php_c_pre
                   104281:   b_cxx_pre=$php_cxx_pre
                   104282:   b_c_meta=$php_c_meta
                   104283:   b_cxx_meta=$php_cxx_meta
                   104284:   b_c_post=$php_c_post
                   104285:   b_cxx_post=$php_cxx_post
                   104286:   b_lo=$php_lo
                   104287: 
                   104288: 
                   104289:   old_IFS=$IFS
                   104290:   for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
                   104291: 
                   104292:       IFS=.
                   104293:       set $ac_src
                   104294:       ac_obj=$1
                   104295:       IFS=$old_IFS
                   104296: 
1.1.1.2 ! misho    104297:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    104298: 
                   104299:       case $ac_src in
                   104300:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104301:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104302:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104303:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   104304:       esac
                   104305: 
                   104306:     cat >>Makefile.objects<<EOF
                   104307: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   104308:        $ac_comp
                   104309: EOF
                   104310:   done
                   104311: 
                   104312: 
                   104313: 
                   104314: 
                   104315:   case ext/zip in
                   104316:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   104317:   /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   104318:   *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   104319:   esac
                   104320: 
                   104321: 
                   104322: 
                   104323:   b_c_pre=$php_c_pre
                   104324:   b_cxx_pre=$php_cxx_pre
                   104325:   b_c_meta=$php_c_meta
                   104326:   b_cxx_meta=$php_cxx_meta
                   104327:   b_c_post=$php_c_post
                   104328:   b_cxx_post=$php_cxx_post
                   104329:   b_lo=$php_lo
                   104330: 
                   104331: 
                   104332:   old_IFS=$IFS
                   104333:   for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
                   104334: 
                   104335:       IFS=.
                   104336:       set $ac_src
                   104337:       ac_obj=$1
                   104338:       IFS=$old_IFS
                   104339: 
1.1.1.2 ! misho    104340:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    104341: 
                   104342:       case $ac_src in
                   104343:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104344:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104345:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104346:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   104347:       esac
                   104348: 
                   104349:     cat >>Makefile.objects<<EOF
                   104350: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   104351:        $ac_comp
                   104352: EOF
                   104353:   done
                   104354: 
                   104355: 
                   104356: 
                   104357: 
                   104358:   case ext/zip in
                   104359:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   104360:   /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   104361:   *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   104362:   esac
                   104363: 
                   104364: 
                   104365: 
                   104366:   b_c_pre=$php_c_pre
                   104367:   b_cxx_pre=$php_cxx_pre
                   104368:   b_c_meta=$php_c_meta
                   104369:   b_cxx_meta=$php_cxx_meta
                   104370:   b_c_post=$php_c_post
                   104371:   b_cxx_post=$php_cxx_post
                   104372:   b_lo=$php_lo
                   104373: 
                   104374: 
                   104375:   old_IFS=$IFS
                   104376:   for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
                   104377: 
                   104378:       IFS=.
                   104379:       set $ac_src
                   104380:       ac_obj=$1
                   104381:       IFS=$old_IFS
                   104382: 
1.1.1.2 ! misho    104383:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    104384: 
                   104385:       case $ac_src in
                   104386:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104387:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104388:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104389:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   104390:       esac
                   104391: 
                   104392:     cat >>Makefile.objects<<EOF
                   104393: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   104394:        $ac_comp
                   104395: EOF
                   104396:   done
                   104397: 
                   104398: 
                   104399:     EXT_CLI_STATIC="$EXT_CLI_STATIC zip"
                   104400:   fi
                   104401: 
                   104402: 
                   104403:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   104404: 
                   104405: 
                   104406: 
                   104407:   if test "$ext_builddir" = "."; then
                   104408:     PHP_PECL_EXTENSION=zip
                   104409: 
                   104410:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   104411: 
                   104412:   fi
                   104413: 
                   104414: 
                   104415: 
                   104416:     $php_shtool mkdir -p $ext_builddir/lib
                   104417: 
                   104418: 
                   104419: 
                   104420:   PHP_VAR_SUBST="$PHP_VAR_SUBST ZIP_SHARED_LIBADD"
                   104421: 
                   104422: 
                   104423: 
                   104424:   src=$ext_srcdir/Makefile.frag
                   104425:   ac_srcdir=$ext_srcdir
                   104426:   ac_builddir=$ext_builddir
                   104427:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
                   104428: 
                   104429: fi
                   104430: 
                   104431: 
                   104432: 
                   104433: php_enable_mysqlnd=no
                   104434: 
                   104435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mysqlnd" >&5
                   104436: $as_echo_n "checking whether to enable mysqlnd... " >&6; }
                   104437: # Check whether --enable-mysqlnd was given.
                   104438: if test "${enable_mysqlnd+set}" = set; then :
                   104439:   enableval=$enable_mysqlnd; PHP_MYSQLND=$enableval
                   104440: else
                   104441: 
                   104442:   PHP_MYSQLND=no
                   104443:   test "$PHP_ENABLE_ALL" && PHP_MYSQLND=$PHP_ENABLE_ALL
                   104444: 
                   104445: fi
                   104446: 
                   104447: 
                   104448: 
                   104449: ext_output="yes, shared"
                   104450: ext_shared=yes
                   104451: case $PHP_MYSQLND in
                   104452: shared,*)
                   104453:   PHP_MYSQLND=`echo "$PHP_MYSQLND"|$SED 's/^shared,//'`
                   104454:   ;;
                   104455: shared)
                   104456:   PHP_MYSQLND=yes
                   104457:   ;;
                   104458: no)
                   104459:   ext_output=no
                   104460:   ext_shared=no
                   104461:   ;;
                   104462: *)
                   104463:   ext_output=yes
                   104464:   ext_shared=no
                   104465:   ;;
                   104466: esac
                   104467: 
                   104468: 
                   104469: 
                   104470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   104471: $as_echo "$ext_output" >&6; }
                   104472: 
                   104473: 
                   104474: 
                   104475: 
                   104476: 
                   104477: php_enable_mysqlnd_compression_support=yes
                   104478: 
                   104479: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable compressed protocol support in mysqlnd" >&5
                   104480: $as_echo_n "checking whether to disable compressed protocol support in mysqlnd... " >&6; }
                   104481: # Check whether --enable-mysqlnd_compression_support was given.
                   104482: if test "${enable_mysqlnd_compression_support+set}" = set; then :
                   104483:   enableval=$enable_mysqlnd_compression_support; PHP_MYSQLND_COMPRESSION_SUPPORT=$enableval
                   104484: else
                   104485: 
                   104486:   PHP_MYSQLND_COMPRESSION_SUPPORT=yes
                   104487: 
                   104488: 
                   104489: fi
                   104490: 
                   104491: 
                   104492: ext_output=$PHP_MYSQLND_COMPRESSION_SUPPORT
                   104493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   104494: $as_echo "$ext_output" >&6; }
                   104495: 
                   104496: 
                   104497: 
                   104498: 
                   104499: if test -z "$PHP_ZLIB_DIR"; then
                   104500: 
                   104501: php_with_zlib_dir=no
                   104502: 
                   104503: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
                   104504: $as_echo_n "checking for the location of libz... " >&6; }
                   104505: 
                   104506: # Check whether --with-zlib-dir was given.
                   104507: if test "${with_zlib_dir+set}" = set; then :
                   104508:   withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
                   104509: else
                   104510: 
                   104511:   PHP_ZLIB_DIR=no
                   104512: 
                   104513: 
                   104514: fi
                   104515: 
                   104516: 
                   104517: ext_output=$PHP_ZLIB_DIR
                   104518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   104519: $as_echo "$ext_output" >&6; }
                   104520: 
                   104521: 
                   104522: 
                   104523: fi
                   104524: 
                   104525: if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then
                   104526:   mysqlnd_ps_sources="mysqlnd_ps.c mysqlnd_ps_codec.c"
1.1.1.2 ! misho    104527:   mysqlnd_base_sources="mysqlnd.c mysqlnd_alloc.c mysqlnd_bt.c mysqlnd_charset.c mysqlnd_wireprotocol.c \
        !          104528:                    mysqlnd_loaddata.c mysqlnd_reverse_api.c mysqlnd_net.c \
        !          104529:                    mysqlnd_statistics.c mysqlnd_driver.c mysqlnd_ext_plugin.c mysqlnd_auth.c \
1.1       misho    104530:                                   mysqlnd_result.c mysqlnd_result_meta.c mysqlnd_debug.c\
1.1.1.2 ! misho    104531:                                   mysqlnd_block_alloc.c mysqlnd_plugin.c php_mysqlnd.c"
1.1       misho    104532: 
                   104533: 
                   104534:   if test "$PHP_MYSQLND_COMPRESSION_SUPPORT" != "no"; then
                   104535: 
                   104536: $as_echo "#define MYSQLND_COMPRESSION_WANTED 1" >>confdefs.h
                   104537: 
                   104538:   fi
                   104539: 
                   104540: $as_echo "#define MYSQLND_SSL_SUPPORTED 1" >>confdefs.h
                   104541: 
                   104542: 
                   104543:   mysqlnd_sources="$mysqlnd_base_sources $mysqlnd_ps_sources"
                   104544: 
                   104545:   ext_builddir=ext/mysqlnd
                   104546:   ext_srcdir=$abs_srcdir/ext/mysqlnd
                   104547: 
                   104548:   ac_extra=
                   104549: 
                   104550:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
                   104551:     PHP_MYSQLND_SHARED=no
                   104552: 
                   104553: 
                   104554:   case ext/mysqlnd in
                   104555:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   104556:   /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   104557:   *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   104558:   esac
                   104559: 
                   104560: 
                   104561: 
                   104562:   b_c_pre=$php_c_pre
                   104563:   b_cxx_pre=$php_cxx_pre
                   104564:   b_c_meta=$php_c_meta
                   104565:   b_cxx_meta=$php_cxx_meta
                   104566:   b_c_post=$php_c_post
                   104567:   b_cxx_post=$php_cxx_post
                   104568:   b_lo=$php_lo
                   104569: 
                   104570: 
                   104571:   old_IFS=$IFS
                   104572:   for ac_src in $mysqlnd_sources; do
                   104573: 
                   104574:       IFS=.
                   104575:       set $ac_src
                   104576:       ac_obj=$1
                   104577:       IFS=$old_IFS
                   104578: 
                   104579:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   104580: 
                   104581:       case $ac_src in
                   104582:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104583:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104584:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104585:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   104586:       esac
                   104587: 
                   104588:     cat >>Makefile.objects<<EOF
                   104589: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   104590:        $ac_comp
                   104591: EOF
                   104592:   done
                   104593: 
                   104594: 
                   104595:     EXT_STATIC="$EXT_STATIC mysqlnd"
                   104596:     if test "$ext_shared" != "nocli"; then
                   104597:       EXT_CLI_STATIC="$EXT_CLI_STATIC mysqlnd"
                   104598:     fi
                   104599:   else
                   104600:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
                   104601:       PHP_MYSQLND_SHARED=yes
                   104602: 
                   104603:   case ext/mysqlnd in
                   104604:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   104605:   /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   104606:   *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   104607:   esac
                   104608: 
                   104609: 
                   104610: 
                   104611:   b_c_pre=$shared_c_pre
                   104612:   b_cxx_pre=$shared_cxx_pre
                   104613:   b_c_meta=$shared_c_meta
                   104614:   b_cxx_meta=$shared_cxx_meta
                   104615:   b_c_post=$shared_c_post
                   104616:   b_cxx_post=$shared_cxx_post
                   104617:   b_lo=$shared_lo
                   104618: 
                   104619: 
                   104620:   old_IFS=$IFS
                   104621:   for ac_src in $mysqlnd_sources; do
                   104622: 
                   104623:       IFS=.
                   104624:       set $ac_src
                   104625:       ac_obj=$1
                   104626:       IFS=$old_IFS
                   104627: 
                   104628:       shared_objects_mysqlnd="$shared_objects_mysqlnd $ac_bdir$ac_obj.lo"
                   104629: 
                   104630:       case $ac_src in
                   104631:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104632:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104633:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104634:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   104635:       esac
                   104636: 
                   104637:     cat >>Makefile.objects<<EOF
                   104638: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   104639:        $ac_comp
                   104640: EOF
                   104641:   done
                   104642: 
                   104643:       case $host_alias in
                   104644:         *netware*)
                   104645: 
                   104646:   install_modules="install-modules"
                   104647: 
                   104648:   case $host_alias in
                   104649:     *aix*)
                   104650:       suffix=so
                   104651:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmysqlnd.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) $(PHPMYSQLND_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmysqlnd.so '$ext_builddir'/phpmysqlnd.so'
                   104652:       ;;
                   104653:     *netware*)
                   104654:       suffix=nlm
                   104655:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) -L$(top_builddir)/netware -lphp5lib $(MYSQLND_SHARED_LIBADD)'
                   104656:       ;;
                   104657:     *)
                   104658:       suffix=la
                   104659:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) $(PHPMYSQLND_SHARED_LIBADD)'
                   104660:       ;;
                   104661:   esac
                   104662: 
                   104663:   if test "x" = "xyes"; then
                   104664:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmysqlnd.$suffix"
                   104665:   else
                   104666:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmysqlnd.$suffix"
                   104667:   fi
                   104668: 
                   104669:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqlnd"
                   104670: 
                   104671:   cat >>Makefile.objects<<EOF
                   104672: \$(phplibdir)/phpmysqlnd.$suffix: $ext_builddir/phpmysqlnd.$suffix
                   104673:        \$(LIBTOOL) --mode=install cp $ext_builddir/phpmysqlnd.$suffix \$(phplibdir)
                   104674: 
                   104675: $ext_builddir/phpmysqlnd.$suffix: \$(shared_objects_mysqlnd) \$(PHPMYSQLND_SHARED_DEPENDENCIES)
                   104676:        $link_cmd
                   104677: 
                   104678: EOF
                   104679: 
                   104680:           ;;
                   104681:         *)
                   104682: 
                   104683:   install_modules="install-modules"
                   104684: 
                   104685:   case $host_alias in
                   104686:     *aix*)
                   104687:       suffix=so
                   104688:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mysqlnd.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) $(MYSQLND_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mysqlnd.so '$ext_builddir'/mysqlnd.so'
                   104689:       ;;
                   104690:     *netware*)
                   104691:       suffix=nlm
                   104692:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) -L$(top_builddir)/netware -lphp5lib $(QLND_SHARED_LIBADD)'
                   104693:       ;;
                   104694:     *)
                   104695:       suffix=la
                   104696:       link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) $(MYSQLND_SHARED_LIBADD)'
                   104697:       ;;
                   104698:   esac
                   104699: 
                   104700:   if test "x" = "xyes"; then
                   104701:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysqlnd.$suffix"
                   104702:   else
                   104703:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysqlnd.$suffix"
                   104704:   fi
                   104705: 
                   104706:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqlnd"
                   104707: 
                   104708:   cat >>Makefile.objects<<EOF
                   104709: \$(phplibdir)/mysqlnd.$suffix: $ext_builddir/mysqlnd.$suffix
                   104710:        \$(LIBTOOL) --mode=install cp $ext_builddir/mysqlnd.$suffix \$(phplibdir)
                   104711: 
                   104712: $ext_builddir/mysqlnd.$suffix: \$(shared_objects_mysqlnd) \$(MYSQLND_SHARED_DEPENDENCIES)
                   104713:        $link_cmd
                   104714: 
                   104715: EOF
                   104716: 
                   104717:           ;;
                   104718:       esac
                   104719: 
                   104720: cat >>confdefs.h <<_ACEOF
                   104721: #define COMPILE_DL_MYSQLND 1
                   104722: _ACEOF
                   104723: 
                   104724:     fi
                   104725:   fi
                   104726: 
                   104727:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
                   104728:     PHP_MYSQLND_SHARED=no
                   104729: 
                   104730: 
                   104731:   case ext/mysqlnd in
                   104732:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   104733:   /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   104734:   *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   104735:   esac
                   104736: 
                   104737: 
                   104738: 
                   104739:   b_c_pre=$php_c_pre
                   104740:   b_cxx_pre=$php_cxx_pre
                   104741:   b_c_meta=$php_c_meta
                   104742:   b_cxx_meta=$php_cxx_meta
                   104743:   b_c_post=$php_c_post
                   104744:   b_cxx_post=$php_cxx_post
                   104745:   b_lo=$php_lo
                   104746: 
                   104747: 
                   104748:   old_IFS=$IFS
                   104749:   for ac_src in $mysqlnd_sources; do
                   104750: 
                   104751:       IFS=.
                   104752:       set $ac_src
                   104753:       ac_obj=$1
                   104754:       IFS=$old_IFS
                   104755: 
1.1.1.2 ! misho    104756:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    104757: 
                   104758:       case $ac_src in
                   104759:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104760:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104761:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104762:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   104763:       esac
                   104764: 
                   104765:     cat >>Makefile.objects<<EOF
                   104766: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   104767:        $ac_comp
                   104768: EOF
                   104769:   done
                   104770: 
                   104771: 
                   104772: 
                   104773: 
                   104774:   case ext/mysqlnd in
                   104775:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   104776:   /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   104777:   *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   104778:   esac
                   104779: 
                   104780: 
                   104781: 
                   104782:   b_c_pre=$php_c_pre
                   104783:   b_cxx_pre=$php_cxx_pre
                   104784:   b_c_meta=$php_c_meta
                   104785:   b_cxx_meta=$php_cxx_meta
                   104786:   b_c_post=$php_c_post
                   104787:   b_cxx_post=$php_cxx_post
                   104788:   b_lo=$php_lo
                   104789: 
                   104790: 
                   104791:   old_IFS=$IFS
                   104792:   for ac_src in $mysqlnd_sources; do
                   104793: 
                   104794:       IFS=.
                   104795:       set $ac_src
                   104796:       ac_obj=$1
                   104797:       IFS=$old_IFS
                   104798: 
1.1.1.2 ! misho    104799:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    104800: 
                   104801:       case $ac_src in
                   104802:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104803:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104804:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104805:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   104806:       esac
                   104807: 
                   104808:     cat >>Makefile.objects<<EOF
                   104809: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   104810:        $ac_comp
                   104811: EOF
                   104812:   done
                   104813: 
                   104814: 
                   104815: 
                   104816: 
                   104817:   case ext/mysqlnd in
                   104818:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   104819:   /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   104820:   *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   104821:   esac
                   104822: 
                   104823: 
                   104824: 
                   104825:   b_c_pre=$php_c_pre
                   104826:   b_cxx_pre=$php_cxx_pre
                   104827:   b_c_meta=$php_c_meta
                   104828:   b_cxx_meta=$php_cxx_meta
                   104829:   b_c_post=$php_c_post
                   104830:   b_cxx_post=$php_cxx_post
                   104831:   b_lo=$php_lo
                   104832: 
                   104833: 
                   104834:   old_IFS=$IFS
                   104835:   for ac_src in $mysqlnd_sources; do
                   104836: 
                   104837:       IFS=.
                   104838:       set $ac_src
                   104839:       ac_obj=$1
                   104840:       IFS=$old_IFS
                   104841: 
1.1.1.2 ! misho    104842:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    104843: 
                   104844:       case $ac_src in
                   104845:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104846:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104847:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   104848:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   104849:       esac
                   104850: 
                   104851:     cat >>Makefile.objects<<EOF
                   104852: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   104853:        $ac_comp
                   104854: EOF
                   104855:   done
                   104856: 
                   104857: 
                   104858:     EXT_CLI_STATIC="$EXT_CLI_STATIC mysqlnd"
                   104859:   fi
                   104860: 
                   104861: 
                   104862:     BUILD_DIR="$BUILD_DIR $ext_builddir"
                   104863: 
                   104864: 
                   104865: 
                   104866:   if test "$ext_builddir" = "."; then
                   104867:     PHP_PECL_EXTENSION=mysqlnd
                   104868: 
                   104869:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
                   104870: 
                   104871:   fi
                   104872: 
                   104873: 
                   104874: 
                   104875:     $php_shtool mkdir -p ext/mysqlnd
                   104876: 
                   104877: 
                   104878: 
                   104879: 
                   104880:     for header_file in ext/mysqlnd/; do
                   104881: 
                   104882: 
                   104883:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
                   104884: 
                   104885:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   104886:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   104887:     eval "INSTALLHEADERS$unique=set"
                   104888: 
                   104889:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
                   104890: 
                   104891:   fi
                   104892: 
                   104893:     done
                   104894: 
                   104895: 
                   104896: fi
                   104897: 
                   104898: if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes" || test "$PHP_MYSQLI" != "no"; then
                   104899: 
                   104900: 
                   104901:     $php_shtool mkdir -p ext/mysqlnd
                   104902: 
                   104903: 
                   104904: 
                   104905: 
                   104906:   for php_typename in int8 uint8 int16 uint16 int32 uint32 uchar ulong int8_t uint8_t int16_t uint16_t int32_t uint32_t int64_t uint64_t; do
                   104907:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $php_typename exists" >&5
                   104908: $as_echo_n "checking whether $php_typename exists... " >&6; }
                   104909: 
                   104910:   php_cache_value=php_cv_sizeof_$php_typename
                   104911:   if eval \${php_cv_sizeof_$php_typename+:} false; then :
                   104912:   $as_echo_n "(cached) " >&6
                   104913: else
                   104914: 
                   104915:     old_LIBS=$LIBS
                   104916:     LIBS=
                   104917:     old_LDFLAGS=$LDFLAGS
                   104918:     LDFLAGS=
                   104919:     if test "$cross_compiling" = yes; then :
                   104920: 
                   104921:     eval $php_cache_value=0
                   104922: 
                   104923: else
                   104924:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   104925: /* end confdefs.h.  */
                   104926: #include <stdio.h>
                   104927: #if STDC_HEADERS
                   104928: #include <stdlib.h>
                   104929: #include <stddef.h>
                   104930: #endif
                   104931: #ifdef HAVE_INTTYPES_H
                   104932: #include <inttypes.h>
                   104933: #endif
                   104934: #ifdef HAVE_UNISTD_H
                   104935: #include <unistd.h>
                   104936: #endif
                   104937: #ifdef HAVE_SYS_TYPES_H
                   104938: #include <sys/types.h>
                   104939: #endif
                   104940: #ifdef HAVE_STDINT_H
                   104941: #include <stdint.h>
                   104942: #endif
                   104943: 
                   104944: 
                   104945: int main()
                   104946: {
                   104947:        FILE *fp = fopen("conftestval", "w");
                   104948:        if (!fp) return(1);
                   104949:        fprintf(fp, "%d\n", sizeof($php_typename));
                   104950:        return(0);
                   104951: }
                   104952: 
                   104953: _ACEOF
                   104954: if ac_fn_c_try_run "$LINENO"; then :
                   104955: 
                   104956:     eval $php_cache_value=`cat conftestval`
                   104957: 
                   104958: else
                   104959: 
                   104960:     eval $php_cache_value=0
                   104961: 
                   104962: fi
                   104963: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   104964:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   104965: fi
                   104966: 
                   104967:   LDFLAGS=$old_LDFLAGS
                   104968:   LIBS=$old_LIBS
                   104969: 
                   104970: fi
                   104971: 
                   104972:   if eval test "\$$php_cache_value" != "0"; then
                   104973: 
                   104974: 
                   104975:   php_def_have_what=HAVE_`echo $php_typename | tr 'abcdefghijklmnopqrstuvwxyz-' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_' `
                   104976:   echo "#define $php_def_have_what 1" >> ext/mysqlnd/php_mysqlnd_config.h
                   104977: 
                   104978: 
                   104979:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   104980: $as_echo "yes" >&6; }
                   104981: 
                   104982: else
                   104983:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   104984: $as_echo "no" >&6; }
                   104985: 
                   104986:   fi
                   104987: 
                   104988:   done
                   104989: 
                   104990: fi
                   104991: 
                   104992: 
                   104993: if test "$PHP_RECODE" != "no"; then
                   104994:   test "$PHP_IMAP"  != "no" && recode_conflict="$recode_conflict imap"
                   104995: 
                   104996:   if test -n "$MYSQL_LIBNAME"; then
                   104997: 
                   104998:   save_old_LDFLAGS=$LDFLAGS
                   104999:   ac_stuff=""
                   105000: 
                   105001:   save_ext_shared=$ext_shared
                   105002:   ext_shared=yes
                   105003: 
                   105004:   for ac_i in $ac_stuff; do
                   105005:     case $ac_i in
                   105006:     -pthread)
                   105007:       if test "$ext_shared" = "yes"; then
                   105008:         LDFLAGS="$LDFLAGS -pthread"
                   105009:       else
                   105010: 
                   105011: 
                   105012:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
                   105013: 
                   105014:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
                   105015:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   105016:     eval "EXTRA_LDFLAGS$unique=set"
                   105017:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
                   105018:   fi
                   105019: 
                   105020:       fi
                   105021:     ;;
                   105022:     -l*)
                   105023:       ac_ii=`echo $ac_i|cut -c 3-`
                   105024: 
                   105025: 
                   105026:   case $ac_ii in
                   105027:   c|c_r|pthread*) ;;
                   105028:   *)
                   105029:     if test "$ext_shared" = "yes"; then
                   105030:         LDFLAGS="$LDFLAGS -l$ac_ii"
                   105031:     else
                   105032: 
                   105033: 
                   105034:   case $ac_ii in
                   105035:   c|c_r|pthread*) ;;
                   105036:   *)
                   105037:       LIBS="$LIBS -l$ac_ii"
                   105038:    ;;
                   105039:   esac
                   105040: 
                   105041: 
                   105042:     fi
                   105043:    ;;
                   105044:   esac
                   105045: 
                   105046: 
                   105047:     ;;
                   105048:     -L*)
                   105049:       ac_ii=`echo $ac_i|cut -c 3-`
                   105050: 
                   105051:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
                   105052: 
                   105053:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
                   105054:     ai_p=$ac_ii
                   105055:   else
                   105056: 
                   105057:     ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
                   105058: 
                   105059:     ep_realdir="`(cd \"$ep_dir\" && pwd)`"
                   105060:     ai_p="$ep_realdir/`basename \"$ac_ii\"`"
                   105061:   fi
                   105062: 
                   105063: 
                   105064:       if test "$ext_shared" = "yes"; then
                   105065:         LDFLAGS="-L$ai_p $LDFLAGS"
                   105066:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
                   105067:       else
                   105068: 
                   105069: 
                   105070: 
                   105071:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
                   105072: 
                   105073:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
                   105074:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   105075:     eval "LIBPATH$unique=set"
                   105076: 
                   105077:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
                   105078:     LDFLAGS="$LDFLAGS -L$ai_p"
                   105079:     PHP_RPATHS="$PHP_RPATHS $ai_p"
                   105080: 
                   105081:   fi
                   105082: 
                   105083: 
                   105084:       fi
                   105085: 
                   105086:   fi
                   105087: 
                   105088:     ;;
                   105089:     esac
                   105090:   done
                   105091: 
                   105092:   as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_hash_insert" | $as_tr_sh`
                   105093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hash_insert in -l$MYSQL_LIBNAME" >&5
                   105094: $as_echo_n "checking for hash_insert in -l$MYSQL_LIBNAME... " >&6; }
                   105095: if eval \${$as_ac_Lib+:} false; then :
                   105096:   $as_echo_n "(cached) " >&6
                   105097: else
                   105098:   ac_check_lib_save_LIBS=$LIBS
                   105099: LIBS="-l$MYSQL_LIBNAME  $LIBS"
                   105100: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   105101: /* end confdefs.h.  */
                   105102: 
                   105103: /* Override any GCC internal prototype to avoid an error.
                   105104:    Use char because int might match the return type of a GCC
                   105105:    builtin and then its argument prototype would still apply.  */
                   105106: #ifdef __cplusplus
                   105107: extern "C"
                   105108: #endif
                   105109: char hash_insert ();
                   105110: int
                   105111: main ()
                   105112: {
                   105113: return hash_insert ();
                   105114:   ;
                   105115:   return 0;
                   105116: }
                   105117: _ACEOF
                   105118: if ac_fn_c_try_link "$LINENO"; then :
                   105119:   eval "$as_ac_Lib=yes"
                   105120: else
                   105121:   eval "$as_ac_Lib=no"
                   105122: fi
                   105123: rm -f core conftest.err conftest.$ac_objext \
                   105124:     conftest$ac_exeext conftest.$ac_ext
                   105125: LIBS=$ac_check_lib_save_LIBS
                   105126: fi
                   105127: eval ac_res=\$$as_ac_Lib
                   105128:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   105129: $as_echo "$ac_res" >&6; }
                   105130: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
                   105131: 
                   105132:     LDFLAGS=$save_old_LDFLAGS
                   105133:     ext_shared=$save_ext_shared
                   105134: 
                   105135:       recode_conflict="$recode_conflict mysql"
                   105136: 
                   105137: 
                   105138: else
                   105139: 
                   105140:     LDFLAGS=$save_old_LDFLAGS
                   105141:     ext_shared=$save_ext_shared
                   105142:     unset ac_cv_lib_$MYSQL_LIBNAME_hash_insert
                   105143: 
                   105144: 
                   105145: fi
                   105146: 
                   105147:   fi
                   105148: 
                   105149:   if test -n "$recode_conflict"; then
                   105150:     as_fn_error $? "recode extension can not be configured together with:$recode_conflict" "$LINENO" 5
                   105151:   fi
                   105152: fi
                   105153: 
                   105154: 
                   105155: 
                   105156: 
                   105157: enable_shared=yes
                   105158: enable_static=yes
                   105159: 
1.1.1.2 ! misho    105160: case $php_sapi_module in
1.1       misho    105161:   shared)
                   105162:     enable_static=no
                   105163:     case $with_pic in
                   105164:       yes)
                   105165:         standard_libtool_flag='-prefer-pic'
                   105166:         ;;
                   105167:       no)
                   105168:         standard_libtool_flag='-prefer-non-pic'
                   105169:         ;;
                   105170:     esac
                   105171:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -avoid-version -module"
                   105172:     ;;
1.1.1.2 ! misho    105173:   *)
        !          105174:     standard_libtool_flag='-prefer-non-pic -static'
        !          105175:     if test -z "$PHP_MODULES" && test -z "$PHP_ZEND_EX"; then
        !          105176:       enable_shared=no
        !          105177:     fi
        !          105178:     ;;
1.1       misho    105179: esac
                   105180: 
                   105181: EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
                   105182: 
                   105183: if test "$ac_cv_lib_crypt_crypt" = "yes"; then
                   105184:   EXTRA_LIBS="-lcrypt $EXTRA_LIBS -lcrypt"
                   105185: fi
                   105186: 
                   105187: unset LIBS LDFLAGS
                   105188: 
                   105189: 
                   105190: 
                   105191: # Check whether --enable- was given.
                   105192: if test "${enable_+set}" = set; then :
                   105193:   enableval=$enable_;
                   105194: fi
                   105195: 
                   105196: 
                   105197: 
                   105198:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   105199: $as_echo "" >&6; }
                   105200:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring PEAR${T_ME}" >&5
                   105201: $as_echo "${T_MD}Configuring PEAR${T_ME}" >&6; }
                   105202: 
                   105203: 
                   105204: # compatibility
                   105205: if test -z "$with_pear" && test "$enable_pear" = "no"; then
                   105206:   with_pear=no
                   105207: fi
                   105208: 
                   105209: # If CLI is disabled -> disable PEAR
                   105210: if test "$PHP_CLI" = "no"; then
                   105211:   with_pear=no
                   105212: fi
                   105213: 
                   105214: 
                   105215: php_with_pear=DEFAULT
                   105216: 
                   105217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install PEAR" >&5
                   105218: $as_echo_n "checking whether to install PEAR... " >&6; }
                   105219: 
                   105220: # Check whether --with-pear was given.
                   105221: if test "${with_pear+set}" = set; then :
                   105222:   withval=$with_pear; PHP_PEAR=$withval
                   105223: else
                   105224: 
                   105225:   PHP_PEAR=DEFAULT
                   105226:   test "$PHP_ENABLE_ALL" && PHP_PEAR=$PHP_ENABLE_ALL
                   105227: 
                   105228: fi
                   105229: 
                   105230: 
                   105231: 
                   105232: ext_output="yes, shared"
                   105233: ext_shared=yes
                   105234: case $PHP_PEAR in
                   105235: shared,*)
                   105236:   PHP_PEAR=`echo "$PHP_PEAR"|$SED 's/^shared,//'`
                   105237:   ;;
                   105238: shared)
                   105239:   PHP_PEAR=yes
                   105240:   ;;
                   105241: no)
                   105242:   ext_output=no
                   105243:   ext_shared=no
                   105244:   ;;
                   105245: *)
                   105246:   ext_output=yes
                   105247:   ext_shared=no
                   105248:   ;;
                   105249: esac
                   105250: 
                   105251: 
                   105252: 
                   105253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
                   105254: $as_echo "$ext_output" >&6; }
                   105255: 
                   105256: 
                   105257: 
                   105258: 
                   105259: if test "$PHP_PEAR" != "no"; then
                   105260: 
                   105261:         if test "$PHP_XML" = "no"; then
                   105262:     pear_error_msg="$pear_error_msg
                   105263:                     PEAR requires XML to be enabled.     Add --enable-xml to the configure line. (or --without-pear)"
                   105264:   fi
                   105265: 
                   105266: 
                   105267:   if test "$pear_error_msg"; then
                   105268:     as_fn_error $? "$pear_error_msg" "$LINENO" 5
                   105269:   fi
                   105270: 
                   105271:   install_pear="install-pear"
                   105272:   PEAR_INSTALLDIR=$PHP_PEAR
                   105273: 
                   105274:   if test "$PHP_PEAR" = "DEFAULT" || test "$PHP_PEAR" = "yes"; then
                   105275:     case $PHP_LAYOUT in
                   105276:       GNU) PEAR_INSTALLDIR=$datadir/pear;;
                   105277:       *)   PEAR_INSTALLDIR=$libdir/php;;
                   105278:     esac
                   105279:   fi
                   105280: 
                   105281: 
                   105282:   src=$abs_srcdir/pear/Makefile.frag
                   105283:   ac_srcdir=$abs_srcdir/pear
                   105284:   ac_builddir=pear
                   105285:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
                   105286: 
                   105287: fi
                   105288: 
                   105289: 
                   105290: 
                   105291: 
                   105292: # Check whether --enable- was given.
                   105293: if test "${enable_+set}" = set; then :
                   105294:   enableval=$enable_;
                   105295: fi
                   105296: 
                   105297: 
                   105298: 
                   105299:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   105300: $as_echo "" >&6; }
                   105301:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring Zend${T_ME}" >&5
                   105302: $as_echo "${T_MD}Configuring Zend${T_ME}" >&6; }
                   105303: 
                   105304: 
                   105305: 
                   105306: 
                   105307: 
                   105308: 
                   105309: 
                   105310: 
                   105311: 
                   105312: 
                   105313:   # we only support certain bison versions
                   105314:   bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5"
                   105315: 
                   105316:   # for standalone build of Zend Engine
                   105317:   test -z "$SED" && SED=sed
                   105318: 
                   105319:   bison_version=none
                   105320:   if test "$YACC"; then
                   105321:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5
                   105322: $as_echo_n "checking for bison version... " >&6; }
                   105323: if ${php_cv_bison_version+:} false; then :
                   105324:   $as_echo_n "(cached) " >&6
                   105325: else
                   105326: 
                   105327:       bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z`
                   105328:       php_cv_bison_version=invalid
                   105329:       if test -n "$bison_version_vars"; then
                   105330:         set $bison_version_vars
                   105331:         bison_version="${1}.${2}"
                   105332:         for bison_check_version in $bison_version_list; do
                   105333:           if test "$bison_version" = "$bison_check_version"; then
                   105334:             php_cv_bison_version="$bison_check_version (ok)"
                   105335:             break
                   105336:           fi
                   105337:         done
                   105338:       fi
                   105339: 
                   105340: fi
                   105341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_bison_version" >&5
                   105342: $as_echo "$php_cv_bison_version" >&6; }
                   105343:   fi
                   105344:   case $php_cv_bison_version in
                   105345:     ""|invalid)
                   105346:       bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
                   105347:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $bison_msg" >&5
                   105348: $as_echo "$as_me: WARNING: $bison_msg" >&2;}
                   105349:       YACC="exit 0;"
                   105350:       ;;
                   105351:   esac
                   105352: 
                   105353: 
                   105354: if test "$CC" = "gcc" -a "$ac_cv_prog_cc_g" = "yes" -a \
                   105355:    "`uname -sv`" = "AIX 4"; then
                   105356:        CFLAGS=`echo $CFLAGS | sed -e 's/-g//'`
                   105357: fi
                   105358: 
                   105359: if test "$ac_cv_c_compiler_gnu" = "yes" -a "`uname -s`" = "Rhapsody"; then
                   105360:         CPPFLAGS="$CPPFLAGS -traditional-cpp"
                   105361: fi
                   105362: 
                   105363: for ac_header in inttypes.h \
                   105364: stdint.h \
                   105365: limits.h \
                   105366: malloc.h \
                   105367: string.h \
                   105368: unistd.h \
                   105369: stdarg.h \
                   105370: sys/types.h \
                   105371: sys/time.h \
                   105372: signal.h \
                   105373: unix.h \
                   105374: stdlib.h \
                   105375: dlfcn.h
                   105376: do :
                   105377:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   105378: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   105379: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   105380:   cat >>confdefs.h <<_ACEOF
                   105381: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   105382: _ACEOF
                   105383: 
                   105384: fi
                   105385: 
                   105386: done
                   105387: 
                   105388: 
                   105389: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
                   105390: if test "x$ac_cv_type_size_t" = xyes; then :
                   105391: 
                   105392: else
                   105393: 
                   105394: cat >>confdefs.h <<_ACEOF
                   105395: #define size_t unsigned int
                   105396: _ACEOF
                   105397: 
                   105398: fi
                   105399: 
                   105400: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   105401: $as_echo_n "checking return type of signal handlers... " >&6; }
                   105402: if ${ac_cv_type_signal+:} false; then :
                   105403:   $as_echo_n "(cached) " >&6
                   105404: else
                   105405:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   105406: /* end confdefs.h.  */
                   105407: #include <sys/types.h>
                   105408: #include <signal.h>
                   105409: 
                   105410: int
                   105411: main ()
                   105412: {
                   105413: return *(signal (0, 0)) (0) == 1;
                   105414:   ;
                   105415:   return 0;
                   105416: }
                   105417: _ACEOF
                   105418: if ac_fn_c_try_compile "$LINENO"; then :
                   105419:   ac_cv_type_signal=int
                   105420: else
                   105421:   ac_cv_type_signal=void
                   105422: fi
                   105423: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   105424: fi
                   105425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   105426: $as_echo "$ac_cv_type_signal" >&6; }
                   105427: 
                   105428: cat >>confdefs.h <<_ACEOF
                   105429: #define RETSIGTYPE $ac_cv_type_signal
                   105430: _ACEOF
                   105431: 
                   105432: 
                   105433: 
                   105434: 
                   105435: 
                   105436: 
                   105437: 
                   105438: ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "$ac_includes_default"
                   105439: if test "x$ac_cv_type_uint" = xyes; then :
                   105440: 
                   105441: else
                   105442: 
                   105443: cat >>confdefs.h <<_ACEOF
                   105444: #define uint unsigned int
                   105445: _ACEOF
                   105446: 
                   105447: fi
                   105448: 
                   105449: ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
                   105450: if test "x$ac_cv_type_ulong" = xyes; then :
                   105451: 
                   105452: else
                   105453: 
                   105454: cat >>confdefs.h <<_ACEOF
                   105455: #define ulong unsigned long
                   105456: _ACEOF
                   105457: 
                   105458: fi
                   105459: 
                   105460: 
                   105461: 
                   105462: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5
                   105463: $as_echo_n "checking for int32_t... " >&6; }
                   105464: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   105465: /* end confdefs.h.  */
                   105466: 
                   105467: #if HAVE_SYS_TYPES_H
                   105468: #include <sys/types.h>
                   105469: #endif
                   105470: #if HAVE_INTTYPES_H
                   105471: #include <inttypes.h>
                   105472: #elif HAVE_STDINT_H
                   105473: #include <stdint.h>
                   105474: #endif
                   105475: int
                   105476: main ()
                   105477: {
                   105478: if ((int32_t *) 0)
                   105479:   return 0;
                   105480: if (sizeof (int32_t))
                   105481:   return 0;
                   105482: 
                   105483:   ;
                   105484:   return 0;
                   105485: }
                   105486: _ACEOF
                   105487: if ac_fn_c_try_compile "$LINENO"; then :
                   105488: 
                   105489: 
                   105490: cat >>confdefs.h <<_ACEOF
                   105491: #define HAVE_INT32_T 1
                   105492: _ACEOF
                   105493: 
                   105494:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   105495: $as_echo "yes" >&6; }
                   105496: 
                   105497: else
                   105498:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   105499: $as_echo "no" >&6; }
                   105500: 
                   105501: fi
                   105502: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   105503: 
                   105504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
                   105505: $as_echo_n "checking for uint32_t... " >&6; }
                   105506: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   105507: /* end confdefs.h.  */
                   105508: 
                   105509: #if HAVE_SYS_TYPES_H
                   105510: #include <sys/types.h>
                   105511: #endif
                   105512: #if HAVE_INTTYPES_H
                   105513: #include <inttypes.h>
                   105514: #elif HAVE_STDINT_H
                   105515: #include <stdint.h>
                   105516: #endif
                   105517: int
                   105518: main ()
                   105519: {
                   105520: if ((uint32_t *) 0)
                   105521:   return 0;
                   105522: if (sizeof (uint32_t))
                   105523:   return 0;
                   105524: 
                   105525:   ;
                   105526:   return 0;
                   105527: }
                   105528: _ACEOF
                   105529: if ac_fn_c_try_compile "$LINENO"; then :
                   105530: 
                   105531: 
                   105532: cat >>confdefs.h <<_ACEOF
                   105533: #define HAVE_UINT32_T 1
                   105534: _ACEOF
                   105535: 
                   105536:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   105537: $as_echo "yes" >&6; }
                   105538: 
                   105539: else
                   105540:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   105541: $as_echo "no" >&6; }
                   105542: 
                   105543: fi
                   105544: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   105545: 
                   105546: for ac_func in vprintf
                   105547: do :
                   105548:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
                   105549: if test "x$ac_cv_func_vprintf" = xyes; then :
                   105550:   cat >>confdefs.h <<_ACEOF
                   105551: #define HAVE_VPRINTF 1
                   105552: _ACEOF
                   105553: 
                   105554: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
                   105555: if test "x$ac_cv_func__doprnt" = xyes; then :
                   105556: 
                   105557: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
                   105558: 
                   105559: fi
                   105560: 
                   105561: fi
                   105562: done
                   105563: 
                   105564: 
                   105565: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
                   105566: $as_echo_n "checking for working memcmp... " >&6; }
                   105567: if ${ac_cv_func_memcmp_working+:} false; then :
                   105568:   $as_echo_n "(cached) " >&6
                   105569: else
                   105570:   if test "$cross_compiling" = yes; then :
                   105571:   ac_cv_func_memcmp_working=no
                   105572: else
                   105573:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   105574: /* end confdefs.h.  */
                   105575: $ac_includes_default
                   105576: int
                   105577: main ()
                   105578: {
                   105579: 
                   105580:   /* Some versions of memcmp are not 8-bit clean.  */
                   105581:   char c0 = '\100', c1 = '\200', c2 = '\201';
                   105582:   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
                   105583:     return 1;
                   105584: 
                   105585:   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
                   105586:      or more and with at least one buffer not starting on a 4-byte boundary.
                   105587:      William Lewis provided this test program.   */
                   105588:   {
                   105589:     char foo[21];
                   105590:     char bar[21];
                   105591:     int i;
                   105592:     for (i = 0; i < 4; i++)
                   105593:       {
                   105594:        char *a = foo + i;
                   105595:        char *b = bar + i;
                   105596:        strcpy (a, "--------01111111");
                   105597:        strcpy (b, "--------10000000");
                   105598:        if (memcmp (a, b, 16) >= 0)
                   105599:          return 1;
                   105600:       }
                   105601:     return 0;
                   105602:   }
                   105603: 
                   105604:   ;
                   105605:   return 0;
                   105606: }
                   105607: _ACEOF
                   105608: if ac_fn_c_try_run "$LINENO"; then :
                   105609:   ac_cv_func_memcmp_working=yes
                   105610: else
                   105611:   ac_cv_func_memcmp_working=no
                   105612: fi
                   105613: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   105614:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   105615: fi
                   105616: 
                   105617: fi
                   105618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
                   105619: $as_echo "$ac_cv_func_memcmp_working" >&6; }
                   105620: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
                   105621:   *" memcmp.$ac_objext "* ) ;;
                   105622:   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
                   105623:  ;;
                   105624: esac
                   105625: 
                   105626: 
                   105627: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
                   105628: # for constant arguments.  Useless!
                   105629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
                   105630: $as_echo_n "checking for working alloca.h... " >&6; }
                   105631: if ${ac_cv_working_alloca_h+:} false; then :
                   105632:   $as_echo_n "(cached) " >&6
                   105633: else
                   105634:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   105635: /* end confdefs.h.  */
                   105636: #include <alloca.h>
                   105637: int
                   105638: main ()
                   105639: {
                   105640: char *p = (char *) alloca (2 * sizeof (int));
                   105641:                          if (p) return 0;
                   105642:   ;
                   105643:   return 0;
                   105644: }
                   105645: _ACEOF
                   105646: if ac_fn_c_try_link "$LINENO"; then :
                   105647:   ac_cv_working_alloca_h=yes
                   105648: else
                   105649:   ac_cv_working_alloca_h=no
                   105650: fi
                   105651: rm -f core conftest.err conftest.$ac_objext \
                   105652:     conftest$ac_exeext conftest.$ac_ext
                   105653: fi
                   105654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
                   105655: $as_echo "$ac_cv_working_alloca_h" >&6; }
                   105656: if test $ac_cv_working_alloca_h = yes; then
                   105657: 
                   105658: $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
                   105659: 
                   105660: fi
                   105661: 
                   105662: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
                   105663: $as_echo_n "checking for alloca... " >&6; }
                   105664: if ${ac_cv_func_alloca_works+:} false; then :
                   105665:   $as_echo_n "(cached) " >&6
                   105666: else
                   105667:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   105668: /* end confdefs.h.  */
                   105669: #ifdef __GNUC__
                   105670: # define alloca __builtin_alloca
                   105671: #else
                   105672: # ifdef _MSC_VER
                   105673: #  include <malloc.h>
                   105674: #  define alloca _alloca
                   105675: # else
                   105676: #  ifdef HAVE_ALLOCA_H
                   105677: #   include <alloca.h>
                   105678: #  else
                   105679: #   ifdef _AIX
                   105680:  #pragma alloca
                   105681: #   else
                   105682: #    ifndef alloca /* predefined by HP cc +Olibcalls */
                   105683: void *alloca (size_t);
                   105684: #    endif
                   105685: #   endif
                   105686: #  endif
                   105687: # endif
                   105688: #endif
                   105689: 
                   105690: int
                   105691: main ()
                   105692: {
                   105693: char *p = (char *) alloca (1);
                   105694:                                    if (p) return 0;
                   105695:   ;
                   105696:   return 0;
                   105697: }
                   105698: _ACEOF
                   105699: if ac_fn_c_try_link "$LINENO"; then :
                   105700:   ac_cv_func_alloca_works=yes
                   105701: else
                   105702:   ac_cv_func_alloca_works=no
                   105703: fi
                   105704: rm -f core conftest.err conftest.$ac_objext \
                   105705:     conftest$ac_exeext conftest.$ac_ext
                   105706: fi
                   105707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
                   105708: $as_echo "$ac_cv_func_alloca_works" >&6; }
                   105709: 
                   105710: if test $ac_cv_func_alloca_works = yes; then
                   105711: 
                   105712: $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
                   105713: 
                   105714: else
                   105715:   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
                   105716: # that cause trouble.  Some versions do not even contain alloca or
                   105717: # contain a buggy version.  If you still want to use their alloca,
                   105718: # use ar to extract alloca.o from them instead of compiling alloca.c.
                   105719: 
                   105720: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
                   105721: 
                   105722: $as_echo "#define C_ALLOCA 1" >>confdefs.h
                   105723: 
                   105724: 
                   105725: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
                   105726: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
                   105727: if ${ac_cv_os_cray+:} false; then :
                   105728:   $as_echo_n "(cached) " >&6
                   105729: else
                   105730:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   105731: /* end confdefs.h.  */
                   105732: #if defined CRAY && ! defined CRAY2
                   105733: webecray
                   105734: #else
                   105735: wenotbecray
                   105736: #endif
                   105737: 
                   105738: _ACEOF
                   105739: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   105740:   $EGREP "webecray" >/dev/null 2>&1; then :
                   105741:   ac_cv_os_cray=yes
                   105742: else
                   105743:   ac_cv_os_cray=no
                   105744: fi
                   105745: rm -f conftest*
                   105746: 
                   105747: fi
                   105748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
                   105749: $as_echo "$ac_cv_os_cray" >&6; }
                   105750: if test $ac_cv_os_cray = yes; then
                   105751:   for ac_func in _getb67 GETB67 getb67; do
                   105752:     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   105753: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   105754: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   105755: 
                   105756: cat >>confdefs.h <<_ACEOF
                   105757: #define CRAY_STACKSEG_END $ac_func
                   105758: _ACEOF
                   105759: 
                   105760:     break
                   105761: fi
                   105762: 
                   105763:   done
                   105764: fi
                   105765: 
                   105766: { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
                   105767: $as_echo_n "checking stack direction for C alloca... " >&6; }
                   105768: if ${ac_cv_c_stack_direction+:} false; then :
                   105769:   $as_echo_n "(cached) " >&6
                   105770: else
                   105771:   if test "$cross_compiling" = yes; then :
                   105772:   ac_cv_c_stack_direction=0
                   105773: else
                   105774:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   105775: /* end confdefs.h.  */
                   105776: $ac_includes_default
                   105777: int
1.1.1.2 ! misho    105778: find_stack_direction (int *addr, int depth)
1.1       misho    105779: {
1.1.1.2 ! misho    105780:   int dir, dummy = 0;
        !          105781:   if (! addr)
        !          105782:     addr = &dummy;
        !          105783:   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
        !          105784:   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
        !          105785:   return dir + dummy;
1.1       misho    105786: }
                   105787: 
                   105788: int
1.1.1.2 ! misho    105789: main (int argc, char **argv)
1.1       misho    105790: {
1.1.1.2 ! misho    105791:   return find_stack_direction (0, argc + !argv + 20) < 0;
1.1       misho    105792: }
                   105793: _ACEOF
                   105794: if ac_fn_c_try_run "$LINENO"; then :
                   105795:   ac_cv_c_stack_direction=1
                   105796: else
                   105797:   ac_cv_c_stack_direction=-1
                   105798: fi
                   105799: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   105800:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   105801: fi
                   105802: 
                   105803: fi
                   105804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
                   105805: $as_echo "$ac_cv_c_stack_direction" >&6; }
                   105806: cat >>confdefs.h <<_ACEOF
                   105807: #define STACK_DIRECTION $ac_cv_c_stack_direction
                   105808: _ACEOF
                   105809: 
                   105810: 
                   105811: fi
                   105812: 
                   105813: for ac_func in memcpy strdup getpid kill strtod strtol finite fpclass sigsetjmp
                   105814: do :
                   105815:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   105816: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   105817: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   105818:   cat >>confdefs.h <<_ACEOF
                   105819: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   105820: _ACEOF
                   105821: 
                   105822: fi
                   105823: done
                   105824: 
                   105825: 
                   105826:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sprintf is broken" >&5
                   105827: $as_echo_n "checking whether sprintf is broken... " >&6; }
                   105828: if ${ac_cv_broken_sprintf+:} false; then :
                   105829:   $as_echo_n "(cached) " >&6
                   105830: else
                   105831: 
                   105832:     if test "$cross_compiling" = yes; then :
                   105833: 
                   105834:       ac_cv_broken_sprintf=no
                   105835: 
                   105836: else
                   105837:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   105838: /* end confdefs.h.  */
                   105839: main() {char buf[20];exit(sprintf(buf,"testing 123")!=11); }
                   105840: _ACEOF
                   105841: if ac_fn_c_try_run "$LINENO"; then :
                   105842: 
                   105843:       ac_cv_broken_sprintf=no
                   105844: 
                   105845: else
                   105846: 
                   105847:       ac_cv_broken_sprintf=yes
                   105848: 
                   105849: fi
                   105850: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   105851:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   105852: fi
                   105853: 
                   105854: 
                   105855: fi
                   105856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sprintf" >&5
                   105857: $as_echo "$ac_cv_broken_sprintf" >&6; }
                   105858:   if test "$ac_cv_broken_sprintf" = "yes"; then
                   105859:     ac_result=1
                   105860:   else
                   105861:     ac_result=0
                   105862:   fi
                   105863: 
                   105864: cat >>confdefs.h <<_ACEOF
                   105865: #define ZEND_BROKEN_SPRINTF $ac_result
                   105866: _ACEOF
                   105867: 
                   105868: 
                   105869: 
                   105870: for ac_func in finite isfinite isinf isnan
                   105871: do :
                   105872:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   105873: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   105874: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   105875:   cat >>confdefs.h <<_ACEOF
                   105876: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   105877: _ACEOF
                   105878: 
                   105879: fi
                   105880: done
                   105881: 
                   105882: 
                   105883: 
                   105884:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fp_except is defined" >&5
                   105885: $as_echo_n "checking whether fp_except is defined... " >&6; }
                   105886: if ${ac_cv_type_fp_except+:} false; then :
                   105887:   $as_echo_n "(cached) " >&6
                   105888: else
                   105889: 
                   105890:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   105891: /* end confdefs.h.  */
                   105892: 
                   105893: #include <floatingpoint.h>
                   105894: 
                   105895: int
                   105896: main ()
                   105897: {
                   105898: 
                   105899: fp_except x = (fp_except) 0;
                   105900: 
                   105901:   ;
                   105902:   return 0;
                   105903: }
                   105904: _ACEOF
                   105905: if ac_fn_c_try_compile "$LINENO"; then :
                   105906: 
                   105907:      ac_cv_type_fp_except=yes
                   105908: 
                   105909: else
                   105910: 
                   105911:      ac_cv_type_fp_except=no
                   105912: 
                   105913: fi
                   105914: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   105915: fi
                   105916: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_fp_except" >&5
                   105917: $as_echo "$ac_cv_type_fp_except" >&6; }
                   105918:   if test "$ac_cv_type_fp_except" = "yes"; then
                   105919: 
                   105920: $as_echo "#define HAVE_FP_EXCEPT 1" >>confdefs.h
                   105921: 
                   105922:   fi
                   105923: 
                   105924: 
                   105925: 
                   105926:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _FPU_SETCW" >&5
                   105927: $as_echo_n "checking for usable _FPU_SETCW... " >&6; }
                   105928:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   105929: /* end confdefs.h.  */
                   105930: 
                   105931:     #include <fpu_control.h>
                   105932: 
                   105933: int
                   105934: main ()
                   105935: {
                   105936: 
                   105937:     fpu_control_t fpu_oldcw, fpu_cw;
                   105938:     volatile double result;
                   105939:     double a = 2877.0;
                   105940:     volatile double b = 1000000.0;
                   105941: 
                   105942:     _FPU_GETCW(fpu_oldcw);
                   105943:     fpu_cw = (fpu_oldcw & ~_FPU_EXTENDED & ~_FPU_SINGLE) | _FPU_DOUBLE;
                   105944:     _FPU_SETCW(fpu_cw);
                   105945:     result = a / b;
                   105946:     _FPU_SETCW(fpu_oldcw);
                   105947: 
                   105948:   ;
                   105949:   return 0;
                   105950: }
                   105951: _ACEOF
                   105952: if ac_fn_c_try_link "$LINENO"; then :
                   105953:   ac_cfp_have__fpu_setcw=yes
                   105954: else
                   105955:   ac_cfp_have__fpu_setcw=no
                   105956: fi
                   105957: rm -f core conftest.err conftest.$ac_objext \
                   105958:     conftest$ac_exeext conftest.$ac_ext
                   105959:   if test "$ac_cfp_have__fpu_setcw" = "yes" ; then
                   105960: 
                   105961: $as_echo "#define HAVE__FPU_SETCW 1" >>confdefs.h
                   105962: 
                   105963:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   105964: $as_echo "yes" >&6; }
                   105965:   else
                   105966:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   105967: $as_echo "no" >&6; }
                   105968:   fi
                   105969: 
                   105970:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable fpsetprec" >&5
                   105971: $as_echo_n "checking for usable fpsetprec... " >&6; }
                   105972:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   105973: /* end confdefs.h.  */
                   105974: 
                   105975:     #include <machine/ieeefp.h>
                   105976: 
                   105977: int
                   105978: main ()
                   105979: {
                   105980: 
                   105981:     fp_prec_t fpu_oldprec;
                   105982:     volatile double result;
                   105983:     double a = 2877.0;
                   105984:     volatile double b = 1000000.0;
                   105985: 
                   105986:     fpu_oldprec = fpgetprec();
                   105987:     fpsetprec(FP_PD);
                   105988:     result = a / b;
                   105989:     fpsetprec(fpu_oldprec);
                   105990: 
                   105991:   ;
                   105992:   return 0;
                   105993: }
                   105994: _ACEOF
                   105995: if ac_fn_c_try_link "$LINENO"; then :
                   105996:   ac_cfp_have_fpsetprec=yes
                   105997: else
                   105998:   ac_cfp_have_fpsetprec=no
                   105999: fi
                   106000: rm -f core conftest.err conftest.$ac_objext \
                   106001:     conftest$ac_exeext conftest.$ac_ext
                   106002:   if test "$ac_cfp_have_fpsetprec" = "yes" ; then
                   106003: 
                   106004: $as_echo "#define HAVE_FPSETPREC 1" >>confdefs.h
                   106005: 
                   106006:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   106007: $as_echo "yes" >&6; }
                   106008:   else
                   106009:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   106010: $as_echo "no" >&6; }
                   106011:   fi
                   106012: 
                   106013:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp" >&5
                   106014: $as_echo_n "checking for usable _controlfp... " >&6; }
                   106015:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   106016: /* end confdefs.h.  */
                   106017: 
                   106018:     #include <float.h>
                   106019: 
                   106020: int
                   106021: main ()
                   106022: {
                   106023: 
                   106024:     unsigned int fpu_oldcw;
                   106025:     volatile double result;
                   106026:     double a = 2877.0;
                   106027:     volatile double b = 1000000.0;
                   106028: 
                   106029:     fpu_oldcw = _controlfp(0, 0);
                   106030:     _controlfp(_PC_53, _MCW_PC);
                   106031:     result = a / b;
                   106032:     _controlfp(fpu_oldcw, _MCW_PC);
                   106033: 
                   106034:   ;
                   106035:   return 0;
                   106036: }
                   106037: _ACEOF
                   106038: if ac_fn_c_try_link "$LINENO"; then :
                   106039:   ac_cfp_have__controlfp=yes
                   106040: else
                   106041:   ac_cfp_have__controlfp=no
                   106042: fi
                   106043: rm -f core conftest.err conftest.$ac_objext \
                   106044:     conftest$ac_exeext conftest.$ac_ext
                   106045:   if test "$ac_cfp_have__controlfp" = "yes" ; then
                   106046: 
                   106047: $as_echo "#define HAVE__CONTROLFP 1" >>confdefs.h
                   106048: 
                   106049:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   106050: $as_echo "yes" >&6; }
                   106051:   else
                   106052:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   106053: $as_echo "no" >&6; }
                   106054:   fi
                   106055: 
                   106056:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp_s" >&5
                   106057: $as_echo_n "checking for usable _controlfp_s... " >&6; }
                   106058:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   106059: /* end confdefs.h.  */
                   106060: 
                   106061:    #include <float.h>
                   106062: 
                   106063: int
                   106064: main ()
                   106065: {
                   106066: 
                   106067:     unsigned int fpu_oldcw, fpu_cw;
                   106068:     volatile double result;
                   106069:     double a = 2877.0;
                   106070:     volatile double b = 1000000.0;
                   106071: 
                   106072:     _controlfp_s(&fpu_cw, 0, 0);
                   106073:     fpu_oldcw = fpu_cw;
                   106074:     _controlfp_s(&fpu_cw, _PC_53, _MCW_PC);
                   106075:     result = a / b;
                   106076:     _controlfp_s(&fpu_cw, fpu_oldcw, _MCW_PC);
                   106077: 
                   106078:   ;
                   106079:   return 0;
                   106080: }
                   106081: _ACEOF
                   106082: if ac_fn_c_try_link "$LINENO"; then :
                   106083:   ac_cfp_have__controlfp_s=yes
                   106084: else
                   106085:   ac_cfp_have__controlfp_s=no
                   106086: fi
                   106087: rm -f core conftest.err conftest.$ac_objext \
                   106088:     conftest$ac_exeext conftest.$ac_ext
                   106089:   if test "$ac_cfp_have__controlfp_s" = "yes" ; then
                   106090: 
                   106091: $as_echo "#define HAVE__CONTROLFP_S 1" >>confdefs.h
                   106092: 
                   106093:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   106094: $as_echo "yes" >&6; }
                   106095:   else
                   106096:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   106097: $as_echo "no" >&6; }
                   106098:   fi
                   106099: 
                   106100:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FPU control word can be manipulated by inline assembler" >&5
                   106101: $as_echo_n "checking whether FPU control word can be manipulated by inline assembler... " >&6; }
                   106102:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   106103: /* end confdefs.h.  */
                   106104: 
                   106105:     /* nothing */
                   106106: 
                   106107: int
                   106108: main ()
                   106109: {
                   106110: 
                   106111:     unsigned int oldcw, cw;
                   106112:     volatile double result;
                   106113:     double a = 2877.0;
                   106114:     volatile double b = 1000000.0;
                   106115: 
                   106116:     __asm__ __volatile__ ("fnstcw %0" : "=m" (*&oldcw));
                   106117:     cw = (oldcw & ~0x0 & ~0x300) | 0x200;
                   106118:     __asm__ __volatile__ ("fldcw %0" : : "m" (*&cw));
                   106119: 
                   106120:     result = a / b;
                   106121: 
                   106122:     __asm__ __volatile__ ("fldcw %0" : : "m" (*&oldcw));
                   106123: 
                   106124:   ;
                   106125:   return 0;
                   106126: }
                   106127: _ACEOF
                   106128: if ac_fn_c_try_link "$LINENO"; then :
                   106129:   ac_cfp_have_fpu_inline_asm_x86=yes
                   106130: else
                   106131:   ac_cfp_have_fpu_inline_asm_x86=no
                   106132: fi
                   106133: rm -f core conftest.err conftest.$ac_objext \
                   106134:     conftest$ac_exeext conftest.$ac_ext
                   106135:   if test "$ac_cfp_have_fpu_inline_asm_x86" = "yes" ; then
                   106136: 
                   106137: $as_echo "#define HAVE_FPU_INLINE_ASM_X86 1" >>confdefs.h
                   106138: 
                   106139:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   106140: $as_echo "yes" >&6; }
                   106141:   else
                   106142:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   106143: $as_echo "no" >&6; }
                   106144:   fi
                   106145: 
                   106146: 
                   106147: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether double cast to long preserves least significant bits" >&5
                   106148: $as_echo_n "checking whether double cast to long preserves least significant bits... " >&6; }
                   106149: 
                   106150: if test "$cross_compiling" = yes; then :
                   106151: 
                   106152:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   106153: $as_echo "no" >&6; }
                   106154: 
                   106155: else
                   106156:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   106157: /* end confdefs.h.  */
                   106158: 
                   106159: #include <limits.h>
                   106160: 
                   106161: int main()
                   106162: {
                   106163:        if (sizeof(long) == 4) {
                   106164:                double d = (double) LONG_MIN * LONG_MIN + 2e9;
                   106165: 
                   106166:                if ((long) d == 2e9 && (long) -d == -2e9) {
                   106167:                        exit(0);
                   106168:                }
                   106169:        } else if (sizeof(long) == 8) {
                   106170:                double correct = 18e18 - ((double) LONG_MIN * -2); /* Subtract ULONG_MAX + 1 */
                   106171: 
                   106172:                if ((long) 18e18 == correct) { /* On 64-bit, only check between LONG_MAX and ULONG_MAX */
                   106173:                        exit(0);
                   106174:                }
                   106175:        }
                   106176:        exit(1);
                   106177: }
                   106178: 
                   106179: _ACEOF
                   106180: if ac_fn_c_try_run "$LINENO"; then :
                   106181: 
                   106182: 
                   106183: $as_echo "#define ZEND_DVAL_TO_LVAL_CAST_OK 1" >>confdefs.h
                   106184: 
                   106185:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   106186: $as_echo "yes" >&6; }
                   106187: 
                   106188: else
                   106189: 
                   106190:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   106191: $as_echo "no" >&6; }
                   106192: 
                   106193: fi
                   106194: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   106195:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   106196: fi
                   106197: 
                   106198: 
                   106199: 
                   106200: for ac_header in dlfcn.h
                   106201: do :
                   106202:   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
                   106203: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
                   106204:   cat >>confdefs.h <<_ACEOF
                   106205: #define HAVE_DLFCN_H 1
                   106206: _ACEOF
                   106207: 
                   106208: fi
                   106209: 
                   106210: done
                   106211: 
                   106212: 
                   106213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym() requires a leading underscore in symbol names" >&5
                   106214: $as_echo_n "checking whether dlsym() requires a leading underscore in symbol names... " >&6; }
                   106215: if test "$cross_compiling" = yes; then :
                   106216: 
                   106217: else
                   106218:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   106219:   lt_status=$lt_dlunknown
                   106220:   cat > conftest.$ac_ext <<EOF
1.1.1.2 ! misho    106221: #line 106221 "configure"
1.1       misho    106222: #include "confdefs.h"
                   106223: 
                   106224: #if HAVE_DLFCN_H
                   106225: #include <dlfcn.h>
                   106226: #endif
                   106227: 
                   106228: #include <stdio.h>
                   106229: 
                   106230: #ifdef RTLD_GLOBAL
                   106231: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   106232: #else
                   106233: #  ifdef DL_GLOBAL
                   106234: #    define LT_DLGLOBAL                DL_GLOBAL
                   106235: #  else
                   106236: #    define LT_DLGLOBAL                0
                   106237: #  endif
                   106238: #endif
                   106239: 
                   106240: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   106241:    find out it does not work in some platform. */
                   106242: #ifndef LT_DLLAZY_OR_NOW
                   106243: #  ifdef RTLD_LAZY
                   106244: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   106245: #  else
                   106246: #    ifdef DL_LAZY
                   106247: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   106248: #    else
                   106249: #      ifdef RTLD_NOW
                   106250: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   106251: #      else
                   106252: #        ifdef DL_NOW
                   106253: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   106254: #        else
                   106255: #          define LT_DLLAZY_OR_NOW     0
                   106256: #        endif
                   106257: #      endif
                   106258: #    endif
                   106259: #  endif
                   106260: #endif
                   106261: 
                   106262: #ifdef __cplusplus
                   106263: extern "C" void exit (int);
                   106264: #endif
                   106265: 
                   106266: void fnord() { int i=42;}
                   106267: int main ()
                   106268: {
                   106269:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   106270:   int status = $lt_dlunknown;
                   106271: 
                   106272:   if (self)
                   106273:     {
                   106274:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   106275:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
                   106276:       /* dlclose (self); */
                   106277:     }
                   106278:   else
                   106279:     puts (dlerror ());
                   106280: 
                   106281:     exit (status);
                   106282: }
                   106283: EOF
                   106284:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
                   106285:   (eval $ac_link) 2>&5
                   106286:   ac_status=$?
                   106287:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   106288:   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
                   106289:     (./conftest; exit; ) >&5 2>/dev/null
                   106290:     lt_status=$?
                   106291:     case x$lt_status in
                   106292:       x$lt_dlno_uscore)
                   106293:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   106294: $as_echo "no" >&6; }
                   106295:  ;;
                   106296:       x$lt_dlneed_uscore)
                   106297:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   106298: $as_echo "yes" >&6; }
                   106299: 
                   106300: $as_echo "#define DLSYM_NEEDS_UNDERSCORE 1" >>confdefs.h
                   106301: 
                   106302:  ;;
                   106303:       x$lt_dlunknown|x*)
                   106304:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   106305: $as_echo "no" >&6; }
                   106306:  ;;
                   106307:     esac
                   106308:   else :
                   106309:     # compilation failed
                   106310: 
                   106311:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   106312: $as_echo "no" >&6; }
                   106313: 
                   106314:   fi
                   106315: fi
                   106316: rm -fr conftest*
                   106317: 
                   106318: 
                   106319: 
                   106320: 
                   106321: 
                   106322: # Check whether --with-zend-vm was given.
                   106323: if test "${with_zend_vm+set}" = set; then :
                   106324:   withval=$with_zend_vm;
                   106325:   PHP_ZEND_VM=$withval
                   106326: 
                   106327: else
                   106328: 
                   106329:   PHP_ZEND_VM=CALL
                   106330: 
                   106331: fi
                   106332: 
                   106333: 
                   106334: # Check whether --enable-maintainer-zts was given.
                   106335: if test "${enable_maintainer_zts+set}" = set; then :
                   106336:   enableval=$enable_maintainer_zts;
                   106337:   ZEND_MAINTAINER_ZTS=$enableval
                   106338: 
                   106339: else
                   106340: 
                   106341:   ZEND_MAINTAINER_ZTS=no
                   106342: 
                   106343: fi
                   106344: 
                   106345: 
                   106346: # Check whether --enable-inline-optimization was given.
                   106347: if test "${enable_inline_optimization+set}" = set; then :
                   106348:   enableval=$enable_inline_optimization;
                   106349:   ZEND_INLINE_OPTIMIZATION=$enableval
                   106350: 
                   106351: else
                   106352: 
                   106353:   ZEND_INLINE_OPTIMIZATION=yes
                   106354: 
                   106355: fi
                   106356: 
                   106357: 
                   106358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking virtual machine dispatch method" >&5
                   106359: $as_echo_n "checking virtual machine dispatch method... " >&6; }
                   106360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_ZEND_VM" >&5
                   106361: $as_echo "$PHP_ZEND_VM" >&6; }
                   106362: 
                   106363: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable thread-safety" >&5
                   106364: $as_echo_n "checking whether to enable thread-safety... " >&6; }
                   106365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_MAINTAINER_ZTS" >&5
                   106366: $as_echo "$ZEND_MAINTAINER_ZTS" >&6; }
                   106367: 
                   106368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable inline optimization for GCC" >&5
                   106369: $as_echo_n "checking whether to enable inline optimization for GCC... " >&6; }
                   106370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_INLINE_OPTIMIZATION" >&5
                   106371: $as_echo "$ZEND_INLINE_OPTIMIZATION" >&6; }
                   106372: 
                   106373: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend debugging" >&5
                   106374: $as_echo_n "checking whether to enable Zend debugging... " >&6; }
                   106375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_DEBUG" >&5
                   106376: $as_echo "$ZEND_DEBUG" >&6; }
                   106377: 
                   106378: case $PHP_ZEND_VM in
                   106379:   SWITCH)
                   106380: 
                   106381: $as_echo "#define ZEND_VM_KIND ZEND_VM_KIND_SWITCH" >>confdefs.h
                   106382: 
                   106383:     ;;
                   106384:   GOTO)
                   106385: 
                   106386: $as_echo "#define ZEND_VM_KIND ZEND_VM_KIND_GOTO" >>confdefs.h
                   106387: 
                   106388:     ;;
                   106389:   *)
                   106390:     PHP_ZEND_VM=CALL
                   106391: 
                   106392: $as_echo "#define ZEND_VM_KIND ZEND_VM_KIND_CALL" >>confdefs.h
                   106393: 
                   106394:     ;;
                   106395: esac
                   106396: 
                   106397: if test "$ZEND_DEBUG" = "yes"; then
                   106398: 
                   106399: $as_echo "#define ZEND_DEBUG 1" >>confdefs.h
                   106400: 
                   106401:   echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g"
                   106402:   if test "$CFLAGS" = "-g -O2"; then
                   106403:        CFLAGS=-g
                   106404:   fi
                   106405:   test -n "$GCC" && DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall"
                   106406:   test -n "$GCC" && test "$USE_MAINTAINER_MODE" = "yes" && \
                   106407:     DEBUG_CFLAGS="$DEBUG_CFLAGS -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
                   106408: else
                   106409: 
                   106410: $as_echo "#define ZEND_DEBUG 0" >>confdefs.h
                   106411: 
                   106412: fi
                   106413: 
                   106414: test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
                   106415: 
                   106416: if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
                   106417: 
                   106418: $as_echo "#define ZTS 1" >>confdefs.h
                   106419: 
                   106420:   CFLAGS="$CFLAGS -DZTS"
                   106421: 
                   106422: 
                   106423: 
                   106424: fi
                   106425: 
                   106426: 
                   106427: if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then
                   106428:   INLINE_CFLAGS=`echo $ac_n "$CFLAGS $ac_c" | sed s/-O[0-9s]*//`
                   106429: else
                   106430:   INLINE_CFLAGS="$CFLAGS"
                   106431: fi
                   106432: 
                   106433: 
                   106434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
                   106435: $as_echo_n "checking for inline... " >&6; }
                   106436: if ${ac_cv_c_inline+:} false; then :
                   106437:   $as_echo_n "(cached) " >&6
                   106438: else
                   106439:   ac_cv_c_inline=no
                   106440: for ac_kw in inline __inline__ __inline; do
                   106441:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   106442: /* end confdefs.h.  */
                   106443: #ifndef __cplusplus
                   106444: typedef int foo_t;
                   106445: static $ac_kw foo_t static_foo () {return 0; }
                   106446: $ac_kw foo_t foo () {return 0; }
                   106447: #endif
                   106448: 
                   106449: _ACEOF
                   106450: if ac_fn_c_try_compile "$LINENO"; then :
                   106451:   ac_cv_c_inline=$ac_kw
                   106452: fi
                   106453: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   106454:   test "$ac_cv_c_inline" != no && break
                   106455: done
                   106456: 
                   106457: fi
                   106458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
                   106459: $as_echo "$ac_cv_c_inline" >&6; }
                   106460: 
                   106461: case $ac_cv_c_inline in
                   106462:   inline | yes) ;;
                   106463:   *)
                   106464:     case $ac_cv_c_inline in
                   106465:       no) ac_val=;;
                   106466:       *) ac_val=$ac_cv_c_inline;;
                   106467:     esac
                   106468:     cat >>confdefs.h <<_ACEOF
                   106469: #ifndef __cplusplus
                   106470: #define inline $ac_val
                   106471: #endif
                   106472: _ACEOF
                   106473:     ;;
                   106474: esac
                   106475: 
                   106476: 
                   106477: 
                   106478: 
                   106479: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system is Darwin" >&5
                   106480: $as_echo_n "checking target system is Darwin... " >&6; }
                   106481: if echo "$target" | grep "darwin" > /dev/null; then
                   106482: 
                   106483: $as_echo "#define DARWIN 1" >>confdefs.h
                   106484: 
                   106485:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   106486: $as_echo "yes" >&6; }
                   106487: else
                   106488:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   106489: $as_echo "no" >&6; }
                   106490: fi
                   106491: 
                   106492: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MM alignment and log values" >&5
                   106493: $as_echo_n "checking for MM alignment and log values... " >&6; }
                   106494: 
                   106495: if test "$cross_compiling" = yes; then :
                   106496: 
                   106497:     LIBZEND_MM_ALIGN=8
                   106498: 
                   106499: else
                   106500:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   106501: /* end confdefs.h.  */
                   106502: 
                   106503: #include <stdio.h>
                   106504: 
                   106505: typedef union _mm_align_test {
                   106506:   void *ptr;
                   106507:   double dbl;
                   106508:   long lng;
                   106509: } mm_align_test;
                   106510: 
                   106511: #if (defined (__GNUC__) && __GNUC__ >= 2)
                   106512: #define ZEND_MM_ALIGNMENT (__alignof__ (mm_align_test))
                   106513: #else
                   106514: #define ZEND_MM_ALIGNMENT (sizeof(mm_align_test))
                   106515: #endif
                   106516: 
                   106517: int main()
                   106518: {
                   106519:   int i = ZEND_MM_ALIGNMENT;
                   106520:   int zeros = 0;
                   106521:   FILE *fp;
                   106522: 
                   106523:   while (i & ~0x1) {
                   106524:     zeros++;
                   106525:     i = i >> 1;
                   106526:   }
                   106527: 
                   106528:   fp = fopen("conftest.zend", "w");
                   106529:   fprintf(fp, "%d %d\n", ZEND_MM_ALIGNMENT, zeros);
                   106530:   fclose(fp);
                   106531: 
                   106532:   exit(0);
                   106533: }
                   106534: 
                   106535: _ACEOF
                   106536: if ac_fn_c_try_run "$LINENO"; then :
                   106537: 
                   106538:   LIBZEND_MM_ALIGN=`cat conftest.zend | cut -d ' ' -f 1`
                   106539:   LIBZEND_MM_ALIGN_LOG2=`cat conftest.zend | cut -d ' ' -f 2`
                   106540: 
                   106541: cat >>confdefs.h <<_ACEOF
                   106542: #define ZEND_MM_ALIGNMENT $LIBZEND_MM_ALIGN
                   106543: _ACEOF
                   106544: 
                   106545: 
                   106546: cat >>confdefs.h <<_ACEOF
                   106547: #define ZEND_MM_ALIGNMENT_LOG2 $LIBZEND_MM_ALIGN_LOG2
                   106548: _ACEOF
                   106549: 
                   106550: 
                   106551: fi
                   106552: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   106553:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   106554: fi
                   106555: 
                   106556: 
                   106557: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
                   106558: $as_echo "done" >&6; }
                   106559: 
                   106560: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory allocation using mmap(MAP_ANON)" >&5
                   106561: $as_echo_n "checking for memory allocation using mmap(MAP_ANON)... " >&6; }
                   106562: 
                   106563: if test "$cross_compiling" = yes; then :
                   106564: 
                   106565:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   106566: $as_echo "no" >&6; }
                   106567: 
                   106568: else
                   106569:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   106570: /* end confdefs.h.  */
                   106571: 
                   106572: #include <sys/types.h>
                   106573: #include <sys/stat.h>
                   106574: #include <fcntl.h>
                   106575: #include <sys/mman.h>
                   106576: #include <stdlib.h>
                   106577: #include <stdio.h>
                   106578: #ifndef MAP_ANON
                   106579: # ifdef MAP_ANONYMOUS
                   106580: #  define MAP_ANON MAP_ANONYMOUS
                   106581: # endif
                   106582: #endif
                   106583: #ifndef MREMAP_MAYMOVE
                   106584: # define MREMAP_MAYMOVE 0
                   106585: #endif
                   106586: #ifndef MAP_FAILED
                   106587: # define MAP_FAILED ((void*)-1)
                   106588: #endif
                   106589: 
                   106590: #define SEG_SIZE (256*1024)
                   106591: 
                   106592: int main()
                   106593: {
                   106594:        void *seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
                   106595:        if (seg == MAP_FAILED) {
                   106596:                return 1;
                   106597:        }
                   106598:        if (munmap(seg, SEG_SIZE) != 0) {
                   106599:                return 2;
                   106600:        }
                   106601:        return 0;
                   106602: }
                   106603: 
                   106604: _ACEOF
                   106605: if ac_fn_c_try_run "$LINENO"; then :
                   106606: 
                   106607: 
                   106608: $as_echo "#define HAVE_MEM_MMAP_ANON 1" >>confdefs.h
                   106609: 
                   106610:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   106611: $as_echo "yes" >&6; }
                   106612: 
                   106613: else
                   106614: 
                   106615:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   106616: $as_echo "no" >&6; }
                   106617: 
                   106618: fi
                   106619: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   106620:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   106621: fi
                   106622: 
                   106623: 
                   106624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory allocation using mmap(\"/dev/zero\")" >&5
                   106625: $as_echo_n "checking for memory allocation using mmap(\"/dev/zero\")... " >&6; }
                   106626: 
                   106627: if test "$cross_compiling" = yes; then :
                   106628: 
                   106629:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   106630: $as_echo "no" >&6; }
                   106631: 
                   106632: else
                   106633:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   106634: /* end confdefs.h.  */
                   106635: 
                   106636: #include <sys/types.h>
                   106637: #include <sys/stat.h>
                   106638: #include <fcntl.h>
                   106639: #include <sys/mman.h>
                   106640: #include <stdlib.h>
                   106641: #include <stdio.h>
                   106642: #ifndef MAP_ANON
                   106643: # ifdef MAP_ANONYMOUS
                   106644: #  define MAP_ANON MAP_ANONYMOUS
                   106645: # endif
                   106646: #endif
                   106647: #ifndef MREMAP_MAYMOVE
                   106648: # define MREMAP_MAYMOVE 0
                   106649: #endif
                   106650: #ifndef MAP_FAILED
                   106651: # define MAP_FAILED ((void*)-1)
                   106652: #endif
                   106653: 
                   106654: #define SEG_SIZE (256*1024)
                   106655: 
                   106656: int main()
                   106657: {
                   106658:        int fd;
                   106659:        void *seg;
                   106660: 
                   106661:        fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR);
                   106662:        if (fd < 0) {
                   106663:                return 1;
                   106664:        }
                   106665:        seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
                   106666:        if (seg == MAP_FAILED) {
                   106667:                return 2;
                   106668:        }
                   106669:        if (munmap(seg, SEG_SIZE) != 0) {
                   106670:                return 3;
                   106671:        }
                   106672:        if (close(fd) != 0) {
                   106673:                return 4;
                   106674:        }
                   106675:        return 0;
                   106676: }
                   106677: 
                   106678: _ACEOF
                   106679: if ac_fn_c_try_run "$LINENO"; then :
                   106680: 
                   106681: 
                   106682: $as_echo "#define HAVE_MEM_MMAP_ZERO 1" >>confdefs.h
                   106683: 
                   106684:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   106685: $as_echo "yes" >&6; }
                   106686: 
                   106687: else
                   106688: 
                   106689:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   106690: $as_echo "no" >&6; }
                   106691: 
                   106692: fi
                   106693: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   106694:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   106695: fi
                   106696: 
                   106697: 
                   106698: for ac_func in mremap
                   106699: do :
                   106700:   ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap"
                   106701: if test "x$ac_cv_func_mremap" = xyes; then :
                   106702:   cat >>confdefs.h <<_ACEOF
                   106703: #define HAVE_MREMAP 1
                   106704: _ACEOF
                   106705: 
                   106706: fi
                   106707: done
                   106708: 
                   106709: 
                   106710: 
1.1.1.2 ! misho    106711: # Check whether --enable-zend-signals was given.
        !          106712: if test "${enable_zend_signals+set}" = set; then :
        !          106713:   enableval=$enable_zend_signals;
        !          106714:   ZEND_SIGNALS=$enableval
        !          106715: 
        !          106716: else
        !          106717: 
        !          106718:   ZEND_SIGNALS=no
        !          106719: 
        !          106720: fi
        !          106721: 
        !          106722: 
        !          106723: ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
        !          106724: if test "x$ac_cv_func_sigaction" = xyes; then :
        !          106725: 
        !          106726: 
        !          106727: $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
        !          106728: 
        !          106729: 
        !          106730: else
        !          106731: 
        !          106732:        ZEND_SIGNALS=no
        !          106733: 
        !          106734: fi
        !          106735: 
        !          106736: if test "$ZEND_SIGNALS" = "yes"; then
        !          106737: 
        !          106738: $as_echo "#define ZEND_SIGNALS 1" >>confdefs.h
        !          106739: 
        !          106740:        CFLAGS="$CFLAGS -DZEND_SIGNALS"
        !          106741: fi
        !          106742: 
        !          106743: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable zend signal handling" >&5
        !          106744: $as_echo_n "checking whether to enable zend signal handling... " >&6; }
        !          106745: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_SIGNALS" >&5
        !          106746: $as_echo "$ZEND_SIGNALS" >&6; }
        !          106747: 
        !          106748: 
1.1       misho    106749: 
                   106750: if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
                   106751: 
                   106752: $as_echo "#define ZTS 1" >>confdefs.h
                   106753: 
                   106754:   PHP_THREAD_SAFETY=yes
                   106755: else
                   106756:   PHP_THREAD_SAFETY=no
                   106757: fi
                   106758: 
                   106759: INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM"
                   106760: INCLUDES="$INCLUDES -I\$(top_builddir)/Zend"
                   106761: 
                   106762: if test "$abs_srcdir" != "$abs_builddir"; then
                   106763:   INCLUDES="$INCLUDES -I\$(top_srcdir)/main -I\$(top_srcdir)/Zend"
                   106764:   INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM -I\$(top_builddir)/"
                   106765: fi
                   106766: 
                   106767: ZEND_EXTRA_LIBS="$LIBS"
                   106768: unset LIBS LDFLAGS
                   106769: 
                   106770: 
                   106771: # Check whether --enable- was given.
                   106772: if test "${enable_+set}" = set; then :
                   106773:   enableval=$enable_;
                   106774: fi
                   106775: 
                   106776: 
                   106777: 
                   106778:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   106779: $as_echo "" >&6; }
                   106780:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring TSRM${T_ME}" >&5
                   106781: $as_echo "${T_MD}Configuring TSRM${T_ME}" >&6; }
                   106782: 
                   106783: 
                   106784: 
                   106785: 
                   106786: for ac_header in stdarg.h
                   106787: do :
                   106788:   ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
                   106789: if test "x$ac_cv_header_stdarg_h" = xyes; then :
                   106790:   cat >>confdefs.h <<_ACEOF
                   106791: #define HAVE_STDARG_H 1
                   106792: _ACEOF
                   106793: 
                   106794: fi
                   106795: 
                   106796: done
                   106797: 
                   106798: 
1.1.1.2 ! misho    106799: for ac_func in sigprocmask
        !          106800: do :
        !          106801:   ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
        !          106802: if test "x$ac_cv_func_sigprocmask" = xyes; then :
        !          106803:   cat >>confdefs.h <<_ACEOF
        !          106804: #define HAVE_SIGPROCMASK 1
        !          106805: _ACEOF
        !          106806: 
        !          106807: fi
        !          106808: done
        !          106809: 
        !          106810: 
1.1       misho    106811: 
                   106812: if test "$PHP_THREAD_SAFETY" = "yes"; then
                   106813: 
                   106814: 
                   106815: 
                   106816: 
                   106817: # Check whether --with-tsrm-pth was given.
                   106818: if test "${with_tsrm_pth+set}" = set; then :
                   106819:   withval=$with_tsrm_pth;
                   106820:   TSRM_PTH=$withval
                   106821: 
                   106822: else
                   106823: 
                   106824:   TSRM_PTH=no
                   106825: 
                   106826: fi
                   106827: 
                   106828: 
                   106829: 
                   106830: # Check whether --with-tsrm-st was given.
                   106831: if test "${with_tsrm_st+set}" = set; then :
                   106832:   withval=$with_tsrm_st;
                   106833:   TSRM_ST=$withval
                   106834: 
                   106835: else
                   106836: 
                   106837:   TSRM_ST=no
                   106838: 
                   106839: fi
                   106840: 
                   106841: 
                   106842: 
                   106843: # Check whether --with-tsrm-pthreads was given.
                   106844: if test "${with_tsrm_pthreads+set}" = set; then :
                   106845:   withval=$with_tsrm_pthreads;
                   106846:   TSRM_PTHREADS=$withval
                   106847: 
                   106848: else
                   106849: 
                   106850:   TSRM_PTHREADS=yes
                   106851: 
                   106852: fi
                   106853: 
                   106854: 
                   106855: test "$TSRM_PTH" = "yes" && TSRM_PTH=pth-config
                   106856: 
                   106857: if test "$TSRM_PTH" != "no"; then
                   106858: 
                   106859: 
                   106860: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth" >&5
                   106861: $as_echo_n "checking for GNU Pth... " >&6; }
                   106862: PTH_PREFIX="`$TSRM_PTH --prefix`"
                   106863: if test -z "$PTH_PREFIX"; then
                   106864:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Please check your Pth installation" >&5
                   106865: $as_echo "Please check your Pth installation" >&6; }
                   106866: fi
                   106867: 
                   106868: CPPFLAGS="$CPPFLAGS `$TSRM_PTH --cflags`"
                   106869: LDFLAGS="$LDFLAGS `$TSRM_PTH --ldflags`"
                   106870: LIBS="$LIBS `$TSRM_PTH --libs`"
                   106871: 
                   106872: 
                   106873: $as_echo "#define GNUPTH 1" >>confdefs.h
                   106874: 
                   106875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - installed in $PTH_PREFIX" >&5
                   106876: $as_echo "yes - installed in $PTH_PREFIX" >&6; }
                   106877: 
                   106878: 
                   106879: elif test "$TSRM_ST" != "no"; then
                   106880: 
                   106881:   if test -r "$TSRM_ST/include/st.h"; then
                   106882:     CPPFLAGS="$CPPFLAGS -I$TSRM_ST/include"
                   106883:     LDFLAGS="$LDFLAGS -L$TSRM_ST/lib"
                   106884:   elif test -r "$TSRM_ST/st.h"; then
                   106885:     CPPFLAGS="$CPPFLAGS -I$TSRM_ST"
                   106886:     LDFLAGS="$LDFLAGS -L$TSRM_ST"
                   106887:   fi
                   106888:   for ac_header in st.h
                   106889: do :
                   106890:   ac_fn_c_check_header_mongrel "$LINENO" "st.h" "ac_cv_header_st_h" "$ac_includes_default"
                   106891: if test "x$ac_cv_header_st_h" = xyes; then :
                   106892:   cat >>confdefs.h <<_ACEOF
                   106893: #define HAVE_ST_H 1
                   106894: _ACEOF
                   106895: 
                   106896: else
                   106897: 
                   106898:     as_fn_error $? "Sorry, I was unable to locate the State Threads header file.  Please specify the prefix using --with-tsrm-st=/prefix" "$LINENO" 5
                   106899: 
                   106900: fi
                   106901: 
                   106902: done
                   106903: 
                   106904:   LIBS="$LIBS -lst"
                   106905:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SGI's State Threads" >&5
                   106906: $as_echo_n "checking for SGI's State Threads... " >&6; }
                   106907:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   106908: $as_echo "yes" >&6; }
                   106909: 
                   106910: $as_echo "#define TSRM_ST 1" >>confdefs.h
                   106911: 
                   106912: 
                   106913: elif test "$TSRM_PTHREADS" != "no"; then
                   106914: 
                   106915: 
                   106916: 
                   106917: 
                   106918: if test "$beos_threads" = "1"; then
                   106919:   pthreads_working="yes"
                   106920:   ac_cv_pthreads_cflags=""
                   106921: else
                   106922:   save_CFLAGS=$CFLAGS
                   106923:   save_LIBS=$LIBS
                   106924: 
                   106925: if test -n "$ac_cv_pthreads_lib"; then
                   106926:   LIBS="$LIBS -l$ac_cv_pthreads_lib"
                   106927: fi
                   106928: 
                   106929: if test -n "$ac_cv_pthreads_cflags"; then
                   106930:   CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
                   106931: fi
                   106932: 
                   106933: 
                   106934: if test "$cross_compiling" = yes; then :
                   106935: 
                   106936:     pthreads_working=no
                   106937:   case $host_alias in
                   106938:   *netware*)
                   106939:     pthreads_working=yes
                   106940:   esac
                   106941: 
                   106942: 
                   106943: else
                   106944:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   106945: /* end confdefs.h.  */
                   106946: 
                   106947: #include <pthread.h>
                   106948: #include <stddef.h>
                   106949: 
                   106950: void *thread_routine(void *data) {
                   106951:     return data;
                   106952: }
                   106953: 
                   106954: int main() {
                   106955:     pthread_t thd;
                   106956:     pthread_mutexattr_t mattr;
                   106957:     int data = 1;
                   106958:     pthread_mutexattr_init(&mattr);
                   106959:     return 0;
                   106960: }
                   106961: _ACEOF
                   106962: if ac_fn_c_try_run "$LINENO"; then :
                   106963: 
                   106964:   pthreads_working=yes
                   106965: 
                   106966: else
                   106967: 
                   106968:   pthreads_working=no
                   106969: 
                   106970: fi
                   106971: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   106972:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   106973: fi
                   106974: 
                   106975:   LIBS=$save_LIBS
                   106976:   CFLAGS=$save_CFLAGS
                   106977: 
                   106978:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5
                   106979: $as_echo_n "checking for pthreads_cflags... " >&6; }
                   106980: if ${ac_cv_pthreads_cflags+:} false; then :
                   106981:   $as_echo_n "(cached) " >&6
                   106982: else
                   106983: 
                   106984:   ac_cv_pthreads_cflags=
                   106985:   if test "$pthreads_working" != "yes"; then
                   106986:     for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do
                   106987:       ac_save=$CFLAGS
                   106988:       CFLAGS="$CFLAGS $flag"
                   106989: 
                   106990: if test "$cross_compiling" = yes; then :
                   106991: 
                   106992:     pthreads_working=no
                   106993:   case $host_alias in
                   106994:   *netware*)
                   106995:     pthreads_working=yes
                   106996:   esac
                   106997: 
                   106998: 
                   106999: else
                   107000:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   107001: /* end confdefs.h.  */
                   107002: 
                   107003: #include <pthread.h>
                   107004: #include <stddef.h>
                   107005: 
                   107006: void *thread_routine(void *data) {
                   107007:     return data;
                   107008: }
                   107009: 
                   107010: int main() {
                   107011:     pthread_t thd;
                   107012:     pthread_mutexattr_t mattr;
                   107013:     int data = 1;
                   107014:     pthread_mutexattr_init(&mattr);
                   107015:     return 0;
                   107016: }
                   107017: _ACEOF
                   107018: if ac_fn_c_try_run "$LINENO"; then :
                   107019: 
                   107020:   pthreads_working=yes
                   107021: 
                   107022: else
                   107023: 
                   107024:   pthreads_working=no
                   107025: 
                   107026: fi
                   107027: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   107028:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   107029: fi
                   107030: 
                   107031:       CFLAGS=$ac_save
                   107032:       if test "$pthreads_working" = "yes"; then
                   107033:         ac_cv_pthreads_cflags=$flag
                   107034:         break
                   107035:       fi
                   107036:     done
                   107037:   fi
                   107038: fi
                   107039: 
                   107040: fi
                   107041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5
                   107042: $as_echo "$ac_cv_pthreads_cflags" >&6; }
                   107043: 
                   107044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5
                   107045: $as_echo_n "checking for pthreads_lib... " >&6; }
                   107046: if ${ac_cv_pthreads_lib+:} false; then :
                   107047:   $as_echo_n "(cached) " >&6
                   107048: else
                   107049: 
                   107050: ac_cv_pthreads_lib=
                   107051: if test "$pthreads_working" != "yes"; then
                   107052:   for lib in pthread pthreads c_r; do
                   107053:     ac_save=$LIBS
                   107054:     LIBS="$LIBS -l$lib"
                   107055: 
                   107056: if test "$cross_compiling" = yes; then :
                   107057: 
                   107058:     pthreads_working=no
                   107059:   case $host_alias in
                   107060:   *netware*)
                   107061:     pthreads_working=yes
                   107062:   esac
                   107063: 
                   107064: 
                   107065: else
                   107066:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   107067: /* end confdefs.h.  */
                   107068: 
                   107069: #include <pthread.h>
                   107070: #include <stddef.h>
                   107071: 
                   107072: void *thread_routine(void *data) {
                   107073:     return data;
                   107074: }
                   107075: 
                   107076: int main() {
                   107077:     pthread_t thd;
                   107078:     pthread_mutexattr_t mattr;
                   107079:     int data = 1;
                   107080:     pthread_mutexattr_init(&mattr);
                   107081:     return 0;
                   107082: }
                   107083: _ACEOF
                   107084: if ac_fn_c_try_run "$LINENO"; then :
                   107085: 
                   107086:   pthreads_working=yes
                   107087: 
                   107088: else
                   107089: 
                   107090:   pthreads_working=no
                   107091: 
                   107092: fi
                   107093: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   107094:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   107095: fi
                   107096: 
                   107097:     LIBS=$ac_save
                   107098:     if test "$pthreads_working" = "yes"; then
                   107099:       ac_cv_pthreads_lib=$lib
                   107100:       break
                   107101:     fi
                   107102:   done
                   107103: fi
                   107104: 
                   107105: fi
                   107106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5
                   107107: $as_echo "$ac_cv_pthreads_lib" >&6; }
                   107108: 
                   107109: if test "$pthreads_working" = "yes"; then
                   107110:   threads_result="POSIX-Threads found"
                   107111: else
                   107112:   threads_result="POSIX-Threads not found"
                   107113: fi
                   107114: 
                   107115: 
                   107116: if test "$beos_threads" = "1"; then
                   107117: 
                   107118: $as_echo "#define BETHREADS 1" >>confdefs.h
                   107119: 
                   107120: else
                   107121:   if test "$pthreads_working" != "yes"; then
                   107122:     as_fn_error $? "Your system seems to lack POSIX threads." "$LINENO" 5
                   107123:   fi
                   107124: 
                   107125: 
                   107126: $as_echo "#define PTHREADS 1" >>confdefs.h
                   107127: 
                   107128: 
                   107129:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX threads" >&5
                   107130: $as_echo_n "checking for POSIX threads... " >&6; }
                   107131:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   107132: $as_echo "yes" >&6; }
                   107133: fi
                   107134: 
                   107135: fi
                   107136: 
                   107137: 
                   107138: fi
                   107139: 
                   107140: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS"
                   107141: EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $LDFLAGS"
                   107142: EXTRA_LIBS="$EXTRA_LIBS $LIBS"
                   107143: unset LIBS LDFLAGS
                   107144: 
                   107145: test "$prefix" = "NONE" && prefix=/usr/local
                   107146: test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
                   107147: test "$program_prefix" = "NONE" && program_prefix=
                   107148: test "$program_suffix" = "NONE" && program_suffix=
                   107149: 
                   107150: case $libdir in
                   107151:   '${exec_prefix}/lib')
                   107152:     libdir=$libdir/php
                   107153:     ;;
                   107154: esac
                   107155: case $datadir in
                   107156:   '${prefix}/share')
                   107157:     datadir=$datadir/php
                   107158:     ;;
                   107159: esac
                   107160: 
                   107161: phplibdir=`pwd`/modules
                   107162: $php_shtool mkdir -p $phplibdir
                   107163: phptempdir=`pwd`/libs
                   107164: 
                   107165: old_exec_prefix=$exec_prefix
                   107166: old_libdir=$libdir
                   107167: old_datadir=$datadir
                   107168: exec_prefix=`eval echo $exec_prefix`
                   107169: libdir=`eval echo $libdir`
                   107170: datadir=`eval echo $datadir`
                   107171: 
                   107172: 
                   107173: ZEND_MODULE_API_NO=`$EGREP '#define ZEND_MODULE_API_NO ' $srcdir/Zend/zend_modules.h|$SED 's/#define ZEND_MODULE_API_NO //'`
                   107174: 
                   107175: if test -z "$EXTENSION_DIR"; then
                   107176:   extbasedir=$ZEND_MODULE_API_NO
                   107177:   if test "$oldstyleextdir" = "yes"; then
                   107178:     if test "$PHP_DEBUG" = "1"; then
                   107179:       part1=debug
                   107180:     else
                   107181:       part1=no-debug
                   107182:     fi
                   107183:     if test "$enable_maintainer_zts" = "yes"; then
                   107184:       part2=zts
                   107185:     else
                   107186:       part2=non-zts
                   107187:     fi
                   107188:     extbasedir=$part1-$part2-$extbasedir
                   107189:     EXTENSION_DIR=$libdir/extensions/$extbasedir
                   107190:   else
                   107191:     if test "$enable_maintainer_zts" = "yes"; then
                   107192:       extbasedir=$extbasedir-zts
                   107193:     fi
                   107194: 
                   107195:     if test "$PHP_DEBUG" = "1"; then
                   107196:       extbasedir=$extbasedir-debug
                   107197:     fi
                   107198:     EXTENSION_DIR=$libdir/$extbasedir
                   107199:   fi
                   107200: fi
                   107201: 
                   107202: case $PHP_LAYOUT in
                   107203:   GNU)
                   107204:     datarootdir=$prefix/share
                   107205:     ;;
                   107206:   *)
                   107207:     datarootdir=$prefix/php
                   107208:     ;;
                   107209: esac
                   107210: 
                   107211: EXPANDED_PEAR_INSTALLDIR=`eval echo $PEAR_INSTALLDIR`
                   107212: EXPANDED_EXTENSION_DIR=`eval echo $EXTENSION_DIR`
                   107213: EXPANDED_LOCALSTATEDIR=`eval echo $localstatedir`
                   107214: EXPANDED_BINDIR=`eval echo $bindir`
                   107215: EXPANDED_SBINDIR=`eval echo $sbindir`
                   107216: EXPANDED_MANDIR=`eval echo $mandir`
                   107217: EXPANDED_LIBDIR=$libdir
                   107218: EXPANDED_SYSCONFDIR=`eval echo $sysconfdir`
                   107219: EXPANDED_DATADIR=$datadir
                   107220: EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
                   107221: EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
                   107222: INCLUDE_PATH=.:${prefix}/share/pear
                   107223: 
                   107224: exec_prefix=$old_exec_prefix
                   107225: libdir=$old_libdir
                   107226: datadir=$old_datadir
                   107227: 
                   107228: 
                   107229: 
                   107230: 
                   107231: 
                   107232: 
                   107233: 
                   107234: 
                   107235: 
                   107236: 
                   107237: 
                   107238: 
                   107239: 
                   107240: 
                   107241: if test -n "$php_ldflags_add_usr_lib"; then
                   107242:   PHP_RPATHS="$PHP_RPATHS /usr/lib"
                   107243: fi
                   107244: 
                   107245: 
                   107246:   OLD_RPATHS=$PHP_RPATHS
                   107247:   unset PHP_RPATHS
                   107248: 
                   107249:   for i in $OLD_RPATHS; do
                   107250:     PHP_LDFLAGS="$PHP_LDFLAGS -L$i"
                   107251:     PHP_RPATHS="$PHP_RPATHS -R $i"
                   107252:     NATIVE_RPATHS="$NATIVE_RPATHS $ld_runpath_switch$i"
                   107253:   done
                   107254: 
                   107255:   if test "$PHP_RPATH" = "no"; then
                   107256:     unset PHP_RPATHS
                   107257:     unset NATIVE_RPATHS
                   107258:   fi
                   107259: 
                   107260: 
                   107261: if test -z "$php_ldflags_add_usr_lib"; then
                   107262: 
                   107263:   unset ac_new_flags
                   107264:   for i in $PHP_LDFLAGS; do
                   107265:     case $i in
                   107266:     -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;;
                   107267:     *) ac_new_flags="$ac_new_flags $i" ;;
                   107268:     esac
                   107269:   done
                   107270:   PHP_LDFLAGS=$ac_new_flags
                   107271: 
                   107272: 
                   107273:   unset ac_new_flags
                   107274:   for i in $LDFLAGS; do
                   107275:     case $i in
                   107276:     -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;;
                   107277:     *) ac_new_flags="$ac_new_flags $i" ;;
                   107278:     esac
                   107279:   done
                   107280:   LDFLAGS=$ac_new_flags
                   107281: 
                   107282: fi
                   107283: 
                   107284: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS"
                   107285: EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS"
                   107286: 
                   107287: PHP_BUILD_DATE=`date '+%Y-%m-%d'`
                   107288: 
                   107289: cat >>confdefs.h <<_ACEOF
                   107290: #define PHP_BUILD_DATE "$PHP_BUILD_DATE"
                   107291: _ACEOF
                   107292: 
                   107293: 
                   107294: case $host_alias in
                   107295: *netware*)
                   107296:   PHP_OS="NetWare"
                   107297:   PHP_UNAME="NetWare"
                   107298: 
                   107299: cat >>confdefs.h <<_ACEOF
                   107300: #define PHP_OS "$PHP_OS"
                   107301: _ACEOF
                   107302: 
                   107303: 
                   107304: cat >>confdefs.h <<_ACEOF
                   107305: #define PHP_UNAME "$PHP_UNAME"
                   107306: _ACEOF
                   107307: 
                   107308:   ;;
                   107309: *)
                   107310:   PHP_UNAME=`uname -a | xargs`
                   107311: 
                   107312: cat >>confdefs.h <<_ACEOF
                   107313: #define PHP_UNAME "$PHP_UNAME"
                   107314: _ACEOF
                   107315: 
                   107316:   PHP_OS=`uname | xargs`
                   107317: 
                   107318: cat >>confdefs.h <<_ACEOF
                   107319: #define PHP_OS "$PHP_OS"
                   107320: _ACEOF
                   107321: 
                   107322:   ;;
                   107323: esac
                   107324: 
                   107325: 
                   107326: 
                   107327:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_INSTALLED_SAPIS"
                   107328: 
                   107329: 
                   107330: 
                   107331: 
                   107332: 
                   107333:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE"
                   107334: 
                   107335: 
                   107336: 
                   107337:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI_OBJS"
                   107338: 
                   107339: 
1.1.1.2 ! misho    107340:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARY_OBJS"
1.1       misho    107341: 
                   107342: 
                   107343:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_GLOBAL_OBJS"
                   107344: 
                   107345: 
                   107346: 
1.1.1.2 ! misho    107347:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARIES"
        !          107348: 
        !          107349: 
1.1       misho    107350:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MODULES"
                   107351: 
                   107352: 
                   107353:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_ZEND_EX"
                   107354: 
                   107355: 
                   107356: 
                   107357:   PHP_VAR_SUBST="$PHP_VAR_SUBST EXT_LIBS"
                   107358: 
                   107359: 
                   107360: 
                   107361: 
                   107362:   PHP_VAR_SUBST="$PHP_VAR_SUBST abs_builddir"
                   107363: 
                   107364: 
                   107365: 
                   107366: 
                   107367: 
                   107368:   PHP_VAR_SUBST="$PHP_VAR_SUBST abs_srcdir"
                   107369: 
                   107370: 
                   107371: 
                   107372: 
                   107373: 
                   107374:   PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_builddir"
                   107375: 
                   107376: 
                   107377: 
                   107378: 
                   107379: 
                   107380:   PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_srcdir"
                   107381: 
                   107382: 
                   107383: 
                   107384: 
                   107385: 
                   107386:   PHP_VAR_SUBST="$PHP_VAR_SUBST bindir"
                   107387: 
                   107388: 
                   107389:   PHP_VAR_SUBST="$PHP_VAR_SUBST sbindir"
                   107390: 
                   107391: 
                   107392:   PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix"
                   107393: 
                   107394: 
                   107395: 
                   107396:   PHP_VAR_SUBST="$PHP_VAR_SUBST program_prefix"
                   107397: 
                   107398: 
                   107399: 
                   107400: 
                   107401: 
                   107402:   PHP_VAR_SUBST="$PHP_VAR_SUBST program_suffix"
                   107403: 
                   107404: 
                   107405: 
                   107406: 
                   107407:   PHP_VAR_SUBST="$PHP_VAR_SUBST includedir"
                   107408: 
                   107409: 
                   107410:   PHP_VAR_SUBST="$PHP_VAR_SUBST libdir"
                   107411: 
                   107412: 
                   107413:   PHP_VAR_SUBST="$PHP_VAR_SUBST mandir"
                   107414: 
                   107415: 
                   107416:   PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir"
                   107417: 
                   107418: 
                   107419:   PHP_VAR_SUBST="$PHP_VAR_SUBST phptempdir"
                   107420: 
                   107421: 
                   107422:   PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
                   107423: 
                   107424: 
                   107425:   PHP_VAR_SUBST="$PHP_VAR_SUBST localstatedir"
                   107426: 
                   107427: 
                   107428:   PHP_VAR_SUBST="$PHP_VAR_SUBST datadir"
                   107429: 
                   107430: 
                   107431:   PHP_VAR_SUBST="$PHP_VAR_SUBST datarootdir"
                   107432: 
                   107433: 
                   107434:   PHP_VAR_SUBST="$PHP_VAR_SUBST sysconfdir"
                   107435: 
                   107436: 
                   107437: 
                   107438:   PHP_VAR_SUBST="$PHP_VAR_SUBST EXEEXT"
                   107439: 
                   107440: 
                   107441:   PHP_VAR_SUBST="$PHP_VAR_SUBST CC"
                   107442: 
                   107443: 
                   107444:   PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS"
                   107445: 
                   107446: 
                   107447:   PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS_CLEAN"
                   107448: 
                   107449: 
                   107450:   PHP_VAR_SUBST="$PHP_VAR_SUBST CPP"
                   107451: 
                   107452: 
                   107453:   PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS"
                   107454: 
                   107455: 
                   107456:   PHP_VAR_SUBST="$PHP_VAR_SUBST CXX"
                   107457: 
                   107458: 
                   107459:   PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS"
                   107460: 
                   107461: 
                   107462:   PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS_CLEAN"
                   107463: 
                   107464: 
                   107465: 
                   107466:   PHP_VAR_SUBST="$PHP_VAR_SUBST DEBUG_CFLAGS"
                   107467: 
                   107468: 
                   107469: 
                   107470: 
                   107471: 
                   107472:   PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR"
                   107473: 
                   107474: 
                   107475: 
                   107476: 
                   107477: 
                   107478:   PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS"
                   107479: 
                   107480: 
                   107481: 
                   107482: 
                   107483: 
                   107484:   PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS_PROGRAM"
                   107485: 
                   107486: 
                   107487: 
                   107488: 
                   107489: 
                   107490:   PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS"
                   107491: 
                   107492: 
                   107493: 
                   107494: 
                   107495: 
                   107496:   PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXTRA_LIBS"
                   107497: 
                   107498: 
                   107499: 
                   107500: 
                   107501: 
                   107502:   PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES"
                   107503: 
                   107504: 
                   107505: 
                   107506: 
                   107507: 
                   107508:   PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_INCLUDES"
                   107509: 
                   107510: 
                   107511: 
                   107512: 
                   107513: 
                   107514:   PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDE_PATH"
                   107515: 
                   107516: 
                   107517: 
                   107518: 
                   107519: 
                   107520:   PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_IT"
                   107521: 
                   107522: 
                   107523: 
                   107524: 
                   107525:   PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS"
                   107526: 
                   107527: 
                   107528:   PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL"
                   107529: 
                   107530: 
                   107531:   PHP_VAR_SUBST="$PHP_VAR_SUBST LN_S"
                   107532: 
                   107533: 
                   107534: 
                   107535:   PHP_VAR_SUBST="$PHP_VAR_SUBST NATIVE_RPATHS"
                   107536: 
                   107537: 
                   107538: 
                   107539: 
                   107540: 
                   107541:   PHP_VAR_SUBST="$PHP_VAR_SUBST PEAR_INSTALLDIR"
                   107542: 
                   107543: 
                   107544: 
                   107545: 
                   107546:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BUILD_DATE"
                   107547: 
                   107548: 
                   107549: 
                   107550:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LDFLAGS"
                   107551: 
                   107552: 
                   107553: 
                   107554: 
                   107555: 
                   107556:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LIBS"
                   107557: 
                   107558: 
                   107559: 
                   107560: 
                   107561:   PHP_VAR_SUBST="$PHP_VAR_SUBST OVERALL_TARGET"
                   107562: 
                   107563: 
                   107564:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RPATHS"
                   107565: 
                   107566: 
                   107567:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI"
                   107568: 
                   107569: 
                   107570: 
                   107571:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION"
                   107572: 
                   107573: 
                   107574: 
                   107575: 
                   107576: 
                   107577:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION_ID"
                   107578: 
                   107579: 
                   107580: 
                   107581: 
                   107582:   PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL"
                   107583: 
                   107584: 
                   107585:   PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL"
                   107586: 
                   107587: 
                   107588:   PHP_VAR_SUBST="$PHP_VAR_SUBST WARNING_LEVEL"
                   107589: 
                   107590: 
                   107591:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKS"
                   107592: 
                   107593: 
                   107594:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKPATH"
                   107595: 
                   107596: 
                   107597:   PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_HEADERS"
                   107598: 
                   107599: 
                   107600: old_CC=$CC
                   107601: 
                   107602: if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then
                   107603:   CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags"
                   107604:   INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags"
                   107605:   cat >meta_ccld<<EOF
                   107606: #! /bin/sh
                   107607: exec $CC $ac_cv_pthreads_cflags \$@
                   107608: EOF
                   107609:   CC="$abs_builddir/meta_ccld"
                   107610:   chmod +x meta_ccld
                   107611: fi
                   107612: 
                   107613: if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then
                   107614:   CPPFLAGS="$CPPFLAGS -DTHREAD=1"
                   107615: fi
                   107616: 
                   107617: ZEND_EXT_TYPE="zend_extension"
                   107618: 
                   107619:   PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXT_TYPE"
                   107620: 
                   107621: 
                   107622: 
                   107623: 
                   107624: # Check whether --enable- was given.
                   107625: if test "${enable_+set}" = set; then :
                   107626:   enableval=$enable_;
                   107627: fi
                   107628: 
                   107629: 
                   107630: 
                   107631:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   107632: $as_echo "" >&6; }
                   107633:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring libtool${T_ME}" >&5
                   107634: $as_echo "${T_MD}Configuring libtool${T_ME}" >&6; }
                   107635: 
                   107636: 
                   107637: LDFLAGS="$LDFLAGS $PHP_AIX_LDFLAGS"
                   107638: 
                   107639: case $host_alias in
                   107640: *darwin9*|*darwin10*)
                   107641:   ac_cv_exeext=
                   107642:   ;;
                   107643: esac
                   107644: 
                   107645: 
                   107646: # Check whether --enable-shared was given.
                   107647: if test "${enable_shared+set}" = set; then :
                   107648:   enableval=$enable_shared;     p=${PACKAGE-default}
                   107649:     case $enableval in
                   107650:     yes) enable_shared=yes ;;
                   107651:     no) enable_shared=no ;;
                   107652:     *)
                   107653:       enable_shared=no
                   107654:       # Look at the argument we got.  We use all the common list separators.
                   107655:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   107656:       for pkg in $enableval; do
                   107657:        IFS="$lt_save_ifs"
                   107658:        if test "X$pkg" = "X$p"; then
                   107659:          enable_shared=yes
                   107660:        fi
                   107661:       done
                   107662:       IFS="$lt_save_ifs"
                   107663:       ;;
                   107664:     esac
                   107665: else
                   107666:   enable_shared=yes
                   107667: fi
                   107668: 
                   107669: 
                   107670: # Check whether --enable-static was given.
                   107671: if test "${enable_static+set}" = set; then :
                   107672:   enableval=$enable_static;     p=${PACKAGE-default}
                   107673:     case $enableval in
                   107674:     yes) enable_static=yes ;;
                   107675:     no) enable_static=no ;;
                   107676:     *)
                   107677:      enable_static=no
                   107678:       # Look at the argument we got.  We use all the common list separators.
                   107679:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   107680:       for pkg in $enableval; do
                   107681:        IFS="$lt_save_ifs"
                   107682:        if test "X$pkg" = "X$p"; then
                   107683:          enable_static=yes
                   107684:        fi
                   107685:       done
                   107686:       IFS="$lt_save_ifs"
                   107687:       ;;
                   107688:     esac
                   107689: else
                   107690:   enable_static=yes
                   107691: fi
                   107692: 
                   107693: 
                   107694: # Check whether --enable-fast-install was given.
                   107695: if test "${enable_fast_install+set}" = set; then :
                   107696:   enableval=$enable_fast_install;     p=${PACKAGE-default}
                   107697:     case $enableval in
                   107698:     yes) enable_fast_install=yes ;;
                   107699:     no) enable_fast_install=no ;;
                   107700:     *)
                   107701:       enable_fast_install=no
                   107702:       # Look at the argument we got.  We use all the common list separators.
                   107703:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   107704:       for pkg in $enableval; do
                   107705:        IFS="$lt_save_ifs"
                   107706:        if test "X$pkg" = "X$p"; then
                   107707:          enable_fast_install=yes
                   107708:        fi
                   107709:       done
                   107710:       IFS="$lt_save_ifs"
                   107711:       ;;
                   107712:     esac
                   107713: else
                   107714:   enable_fast_install=yes
                   107715: fi
                   107716: 
                   107717: 
                   107718: 
                   107719: # Check whether --with-gnu-ld was given.
                   107720: if test "${with_gnu_ld+set}" = set; then :
                   107721:   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
                   107722: else
                   107723:   with_gnu_ld=no
                   107724: fi
                   107725: 
                   107726: ac_prog=ld
                   107727: if test "$GCC" = yes; then
                   107728:   # Check if gcc -print-prog-name=ld gives a path.
                   107729:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
                   107730: $as_echo_n "checking for ld used by $CC... " >&6; }
                   107731:   case $host in
                   107732:   *-*-mingw*)
                   107733:     # gcc leaves a trailing carriage return which upsets mingw
                   107734:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
                   107735:   *)
                   107736:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
                   107737:   esac
                   107738:   case $ac_prog in
                   107739:     # Accept absolute paths.
                   107740:     [\\/]* | ?:[\\/]*)
                   107741:       re_direlt='/[^/][^/]*/\.\./'
                   107742:       # Canonicalize the pathname of ld
                   107743:       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
                   107744:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
                   107745:        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
                   107746:       done
                   107747:       test -z "$LD" && LD="$ac_prog"
                   107748:       ;;
                   107749:   "")
                   107750:     # If it fails, then pretend we aren't using GCC.
                   107751:     ac_prog=ld
                   107752:     ;;
                   107753:   *)
                   107754:     # If it is relative, then search for the first ld in PATH.
                   107755:     with_gnu_ld=unknown
                   107756:     ;;
                   107757:   esac
                   107758: elif test "$with_gnu_ld" = yes; then
                   107759:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
                   107760: $as_echo_n "checking for GNU ld... " >&6; }
                   107761: else
                   107762:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
                   107763: $as_echo_n "checking for non-GNU ld... " >&6; }
                   107764: fi
                   107765: if ${lt_cv_path_LD+:} false; then :
                   107766:   $as_echo_n "(cached) " >&6
                   107767: else
                   107768:   if test -z "$LD"; then
                   107769:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   107770:   for ac_dir in $PATH; do
                   107771:     IFS="$lt_save_ifs"
                   107772:     test -z "$ac_dir" && ac_dir=.
                   107773:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
                   107774:       lt_cv_path_LD="$ac_dir/$ac_prog"
                   107775:       # Check to see if the program is GNU ld.  I'd rather use --version,
                   107776:       # but apparently some variants of GNU ld only accept -v.
                   107777:       # Break only if it was the GNU/non-GNU ld that we prefer.
                   107778:       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
                   107779:       *GNU* | *'with BFD'*)
                   107780:        test "$with_gnu_ld" != no && break
                   107781:        ;;
                   107782:       *)
                   107783:        test "$with_gnu_ld" != yes && break
                   107784:        ;;
                   107785:       esac
                   107786:     fi
                   107787:   done
                   107788:   IFS="$lt_save_ifs"
                   107789: else
                   107790:   lt_cv_path_LD="$LD" # Let the user override the test with a path.
                   107791: fi
                   107792: fi
                   107793: 
                   107794: LD="$lt_cv_path_LD"
                   107795: if test -n "$LD"; then
                   107796:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
                   107797: $as_echo "$LD" >&6; }
                   107798: else
                   107799:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   107800: $as_echo "no" >&6; }
                   107801: fi
                   107802: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
                   107803: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
                   107804: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
                   107805: if ${lt_cv_prog_gnu_ld+:} false; then :
                   107806:   $as_echo_n "(cached) " >&6
                   107807: else
                   107808:   # I'd rather use --version here, but apparently some GNU lds only accept -v.
                   107809: case `$LD -v 2>&1 </dev/null` in
                   107810: *GNU* | *'with BFD'*)
                   107811:   lt_cv_prog_gnu_ld=yes
                   107812:   ;;
                   107813: *)
                   107814:   lt_cv_prog_gnu_ld=no
                   107815:   ;;
                   107816: esac
                   107817: fi
                   107818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
                   107819: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
                   107820: with_gnu_ld=$lt_cv_prog_gnu_ld
                   107821: 
                   107822: 
                   107823: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
                   107824: $as_echo_n "checking for $LD option to reload object files... " >&6; }
                   107825: if ${lt_cv_ld_reload_flag+:} false; then :
                   107826:   $as_echo_n "(cached) " >&6
                   107827: else
                   107828:   lt_cv_ld_reload_flag='-r'
                   107829: fi
                   107830: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
                   107831: $as_echo "$lt_cv_ld_reload_flag" >&6; }
                   107832: reload_flag=$lt_cv_ld_reload_flag
                   107833: case $reload_flag in
                   107834: "" | " "*) ;;
                   107835: *) reload_flag=" $reload_flag" ;;
                   107836: esac
                   107837: reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   107838: case $host_os in
                   107839:   darwin*)
                   107840:     if test "$GCC" = yes; then
                   107841:       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
                   107842:     else
                   107843:       reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   107844:     fi
                   107845:     ;;
                   107846: esac
                   107847: 
                   107848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
                   107849: $as_echo_n "checking for BSD-compatible nm... " >&6; }
                   107850: if ${lt_cv_path_NM+:} false; then :
                   107851:   $as_echo_n "(cached) " >&6
                   107852: else
                   107853:   if test -n "$NM"; then
                   107854:   # Let the user override the test.
                   107855:   lt_cv_path_NM="$NM"
                   107856: else
                   107857:   lt_nm_to_check="${ac_tool_prefix}nm"
                   107858:   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
                   107859:     lt_nm_to_check="$lt_nm_to_check nm"
                   107860:   fi
                   107861:   for lt_tmp_nm in $lt_nm_to_check; do
                   107862:     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   107863:     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
                   107864:       IFS="$lt_save_ifs"
                   107865:       test -z "$ac_dir" && ac_dir=.
                   107866:       tmp_nm="$ac_dir/$lt_tmp_nm"
                   107867:       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
                   107868:        # Check to see if the nm accepts a BSD-compat flag.
                   107869:        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
                   107870:        #   nm: unknown option "B" ignored
                   107871:        # Tru64's nm complains that /dev/null is an invalid object file
                   107872:        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
                   107873:        */dev/null* | *'Invalid file or object type'*)
                   107874:          lt_cv_path_NM="$tmp_nm -B"
                   107875:          break
                   107876:          ;;
                   107877:        *)
                   107878:          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
                   107879:          */dev/null*)
                   107880:            lt_cv_path_NM="$tmp_nm -p"
                   107881:            break
                   107882:            ;;
                   107883:          *)
                   107884:            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
                   107885:            continue # so that we can try to find one that supports BSD flags
                   107886:            ;;
                   107887:          esac
                   107888:          ;;
                   107889:        esac
                   107890:       fi
                   107891:     done
                   107892:     IFS="$lt_save_ifs"
                   107893:   done
                   107894:   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
                   107895: fi
                   107896: fi
                   107897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
                   107898: $as_echo "$lt_cv_path_NM" >&6; }
                   107899: NM="$lt_cv_path_NM"
                   107900: 
                   107901: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
                   107902: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
                   107903: if ${lt_cv_deplibs_check_method+:} false; then :
                   107904:   $as_echo_n "(cached) " >&6
                   107905: else
                   107906:   lt_cv_file_magic_cmd='$MAGIC_CMD'
                   107907: lt_cv_file_magic_test_file=
                   107908: lt_cv_deplibs_check_method='unknown'
                   107909: # Need to set the preceding variable on all platforms that support
                   107910: # interlibrary dependencies.
                   107911: # 'none' -- dependencies not supported.
                   107912: # `unknown' -- same as none, but documents that we really don't know.
                   107913: # 'pass_all' -- all dependencies passed with no checks.
                   107914: # 'test_compile' -- check by making test program.
                   107915: # 'file_magic [[regex]]' -- check by looking for files in library path
                   107916: # which responds to the $file_magic_cmd with a given extended regex.
                   107917: # If you have `file' or equivalent on your system and you're not sure
                   107918: # whether `pass_all' will *always* work, you probably want this one.
                   107919: 
                   107920: case $host_os in
                   107921: aix[4-9]*)
                   107922:   lt_cv_deplibs_check_method=pass_all
                   107923:   ;;
                   107924: 
                   107925: beos*)
                   107926:   lt_cv_deplibs_check_method=pass_all
                   107927:   ;;
                   107928: 
                   107929: bsdi[45]*)
                   107930:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
                   107931:   lt_cv_file_magic_cmd='/usr/bin/file -L'
                   107932:   lt_cv_file_magic_test_file=/shlib/libc.so
                   107933:   ;;
                   107934: 
                   107935: cygwin*)
                   107936:   # func_win32_libid is a shell function defined in ltmain.sh
                   107937:   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
                   107938:   lt_cv_file_magic_cmd='func_win32_libid'
                   107939:   ;;
                   107940: 
                   107941: mingw* | pw32*)
                   107942:   # Base MSYS/MinGW do not provide the 'file' command needed by
                   107943:   # func_win32_libid shell function, so use a weaker test based on 'objdump',
                   107944:   # unless we find 'file', for example because we are cross-compiling.
                   107945:   if ( file / ) >/dev/null 2>&1; then
                   107946:     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
                   107947:     lt_cv_file_magic_cmd='func_win32_libid'
                   107948:   else
                   107949:     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
                   107950:     lt_cv_file_magic_cmd='$OBJDUMP -f'
                   107951:   fi
                   107952:   ;;
                   107953: 
                   107954: darwin* | rhapsody*)
                   107955:   lt_cv_deplibs_check_method=pass_all
                   107956:   ;;
                   107957: 
                   107958: freebsd* | dragonfly*)
                   107959:   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
                   107960:     case $host_cpu in
                   107961:     i*86 )
                   107962:       # Not sure whether the presence of OpenBSD here was a mistake.
                   107963:       # Let's accept both of them until this is cleared up.
                   107964:       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
                   107965:       lt_cv_file_magic_cmd=/usr/bin/file
                   107966:       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
                   107967:       ;;
                   107968:     esac
                   107969:   else
                   107970:     lt_cv_deplibs_check_method=pass_all
                   107971:   fi
                   107972:   ;;
                   107973: 
                   107974: gnu*)
                   107975:   lt_cv_deplibs_check_method=pass_all
                   107976:   ;;
                   107977: 
                   107978: hpux10.20* | hpux11*)
                   107979:   lt_cv_file_magic_cmd=/usr/bin/file
                   107980:   case $host_cpu in
                   107981:   ia64*)
                   107982:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
                   107983:     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
                   107984:     ;;
                   107985:   hppa*64*)
                   107986:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
                   107987:     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
                   107988:     ;;
                   107989:   *)
                   107990:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
                   107991:     lt_cv_file_magic_test_file=/usr/lib/libc.sl
                   107992:     ;;
                   107993:   esac
                   107994:   ;;
                   107995: 
                   107996: interix[3-9]*)
                   107997:   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
                   107998:   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
                   107999:   ;;
                   108000: 
                   108001: irix5* | irix6* | nonstopux*)
                   108002:   case $LD in
                   108003:   *-32|*"-32 ") libmagic=32-bit;;
                   108004:   *-n32|*"-n32 ") libmagic=N32;;
                   108005:   *-64|*"-64 ") libmagic=64-bit;;
                   108006:   *) libmagic=never-match;;
                   108007:   esac
                   108008:   lt_cv_deplibs_check_method=pass_all
                   108009:   ;;
                   108010: 
                   108011: # This must be Linux ELF.
                   108012: linux* | k*bsd*-gnu)
                   108013:   lt_cv_deplibs_check_method=pass_all
                   108014:   ;;
                   108015: 
                   108016: netbsd*)
                   108017:   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
                   108018:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
                   108019:   else
                   108020:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
                   108021:   fi
                   108022:   ;;
                   108023: 
                   108024: newos6*)
                   108025:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
                   108026:   lt_cv_file_magic_cmd=/usr/bin/file
                   108027:   lt_cv_file_magic_test_file=/usr/lib/libnls.so
                   108028:   ;;
                   108029: 
                   108030: nto-qnx*)
                   108031:   lt_cv_deplibs_check_method=unknown
                   108032:   ;;
                   108033: 
                   108034: openbsd*)
                   108035:   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   108036:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
                   108037:   else
                   108038:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
                   108039:   fi
                   108040:   ;;
                   108041: 
                   108042: osf3* | osf4* | osf5*)
                   108043:   lt_cv_deplibs_check_method=pass_all
                   108044:   ;;
                   108045: 
                   108046: rdos*)
                   108047:   lt_cv_deplibs_check_method=pass_all
                   108048:   ;;
                   108049: 
                   108050: solaris*)
                   108051:   lt_cv_deplibs_check_method=pass_all
                   108052:   ;;
                   108053: 
                   108054: sysv4 | sysv4.3*)
                   108055:   case $host_vendor in
                   108056:   motorola)
                   108057:     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]'
                   108058:     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
                   108059:     ;;
                   108060:   ncr)
                   108061:     lt_cv_deplibs_check_method=pass_all
                   108062:     ;;
                   108063:   sequent)
                   108064:     lt_cv_file_magic_cmd='/bin/file'
                   108065:     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
                   108066:     ;;
                   108067:   sni)
                   108068:     lt_cv_file_magic_cmd='/bin/file'
                   108069:     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
                   108070:     lt_cv_file_magic_test_file=/lib/libc.so
                   108071:     ;;
                   108072:   siemens)
                   108073:     lt_cv_deplibs_check_method=pass_all
                   108074:     ;;
                   108075:   pc)
                   108076:     lt_cv_deplibs_check_method=pass_all
                   108077:     ;;
                   108078:   esac
                   108079:   ;;
                   108080: 
                   108081: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
                   108082:   lt_cv_deplibs_check_method=pass_all
                   108083:   ;;
                   108084: esac
                   108085: 
                   108086: fi
                   108087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
                   108088: $as_echo "$lt_cv_deplibs_check_method" >&6; }
                   108089: file_magic_cmd=$lt_cv_file_magic_cmd
                   108090: deplibs_check_method=$lt_cv_deplibs_check_method
                   108091: test -z "$deplibs_check_method" && deplibs_check_method=unknown
                   108092: 
                   108093: 
                   108094: 
                   108095: 
                   108096: # If no C compiler was specified, use CC.
                   108097: LTCC=${LTCC-"$CC"}
                   108098: 
                   108099: # If no C compiler flags were specified, use CFLAGS.
                   108100: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
                   108101: 
                   108102: # Allow CC to be a program name with arguments.
                   108103: compiler=$CC
                   108104: 
                   108105: #AC_ARG_ENABLE([libtool-lock],
                   108106: #[  --disable-libtool-lock  avoid locking (might break parallel builds)])
                   108107: #test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
                   108108: 
                   108109: # Some flags need to be propagated to the compiler or linker for good
                   108110: # libtool support.
                   108111: case $host in
                   108112: ia64-*-hpux*)
                   108113:   # Find out which ABI we are using.
                   108114:   echo 'int i;' > conftest.$ac_ext
                   108115:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   108116:   (eval $ac_compile) 2>&5
                   108117:   ac_status=$?
                   108118:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   108119:   test $ac_status = 0; }; then
                   108120:     case `/usr/bin/file conftest.$ac_objext` in
                   108121:     *ELF-32*)
                   108122:       HPUX_IA64_MODE="32"
                   108123:       ;;
                   108124:     *ELF-64*)
                   108125:       HPUX_IA64_MODE="64"
                   108126:       ;;
                   108127:     esac
                   108128:   fi
                   108129:   rm -rf conftest*
                   108130:   ;;
                   108131: *-*-irix6*)
                   108132:   # Find out which ABI we are using.
1.1.1.2 ! misho    108133:   echo '#line 108133 "configure"' > conftest.$ac_ext
1.1       misho    108134:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   108135:   (eval $ac_compile) 2>&5
                   108136:   ac_status=$?
                   108137:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   108138:   test $ac_status = 0; }; then
                   108139:    if test "$lt_cv_prog_gnu_ld" = yes; then
                   108140:     case `/usr/bin/file conftest.$ac_objext` in
                   108141:     *32-bit*)
                   108142:       LD="${LD-ld} -melf32bsmip"
                   108143:       ;;
                   108144:     *N32*)
                   108145:       LD="${LD-ld} -melf32bmipn32"
                   108146:       ;;
                   108147:     *64-bit*)
                   108148:       LD="${LD-ld} -melf64bmip"
                   108149:       ;;
                   108150:     esac
                   108151:    else
                   108152:     case `/usr/bin/file conftest.$ac_objext` in
                   108153:     *32-bit*)
                   108154:       LD="${LD-ld} -32"
                   108155:       ;;
                   108156:     *N32*)
                   108157:       LD="${LD-ld} -n32"
                   108158:       ;;
                   108159:     *64-bit*)
                   108160:       LD="${LD-ld} -64"
                   108161:       ;;
                   108162:     esac
                   108163:    fi
                   108164:   fi
                   108165:   rm -rf conftest*
                   108166:   ;;
                   108167: 
                   108168: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
                   108169: s390*-*linux*|sparc*-*linux*)
                   108170:   # Find out which ABI we are using.
                   108171:   echo 'int i;' > conftest.$ac_ext
                   108172:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   108173:   (eval $ac_compile) 2>&5
                   108174:   ac_status=$?
                   108175:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   108176:   test $ac_status = 0; }; then
                   108177:     case `/usr/bin/file conftest.o` in
                   108178:     *32-bit*)
                   108179:       case $host in
                   108180:         x86_64-*kfreebsd*-gnu)
                   108181:           LD="${LD-ld} -m elf_i386_fbsd"
                   108182:           ;;
                   108183:         x86_64-*linux*)
                   108184:           LD="${LD-ld} -m elf_i386"
                   108185:           ;;
                   108186:         ppc64-*linux*|powerpc64-*linux*)
                   108187:           LD="${LD-ld} -m elf32ppclinux"
                   108188:           ;;
                   108189:         s390x-*linux*)
                   108190:           LD="${LD-ld} -m elf_s390"
                   108191:           ;;
                   108192:         sparc64-*linux*)
                   108193:           LD="${LD-ld} -m elf32_sparc"
                   108194:           ;;
                   108195:       esac
                   108196:       ;;
                   108197:     *64-bit*)
                   108198:       case $host in
                   108199:         x86_64-*kfreebsd*-gnu)
                   108200:           LD="${LD-ld} -m elf_x86_64_fbsd"
                   108201:           ;;
                   108202:         x86_64-*linux*)
                   108203:           LD="${LD-ld} -m elf_x86_64"
                   108204:           ;;
                   108205:         ppc*-*linux*|powerpc*-*linux*)
                   108206:           LD="${LD-ld} -m elf64ppc"
                   108207:           ;;
                   108208:         s390*-*linux*)
                   108209:           LD="${LD-ld} -m elf64_s390"
                   108210:           ;;
                   108211:         sparc*-*linux*)
                   108212:           LD="${LD-ld} -m elf64_sparc"
                   108213:           ;;
                   108214:       esac
                   108215:       ;;
                   108216:     esac
                   108217:   fi
                   108218:   rm -rf conftest*
                   108219:   ;;
                   108220: 
                   108221: *-*-sco3.2v5*)
                   108222:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
                   108223:   SAVE_CFLAGS="$CFLAGS"
                   108224:   CFLAGS="$CFLAGS -belf"
                   108225:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
                   108226: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
                   108227: if ${lt_cv_cc_needs_belf+:} false; then :
                   108228:   $as_echo_n "(cached) " >&6
                   108229: else
                   108230: 
                   108231:      ac_ext=c
                   108232: ac_cpp='$CPP $CPPFLAGS'
                   108233: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   108234: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   108235: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   108236: 
                   108237:      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   108238: /* end confdefs.h.  */
                   108239: 
                   108240: int
                   108241: main ()
                   108242: {
                   108243: 
                   108244:   ;
                   108245:   return 0;
                   108246: }
                   108247: _ACEOF
                   108248: if ac_fn_c_try_link "$LINENO"; then :
                   108249:   lt_cv_cc_needs_belf=yes
                   108250: else
                   108251:   lt_cv_cc_needs_belf=no
                   108252: fi
                   108253: rm -f core conftest.err conftest.$ac_objext \
                   108254:     conftest$ac_exeext conftest.$ac_ext
                   108255:      ac_ext=c
                   108256: ac_cpp='$CPP $CPPFLAGS'
                   108257: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   108258: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   108259: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   108260: 
                   108261: fi
                   108262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
                   108263: $as_echo "$lt_cv_cc_needs_belf" >&6; }
                   108264:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
                   108265:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
                   108266:     CFLAGS="$SAVE_CFLAGS"
                   108267:   fi
                   108268:   ;;
                   108269: sparc*-*solaris*)
                   108270:   # Find out which ABI we are using.
                   108271:   echo 'int i;' > conftest.$ac_ext
                   108272:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   108273:   (eval $ac_compile) 2>&5
                   108274:   ac_status=$?
                   108275:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   108276:   test $ac_status = 0; }; then
                   108277:     case `/usr/bin/file conftest.o` in
                   108278:     *64-bit*)
                   108279:       case $lt_cv_prog_gnu_ld in
                   108280:       yes*) LD="${LD-ld} -m elf64_sparc" ;;
                   108281:       *)
                   108282:         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
                   108283:          LD="${LD-ld} -64"
                   108284:        fi
                   108285:        ;;
                   108286:       esac
                   108287:       ;;
                   108288:     esac
                   108289:   fi
                   108290:   rm -rf conftest*
                   108291:   ;;
                   108292: 
                   108293: 
                   108294: esac
                   108295: 
                   108296: need_locks="$enable_libtool_lock"
                   108297: 
                   108298: 
                   108299: 
                   108300: 
                   108301: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
                   108302:     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
                   108303:     (test "X$CXX" != "Xg++"))) ; then
                   108304:   ac_ext=cpp
                   108305: ac_cpp='$CXXCPP $CPPFLAGS'
                   108306: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   108307: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   108308: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   108309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
                   108310: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
                   108311: if test -z "$CXXCPP"; then
                   108312:   if ${ac_cv_prog_CXXCPP+:} false; then :
                   108313:   $as_echo_n "(cached) " >&6
                   108314: else
                   108315:       # Double quotes because CXXCPP needs to be expanded
                   108316:     for CXXCPP in "$CXX -E" "/lib/cpp"
                   108317:     do
                   108318:       ac_preproc_ok=false
                   108319: for ac_cxx_preproc_warn_flag in '' yes
                   108320: do
                   108321:   # Use a header file that comes with gcc, so configuring glibc
                   108322:   # with a fresh cross-compiler works.
                   108323:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   108324:   # <limits.h> exists even on freestanding compilers.
                   108325:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   108326:   # not just through cpp. "Syntax error" is here to catch this case.
                   108327:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   108328: /* end confdefs.h.  */
                   108329: #ifdef __STDC__
                   108330: # include <limits.h>
                   108331: #else
                   108332: # include <assert.h>
                   108333: #endif
                   108334:                     Syntax error
                   108335: _ACEOF
                   108336: if ac_fn_cxx_try_cpp "$LINENO"; then :
                   108337: 
                   108338: else
                   108339:   # Broken: fails on valid input.
                   108340: continue
                   108341: fi
                   108342: rm -f conftest.err conftest.i conftest.$ac_ext
                   108343: 
                   108344:   # OK, works on sane cases.  Now check whether nonexistent headers
                   108345:   # can be detected and how.
                   108346:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   108347: /* end confdefs.h.  */
                   108348: #include <ac_nonexistent.h>
                   108349: _ACEOF
                   108350: if ac_fn_cxx_try_cpp "$LINENO"; then :
                   108351:   # Broken: success on invalid input.
                   108352: continue
                   108353: else
                   108354:   # Passes both tests.
                   108355: ac_preproc_ok=:
                   108356: break
                   108357: fi
                   108358: rm -f conftest.err conftest.i conftest.$ac_ext
                   108359: 
                   108360: done
                   108361: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   108362: rm -f conftest.i conftest.err conftest.$ac_ext
                   108363: if $ac_preproc_ok; then :
                   108364:   break
                   108365: fi
                   108366: 
                   108367:     done
                   108368:     ac_cv_prog_CXXCPP=$CXXCPP
                   108369: 
                   108370: fi
                   108371:   CXXCPP=$ac_cv_prog_CXXCPP
                   108372: else
                   108373:   ac_cv_prog_CXXCPP=$CXXCPP
                   108374: fi
                   108375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
                   108376: $as_echo "$CXXCPP" >&6; }
                   108377: ac_preproc_ok=false
                   108378: for ac_cxx_preproc_warn_flag in '' yes
                   108379: do
                   108380:   # Use a header file that comes with gcc, so configuring glibc
                   108381:   # with a fresh cross-compiler works.
                   108382:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   108383:   # <limits.h> exists even on freestanding compilers.
                   108384:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   108385:   # not just through cpp. "Syntax error" is here to catch this case.
                   108386:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   108387: /* end confdefs.h.  */
                   108388: #ifdef __STDC__
                   108389: # include <limits.h>
                   108390: #else
                   108391: # include <assert.h>
                   108392: #endif
                   108393:                     Syntax error
                   108394: _ACEOF
                   108395: if ac_fn_cxx_try_cpp "$LINENO"; then :
                   108396: 
                   108397: else
                   108398:   # Broken: fails on valid input.
                   108399: continue
                   108400: fi
                   108401: rm -f conftest.err conftest.i conftest.$ac_ext
                   108402: 
                   108403:   # OK, works on sane cases.  Now check whether nonexistent headers
                   108404:   # can be detected and how.
                   108405:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   108406: /* end confdefs.h.  */
                   108407: #include <ac_nonexistent.h>
                   108408: _ACEOF
                   108409: if ac_fn_cxx_try_cpp "$LINENO"; then :
                   108410:   # Broken: success on invalid input.
                   108411: continue
                   108412: else
                   108413:   # Passes both tests.
                   108414: ac_preproc_ok=:
                   108415: break
                   108416: fi
                   108417: rm -f conftest.err conftest.i conftest.$ac_ext
                   108418: 
                   108419: done
                   108420: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   108421: rm -f conftest.i conftest.err conftest.$ac_ext
                   108422: if $ac_preproc_ok; then :
                   108423: 
                   108424: else
                   108425:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   108426: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   108427: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
                   108428: See \`config.log' for more details" "$LINENO" 5; }
                   108429: fi
                   108430: 
                   108431: ac_ext=cpp
                   108432: ac_cpp='$CXXCPP $CPPFLAGS'
                   108433: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   108434: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   108435: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   108436: 
                   108437: fi
                   108438: 
                   108439: 
                   108440: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
                   108441: # find the maximum length of command line arguments
                   108442: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
                   108443: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
                   108444: if ${lt_cv_sys_max_cmd_len+:} false; then :
                   108445:   $as_echo_n "(cached) " >&6
                   108446: else
                   108447:     i=0
                   108448:   teststring="ABCD"
                   108449: 
                   108450:   case $build_os in
                   108451:   msdosdjgpp*)
                   108452:     # On DJGPP, this test can blow up pretty badly due to problems in libc
                   108453:     # (any single argument exceeding 2000 bytes causes a buffer overrun
                   108454:     # during glob expansion).  Even if it were fixed, the result of this
                   108455:     # check would be larger than it should be.
                   108456:     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
                   108457:     ;;
                   108458: 
                   108459:   gnu*)
                   108460:     # Under GNU Hurd, this test is not required because there is
                   108461:     # no limit to the length of command line arguments.
                   108462:     # Libtool will interpret -1 as no limit whatsoever
                   108463:     lt_cv_sys_max_cmd_len=-1;
                   108464:     ;;
                   108465: 
                   108466:   cygwin* | mingw*)
                   108467:     # On Win9x/ME, this test blows up -- it succeeds, but takes
                   108468:     # about 5 minutes as the teststring grows exponentially.
                   108469:     # Worse, since 9x/ME are not pre-emptively multitasking,
                   108470:     # you end up with a "frozen" computer, even though with patience
                   108471:     # the test eventually succeeds (with a max line length of 256k).
                   108472:     # Instead, let's just punt: use the minimum linelength reported by
                   108473:     # all of the supported platforms: 8192 (on NT/2K/XP).
                   108474:     lt_cv_sys_max_cmd_len=8192;
                   108475:     ;;
                   108476: 
                   108477:   amigaos*)
                   108478:     # On AmigaOS with pdksh, this test takes hours, literally.
                   108479:     # So we just punt and use a minimum line length of 8192.
                   108480:     lt_cv_sys_max_cmd_len=8192;
                   108481:     ;;
                   108482: 
                   108483:   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
                   108484:     # This has been around since 386BSD, at least.  Likely further.
                   108485:     if test -x /sbin/sysctl; then
                   108486:       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
                   108487:     elif test -x /usr/sbin/sysctl; then
                   108488:       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
                   108489:     else
                   108490:       lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
                   108491:     fi
                   108492:     # And add a safety zone
                   108493:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   108494:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   108495:     ;;
                   108496: 
                   108497:   interix*)
                   108498:     # We know the value 262144 and hardcode it with a safety zone (like BSD)
                   108499:     lt_cv_sys_max_cmd_len=196608
                   108500:     ;;
                   108501: 
                   108502:   osf*)
                   108503:     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
                   108504:     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
                   108505:     # nice to cause kernel panics so lets avoid the loop below.
                   108506:     # First set a reasonable default.
                   108507:     lt_cv_sys_max_cmd_len=16384
                   108508:     #
                   108509:     if test -x /sbin/sysconfig; then
                   108510:       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
                   108511:         *1*) lt_cv_sys_max_cmd_len=-1 ;;
                   108512:       esac
                   108513:     fi
                   108514:     ;;
                   108515:   sco3.2v5*)
                   108516:     lt_cv_sys_max_cmd_len=102400
                   108517:     ;;
                   108518:   sysv5* | sco5v6* | sysv4.2uw2*)
                   108519:     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
                   108520:     if test -n "$kargmax"; then
                   108521:       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[        ]//'`
                   108522:     else
                   108523:       lt_cv_sys_max_cmd_len=32768
                   108524:     fi
                   108525:     ;;
                   108526:   *)
                   108527:     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
                   108528:     if test -n "$lt_cv_sys_max_cmd_len"; then
                   108529:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   108530:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   108531:     else
                   108532:       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
                   108533:       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
                   108534:               = "XX$teststring") >/dev/null 2>&1 &&
                   108535:              new_result=`expr "X$teststring" : ".*" 2>&1` &&
                   108536:              lt_cv_sys_max_cmd_len=$new_result &&
                   108537:              test $i != 17 # 1/2 MB should be enough
                   108538:       do
                   108539:         i=`expr $i + 1`
                   108540:         teststring=$teststring$teststring
                   108541:       done
                   108542:       teststring=
                   108543:       # Add a significant safety factor because C++ compilers can tack on massive
                   108544:       # amounts of additional arguments before passing them to the linker.
                   108545:       # It appears as though 1/2 is a usable value.
                   108546:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
                   108547:     fi
                   108548:     ;;
                   108549:   esac
                   108550: 
                   108551: fi
                   108552: 
                   108553: if test -n $lt_cv_sys_max_cmd_len ; then
                   108554:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
                   108555: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
                   108556: else
                   108557:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
                   108558: $as_echo "none" >&6; }
                   108559: fi
                   108560: 
                   108561: 
                   108562: 
                   108563: 
                   108564: 
                   108565: # Check for command to grab the raw symbol name followed by C symbol from nm.
                   108566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
                   108567: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
                   108568: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
                   108569:   $as_echo_n "(cached) " >&6
                   108570: else
                   108571: 
                   108572: # These are sane defaults that work on at least a few old systems.
                   108573: # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
                   108574: 
                   108575: # Character class describing NM global symbol codes.
                   108576: symcode='[BCDEGRST]'
                   108577: 
                   108578: # Regexp to match symbols that can be accessed directly from C.
                   108579: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
                   108580: 
                   108581: # Transform an extracted symbol line into a proper C declaration
                   108582: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
                   108583: 
                   108584: # Transform an extracted symbol line into symbol name and symbol address
                   108585: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
                   108586: 
                   108587: # Define system-specific variables.
                   108588: case $host_os in
                   108589: aix*)
                   108590:   symcode='[BCDT]'
                   108591:   ;;
                   108592: cygwin* | mingw* | pw32*)
                   108593:   symcode='[ABCDGISTW]'
                   108594:   ;;
                   108595: hpux*) # Its linker distinguishes data from code symbols
                   108596:   if test "$host_cpu" = ia64; then
                   108597:     symcode='[ABCDEGRST]'
                   108598:   fi
                   108599:   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
                   108600:   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
                   108601:   ;;
                   108602: linux* | k*bsd*-gnu)
                   108603:   if test "$host_cpu" = ia64; then
                   108604:     symcode='[ABCDGIRSTW]'
                   108605:     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
                   108606:     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
                   108607:   fi
                   108608:   ;;
                   108609: irix* | nonstopux*)
                   108610:   symcode='[BCDEGRST]'
                   108611:   ;;
                   108612: osf*)
                   108613:   symcode='[BCDEGQRST]'
                   108614:   ;;
                   108615: solaris*)
                   108616:   symcode='[BDRT]'
                   108617:   ;;
                   108618: sco3.2v5*)
                   108619:   symcode='[DT]'
                   108620:   ;;
                   108621: sysv4.2uw2*)
                   108622:   symcode='[DT]'
                   108623:   ;;
                   108624: sysv5* | sco5v6* | unixware* | OpenUNIX*)
                   108625:   symcode='[ABDT]'
                   108626:   ;;
                   108627: sysv4)
                   108628:   symcode='[DFNSTU]'
                   108629:   ;;
                   108630: esac
                   108631: 
                   108632: # Handle CRLF in mingw tool chain
                   108633: opt_cr=
                   108634: case $build_os in
                   108635: mingw*)
                   108636:   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
                   108637:   ;;
                   108638: esac
                   108639: 
                   108640: # If we're using GNU nm, then use its standard symbol codes.
                   108641: case `$NM -V 2>&1` in
                   108642: *GNU* | *'with BFD'*)
                   108643:   symcode='[ABCDGIRSTW]' ;;
                   108644: esac
                   108645: 
                   108646: # Try without a prefix undercore, then with it.
                   108647: for ac_symprfx in "" "_"; do
                   108648: 
                   108649:   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
                   108650:   symxfrm="\\1 $ac_symprfx\\2 \\2"
                   108651: 
                   108652:   # Write the raw and C identifiers.
                   108653:   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
                   108654: 
                   108655:   # Check to see that the pipe works correctly.
                   108656:   pipe_works=no
                   108657: 
                   108658:   rm -f conftest*
                   108659:   cat > conftest.$ac_ext <<EOF
                   108660: #ifdef __cplusplus
                   108661: extern "C" {
                   108662: #endif
                   108663: char nm_test_var;
                   108664: void nm_test_func(){}
                   108665: #ifdef __cplusplus
                   108666: }
                   108667: #endif
                   108668: int main(){nm_test_var='a';nm_test_func();return(0);}
                   108669: EOF
                   108670: 
                   108671:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   108672:   (eval $ac_compile) 2>&5
                   108673:   ac_status=$?
                   108674:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   108675:   test $ac_status = 0; }; then
                   108676:     # Now try to grab the symbols.
                   108677:     nlist=conftest.nm
                   108678:     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
                   108679:   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
                   108680:   ac_status=$?
                   108681:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   108682:   test $ac_status = 0; } && test -s "$nlist"; then
                   108683:       # Try sorting and uniquifying the output.
                   108684:       if sort "$nlist" | uniq > "$nlist"T; then
                   108685:        mv -f "$nlist"T "$nlist"
                   108686:       else
                   108687:        rm -f "$nlist"T
                   108688:       fi
                   108689: 
                   108690:       # Make sure that we snagged all the symbols we need.
                   108691:       if grep ' nm_test_var$' "$nlist" >/dev/null; then
                   108692:        if grep ' nm_test_func$' "$nlist" >/dev/null; then
                   108693:          cat <<EOF > conftest.$ac_ext
                   108694: #ifdef __cplusplus
                   108695: extern "C" {
                   108696: #endif
                   108697: 
                   108698: EOF
                   108699:          # Now generate the symbol file.
                   108700:          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
                   108701: 
                   108702:          cat <<EOF >> conftest.$ac_ext
                   108703: #if defined (__STDC__) && __STDC__
                   108704: # define lt_ptr_t void *
                   108705: #else
                   108706: # define lt_ptr_t char *
                   108707: # define const
                   108708: #endif
                   108709: 
                   108710: /* The mapping between symbol names and symbols. */
                   108711: const struct {
                   108712:   const char *name;
                   108713:   lt_ptr_t address;
                   108714: }
                   108715: lt_preloaded_symbols[] =
                   108716: {
                   108717: EOF
                   108718:          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
                   108719:          cat <<\EOF >> conftest.$ac_ext
                   108720:   {0, (lt_ptr_t) 0}
                   108721: };
                   108722: 
                   108723: #ifdef __cplusplus
                   108724: }
                   108725: #endif
                   108726: EOF
                   108727:          # Now try linking the two files.
                   108728:          mv conftest.$ac_objext conftstm.$ac_objext
                   108729:          lt_save_LIBS="$LIBS"
                   108730:          lt_save_CFLAGS="$CFLAGS"
                   108731:          LIBS="conftstm.$ac_objext"
                   108732:          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
                   108733:          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
                   108734:   (eval $ac_link) 2>&5
                   108735:   ac_status=$?
                   108736:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   108737:   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
                   108738:            pipe_works=yes
                   108739:          fi
                   108740:          LIBS="$lt_save_LIBS"
                   108741:          CFLAGS="$lt_save_CFLAGS"
                   108742:        else
                   108743:          echo "cannot find nm_test_func in $nlist" >&5
                   108744:        fi
                   108745:       else
                   108746:        echo "cannot find nm_test_var in $nlist" >&5
                   108747:       fi
                   108748:     else
                   108749:       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
                   108750:     fi
                   108751:   else
                   108752:     echo "$progname: failed program was:" >&5
                   108753:     cat conftest.$ac_ext >&5
                   108754:   fi
                   108755:   rm -rf conftest* conftst*
                   108756: 
                   108757:   # Do not use the global_symbol_pipe unless it works.
                   108758:   if test "$pipe_works" = yes; then
                   108759:     break
                   108760:   else
                   108761:     lt_cv_sys_global_symbol_pipe=
                   108762:   fi
                   108763: done
                   108764: 
                   108765: fi
                   108766: 
                   108767: if test -z "$lt_cv_sys_global_symbol_pipe"; then
                   108768:   lt_cv_sys_global_symbol_to_cdecl=
                   108769: fi
                   108770: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
                   108771:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
                   108772: $as_echo "failed" >&6; }
                   108773: else
                   108774:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
                   108775: $as_echo "ok" >&6; }
                   108776: fi
                   108777: 
                   108778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
                   108779: $as_echo_n "checking for objdir... " >&6; }
                   108780: if ${lt_cv_objdir+:} false; then :
                   108781:   $as_echo_n "(cached) " >&6
                   108782: else
                   108783:   rm -f .libs 2>/dev/null
                   108784: mkdir .libs 2>/dev/null
                   108785: if test -d .libs; then
                   108786:   lt_cv_objdir=.libs
                   108787: else
                   108788:   # MS-DOS does not allow filenames that begin with a dot.
                   108789:   lt_cv_objdir=_libs
                   108790: fi
                   108791: rmdir .libs 2>/dev/null
                   108792: fi
                   108793: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
                   108794: $as_echo "$lt_cv_objdir" >&6; }
                   108795: objdir=$lt_cv_objdir
                   108796: 
                   108797: 
                   108798: 
                   108799: 
                   108800: 
                   108801: case $host_os in
                   108802: aix3*)
                   108803:   # AIX sometimes has problems with the GCC collect2 program.  For some
                   108804:   # reason, if we set the COLLECT_NAMES environment variable, the problems
                   108805:   # vanish in a puff of smoke.
                   108806:   if test "X${COLLECT_NAMES+set}" != Xset; then
                   108807:     COLLECT_NAMES=
                   108808:     export COLLECT_NAMES
                   108809:   fi
                   108810:   ;;
                   108811: esac
                   108812: 
                   108813: # Sed substitution that helps us do robust quoting.  It backslashifies
                   108814: # metacharacters that are still active within double-quoted strings.
                   108815: Xsed='sed -e 1s/^X//'
                   108816: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
                   108817: 
                   108818: # Same as above, but do not quote variable references.
                   108819: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
                   108820: 
                   108821: # Sed substitution to delay expansion of an escaped shell variable in a
                   108822: # double_quote_subst'ed string.
                   108823: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
                   108824: 
                   108825: # Sed substitution to avoid accidental globbing in evaled expressions
                   108826: no_glob_subst='s/\*/\\\*/g'
                   108827: 
                   108828: # Constants:
                   108829: rm="rm -f"
                   108830: 
                   108831: # Global variables:
                   108832: default_ofile=libtool
                   108833: can_build_shared=yes
                   108834: 
                   108835: # All known linkers require a `.a' archive for static linking (except MSVC,
                   108836: # which needs '.lib').
                   108837: libext=a
                   108838: ltmain="$ac_aux_dir/ltmain.sh"
                   108839: ofile="$default_ofile"
                   108840: with_gnu_ld="$lt_cv_prog_gnu_ld"
                   108841: 
                   108842: if test -n "$ac_tool_prefix"; then
                   108843:   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
                   108844: set dummy ${ac_tool_prefix}ar; ac_word=$2
                   108845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   108846: $as_echo_n "checking for $ac_word... " >&6; }
                   108847: if ${ac_cv_prog_AR+:} false; then :
                   108848:   $as_echo_n "(cached) " >&6
                   108849: else
                   108850:   if test -n "$AR"; then
                   108851:   ac_cv_prog_AR="$AR" # Let the user override the test.
                   108852: else
                   108853: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   108854: for as_dir in $PATH
                   108855: do
                   108856:   IFS=$as_save_IFS
                   108857:   test -z "$as_dir" && as_dir=.
                   108858:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    108859:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    108860:     ac_cv_prog_AR="${ac_tool_prefix}ar"
                   108861:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   108862:     break 2
                   108863:   fi
                   108864: done
                   108865:   done
                   108866: IFS=$as_save_IFS
                   108867: 
                   108868: fi
                   108869: fi
                   108870: AR=$ac_cv_prog_AR
                   108871: if test -n "$AR"; then
                   108872:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
                   108873: $as_echo "$AR" >&6; }
                   108874: else
                   108875:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   108876: $as_echo "no" >&6; }
                   108877: fi
                   108878: 
                   108879: 
                   108880: fi
                   108881: if test -z "$ac_cv_prog_AR"; then
                   108882:   ac_ct_AR=$AR
                   108883:   # Extract the first word of "ar", so it can be a program name with args.
                   108884: set dummy ar; ac_word=$2
                   108885: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   108886: $as_echo_n "checking for $ac_word... " >&6; }
                   108887: if ${ac_cv_prog_ac_ct_AR+:} false; then :
                   108888:   $as_echo_n "(cached) " >&6
                   108889: else
                   108890:   if test -n "$ac_ct_AR"; then
                   108891:   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
                   108892: else
                   108893: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   108894: for as_dir in $PATH
                   108895: do
                   108896:   IFS=$as_save_IFS
                   108897:   test -z "$as_dir" && as_dir=.
                   108898:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    108899:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    108900:     ac_cv_prog_ac_ct_AR="ar"
                   108901:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   108902:     break 2
                   108903:   fi
                   108904: done
                   108905:   done
                   108906: IFS=$as_save_IFS
                   108907: 
                   108908: fi
                   108909: fi
                   108910: ac_ct_AR=$ac_cv_prog_ac_ct_AR
                   108911: if test -n "$ac_ct_AR"; then
                   108912:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
                   108913: $as_echo "$ac_ct_AR" >&6; }
                   108914: else
                   108915:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   108916: $as_echo "no" >&6; }
                   108917: fi
                   108918: 
                   108919:   if test "x$ac_ct_AR" = x; then
                   108920:     AR="false"
                   108921:   else
                   108922:     case $cross_compiling:$ac_tool_warned in
                   108923: yes:)
                   108924: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   108925: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   108926: ac_tool_warned=yes ;;
                   108927: esac
                   108928:     AR=$ac_ct_AR
                   108929:   fi
                   108930: else
                   108931:   AR="$ac_cv_prog_AR"
                   108932: fi
                   108933: 
                   108934: if test -n "$ac_tool_prefix"; then
                   108935:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   108936: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   108937: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   108938: $as_echo_n "checking for $ac_word... " >&6; }
                   108939: if ${ac_cv_prog_RANLIB+:} false; then :
                   108940:   $as_echo_n "(cached) " >&6
                   108941: else
                   108942:   if test -n "$RANLIB"; then
                   108943:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   108944: else
                   108945: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   108946: for as_dir in $PATH
                   108947: do
                   108948:   IFS=$as_save_IFS
                   108949:   test -z "$as_dir" && as_dir=.
                   108950:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    108951:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    108952:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   108953:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   108954:     break 2
                   108955:   fi
                   108956: done
                   108957:   done
                   108958: IFS=$as_save_IFS
                   108959: 
                   108960: fi
                   108961: fi
                   108962: RANLIB=$ac_cv_prog_RANLIB
                   108963: if test -n "$RANLIB"; then
                   108964:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   108965: $as_echo "$RANLIB" >&6; }
                   108966: else
                   108967:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   108968: $as_echo "no" >&6; }
                   108969: fi
                   108970: 
                   108971: 
                   108972: fi
                   108973: if test -z "$ac_cv_prog_RANLIB"; then
                   108974:   ac_ct_RANLIB=$RANLIB
                   108975:   # Extract the first word of "ranlib", so it can be a program name with args.
                   108976: set dummy ranlib; ac_word=$2
                   108977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   108978: $as_echo_n "checking for $ac_word... " >&6; }
                   108979: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
                   108980:   $as_echo_n "(cached) " >&6
                   108981: else
                   108982:   if test -n "$ac_ct_RANLIB"; then
                   108983:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   108984: else
                   108985: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   108986: for as_dir in $PATH
                   108987: do
                   108988:   IFS=$as_save_IFS
                   108989:   test -z "$as_dir" && as_dir=.
                   108990:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    108991:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    108992:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   108993:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   108994:     break 2
                   108995:   fi
                   108996: done
                   108997:   done
                   108998: IFS=$as_save_IFS
                   108999: 
                   109000: fi
                   109001: fi
                   109002: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   109003: if test -n "$ac_ct_RANLIB"; then
                   109004:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   109005: $as_echo "$ac_ct_RANLIB" >&6; }
                   109006: else
                   109007:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   109008: $as_echo "no" >&6; }
                   109009: fi
                   109010: 
                   109011:   if test "x$ac_ct_RANLIB" = x; then
                   109012:     RANLIB=":"
                   109013:   else
                   109014:     case $cross_compiling:$ac_tool_warned in
                   109015: yes:)
                   109016: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   109017: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   109018: ac_tool_warned=yes ;;
                   109019: esac
                   109020:     RANLIB=$ac_ct_RANLIB
                   109021:   fi
                   109022: else
                   109023:   RANLIB="$ac_cv_prog_RANLIB"
                   109024: fi
                   109025: 
                   109026: if test -n "$ac_tool_prefix"; then
                   109027:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   109028: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   109029: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   109030: $as_echo_n "checking for $ac_word... " >&6; }
                   109031: if ${ac_cv_prog_STRIP+:} false; then :
                   109032:   $as_echo_n "(cached) " >&6
                   109033: else
                   109034:   if test -n "$STRIP"; then
                   109035:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
                   109036: else
                   109037: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   109038: for as_dir in $PATH
                   109039: do
                   109040:   IFS=$as_save_IFS
                   109041:   test -z "$as_dir" && as_dir=.
                   109042:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    109043:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    109044:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   109045:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   109046:     break 2
                   109047:   fi
                   109048: done
                   109049:   done
                   109050: IFS=$as_save_IFS
                   109051: 
                   109052: fi
                   109053: fi
                   109054: STRIP=$ac_cv_prog_STRIP
                   109055: if test -n "$STRIP"; then
                   109056:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   109057: $as_echo "$STRIP" >&6; }
                   109058: else
                   109059:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   109060: $as_echo "no" >&6; }
                   109061: fi
                   109062: 
                   109063: 
                   109064: fi
                   109065: if test -z "$ac_cv_prog_STRIP"; then
                   109066:   ac_ct_STRIP=$STRIP
                   109067:   # Extract the first word of "strip", so it can be a program name with args.
                   109068: set dummy strip; ac_word=$2
                   109069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   109070: $as_echo_n "checking for $ac_word... " >&6; }
                   109071: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
                   109072:   $as_echo_n "(cached) " >&6
                   109073: else
                   109074:   if test -n "$ac_ct_STRIP"; then
                   109075:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
                   109076: else
                   109077: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   109078: for as_dir in $PATH
                   109079: do
                   109080:   IFS=$as_save_IFS
                   109081:   test -z "$as_dir" && as_dir=.
                   109082:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    109083:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    109084:     ac_cv_prog_ac_ct_STRIP="strip"
                   109085:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   109086:     break 2
                   109087:   fi
                   109088: done
                   109089:   done
                   109090: IFS=$as_save_IFS
                   109091: 
                   109092: fi
                   109093: fi
                   109094: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   109095: if test -n "$ac_ct_STRIP"; then
                   109096:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   109097: $as_echo "$ac_ct_STRIP" >&6; }
                   109098: else
                   109099:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   109100: $as_echo "no" >&6; }
                   109101: fi
                   109102: 
                   109103:   if test "x$ac_ct_STRIP" = x; then
                   109104:     STRIP=":"
                   109105:   else
                   109106:     case $cross_compiling:$ac_tool_warned in
                   109107: yes:)
                   109108: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   109109: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   109110: ac_tool_warned=yes ;;
                   109111: esac
                   109112:     STRIP=$ac_ct_STRIP
                   109113:   fi
                   109114: else
                   109115:   STRIP="$ac_cv_prog_STRIP"
                   109116: fi
                   109117: 
                   109118: 
                   109119: old_CC="$CC"
                   109120: old_CFLAGS="$CFLAGS"
                   109121: 
                   109122: # Set sane defaults for various variables
                   109123: test -z "$AR" && AR=ar
                   109124: test -z "$AR_FLAGS" && AR_FLAGS=cru
                   109125: test -z "$AS" && AS=as
                   109126: test -z "$CC" && CC=cc
                   109127: test -z "$LTCC" && LTCC=$CC
                   109128: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
                   109129: test -z "$DLLTOOL" && DLLTOOL=dlltool
                   109130: test -z "$LD" && LD=ld
                   109131: test -z "$LN_S" && LN_S="ln -s"
                   109132: test -z "$MAGIC_CMD" && MAGIC_CMD=file
                   109133: test -z "$NM" && NM=nm
                   109134: test -z "$SED" && SED=sed
                   109135: test -z "$OBJDUMP" && OBJDUMP=objdump
                   109136: test -z "$RANLIB" && RANLIB=:
                   109137: test -z "$STRIP" && STRIP=:
                   109138: test -z "$ac_objext" && ac_objext=o
                   109139: 
                   109140: # Determine commands to create old-style static archives.
                   109141: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
                   109142: old_postinstall_cmds='chmod 644 $oldlib'
                   109143: old_postuninstall_cmds=
                   109144: 
                   109145: if test -n "$RANLIB"; then
                   109146:   case $host_os in
                   109147:   openbsd*)
                   109148:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
                   109149:     ;;
                   109150:   *)
                   109151:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
                   109152:     ;;
                   109153:   esac
                   109154:   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
                   109155: fi
                   109156: 
                   109157: for cc_temp in $compiler""; do
                   109158:   case $cc_temp in
                   109159:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
                   109160:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
                   109161:     \-*) ;;
                   109162:     *) break;;
                   109163:   esac
                   109164: done
                   109165: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
                   109166: 
                   109167: 
                   109168: # Only perform the check for file, if the check method requires it
                   109169: case $deplibs_check_method in
                   109170: file_magic*)
                   109171:   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
                   109172:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
                   109173: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
                   109174: if ${lt_cv_path_MAGIC_CMD+:} false; then :
                   109175:   $as_echo_n "(cached) " >&6
                   109176: else
                   109177:   case $MAGIC_CMD in
                   109178: [\\/*] |  ?:[\\/]*)
                   109179:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
                   109180:   ;;
                   109181: *)
                   109182:   lt_save_MAGIC_CMD="$MAGIC_CMD"
                   109183:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   109184:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   109185:   for ac_dir in $ac_dummy; do
                   109186:     IFS="$lt_save_ifs"
                   109187:     test -z "$ac_dir" && ac_dir=.
                   109188:     if test -f $ac_dir/${ac_tool_prefix}file; then
                   109189:       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
                   109190:       if test -n "$file_magic_test_file"; then
                   109191:        case $deplibs_check_method in
                   109192:        "file_magic "*)
                   109193:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
                   109194:          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   109195:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   109196:            $EGREP "$file_magic_regex" > /dev/null; then
                   109197:            :
                   109198:          else
                   109199:            cat <<EOF 1>&2
                   109200: 
                   109201: *** Warning: the command libtool uses to detect shared libraries,
                   109202: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   109203: *** The result is that libtool may fail to recognize shared libraries
                   109204: *** as such.  This will affect the creation of libtool libraries that
                   109205: *** depend on shared libraries, but programs linked with such libtool
                   109206: *** libraries will work regardless of this problem.  Nevertheless, you
                   109207: *** may want to report the problem to your system manager and/or to
                   109208: *** bug-libtool@gnu.org
                   109209: 
                   109210: EOF
                   109211:          fi ;;
                   109212:        esac
                   109213:       fi
                   109214:       break
                   109215:     fi
                   109216:   done
                   109217:   IFS="$lt_save_ifs"
                   109218:   MAGIC_CMD="$lt_save_MAGIC_CMD"
                   109219:   ;;
                   109220: esac
                   109221: fi
                   109222: 
                   109223: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   109224: if test -n "$MAGIC_CMD"; then
                   109225:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
                   109226: $as_echo "$MAGIC_CMD" >&6; }
                   109227: else
                   109228:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   109229: $as_echo "no" >&6; }
                   109230: fi
                   109231: 
                   109232: if test -z "$lt_cv_path_MAGIC_CMD"; then
                   109233:   if test -n "$ac_tool_prefix"; then
                   109234:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
                   109235: $as_echo_n "checking for file... " >&6; }
                   109236: if ${lt_cv_path_MAGIC_CMD+:} false; then :
                   109237:   $as_echo_n "(cached) " >&6
                   109238: else
                   109239:   case $MAGIC_CMD in
                   109240: [\\/*] |  ?:[\\/]*)
                   109241:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
                   109242:   ;;
                   109243: *)
                   109244:   lt_save_MAGIC_CMD="$MAGIC_CMD"
                   109245:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   109246:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   109247:   for ac_dir in $ac_dummy; do
                   109248:     IFS="$lt_save_ifs"
                   109249:     test -z "$ac_dir" && ac_dir=.
                   109250:     if test -f $ac_dir/file; then
                   109251:       lt_cv_path_MAGIC_CMD="$ac_dir/file"
                   109252:       if test -n "$file_magic_test_file"; then
                   109253:        case $deplibs_check_method in
                   109254:        "file_magic "*)
                   109255:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
                   109256:          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   109257:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   109258:            $EGREP "$file_magic_regex" > /dev/null; then
                   109259:            :
                   109260:          else
                   109261:            cat <<EOF 1>&2
                   109262: 
                   109263: *** Warning: the command libtool uses to detect shared libraries,
                   109264: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   109265: *** The result is that libtool may fail to recognize shared libraries
                   109266: *** as such.  This will affect the creation of libtool libraries that
                   109267: *** depend on shared libraries, but programs linked with such libtool
                   109268: *** libraries will work regardless of this problem.  Nevertheless, you
                   109269: *** may want to report the problem to your system manager and/or to
                   109270: *** bug-libtool@gnu.org
                   109271: 
                   109272: EOF
                   109273:          fi ;;
                   109274:        esac
                   109275:       fi
                   109276:       break
                   109277:     fi
                   109278:   done
                   109279:   IFS="$lt_save_ifs"
                   109280:   MAGIC_CMD="$lt_save_MAGIC_CMD"
                   109281:   ;;
                   109282: esac
                   109283: fi
                   109284: 
                   109285: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   109286: if test -n "$MAGIC_CMD"; then
                   109287:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
                   109288: $as_echo "$MAGIC_CMD" >&6; }
                   109289: else
                   109290:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   109291: $as_echo "no" >&6; }
                   109292: fi
                   109293: 
                   109294:   else
                   109295:     MAGIC_CMD=:
                   109296:   fi
                   109297: fi
                   109298: 
                   109299:   fi
                   109300:   ;;
                   109301: esac
                   109302: 
                   109303: 
                   109304:   case $host_os in
                   109305:     rhapsody* | darwin*)
                   109306:     if test -n "$ac_tool_prefix"; then
                   109307:   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
                   109308: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
                   109309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   109310: $as_echo_n "checking for $ac_word... " >&6; }
                   109311: if ${ac_cv_prog_DSYMUTIL+:} false; then :
                   109312:   $as_echo_n "(cached) " >&6
                   109313: else
                   109314:   if test -n "$DSYMUTIL"; then
                   109315:   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
                   109316: else
                   109317: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   109318: for as_dir in $PATH
                   109319: do
                   109320:   IFS=$as_save_IFS
                   109321:   test -z "$as_dir" && as_dir=.
                   109322:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    109323:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    109324:     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
                   109325:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   109326:     break 2
                   109327:   fi
                   109328: done
                   109329:   done
                   109330: IFS=$as_save_IFS
                   109331: 
                   109332: fi
                   109333: fi
                   109334: DSYMUTIL=$ac_cv_prog_DSYMUTIL
                   109335: if test -n "$DSYMUTIL"; then
                   109336:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
                   109337: $as_echo "$DSYMUTIL" >&6; }
                   109338: else
                   109339:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   109340: $as_echo "no" >&6; }
                   109341: fi
                   109342: 
                   109343: 
                   109344: fi
                   109345: if test -z "$ac_cv_prog_DSYMUTIL"; then
                   109346:   ac_ct_DSYMUTIL=$DSYMUTIL
                   109347:   # Extract the first word of "dsymutil", so it can be a program name with args.
                   109348: set dummy dsymutil; ac_word=$2
                   109349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   109350: $as_echo_n "checking for $ac_word... " >&6; }
                   109351: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
                   109352:   $as_echo_n "(cached) " >&6
                   109353: else
                   109354:   if test -n "$ac_ct_DSYMUTIL"; then
                   109355:   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
                   109356: else
                   109357: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   109358: for as_dir in $PATH
                   109359: do
                   109360:   IFS=$as_save_IFS
                   109361:   test -z "$as_dir" && as_dir=.
                   109362:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    109363:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    109364:     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
                   109365:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   109366:     break 2
                   109367:   fi
                   109368: done
                   109369:   done
                   109370: IFS=$as_save_IFS
                   109371: 
                   109372: fi
                   109373: fi
                   109374: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
                   109375: if test -n "$ac_ct_DSYMUTIL"; then
                   109376:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
                   109377: $as_echo "$ac_ct_DSYMUTIL" >&6; }
                   109378: else
                   109379:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   109380: $as_echo "no" >&6; }
                   109381: fi
                   109382: 
                   109383:   if test "x$ac_ct_DSYMUTIL" = x; then
                   109384:     DSYMUTIL=":"
                   109385:   else
                   109386:     case $cross_compiling:$ac_tool_warned in
                   109387: yes:)
                   109388: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   109389: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   109390: ac_tool_warned=yes ;;
                   109391: esac
                   109392:     DSYMUTIL=$ac_ct_DSYMUTIL
                   109393:   fi
                   109394: else
                   109395:   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
                   109396: fi
                   109397: 
                   109398:     if test -n "$ac_tool_prefix"; then
                   109399:   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
                   109400: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
                   109401: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   109402: $as_echo_n "checking for $ac_word... " >&6; }
                   109403: if ${ac_cv_prog_NMEDIT+:} false; then :
                   109404:   $as_echo_n "(cached) " >&6
                   109405: else
                   109406:   if test -n "$NMEDIT"; then
                   109407:   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
                   109408: else
                   109409: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   109410: for as_dir in $PATH
                   109411: do
                   109412:   IFS=$as_save_IFS
                   109413:   test -z "$as_dir" && as_dir=.
                   109414:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    109415:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    109416:     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
                   109417:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   109418:     break 2
                   109419:   fi
                   109420: done
                   109421:   done
                   109422: IFS=$as_save_IFS
                   109423: 
                   109424: fi
                   109425: fi
                   109426: NMEDIT=$ac_cv_prog_NMEDIT
                   109427: if test -n "$NMEDIT"; then
                   109428:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
                   109429: $as_echo "$NMEDIT" >&6; }
                   109430: else
                   109431:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   109432: $as_echo "no" >&6; }
                   109433: fi
                   109434: 
                   109435: 
                   109436: fi
                   109437: if test -z "$ac_cv_prog_NMEDIT"; then
                   109438:   ac_ct_NMEDIT=$NMEDIT
                   109439:   # Extract the first word of "nmedit", so it can be a program name with args.
                   109440: set dummy nmedit; ac_word=$2
                   109441: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   109442: $as_echo_n "checking for $ac_word... " >&6; }
                   109443: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
                   109444:   $as_echo_n "(cached) " >&6
                   109445: else
                   109446:   if test -n "$ac_ct_NMEDIT"; then
                   109447:   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
                   109448: else
                   109449: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   109450: for as_dir in $PATH
                   109451: do
                   109452:   IFS=$as_save_IFS
                   109453:   test -z "$as_dir" && as_dir=.
                   109454:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! misho    109455:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    109456:     ac_cv_prog_ac_ct_NMEDIT="nmedit"
                   109457:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   109458:     break 2
                   109459:   fi
                   109460: done
                   109461:   done
                   109462: IFS=$as_save_IFS
                   109463: 
                   109464: fi
                   109465: fi
                   109466: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
                   109467: if test -n "$ac_ct_NMEDIT"; then
                   109468:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
                   109469: $as_echo "$ac_ct_NMEDIT" >&6; }
                   109470: else
                   109471:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   109472: $as_echo "no" >&6; }
                   109473: fi
                   109474: 
                   109475:   if test "x$ac_ct_NMEDIT" = x; then
                   109476:     NMEDIT=":"
                   109477:   else
                   109478:     case $cross_compiling:$ac_tool_warned in
                   109479: yes:)
                   109480: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   109481: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   109482: ac_tool_warned=yes ;;
                   109483: esac
                   109484:     NMEDIT=$ac_ct_NMEDIT
                   109485:   fi
                   109486: else
                   109487:   NMEDIT="$ac_cv_prog_NMEDIT"
                   109488: fi
                   109489: 
                   109490: 
                   109491:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
                   109492: $as_echo_n "checking for -single_module linker flag... " >&6; }
                   109493: if ${lt_cv_apple_cc_single_mod+:} false; then :
                   109494:   $as_echo_n "(cached) " >&6
                   109495: else
                   109496:   lt_cv_apple_cc_single_mod=no
                   109497:       if test -z "${LT_MULTI_MODULE}"; then
                   109498:    # By default we will add the -single_module flag. You can override
                   109499:    # by either setting the environment variable LT_MULTI_MODULE
                   109500:    # non-empty at configure time, or by adding -multi_module to the
                   109501:    # link flags.
                   109502:    echo "int foo(void){return 1;}" > conftest.c
                   109503:    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
                   109504:      -dynamiclib ${wl}-single_module conftest.c
                   109505:    if test -f libconftest.dylib; then
                   109506:      lt_cv_apple_cc_single_mod=yes
                   109507:      rm -rf libconftest.dylib*
                   109508:    fi
                   109509:    rm conftest.c
                   109510:       fi
                   109511: fi
                   109512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
                   109513: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
                   109514:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
                   109515: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
                   109516: if ${lt_cv_ld_exported_symbols_list+:} false; then :
                   109517:   $as_echo_n "(cached) " >&6
                   109518: else
                   109519:   lt_cv_ld_exported_symbols_list=no
                   109520:       save_LDFLAGS=$LDFLAGS
                   109521:       echo "_main" > conftest.sym
                   109522:       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
                   109523: 
                   109524: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! misho    109525: #line 109525 "configure"
1.1       misho    109526: #include "confdefs.h"
                   109527: int main() {
                   109528: ; return 0; }
                   109529: EOF
                   109530: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
                   109531:   (eval $ac_link) 2>&5
                   109532:   ac_status=$?
                   109533:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   109534:   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
                   109535:  lt_cv_ld_exported_symbols_list=yes
                   109536:   rm -rf conftest*
                   109537: else
                   109538:   echo "configure: failed program was:" >&5
                   109539:   cat conftest.$ac_ext >&6
                   109540: lt_cv_ld_exported_symbols_list=no
                   109541:   rm -rf conftest*
                   109542: fi
                   109543: rm -f conftest*
                   109544:    LDFLAGS="$save_LDFLAGS"
                   109545: 
                   109546: fi
                   109547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
                   109548: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
                   109549:     case $host_os in
                   109550:     rhapsody* | darwin1.[0123])
                   109551:       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
                   109552:     darwin1.*)
                   109553:      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
                   109554:     darwin*)
                   109555:       # if running on 10.5 or later, the deployment target defaults
                   109556:       # to the OS version, if on x86, and 10.4, the deployment
                   109557:       # target defaults to 10.4. Don't you love it?
                   109558:       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
                   109559:    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
                   109560:      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
                   109561:    10.[012]*)
                   109562:      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
                   109563:    10.*)
                   109564:      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
                   109565:       esac
                   109566:     ;;
                   109567:   esac
                   109568:     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
                   109569:       _lt_dar_single_mod='$single_module'
                   109570:     fi
                   109571:     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
                   109572:       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
                   109573:     else
                   109574:       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
                   109575:     fi
                   109576:     if test "$DSYMUTIL" != ":"; then
                   109577:       _lt_dsymutil="~$DSYMUTIL \$lib || :"
                   109578:     else
                   109579:       _lt_dsymutil=
                   109580:     fi
                   109581:     ;;
                   109582:   esac
                   109583: 
                   109584: 
                   109585: enable_dlopen=no
                   109586: enable_win32_dll=no
                   109587: 
                   109588: # Check whether --enable-libtool-lock was given.
                   109589: if test "${enable_libtool_lock+set}" = set; then :
                   109590:   enableval=$enable_libtool_lock;
                   109591: fi
                   109592: 
                   109593: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
                   109594: 
                   109595: 
                   109596: # Check whether --with-pic was given.
                   109597: if test "${with_pic+set}" = set; then :
                   109598:   withval=$with_pic; pic_mode="$withval"
                   109599: else
                   109600:   pic_mode=default
                   109601: fi
                   109602: 
                   109603: test -z "$pic_mode" && pic_mode=default
                   109604: 
                   109605: # Use C for the default configuration in the libtool script
                   109606: tagname=
                   109607: lt_save_CC="$CC"
                   109608: 
                   109609: ac_ext=c
                   109610: ac_cpp='$CPP $CPPFLAGS'
                   109611: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   109612: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   109613: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   109614: 
                   109615: 
                   109616: # Source file extension for C test sources.
                   109617: ac_ext=c
                   109618: 
                   109619: # Object file extension for compiled C test sources.
                   109620: objext=o
                   109621: objext=$objext
                   109622: 
                   109623: # Code to be used in simple compile tests
                   109624: lt_simple_compile_test_code="int some_variable = 0;"
                   109625: 
                   109626: # Code to be used in simple link tests
                   109627: lt_simple_link_test_code='int main(){return(0);}'
                   109628: 
                   109629: 
                   109630: # If no C compiler was specified, use CC.
                   109631: LTCC=${LTCC-"$CC"}
                   109632: 
                   109633: # If no C compiler flags were specified, use CFLAGS.
                   109634: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
                   109635: 
                   109636: # Allow CC to be a program name with arguments.
                   109637: compiler=$CC
                   109638: 
                   109639: 
                   109640: # save warnings/boilerplate of simple test code
                   109641: ac_outfile=conftest.$ac_objext
                   109642: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
                   109643: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   109644: _lt_compiler_boilerplate=`cat conftest.err`
                   109645: $rm conftest*
                   109646: 
                   109647: ac_outfile=conftest.$ac_objext
                   109648: echo "$lt_simple_link_test_code" >conftest.$ac_ext
                   109649: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   109650: _lt_linker_boilerplate=`cat conftest.err`
                   109651: $rm -r conftest*
                   109652: 
                   109653: 
                   109654: ## CAVEAT EMPTOR:
                   109655: ## There is no encapsulation within the following macros, do not change
                   109656: ## the running order or otherwise move them around unless you know exactly
                   109657: ## what you are doing...
                   109658: 
                   109659: lt_prog_compiler_no_builtin_flag=
                   109660: 
                   109661: if test "$GCC" = yes; then
                   109662:   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
                   109663: 
                   109664: 
                   109665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
                   109666: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
                   109667: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
                   109668:   $as_echo_n "(cached) " >&6
                   109669: else
                   109670:   lt_cv_prog_compiler_rtti_exceptions=no
                   109671:   ac_outfile=conftest.$ac_objext
                   109672:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   109673:    lt_compiler_flag="-fno-rtti -fno-exceptions"
                   109674:    # Insert the option either (1) after the last *FLAGS variable, or
                   109675:    # (2) before a word containing "conftest.", or (3) at the end.
                   109676:    # Note that $ac_compile itself does not contain backslashes and begins
                   109677:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   109678:    # The option is referenced via a variable to avoid confusing sed.
                   109679:    lt_compile=`echo "$ac_compile" | $SED \
                   109680:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   109681:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   109682:    -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! misho    109683:    (eval echo "\"configure:109683: $lt_compile\"" >&5)
1.1       misho    109684:    (eval "$lt_compile" 2>conftest.err)
                   109685:    ac_status=$?
                   109686:    cat conftest.err >&5
1.1.1.2 ! misho    109687:    echo "configure:109687: \$? = $ac_status" >&5
1.1       misho    109688:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   109689:      # The compiler can only warn and ignore the option if not recognized
                   109690:      # So say no if there are warnings other than the usual output.
                   109691:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
                   109692:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   109693:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
                   109694:        lt_cv_prog_compiler_rtti_exceptions=yes
                   109695:      fi
                   109696:    fi
                   109697:    $rm conftest*
                   109698: 
                   109699: fi
                   109700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
                   109701: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
                   109702: 
                   109703: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
                   109704:     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
                   109705: else
                   109706:     :
                   109707: fi
                   109708: 
                   109709: fi
                   109710: 
                   109711: lt_prog_compiler_wl=
                   109712: lt_prog_compiler_pic=
                   109713: lt_prog_compiler_static=
                   109714: 
                   109715: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
                   109716: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
                   109717: 
                   109718:   if test "$GCC" = yes; then
                   109719:     lt_prog_compiler_wl='-Wl,'
                   109720:     lt_prog_compiler_static='-static'
                   109721: 
                   109722:     case $host_os in
                   109723:       aix*)
                   109724:       # All AIX code is PIC.
                   109725:       if test "$host_cpu" = ia64; then
                   109726:        # AIX 5 now supports IA64 processor
                   109727:        lt_prog_compiler_static='-Bstatic'
                   109728:       fi
                   109729:       ;;
                   109730: 
                   109731:     amigaos*)
                   109732:       # FIXME: we need at least 68020 code to build shared libraries, but
                   109733:       # adding the `-m68020' flag to GCC prevents building anything better,
                   109734:       # like `-m68040'.
                   109735:       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
                   109736:       ;;
                   109737: 
                   109738:     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
                   109739:       # PIC is the default for these OSes.
                   109740:       ;;
                   109741: 
                   109742:     mingw* | cygwin* | pw32* | os2*)
                   109743:       # This hack is so that the source file can tell whether it is being
                   109744:       # built for inclusion in a dll (and should export symbols for example).
                   109745:       # Although the cygwin gcc ignores -fPIC, still need this for old-style
                   109746:       # (--disable-auto-import) libraries
                   109747:          lt_prog_compiler_pic='-DDLL_EXPORT'
                   109748:       ;;
                   109749: 
                   109750:     darwin* | rhapsody*)
                   109751:       # PIC is the default on this platform
                   109752:       # Common symbols not allowed in MH_DYLIB files
                   109753:       lt_prog_compiler_pic='-fno-common'
                   109754:       ;;
                   109755: 
                   109756:     interix[3-9]*)
                   109757:       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
                   109758:       # Instead, we relocate shared libraries at runtime.
                   109759:       ;;
                   109760: 
                   109761:     msdosdjgpp*)
                   109762:       # Just because we use GCC doesn't mean we suddenly get shared libraries
                   109763:       # on systems that don't support them.
                   109764:       lt_prog_compiler_can_build_shared=no
                   109765:       enable_shared=no
                   109766:       ;;
                   109767: 
                   109768:     sysv4*MP*)
                   109769:       if test -d /usr/nec; then
                   109770:        lt_prog_compiler_pic=-Kconform_pic
                   109771:       fi
                   109772:       ;;
                   109773: 
                   109774:     hpux*)
                   109775:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   109776:       # not for PA HP-UX.
                   109777:       case $host_cpu in
                   109778:       hppa*64*|ia64*)
                   109779:        # +Z the default
                   109780:        ;;
                   109781:       *)
                   109782:        lt_prog_compiler_pic='-fPIC'
                   109783:        ;;
                   109784:       esac
                   109785:       ;;
                   109786: 
                   109787:     *)
                   109788:       lt_prog_compiler_pic='-fPIC'
                   109789:       ;;
                   109790:     esac
                   109791:   else
                   109792:     # PORTME Check for flag to pass linker flags through the system compiler.
                   109793:     case $host_os in
                   109794:     aix*)
                   109795:       lt_prog_compiler_wl='-Wl,'
                   109796:       if test "$host_cpu" = ia64; then
                   109797:        # AIX 5 now supports IA64 processor
                   109798:        lt_prog_compiler_static='-Bstatic'
                   109799:       else
                   109800:        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
                   109801:       fi
                   109802:       ;;
                   109803:       darwin*)
                   109804:         # PIC is the default on this platform
                   109805:         # Common symbols not allowed in MH_DYLIB files
                   109806:        case $cc_basename in
                   109807:          xlc*)
                   109808:          lt_prog_compiler_pic='-qnocommon'
                   109809:          lt_prog_compiler_wl='-Wl,'
                   109810:          ;;
                   109811:        esac
                   109812:        ;;
                   109813: 
                   109814:     mingw* | cygwin* | pw32* | os2*)
                   109815:       # This hack is so that the source file can tell whether it is being
                   109816:       # built for inclusion in a dll (and should export symbols for example).
                   109817:          lt_prog_compiler_pic='-DDLL_EXPORT'
                   109818:       ;;
                   109819: 
                   109820:     hpux9* | hpux10* | hpux11*)
                   109821:       lt_prog_compiler_wl='-Wl,'
                   109822:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   109823:       # not for PA HP-UX.
                   109824:       case $host_cpu in
                   109825:       hppa*64*|ia64*)
                   109826:        # +Z the default
                   109827:        ;;
                   109828:       *)
                   109829:        lt_prog_compiler_pic='+Z'
                   109830:        ;;
                   109831:       esac
                   109832:       # Is there a better lt_prog_compiler_static that works with the bundled CC?
                   109833:       lt_prog_compiler_static='${wl}-a ${wl}archive'
                   109834:       ;;
                   109835: 
                   109836:     irix5* | irix6* | nonstopux*)
                   109837:       lt_prog_compiler_wl='-Wl,'
                   109838:       # PIC (with -KPIC) is the default.
                   109839:       lt_prog_compiler_static='-non_shared'
                   109840:       ;;
                   109841: 
                   109842:     newsos6)
                   109843:       lt_prog_compiler_pic='-KPIC'
                   109844:       lt_prog_compiler_static='-Bstatic'
                   109845:       ;;
                   109846: 
                   109847:     linux* | k*bsd*-gnu)
                   109848:       case $cc_basename in
                   109849:       # old Intel for x86_64 which still supported -KPIC.
                   109850:       ecc*)
                   109851:         lt_prog_compiler_wl='-Wl,'
                   109852:         lt_prog_compiler_pic='-KPIC'
                   109853:         lt_prog_compiler_static='-static'
                   109854:         ;;
                   109855:       # icc used to be incompatible with GCC.
                   109856:       # ICC 10 doesn't accept -KPIC any more.
                   109857:       icc*)
                   109858:         lt_prog_compiler_wl='-Wl,'
                   109859:         lt_prog_compiler_pic='-fPIC'
                   109860:         lt_prog_compiler_static='-static'
                   109861:         ;;
                   109862:       pgcc* | pgf77* | pgf90* | pgf95*)
                   109863:         # Portland Group compilers (*not* the Pentium gcc compiler,
                   109864:        # which looks to be a dead project)
                   109865:        lt_prog_compiler_wl='-Wl,'
                   109866:        lt_prog_compiler_pic='-fpic'
                   109867:        lt_prog_compiler_static='-Bstatic'
                   109868:         ;;
                   109869:       ccc*)
                   109870:         lt_prog_compiler_wl='-Wl,'
                   109871:         # All Alpha code is PIC.
                   109872:         lt_prog_compiler_static='-non_shared'
                   109873:         ;;
                   109874:       *)
                   109875:         case `$CC -V 2>&1 | sed 5q` in
                   109876:        *Sun\ C*)
                   109877:          # Sun C 5.9
                   109878:          lt_prog_compiler_pic='-KPIC'
                   109879:          lt_prog_compiler_static='-Bstatic'
                   109880:          lt_prog_compiler_wl='-Wl,'
                   109881:          ;;
                   109882:        *Sun\ F*)
                   109883:          # Sun Fortran 8.3 passes all unrecognized flags to the linker
                   109884:          lt_prog_compiler_pic='-KPIC'
                   109885:          lt_prog_compiler_static='-Bstatic'
                   109886:          lt_prog_compiler_wl=''
                   109887:          ;;
                   109888:        esac
                   109889:        ;;
                   109890:       esac
                   109891:       ;;
                   109892: 
                   109893:     osf3* | osf4* | osf5*)
                   109894:       lt_prog_compiler_wl='-Wl,'
                   109895:       # All OSF/1 code is PIC.
                   109896:       lt_prog_compiler_static='-non_shared'
                   109897:       ;;
                   109898: 
                   109899:     rdos*)
                   109900:       lt_prog_compiler_static='-non_shared'
                   109901:       ;;
                   109902: 
                   109903:     solaris*)
                   109904:       lt_prog_compiler_pic='-KPIC'
                   109905:       lt_prog_compiler_static='-Bstatic'
                   109906:       case $cc_basename in
                   109907:       f77* | f90* | f95*)
                   109908:        lt_prog_compiler_wl='-Qoption ld ';;
                   109909:       *)
                   109910:        lt_prog_compiler_wl='-Wl,';;
                   109911:       esac
                   109912:       ;;
                   109913: 
                   109914:     sunos4*)
                   109915:       lt_prog_compiler_wl='-Qoption ld '
                   109916:       lt_prog_compiler_pic='-PIC'
                   109917:       lt_prog_compiler_static='-Bstatic'
                   109918:       ;;
                   109919: 
                   109920:     sysv4 | sysv4.2uw2* | sysv4.3*)
                   109921:       lt_prog_compiler_wl='-Wl,'
                   109922:       lt_prog_compiler_pic='-KPIC'
                   109923:       lt_prog_compiler_static='-Bstatic'
                   109924:       ;;
                   109925: 
                   109926:     sysv4*MP*)
                   109927:       if test -d /usr/nec ;then
                   109928:        lt_prog_compiler_pic='-Kconform_pic'
                   109929:        lt_prog_compiler_static='-Bstatic'
                   109930:       fi
                   109931:       ;;
                   109932: 
                   109933:     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
                   109934:       lt_prog_compiler_wl='-Wl,'
                   109935:       lt_prog_compiler_pic='-KPIC'
                   109936:       lt_prog_compiler_static='-Bstatic'
                   109937:       ;;
                   109938: 
                   109939:     unicos*)
                   109940:       lt_prog_compiler_wl='-Wl,'
                   109941:       lt_prog_compiler_can_build_shared=no
                   109942:       ;;
                   109943: 
                   109944:     uts4*)
                   109945:       lt_prog_compiler_pic='-pic'
                   109946:       lt_prog_compiler_static='-Bstatic'
                   109947:       ;;
                   109948: 
                   109949:     *)
                   109950:       lt_prog_compiler_can_build_shared=no
                   109951:       ;;
                   109952:     esac
                   109953:   fi
                   109954: 
                   109955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
                   109956: $as_echo "$lt_prog_compiler_pic" >&6; }
                   109957: 
                   109958: #
                   109959: # Check to make sure the PIC flag actually works.
                   109960: #
                   109961: if test -n "$lt_prog_compiler_pic"; then
                   109962: 
                   109963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
                   109964: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
                   109965: if ${lt_cv_prog_compiler_pic_works+:} false; then :
                   109966:   $as_echo_n "(cached) " >&6
                   109967: else
                   109968:   lt_cv_prog_compiler_pic_works=no
                   109969:   ac_outfile=conftest.$ac_objext
                   109970:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   109971:    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
                   109972:    # Insert the option either (1) after the last *FLAGS variable, or
                   109973:    # (2) before a word containing "conftest.", or (3) at the end.
                   109974:    # Note that $ac_compile itself does not contain backslashes and begins
                   109975:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   109976:    # The option is referenced via a variable to avoid confusing sed.
                   109977:    lt_compile=`echo "$ac_compile" | $SED \
                   109978:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   109979:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   109980:    -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! misho    109981:    (eval echo "\"configure:109981: $lt_compile\"" >&5)
1.1       misho    109982:    (eval "$lt_compile" 2>conftest.err)
                   109983:    ac_status=$?
                   109984:    cat conftest.err >&5
1.1.1.2 ! misho    109985:    echo "configure:109985: \$? = $ac_status" >&5
1.1       misho    109986:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   109987:      # The compiler can only warn and ignore the option if not recognized
                   109988:      # So say no if there are warnings other than the usual output.
                   109989:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
                   109990:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   109991:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
                   109992:        lt_cv_prog_compiler_pic_works=yes
                   109993:      fi
                   109994:    fi
                   109995:    $rm conftest*
                   109996: 
                   109997: fi
                   109998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
                   109999: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
                   110000: 
                   110001: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
                   110002:     case $lt_prog_compiler_pic in
                   110003:      "" | " "*) ;;
                   110004:      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
                   110005:      esac
                   110006: else
                   110007:     lt_prog_compiler_pic=
                   110008:      lt_prog_compiler_can_build_shared=no
                   110009: fi
                   110010: 
                   110011: fi
                   110012: case $host_os in
                   110013:   # For platforms which do not support PIC, -DPIC is meaningless:
                   110014:   *djgpp*)
                   110015:     lt_prog_compiler_pic=
                   110016:     ;;
                   110017:   *)
                   110018:     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
                   110019:     ;;
                   110020: esac
                   110021: 
                   110022: #
                   110023: # Check to make sure the static flag actually works.
                   110024: #
                   110025: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
                   110026: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
                   110027: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
                   110028: if ${lt_cv_prog_compiler_static_works+:} false; then :
                   110029:   $as_echo_n "(cached) " >&6
                   110030: else
                   110031:   lt_cv_prog_compiler_static_works=no
                   110032:    save_LDFLAGS="$LDFLAGS"
                   110033:    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
                   110034:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
                   110035:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
                   110036:      # The linker can only warn and ignore the option if not recognized
                   110037:      # So say no if there are warnings
                   110038:      if test -s conftest.err; then
                   110039:        # Append any errors to the config.log.
                   110040:        cat conftest.err 1>&5
                   110041:        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
                   110042:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   110043:        if diff conftest.exp conftest.er2 >/dev/null; then
                   110044:          lt_cv_prog_compiler_static_works=yes
                   110045:        fi
                   110046:      else
                   110047:        lt_cv_prog_compiler_static_works=yes
                   110048:      fi
                   110049:    fi
                   110050:    $rm -r conftest*
                   110051:    LDFLAGS="$save_LDFLAGS"
                   110052: 
                   110053: fi
                   110054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
                   110055: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
                   110056: 
                   110057: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
                   110058:     :
                   110059: else
                   110060:     lt_prog_compiler_static=
                   110061: fi
                   110062: 
                   110063: 
                   110064: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
                   110065: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
                   110066: if ${lt_cv_prog_compiler_c_o+:} false; then :
                   110067:   $as_echo_n "(cached) " >&6
                   110068: else
                   110069:   lt_cv_prog_compiler_c_o=no
                   110070:    $rm -r conftest 2>/dev/null
                   110071:    mkdir conftest
                   110072:    cd conftest
                   110073:    mkdir out
                   110074:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   110075: 
                   110076:    lt_compiler_flag="-o out/conftest2.$ac_objext"
                   110077:    # Insert the option either (1) after the last *FLAGS variable, or
                   110078:    # (2) before a word containing "conftest.", or (3) at the end.
                   110079:    # Note that $ac_compile itself does not contain backslashes and begins
                   110080:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   110081:    lt_compile=`echo "$ac_compile" | $SED \
                   110082:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   110083:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   110084:    -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! misho    110085:    (eval echo "\"configure:110085: $lt_compile\"" >&5)
1.1       misho    110086:    (eval "$lt_compile" 2>out/conftest.err)
                   110087:    ac_status=$?
                   110088:    cat out/conftest.err >&5
1.1.1.2 ! misho    110089:    echo "configure:110089: \$? = $ac_status" >&5
1.1       misho    110090:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
                   110091:    then
                   110092:      # The compiler can only warn and ignore the option if not recognized
                   110093:      # So say no if there are warnings
                   110094:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
                   110095:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
                   110096:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
                   110097:        lt_cv_prog_compiler_c_o=yes
                   110098:      fi
                   110099:    fi
                   110100:    chmod u+w . 2>&5
                   110101:    $rm conftest*
                   110102:    # SGI C++ compiler will create directory out/ii_files/ for
                   110103:    # template instantiation
                   110104:    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
                   110105:    $rm out/* && rmdir out
                   110106:    cd ..
                   110107:    rmdir conftest
                   110108:    $rm conftest*
                   110109: 
                   110110: fi
                   110111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
                   110112: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
                   110113: 
                   110114: 
                   110115: hard_links="nottested"
                   110116: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
                   110117:   # do not overwrite the value of need_locks provided by the user
                   110118:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
                   110119: $as_echo_n "checking if we can lock with hard links... " >&6; }
                   110120:   hard_links=yes
                   110121:   $rm conftest*
                   110122:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   110123:   touch conftest.a
                   110124:   ln conftest.a conftest.b 2>&5 || hard_links=no
                   110125:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   110126:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
                   110127: $as_echo "$hard_links" >&6; }
                   110128:   if test "$hard_links" = no; then
                   110129:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
                   110130: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
                   110131:     need_locks=warn
                   110132:   fi
                   110133: else
                   110134:   need_locks=no
                   110135: fi
                   110136: 
                   110137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
                   110138: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
                   110139: 
                   110140:   runpath_var=
                   110141:   allow_undefined_flag=
                   110142:   enable_shared_with_static_runtimes=no
                   110143:   archive_cmds=
                   110144:   archive_expsym_cmds=
                   110145:   old_archive_From_new_cmds=
                   110146:   old_archive_from_expsyms_cmds=
                   110147:   export_dynamic_flag_spec=
                   110148:   whole_archive_flag_spec=
                   110149:   thread_safe_flag_spec=
                   110150:   hardcode_libdir_flag_spec=
                   110151:   hardcode_libdir_flag_spec_ld=
                   110152:   hardcode_libdir_separator=
                   110153:   hardcode_direct=no
                   110154:   hardcode_minus_L=no
                   110155:   hardcode_shlibpath_var=unsupported
                   110156:   link_all_deplibs=unknown
                   110157:   hardcode_automatic=no
                   110158:   module_cmds=
                   110159:   module_expsym_cmds=
                   110160:   always_export_symbols=no
                   110161:   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
                   110162:   # include_expsyms should be a list of space-separated symbols to be *always*
                   110163:   # included in the symbol list
                   110164:   include_expsyms=
                   110165:   # exclude_expsyms can be an extended regexp of symbols to exclude
                   110166:   # it will be wrapped by ` (' and `)$', so one must not match beginning or
                   110167:   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
                   110168:   # as well as any symbol that contains `d'.
                   110169:   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
                   110170:   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
                   110171:   # platforms (ab)use it in PIC code, but their linkers get confused if
                   110172:   # the symbol is explicitly referenced.  Since portable code cannot
                   110173:   # rely on this symbol name, it's probably fine to never include it in
                   110174:   # preloaded symbol tables.
                   110175:   # Exclude shared library initialization/finalization symbols.
                   110176:   extract_expsyms_cmds=
                   110177:   # Just being paranoid about ensuring that cc_basename is set.
                   110178:   for cc_temp in $compiler""; do
                   110179:   case $cc_temp in
                   110180:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
                   110181:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
                   110182:     \-*) ;;
                   110183:     *) break;;
                   110184:   esac
                   110185: done
                   110186: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
                   110187: 
                   110188:   case $host_os in
                   110189:   cygwin* | mingw* | pw32*)
                   110190:     # FIXME: the MSVC++ port hasn't been tested in a loooong time
                   110191:     # When not using gcc, we currently assume that we are using
                   110192:     # Microsoft Visual C++.
                   110193:     if test "$GCC" != yes; then
                   110194:       with_gnu_ld=no
                   110195:     fi
                   110196:     ;;
                   110197:   interix*)
                   110198:     # we just hope/assume this is gcc and not c89 (= MSVC++)
                   110199:     with_gnu_ld=yes
                   110200:     ;;
                   110201:   openbsd*)
                   110202:     with_gnu_ld=no
                   110203:     ;;
                   110204:   esac
                   110205: 
                   110206:   ld_shlibs=yes
                   110207:   if test "$with_gnu_ld" = yes; then
                   110208:     # If archive_cmds runs LD, not CC, wlarc should be empty
                   110209:     wlarc='${wl}'
                   110210: 
                   110211:     # Set some defaults for GNU ld with shared library support. These
                   110212:     # are reset later if shared libraries are not supported. Putting them
                   110213:     # here allows them to be overridden if necessary.
                   110214:     runpath_var=LD_RUN_PATH
                   110215:     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
                   110216:     export_dynamic_flag_spec='${wl}--export-dynamic'
                   110217:     # ancient GNU ld didn't support --whole-archive et. al.
                   110218:     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
                   110219:        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
                   110220:       else
                   110221:        whole_archive_flag_spec=
                   110222:     fi
                   110223:     supports_anon_versioning=no
                   110224:     case `$LD -v 2>/dev/null` in
                   110225:       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
                   110226:       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
                   110227:       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
                   110228:       *\ 2.11.*) ;; # other 2.11 versions
                   110229:       *) supports_anon_versioning=yes ;;
                   110230:     esac
                   110231: 
                   110232:     # See if GNU ld supports shared libraries.
                   110233:     case $host_os in
                   110234:     aix[3-9]*)
                   110235:       # On AIX/PPC, the GNU linker is very broken
                   110236:       if test "$host_cpu" != ia64; then
                   110237:        ld_shlibs=no
                   110238:        cat <<EOF 1>&2
                   110239: 
                   110240: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
                   110241: *** to be unable to reliably create shared libraries on AIX.
                   110242: *** Therefore, libtool is disabling shared libraries support.  If you
                   110243: *** really care for shared libraries, you may want to modify your PATH
                   110244: *** so that a non-GNU linker is found, and then restart.
                   110245: 
                   110246: EOF
                   110247:       fi
                   110248:       ;;
                   110249: 
                   110250:     amigaos*)
                   110251:       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)'
                   110252:       hardcode_libdir_flag_spec='-L$libdir'
                   110253:       hardcode_minus_L=yes
                   110254: 
                   110255:       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
                   110256:       # that the semantics of dynamic libraries on AmigaOS, at least up
                   110257:       # to version 4, is to share data among multiple programs linked
                   110258:       # with the same dynamic library.  Since this doesn't match the
                   110259:       # behavior of shared libraries on other platforms, we can't use
                   110260:       # them.
                   110261:       ld_shlibs=no
                   110262:       ;;
                   110263: 
                   110264:     beos*)
                   110265:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   110266:        allow_undefined_flag=unsupported
                   110267:        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
                   110268:        # support --undefined.  This deserves some investigation.  FIXME
                   110269:        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   110270:       else
                   110271:        ld_shlibs=no
                   110272:       fi
                   110273:       ;;
                   110274: 
                   110275:     cygwin* | mingw* | pw32*)
                   110276:       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
                   110277:       # as there is no search path for DLLs.
                   110278:       hardcode_libdir_flag_spec='-L$libdir'
                   110279:       allow_undefined_flag=unsupported
                   110280:       always_export_symbols=no
                   110281:       enable_shared_with_static_runtimes=yes
                   110282:       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
                   110283: 
                   110284:       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
                   110285:         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
                   110286:        # If the export-symbols file already is a .def file (1st line
                   110287:        # is EXPORTS), use it as is; otherwise, prepend...
                   110288:        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
                   110289:          cp $export_symbols $output_objdir/$soname.def;
                   110290:        else
                   110291:          echo EXPORTS > $output_objdir/$soname.def;
                   110292:          cat $export_symbols >> $output_objdir/$soname.def;
                   110293:        fi~
                   110294:        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
                   110295:       else
                   110296:        ld_shlibs=no
                   110297:       fi
                   110298:       ;;
                   110299: 
                   110300:     interix[3-9]*)
                   110301:       hardcode_direct=no
                   110302:       hardcode_shlibpath_var=no
                   110303:       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   110304:       export_dynamic_flag_spec='${wl}-E'
                   110305:       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
                   110306:       # Instead, shared libraries are loaded at an image base (0x10000000 by
                   110307:       # default) and relocated if they conflict, which is a slow very memory
                   110308:       # consuming and fragmenting process.  To avoid this, we pick a random,
                   110309:       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
                   110310:       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
                   110311:       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
                   110312:       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'
                   110313:       ;;
                   110314: 
                   110315:     gnu* | linux* | k*bsd*-gnu)
                   110316:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   110317:        tmp_addflag=
                   110318:        case $cc_basename,$host_cpu in
                   110319:        pgcc*)                          # Portland Group C compiler
                   110320:          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
                   110321:          tmp_addflag=' $pic_flag'
                   110322:          ;;
                   110323:        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
                   110324:          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
                   110325:          tmp_addflag=' $pic_flag -Mnomain' ;;
                   110326:        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
                   110327:          tmp_addflag=' -i_dynamic' ;;
                   110328:        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
                   110329:          tmp_addflag=' -i_dynamic -nofor_main' ;;
                   110330:        ifc* | ifort*)                  # Intel Fortran compiler
                   110331:          tmp_addflag=' -nofor_main' ;;
                   110332:        esac
                   110333:        case `$CC -V 2>&1 | sed 5q` in
                   110334:        *Sun\ C*)                       # Sun C 5.9
                   110335:          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
                   110336:          tmp_sharedflag='-G' ;;
                   110337:        *Sun\ F*)                       # Sun Fortran 8.3
                   110338:          tmp_sharedflag='-G' ;;
                   110339:        *)
                   110340:          tmp_sharedflag='-shared' ;;
                   110341:        esac
                   110342:        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   110343: 
                   110344:        if test $supports_anon_versioning = yes; then
                   110345:          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
                   110346:   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
                   110347:   $echo "local: *; };" >> $output_objdir/$libname.ver~
                   110348:          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
                   110349:        fi
                   110350:       else
                   110351:        ld_shlibs=no
                   110352:       fi
                   110353:       ;;
                   110354: 
                   110355:     netbsd*)
                   110356:       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   110357:        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
                   110358:        wlarc=
                   110359:       else
                   110360:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   110361:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   110362:       fi
                   110363:       ;;
                   110364: 
                   110365:     solaris*)
                   110366:       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
                   110367:        ld_shlibs=no
                   110368:        cat <<EOF 1>&2
                   110369: 
                   110370: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
                   110371: *** create shared libraries on Solaris systems.  Therefore, libtool
                   110372: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   110373: *** binutils to release 2.9.1 or newer.  Another option is to modify
                   110374: *** your PATH or compiler configuration so that the native linker is
                   110375: *** used, and then restart.
                   110376: 
                   110377: EOF
                   110378:       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   110379:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   110380:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   110381:       else
                   110382:        ld_shlibs=no
                   110383:       fi
                   110384:       ;;
                   110385: 
                   110386:     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
                   110387:       case `$LD -v 2>&1` in
                   110388:         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
                   110389:        ld_shlibs=no
                   110390:        cat <<_LT_EOF 1>&2
                   110391: 
                   110392: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
                   110393: *** reliably create shared libraries on SCO systems.  Therefore, libtool
                   110394: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   110395: *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
                   110396: *** your PATH or compiler configuration so that the native linker is
                   110397: *** used, and then restart.
                   110398: 
                   110399: _LT_EOF
                   110400:        ;;
                   110401:        *)
                   110402:          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   110403:            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
                   110404:            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
                   110405:            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
                   110406:          else
                   110407:            ld_shlibs=no
                   110408:          fi
                   110409:        ;;
                   110410:       esac
                   110411:       ;;
                   110412: 
                   110413:     sunos4*)
                   110414:       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   110415:       wlarc=
                   110416:       hardcode_direct=yes
                   110417:       hardcode_shlibpath_var=no
                   110418:       ;;
                   110419: 
                   110420:     *)
                   110421:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   110422:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   110423:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   110424:       else
                   110425:        ld_shlibs=no
                   110426:       fi
                   110427:       ;;
                   110428:     esac
                   110429: 
                   110430:     if test "$ld_shlibs" = no; then
                   110431:       runpath_var=
                   110432:       hardcode_libdir_flag_spec=
                   110433:       export_dynamic_flag_spec=
                   110434:       whole_archive_flag_spec=
                   110435:     fi
                   110436:   else
                   110437:     # PORTME fill in a description of your system's linker (not GNU ld)
                   110438:     case $host_os in
                   110439:     aix3*)
                   110440:       allow_undefined_flag=unsupported
                   110441:       always_export_symbols=yes
                   110442:       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'
                   110443:       # Note: this linker hardcodes the directories in LIBPATH if there
                   110444:       # are no directories specified by -L.
                   110445:       hardcode_minus_L=yes
                   110446:       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
                   110447:        # Neither direct hardcoding nor static linking is supported with a
                   110448:        # broken collect2.
                   110449:        hardcode_direct=unsupported
                   110450:       fi
                   110451:       ;;
                   110452: 
                   110453:     aix[4-9]*)
                   110454:       if test "$host_cpu" = ia64; then
                   110455:        # On IA64, the linker does run time linking by default, so we don't
                   110456:        # have to do anything special.
                   110457:        aix_use_runtimelinking=no
                   110458:        exp_sym_flag='-Bexport'
                   110459:        no_entry_flag=""
                   110460:       else
                   110461:        # If we're using GNU nm, then we don't want the "-C" option.
                   110462:        # -C means demangle to AIX nm, but means don't demangle with GNU nm
                   110463:        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
                   110464:          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
                   110465:        else
                   110466:          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
                   110467:        fi
                   110468:        aix_use_runtimelinking=no
                   110469: 
                   110470:        # Test if we are trying to use run time linking or normal
                   110471:        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
                   110472:        # need to do runtime linking.
                   110473:        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
                   110474:          for ld_flag in $LDFLAGS; do
                   110475:          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
                   110476:            aix_use_runtimelinking=yes
                   110477:            break
                   110478:          fi
                   110479:          done
                   110480:          ;;
                   110481:        esac
                   110482: 
                   110483:        exp_sym_flag='-bexport'
                   110484:        no_entry_flag='-bnoentry'
                   110485:       fi
                   110486: 
                   110487:       # When large executables or shared objects are built, AIX ld can
                   110488:       # have problems creating the table of contents.  If linking a library
                   110489:       # or program results in "error TOC overflow" add -mminimal-toc to
                   110490:       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
                   110491:       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
                   110492: 
                   110493:       archive_cmds=''
                   110494:       hardcode_direct=yes
                   110495:       hardcode_libdir_separator=':'
                   110496:       link_all_deplibs=yes
                   110497: 
                   110498:       if test "$GCC" = yes; then
                   110499:        case $host_os in aix4.[012]|aix4.[012].*)
                   110500:        # We only want to do this on AIX 4.2 and lower, the check
                   110501:        # below for broken collect2 doesn't work under 4.3+
                   110502:          collect2name=`${CC} -print-prog-name=collect2`
                   110503:          if test -f "$collect2name" && \
                   110504:           strings "$collect2name" | grep resolve_lib_name >/dev/null
                   110505:          then
                   110506:          # We have reworked collect2
                   110507:          :
                   110508:          else
                   110509:          # We have old collect2
                   110510:          hardcode_direct=unsupported
                   110511:          # It fails to find uninstalled libraries when the uninstalled
                   110512:          # path is not listed in the libpath.  Setting hardcode_minus_L
                   110513:          # to unsupported forces relinking
                   110514:          hardcode_minus_L=yes
                   110515:          hardcode_libdir_flag_spec='-L$libdir'
                   110516:          hardcode_libdir_separator=
                   110517:          fi
                   110518:          ;;
                   110519:        esac
                   110520:        shared_flag='-shared'
                   110521:        if test "$aix_use_runtimelinking" = yes; then
                   110522:          shared_flag="$shared_flag "'${wl}-G'
                   110523:        fi
                   110524:       else
                   110525:        # not using gcc
                   110526:        if test "$host_cpu" = ia64; then
                   110527:        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
                   110528:        # chokes on -Wl,-G. The following line is correct:
                   110529:          shared_flag='-G'
                   110530:        else
                   110531:          if test "$aix_use_runtimelinking" = yes; then
                   110532:            shared_flag='${wl}-G'
                   110533:          else
                   110534:            shared_flag='${wl}-bM:SRE'
                   110535:          fi
                   110536:        fi
                   110537:       fi
                   110538: 
                   110539:       # It seems that -bexpall does not export symbols beginning with
                   110540:       # underscore (_), so it is better to generate a list of symbols to export.
                   110541:       always_export_symbols=yes
                   110542:       if test "$aix_use_runtimelinking" = yes; then
                   110543:        # Warning - without using the other runtime loading flags (-brtl),
                   110544:        # -berok will link without error, but may produce a broken library.
                   110545:        allow_undefined_flag='-berok'
                   110546:        # Determine the default libpath from the value encoded in an empty executable.
                   110547: 
                   110548: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! misho    110549: #line 110549 "configure"
1.1       misho    110550: #include "confdefs.h"
                   110551: int main() {
                   110552: ; return 0; }
                   110553: EOF
                   110554: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
                   110555:   (eval $ac_link) 2>&5
                   110556:   ac_status=$?
                   110557:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   110558:   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
                   110559: 
                   110560: lt_aix_libpath_sed='
                   110561:     /Import File Strings/,/^$/ {
                   110562:        /^0/ {
                   110563:            s/^0  *\(.*\)$/\1/
                   110564:            p
                   110565:        }
                   110566:     }'
                   110567: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   110568: # Check for a 64-bit object if we didn't find anything.
                   110569: if test -z "$aix_libpath"; then
                   110570:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   110571: fi
                   110572:   rm -rf conftest*
                   110573: else
                   110574:   echo "configure: failed program was:" >&5
                   110575:   cat conftest.$ac_ext >&6
                   110576: fi
                   110577: rm -f conftest*
                   110578: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
                   110579: 
                   110580:        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
                   110581:        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
                   110582:        else
                   110583:        if test "$host_cpu" = ia64; then
                   110584:          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
                   110585:          allow_undefined_flag="-z nodefs"
                   110586:          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"
                   110587:        else
                   110588:         # Determine the default libpath from the value encoded in an empty executable.
                   110589: 
                   110590: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! misho    110591: #line 110591 "configure"
1.1       misho    110592: #include "confdefs.h"
                   110593: int main() {
                   110594: ; return 0; }
                   110595: EOF
                   110596: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
                   110597:   (eval $ac_link) 2>&5
                   110598:   ac_status=$?
                   110599:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   110600:   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
                   110601: 
                   110602: lt_aix_libpath_sed='
                   110603:     /Import File Strings/,/^$/ {
                   110604:        /^0/ {
                   110605:            s/^0  *\(.*\)$/\1/
                   110606:            p
                   110607:        }
                   110608:     }'
                   110609: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   110610: # Check for a 64-bit object if we didn't find anything.
                   110611: if test -z "$aix_libpath"; then
                   110612:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   110613: fi
                   110614:   rm -rf conftest*
                   110615: else
                   110616:   echo "configure: failed program was:" >&5
                   110617:   cat conftest.$ac_ext >&6
                   110618: fi
                   110619: rm -f conftest*
                   110620: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
                   110621: 
                   110622:         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
                   110623:          # Warning - without using the other run time loading flags,
                   110624:          # -berok will link without error, but may produce a broken library.
                   110625:          no_undefined_flag=' ${wl}-bernotok'
                   110626:          allow_undefined_flag=' ${wl}-berok'
                   110627:          # Exported symbols can be pulled into shared objects from archives
                   110628:          whole_archive_flag_spec='$convenience'
                   110629:          archive_cmds_need_lc=yes
                   110630:          # This is similar to how AIX traditionally builds its shared libraries.
                   110631:          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
                   110632:        fi
                   110633:       fi
                   110634:       ;;
                   110635: 
                   110636:     amigaos*)
                   110637:       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)'
                   110638:       hardcode_libdir_flag_spec='-L$libdir'
                   110639:       hardcode_minus_L=yes
                   110640:       # see comment about different semantics on the GNU ld section
                   110641:       ld_shlibs=no
                   110642:       ;;
                   110643: 
                   110644:     bsdi[45]*)
                   110645:       export_dynamic_flag_spec=-rdynamic
                   110646:       ;;
                   110647: 
                   110648:     cygwin* | mingw* | pw32*)
                   110649:       # When not using gcc, we currently assume that we are using
                   110650:       # Microsoft Visual C++.
                   110651:       # hardcode_libdir_flag_spec is actually meaningless, as there is
                   110652:       # no search path for DLLs.
                   110653:       hardcode_libdir_flag_spec=' '
                   110654:       allow_undefined_flag=unsupported
                   110655:       # Tell ltmain to make .lib files, not .a files.
                   110656:       libext=lib
                   110657:       # Tell ltmain to make .dll files, not .so files.
                   110658:       shrext_cmds=".dll"
                   110659:       # FIXME: Setting linknames here is a bad hack.
                   110660:       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
                   110661:       # The linker will automatically build a .lib file if we build a DLL.
                   110662:       old_archive_From_new_cmds='true'
                   110663:       # FIXME: Should let the user specify the lib program.
                   110664:       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
                   110665:       fix_srcfile_path='`cygpath -w "$srcfile"`'
                   110666:       enable_shared_with_static_runtimes=yes
                   110667:       ;;
                   110668: 
                   110669:     darwin* | rhapsody*)
                   110670:       case $host_os in
                   110671:         rhapsody* | darwin1.[012])
                   110672:          allow_undefined_flag='${wl}-undefined ${wl}suppress'
                   110673:          ;;
                   110674:        *) # Darwin 1.3 on
                   110675:          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
                   110676:            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
                   110677:          else
                   110678:            case ${MACOSX_DEPLOYMENT_TARGET} in
                   110679:              10.[012])
                   110680:                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
                   110681:                ;;
                   110682:              10.*)
                   110683:                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
                   110684:                ;;
                   110685:            esac
                   110686:          fi
                   110687:          ;;
                   110688:       esac
                   110689:       archive_cmds_need_lc=no
                   110690:       hardcode_direct=no
                   110691:       hardcode_automatic=yes
                   110692:       hardcode_shlibpath_var=unsupported
                   110693:       whole_archive_flag_spec=''
                   110694:       link_all_deplibs=yes
                   110695:     if test "$GCC" = yes ; then
                   110696:        output_verbose_link_cmd='echo'
                   110697:         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
                   110698:         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
                   110699:         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}"
                   110700:         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}"
                   110701:     else
                   110702:       case $cc_basename in
                   110703:         xlc*)
                   110704:          output_verbose_link_cmd='echo'
                   110705:          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
                   110706:          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
                   110707:           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
                   110708:          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
                   110709:           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
                   110710:           ;;
                   110711:        *)
                   110712:          ld_shlibs=no
                   110713:           ;;
                   110714:       esac
                   110715:     fi
                   110716:       ;;
                   110717: 
                   110718:     dgux*)
                   110719:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   110720:       hardcode_libdir_flag_spec='-L$libdir'
                   110721:       hardcode_shlibpath_var=no
                   110722:       ;;
                   110723: 
                   110724:     freebsd1.*)
                   110725:       ld_shlibs=no
                   110726:       ;;
                   110727: 
                   110728:     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
                   110729:     # support.  Future versions do this automatically, but an explicit c++rt0.o
                   110730:     # does not break anything, and helps significantly (at the cost of a little
                   110731:     # extra space).
                   110732:     freebsd2.2*)
                   110733:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
                   110734:       hardcode_libdir_flag_spec='-R$libdir'
                   110735:       hardcode_direct=yes
                   110736:       hardcode_shlibpath_var=no
                   110737:       ;;
                   110738: 
                   110739:     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
                   110740:     freebsd2*)
                   110741:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   110742:       hardcode_direct=yes
                   110743:       hardcode_minus_L=yes
                   110744:       hardcode_shlibpath_var=no
                   110745:       ;;
                   110746: 
                   110747:     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
                   110748:     freebsd* | dragonfly*)
                   110749:       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
                   110750:       hardcode_libdir_flag_spec='-R$libdir'
                   110751:       hardcode_direct=yes
                   110752:       hardcode_shlibpath_var=no
                   110753:       ;;
                   110754: 
                   110755:     hpux9*)
                   110756:       if test "$GCC" = yes; then
                   110757:        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
                   110758:       else
                   110759:        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
                   110760:       fi
                   110761:       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   110762:       hardcode_libdir_separator=:
                   110763:       hardcode_direct=yes
                   110764: 
                   110765:       # hardcode_minus_L: Not really in the search PATH,
                   110766:       # but as the default location of the library.
                   110767:       hardcode_minus_L=yes
                   110768:       export_dynamic_flag_spec='${wl}-E'
                   110769:       ;;
                   110770: 
                   110771:     hpux10*)
                   110772:       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
                   110773:        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   110774:       else
                   110775:        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
                   110776:       fi
                   110777:       if test "$with_gnu_ld" = no; then
                   110778:        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   110779:        hardcode_libdir_separator=:
                   110780: 
                   110781:        hardcode_direct=yes
                   110782:        export_dynamic_flag_spec='${wl}-E'
                   110783: 
                   110784:        # hardcode_minus_L: Not really in the search PATH,
                   110785:        # but as the default location of the library.
                   110786:        hardcode_minus_L=yes
                   110787:       fi
                   110788:       ;;
                   110789: 
                   110790:     hpux11*)
                   110791:       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
                   110792:        case $host_cpu in
                   110793:        hppa*64*)
                   110794:          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   110795:          ;;
                   110796:        ia64*)
                   110797:          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
                   110798:          ;;
                   110799:        *)
                   110800:          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   110801:          ;;
                   110802:        esac
                   110803:       else
                   110804:        case $host_cpu in
                   110805:        hppa*64*)
                   110806:          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   110807:          ;;
                   110808:        ia64*)
                   110809:          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
                   110810:          ;;
                   110811:        *)
                   110812:          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   110813:          ;;
                   110814:        esac
                   110815:       fi
                   110816:       if test "$with_gnu_ld" = no; then
                   110817:        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   110818:        hardcode_libdir_separator=:
                   110819: 
                   110820:        case $host_cpu in
                   110821:        hppa*64*|ia64*)
                   110822:          hardcode_libdir_flag_spec_ld='+b $libdir'
                   110823:          hardcode_direct=no
                   110824:          hardcode_shlibpath_var=no
                   110825:          ;;
                   110826:        *)
                   110827:          hardcode_direct=yes
                   110828:          export_dynamic_flag_spec='${wl}-E'
                   110829: 
                   110830:          # hardcode_minus_L: Not really in the search PATH,
                   110831:          # but as the default location of the library.
                   110832:          hardcode_minus_L=yes
                   110833:          ;;
                   110834:        esac
                   110835:       fi
                   110836:       ;;
                   110837: 
                   110838:     irix5* | irix6* | nonstopux*)
                   110839:       if test "$GCC" = yes; then
                   110840:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
                   110841:       else
                   110842:        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
                   110843:        hardcode_libdir_flag_spec_ld='-rpath $libdir'
                   110844:       fi
                   110845:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   110846:       hardcode_libdir_separator=:
                   110847:       link_all_deplibs=yes
                   110848:       ;;
                   110849: 
                   110850:     netbsd*)
                   110851:       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   110852:        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
                   110853:       else
                   110854:        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
                   110855:       fi
                   110856:       hardcode_libdir_flag_spec='-R$libdir'
                   110857:       hardcode_direct=yes
                   110858:       hardcode_shlibpath_var=no
                   110859:       ;;
                   110860: 
                   110861:     newsos6)
                   110862:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   110863:       hardcode_direct=yes
                   110864:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   110865:       hardcode_libdir_separator=:
                   110866:       hardcode_shlibpath_var=no
                   110867:       ;;
                   110868: 
                   110869:     openbsd*)
                   110870:       if test -f /usr/libexec/ld.so; then
                   110871:        hardcode_direct=yes
                   110872:        hardcode_shlibpath_var=no
                   110873:        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   110874:          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   110875:          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
                   110876:          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   110877:          export_dynamic_flag_spec='${wl}-E'
                   110878:        else
                   110879:          case $host_os in
                   110880:           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
                   110881:             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   110882:             hardcode_libdir_flag_spec='-R$libdir'
                   110883:             ;;
                   110884:           *)
                   110885:             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   110886:             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   110887:             ;;
                   110888:          esac
                   110889:         fi
                   110890:       else
                   110891:        ld_shlibs=no
                   110892:       fi
                   110893:       ;;
                   110894: 
                   110895:     os2*)
                   110896:       hardcode_libdir_flag_spec='-L$libdir'
                   110897:       hardcode_minus_L=yes
                   110898:       allow_undefined_flag=unsupported
                   110899:       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
                   110900:       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
                   110901:       ;;
                   110902: 
                   110903:     osf3*)
                   110904:       if test "$GCC" = yes; then
                   110905:        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
                   110906:        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
                   110907:       else
                   110908:        allow_undefined_flag=' -expect_unresolved \*'
                   110909:        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
                   110910:       fi
                   110911:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   110912:       hardcode_libdir_separator=:
                   110913:       ;;
                   110914: 
                   110915:     osf4* | osf5*)     # as osf3* with the addition of -msym flag
                   110916:       if test "$GCC" = yes; then
                   110917:        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
                   110918:        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
                   110919:        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   110920:       else
                   110921:        allow_undefined_flag=' -expect_unresolved \*'
                   110922:        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
                   110923:        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
                   110924:        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
                   110925: 
                   110926:        # Both c and cxx compiler support -rpath directly
                   110927:        hardcode_libdir_flag_spec='-rpath $libdir'
                   110928:       fi
                   110929:       hardcode_libdir_separator=:
                   110930:       ;;
                   110931: 
                   110932:     solaris*)
                   110933:       no_undefined_flag=' -z text'
                   110934:       if test "$GCC" = yes; then
                   110935:        wlarc='${wl}'
                   110936:        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   110937:        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                   110938:          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
                   110939:       else
                   110940:        wlarc=''
                   110941:        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   110942:        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                   110943:        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
                   110944:       fi
                   110945:       hardcode_libdir_flag_spec='-R$libdir'
                   110946:       hardcode_shlibpath_var=no
                   110947:       case $host_os in
                   110948:       solaris2.[0-5] | solaris2.[0-5].*) ;;
                   110949:       *)
                   110950:        # The compiler driver will combine and reorder linker options,
                   110951:        # but understands `-z linker_flag'.  GCC discards it without `$wl',
                   110952:        # but is careful enough not to reorder.
                   110953:        # Supported since Solaris 2.6 (maybe 2.5.1?)
                   110954:        if test "$GCC" = yes; then
                   110955:          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
                   110956:        else
                   110957:          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
                   110958:        fi
                   110959:        ;;
                   110960:       esac
                   110961:       link_all_deplibs=yes
                   110962:       ;;
                   110963: 
                   110964:     sunos4*)
                   110965:       if test "x$host_vendor" = xsequent; then
                   110966:        # Use $CC to link under sequent, because it throws in some extra .o
                   110967:        # files that make .init and .fini sections work.
                   110968:        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
                   110969:       else
                   110970:        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
                   110971:       fi
                   110972:       hardcode_libdir_flag_spec='-L$libdir'
                   110973:       hardcode_direct=yes
                   110974:       hardcode_minus_L=yes
                   110975:       hardcode_shlibpath_var=no
                   110976:       ;;
                   110977: 
                   110978:     sysv4)
                   110979:       case $host_vendor in
                   110980:        sni)
                   110981:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   110982:          hardcode_direct=yes # is this really true???
                   110983:        ;;
                   110984:        siemens)
                   110985:          ## LD is ld it makes a PLAMLIB
                   110986:          ## CC just makes a GrossModule.
                   110987:          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
                   110988:          reload_cmds='$CC -r -o $output$reload_objs'
                   110989:          hardcode_direct=no
                   110990:         ;;
                   110991:        motorola)
                   110992:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   110993:          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
                   110994:        ;;
                   110995:       esac
                   110996:       runpath_var='LD_RUN_PATH'
                   110997:       hardcode_shlibpath_var=no
                   110998:       ;;
                   110999: 
                   111000:     sysv4.3*)
                   111001:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   111002:       hardcode_shlibpath_var=no
                   111003:       export_dynamic_flag_spec='-Bexport'
                   111004:       ;;
                   111005: 
                   111006:     sysv4*MP*)
                   111007:       if test -d /usr/nec; then
                   111008:        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   111009:        hardcode_shlibpath_var=no
                   111010:        runpath_var=LD_RUN_PATH
                   111011:        hardcode_runpath_var=yes
                   111012:        ld_shlibs=yes
                   111013:       fi
                   111014:       ;;
                   111015: 
                   111016:     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
                   111017:       no_undefined_flag='${wl}-z,text'
                   111018:       archive_cmds_need_lc=no
                   111019:       hardcode_shlibpath_var=no
                   111020:       runpath_var='LD_RUN_PATH'
                   111021: 
                   111022:       if test "$GCC" = yes; then
                   111023:        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   111024:        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   111025:       else
                   111026:        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   111027:        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   111028:       fi
                   111029:       ;;
                   111030: 
                   111031:     sysv5* | sco3.2v5* | sco5v6*)
                   111032:       # Note: We can NOT use -z defs as we might desire, because we do not
                   111033:       # link with -lc, and that would cause any symbols used from libc to
                   111034:       # always be unresolved, which means just about no library would
                   111035:       # ever link correctly.  If we're not using GNU ld we use -z text
                   111036:       # though, which does catch some bad symbols but isn't as heavy-handed
                   111037:       # as -z defs.
                   111038:       no_undefined_flag='${wl}-z,text'
                   111039:       allow_undefined_flag='${wl}-z,nodefs'
                   111040:       archive_cmds_need_lc=no
                   111041:       hardcode_shlibpath_var=no
                   111042:       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
                   111043:       hardcode_libdir_separator=':'
                   111044:       link_all_deplibs=yes
                   111045:       export_dynamic_flag_spec='${wl}-Bexport'
                   111046:       runpath_var='LD_RUN_PATH'
                   111047: 
                   111048:       if test "$GCC" = yes; then
                   111049:        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   111050:        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   111051:       else
                   111052:        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   111053:        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   111054:       fi
                   111055:       ;;
                   111056: 
                   111057:     uts4*)
                   111058:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   111059:       hardcode_libdir_flag_spec='-L$libdir'
                   111060:       hardcode_shlibpath_var=no
                   111061:       ;;
                   111062: 
                   111063:     *)
                   111064:       ld_shlibs=no
                   111065:       ;;
                   111066:     esac
                   111067:   fi
                   111068: 
                   111069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
                   111070: $as_echo "$ld_shlibs" >&6; }
                   111071: test "$ld_shlibs" = no && can_build_shared=no
                   111072: 
                   111073: #
                   111074: # Do we need to explicitly link libc?
                   111075: #
                   111076: case "x$archive_cmds_need_lc" in
                   111077: x|xyes)
                   111078:   # Assume -lc should be added
                   111079:   archive_cmds_need_lc=yes
                   111080: 
                   111081:   if test "$enable_shared" = yes && test "$GCC" = yes; then
                   111082:     case $archive_cmds in
                   111083:     *'~'*)
                   111084:       # FIXME: we may have to deal with multi-command sequences.
                   111085:       ;;
                   111086:     '$CC '*)
                   111087:       # Test whether the compiler implicitly links with -lc since on some
                   111088:       # systems, -lgcc has to come before -lc. If gcc already passes -lc
                   111089:       # to ld, don't add -lc before -lgcc.
                   111090:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
                   111091: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
                   111092:       $rm conftest*
                   111093:       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   111094: 
                   111095:       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   111096:   (eval $ac_compile) 2>&5
                   111097:   ac_status=$?
                   111098:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   111099:   test $ac_status = 0; } 2>conftest.err; then
                   111100:         soname=conftest
                   111101:         lib=conftest
                   111102:         libobjs=conftest.$ac_objext
                   111103:         deplibs=
                   111104:         wl=$lt_prog_compiler_wl
                   111105:        pic_flag=$lt_prog_compiler_pic
                   111106:         compiler_flags=-v
                   111107:         linker_flags=-v
                   111108:         verstring=
                   111109:         output_objdir=.
                   111110:         libname=conftest
                   111111:         lt_save_allow_undefined_flag=$allow_undefined_flag
                   111112:         allow_undefined_flag=
                   111113:         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
                   111114:   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
                   111115:   ac_status=$?
                   111116:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   111117:   test $ac_status = 0; }
                   111118:         then
                   111119:          archive_cmds_need_lc=no
                   111120:         else
                   111121:          archive_cmds_need_lc=yes
                   111122:         fi
                   111123:         allow_undefined_flag=$lt_save_allow_undefined_flag
                   111124:       else
                   111125:         cat conftest.err 1>&5
                   111126:       fi
                   111127:       $rm conftest*
                   111128:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
                   111129: $as_echo "$archive_cmds_need_lc" >&6; }
                   111130:       ;;
                   111131:     esac
                   111132:   fi
                   111133:   ;;
                   111134: esac
                   111135: 
                   111136: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
                   111137: $as_echo_n "checking dynamic linker characteristics... " >&6; }
                   111138: library_names_spec=
                   111139: libname_spec='lib$name'
                   111140: soname_spec=
                   111141: shrext_cmds=".so"
                   111142: postinstall_cmds=
                   111143: postuninstall_cmds=
                   111144: finish_cmds=
                   111145: finish_eval=
                   111146: shlibpath_var=
                   111147: shlibpath_overrides_runpath=unknown
                   111148: version_type=none
                   111149: dynamic_linker="$host_os ld.so"
                   111150: sys_lib_dlsearch_path_spec="/lib /usr/lib"
                   111151: 
                   111152: if test "$GCC" = yes; then
                   111153:   case $host_os in
                   111154:     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
                   111155:     *) lt_awk_arg="/^libraries:/" ;;
                   111156:   esac
                   111157:   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
                   111158:   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
                   111159:     # if the path contains ";" then we assume it to be the separator
                   111160:     # otherwise default to the standard path separator (i.e. ":") - it is
                   111161:     # assumed that no part of a normal pathname contains ";" but that should
                   111162:     # okay in the real world where ";" in dirpaths is itself problematic.
                   111163:     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
                   111164:   else
                   111165:     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
                   111166:   fi
                   111167:   # Ok, now we have the path, separated by spaces, we can step through it
                   111168:   # and add multilib dir if necessary.
                   111169:   lt_tmp_lt_search_path_spec=
                   111170:   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
                   111171:   for lt_sys_path in $lt_search_path_spec; do
                   111172:     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
                   111173:       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
                   111174:     else
                   111175:       test -d "$lt_sys_path" && \
                   111176:        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
                   111177:     fi
                   111178:   done
                   111179:   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
                   111180: BEGIN {RS=" "; FS="/|\n";} {
                   111181:   lt_foo="";
                   111182:   lt_count=0;
                   111183:   for (lt_i = NF; lt_i > 0; lt_i--) {
                   111184:     if ($lt_i != "" && $lt_i != ".") {
                   111185:       if ($lt_i == "..") {
                   111186:         lt_count++;
                   111187:       } else {
                   111188:         if (lt_count == 0) {
                   111189:           lt_foo="/" $lt_i lt_foo;
                   111190:         } else {
                   111191:           lt_count--;
                   111192:         }
                   111193:       }
                   111194:     }
                   111195:   }
                   111196:   if (lt_foo != "") { lt_freq[lt_foo]++; }
                   111197:   if (lt_freq[lt_foo] == 1) { print lt_foo; }
                   111198: }'`
                   111199:   sys_lib_search_path_spec=`echo $lt_search_path_spec`
                   111200: else
                   111201:   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
                   111202: fi
                   111203: need_lib_prefix=unknown
                   111204: hardcode_into_libs=no
                   111205: 
                   111206: # when you set need_version to no, make sure it does not cause -set_version
                   111207: # flags to be left without arguments
                   111208: need_version=unknown
                   111209: 
                   111210: case $host_os in
                   111211: aix3*)
                   111212:   version_type=linux
                   111213:   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
                   111214:   shlibpath_var=LIBPATH
                   111215: 
                   111216:   # AIX 3 has no versioning support, so we append a major version to the name.
                   111217:   soname_spec='${libname}${release}${shared_ext}$major'
                   111218:   ;;
                   111219: 
                   111220: aix[4-9]*)
                   111221:   version_type=linux
                   111222:   need_lib_prefix=no
                   111223:   need_version=no
                   111224:   hardcode_into_libs=yes
                   111225:   if test "$host_cpu" = ia64; then
                   111226:     # AIX 5 supports IA64
                   111227:     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
                   111228:     shlibpath_var=LD_LIBRARY_PATH
                   111229:   else
                   111230:     # With GCC up to 2.95.x, collect2 would create an import file
                   111231:     # for dependence libraries.  The import file would start with
                   111232:     # the line `#! .'.  This would cause the generated library to
                   111233:     # depend on `.', always an invalid library.  This was fixed in
                   111234:     # development snapshots of GCC prior to 3.0.
                   111235:     case $host_os in
                   111236:       aix4 | aix4.[01] | aix4.[01].*)
                   111237:       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
                   111238:           echo ' yes '
                   111239:           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
                   111240:        :
                   111241:       else
                   111242:        can_build_shared=no
                   111243:       fi
                   111244:       ;;
                   111245:     esac
                   111246:     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
                   111247:     # soname into executable. Probably we can add versioning support to
                   111248:     # collect2, so additional links can be useful in future.
                   111249:     if test "$aix_use_runtimelinking" = yes; then
                   111250:       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
                   111251:       # instead of lib<name>.a to let people know that these are not
                   111252:       # typical AIX shared libraries.
                   111253:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   111254:     else
                   111255:       # We preserve .a as extension for shared libraries through AIX4.2
                   111256:       # and later when we are not doing run time linking.
                   111257:       library_names_spec='${libname}${release}.a $libname.a'
                   111258:       soname_spec='${libname}${release}${shared_ext}$major'
                   111259:     fi
                   111260:     shlibpath_var=LIBPATH
                   111261:   fi
                   111262:   ;;
                   111263: 
                   111264: amigaos*)
                   111265:   library_names_spec='$libname.ixlibrary $libname.a'
                   111266:   # Create ${libname}_ixlibrary.a entries in /sys/libs.
                   111267:   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
                   111268:   ;;
                   111269: 
                   111270: beos*)
                   111271:   library_names_spec='${libname}${shared_ext}'
                   111272:   dynamic_linker="$host_os ld.so"
                   111273:   shlibpath_var=LIBRARY_PATH
                   111274:   ;;
                   111275: 
                   111276: bsdi[45]*)
                   111277:   version_type=linux
                   111278:   need_version=no
                   111279:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   111280:   soname_spec='${libname}${release}${shared_ext}$major'
                   111281:   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
                   111282:   shlibpath_var=LD_LIBRARY_PATH
                   111283:   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
                   111284:   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
                   111285:   # the default ld.so.conf also contains /usr/contrib/lib and
                   111286:   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
                   111287:   # libtool to hard-code these into programs
                   111288:   ;;
                   111289: 
                   111290: cygwin* | mingw* | pw32*)
                   111291:   version_type=windows
                   111292:   shrext_cmds=".dll"
                   111293:   need_version=no
                   111294:   need_lib_prefix=no
                   111295: 
                   111296:   case $GCC,$host_os in
                   111297:   yes,cygwin* | yes,mingw* | yes,pw32*)
                   111298:     library_names_spec='$libname.dll.a'
                   111299:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
                   111300:     postinstall_cmds='base_file=`basename \${file}`~
                   111301:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
                   111302:       dldir=$destdir/`dirname \$dlpath`~
                   111303:       test -d \$dldir || mkdir -p \$dldir~
                   111304:       $install_prog $dir/$dlname \$dldir/$dlname~
                   111305:       chmod a+x \$dldir/$dlname'
                   111306:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
                   111307:       dlpath=$dir/\$dldll~
                   111308:        $rm \$dlpath'
                   111309:     shlibpath_overrides_runpath=yes
                   111310: 
                   111311:     case $host_os in
                   111312:     cygwin*)
                   111313:       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
                   111314:       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   111315:       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
                   111316:       ;;
                   111317:     mingw*)
                   111318:       # MinGW DLLs use traditional 'lib' prefix
                   111319:       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   111320:       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
                   111321:       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
                   111322:         # It is most probably a Windows format PATH printed by
                   111323:         # mingw gcc, but we are running on Cygwin. Gcc prints its search
                   111324:         # path with ; separators, and with drive letters. We can handle the
                   111325:         # drive letters (cygwin fileutils understands them), so leave them,
                   111326:         # especially as we might pass files found there to a mingw objdump,
                   111327:         # which wouldn't understand a cygwinified path. Ahh.
                   111328:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
                   111329:       else
                   111330:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
                   111331:       fi
                   111332:       ;;
                   111333:     pw32*)
                   111334:       # pw32 DLLs use 'pw' prefix rather than 'lib'
                   111335:       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   111336:       ;;
                   111337:     esac
                   111338:     ;;
                   111339: 
                   111340:   *)
                   111341:     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
                   111342:     ;;
                   111343:   esac
                   111344:   dynamic_linker='Win32 ld.exe'
                   111345:   # FIXME: first we should search . and the directory the executable is in
                   111346:   shlibpath_var=PATH
                   111347:   ;;
                   111348: 
                   111349: darwin* | rhapsody*)
                   111350:   dynamic_linker="$host_os dyld"
                   111351:   version_type=darwin
                   111352:   need_lib_prefix=no
                   111353:   need_version=no
                   111354:   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
                   111355:   soname_spec='${libname}${release}${major}$shared_ext'
                   111356:   shlibpath_overrides_runpath=yes
                   111357:   shlibpath_var=DYLD_LIBRARY_PATH
                   111358:   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
                   111359: 
                   111360:   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
                   111361:   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
                   111362:   ;;
                   111363: 
                   111364: dgux*)
                   111365:   version_type=linux
                   111366:   need_lib_prefix=no
                   111367:   need_version=no
                   111368:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
                   111369:   soname_spec='${libname}${release}${shared_ext}$major'
                   111370:   shlibpath_var=LD_LIBRARY_PATH
                   111371:   ;;
                   111372: 
                   111373: freebsd1.*)
                   111374:   dynamic_linker=no
                   111375:   ;;
                   111376: 
                   111377: freebsd* | dragonfly*)
                   111378:   # DragonFly does not have aout.  When/if they implement a new
                   111379:   # versioning mechanism, adjust this.
                   111380:   if test -x /usr/bin/objformat; then
                   111381:     objformat=`/usr/bin/objformat`
                   111382:   else
                   111383:     case $host_os in
                   111384:     freebsd[123].*) objformat=aout ;;
                   111385:     *) objformat=elf ;;
                   111386:     esac
                   111387:   fi
                   111388:   version_type=freebsd-$objformat
                   111389:   case $version_type in
                   111390:     freebsd-elf*)
                   111391:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
                   111392:       need_version=no
                   111393:       need_lib_prefix=no
                   111394:       ;;
                   111395:     freebsd-*)
                   111396:       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
                   111397:       need_version=yes
                   111398:       ;;
                   111399:   esac
                   111400:   shlibpath_var=LD_LIBRARY_PATH
                   111401:   case $host_os in
                   111402:   freebsd2*)
                   111403:     shlibpath_overrides_runpath=yes
                   111404:     ;;
                   111405:   freebsd3.[01]* | freebsdelf3.[01]*)
                   111406:     shlibpath_overrides_runpath=yes
                   111407:     hardcode_into_libs=yes
                   111408:     ;;
                   111409:   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
                   111410:   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
                   111411:     shlibpath_overrides_runpath=no
                   111412:     hardcode_into_libs=yes
                   111413:     ;;
                   111414:   *) # from 4.6 on, and DragonFly
                   111415:     shlibpath_overrides_runpath=yes
                   111416:     hardcode_into_libs=yes
                   111417:     ;;
                   111418:   esac
                   111419:   ;;
                   111420: 
                   111421: gnu*)
                   111422:   version_type=linux
                   111423:   need_lib_prefix=no
                   111424:   need_version=no
                   111425:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
                   111426:   soname_spec='${libname}${release}${shared_ext}$major'
                   111427:   shlibpath_var=LD_LIBRARY_PATH
                   111428:   hardcode_into_libs=yes
                   111429:   ;;
                   111430: 
                   111431: hpux9* | hpux10* | hpux11*)
                   111432:   # Give a soname corresponding to the major version so that dld.sl refuses to
                   111433:   # link against other versions.
                   111434:   version_type=sunos
                   111435:   need_lib_prefix=no
                   111436:   need_version=no
                   111437:   case $host_cpu in
                   111438:   ia64*)
                   111439:     shrext_cmds='.so'
                   111440:     hardcode_into_libs=yes
                   111441:     dynamic_linker="$host_os dld.so"
                   111442:     shlibpath_var=LD_LIBRARY_PATH
                   111443:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   111444:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   111445:     soname_spec='${libname}${release}${shared_ext}$major'
                   111446:     if test "X$HPUX_IA64_MODE" = X32; then
                   111447:       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
                   111448:     else
                   111449:       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
                   111450:     fi
                   111451:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   111452:     ;;
                   111453:    hppa*64*)
                   111454:      shrext_cmds='.sl'
                   111455:      hardcode_into_libs=yes
                   111456:      dynamic_linker="$host_os dld.sl"
                   111457:      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
                   111458:      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   111459:      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   111460:      soname_spec='${libname}${release}${shared_ext}$major'
                   111461:      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
                   111462:      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   111463:      ;;
                   111464:    *)
                   111465:     shrext_cmds='.sl'
                   111466:     dynamic_linker="$host_os dld.sl"
                   111467:     shlibpath_var=SHLIB_PATH
                   111468:     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
                   111469:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   111470:     soname_spec='${libname}${release}${shared_ext}$major'
                   111471:     ;;
                   111472:   esac
                   111473:   # HP-UX runs *really* slowly unless shared libraries are mode 555.
                   111474:   postinstall_cmds='chmod 555 $lib'
                   111475:   ;;
                   111476: 
                   111477: interix[3-9]*)
                   111478:   version_type=linux
                   111479:   need_lib_prefix=no
                   111480:   need_version=no
                   111481:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   111482:   soname_spec='${libname}${release}${shared_ext}$major'
                   111483:   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
                   111484:   shlibpath_var=LD_LIBRARY_PATH
                   111485:   shlibpath_overrides_runpath=no
                   111486:   hardcode_into_libs=yes
                   111487:   ;;
                   111488: 
                   111489: irix5* | irix6* | nonstopux*)
                   111490:   case $host_os in
                   111491:     nonstopux*) version_type=nonstopux ;;
                   111492:     *)
                   111493:        if test "$lt_cv_prog_gnu_ld" = yes; then
                   111494:                version_type=linux
                   111495:        else
                   111496:                version_type=irix
                   111497:        fi ;;
                   111498:   esac
                   111499:   need_lib_prefix=no
                   111500:   need_version=no
                   111501:   soname_spec='${libname}${release}${shared_ext}$major'
                   111502:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
                   111503:   case $host_os in
                   111504:   irix5* | nonstopux*)
                   111505:     libsuff= shlibsuff=
                   111506:     ;;
                   111507:   *)
                   111508:     case $LD in # libtool.m4 will add one of these switches to LD
                   111509:     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
                   111510:       libsuff= shlibsuff= libmagic=32-bit;;
                   111511:     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
                   111512:       libsuff=32 shlibsuff=N32 libmagic=N32;;
                   111513:     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
                   111514:       libsuff=64 shlibsuff=64 libmagic=64-bit;;
                   111515:     *) libsuff= shlibsuff= libmagic=never-match;;
                   111516:     esac
                   111517:     ;;
                   111518:   esac
                   111519:   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
                   111520:   shlibpath_overrides_runpath=no
                   111521:   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
                   111522:   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
                   111523:   hardcode_into_libs=yes
                   111524:   ;;
                   111525: 
                   111526: # No shared lib support for Linux oldld, aout, or coff.
                   111527: linux*oldld* | linux*aout* | linux*coff*)
                   111528:   dynamic_linker=no
                   111529:   ;;
                   111530: 
                   111531: # This must be Linux ELF.
                   111532: linux* | k*bsd*-gnu)
                   111533:   version_type=linux
                   111534:   need_lib_prefix=no
                   111535:   need_version=no
                   111536:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   111537:   soname_spec='${libname}${release}${shared_ext}$major'
                   111538:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
                   111539:   shlibpath_var=LD_LIBRARY_PATH
                   111540:   shlibpath_overrides_runpath=no
                   111541:   # This implies no fast_install, which is unacceptable.
                   111542:   # Some rework will be needed to allow for fast_install
                   111543:   # before this can be enabled.
                   111544:   hardcode_into_libs=yes
                   111545: 
                   111546:   # Append ld.so.conf contents to the search path
                   111547:   if test -f /etc/ld.so.conf; then
                   111548:     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;/^$/d' | tr '\n' ' '`
                   111549:     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
                   111550:   fi
                   111551: 
                   111552:   # We used to test for /lib/ld.so.1 and disable shared libraries on
                   111553:   # powerpc, because MkLinux only supported shared libraries with the
                   111554:   # GNU dynamic linker.  Since this was broken with cross compilers,
                   111555:   # most powerpc-linux boxes support dynamic linking these days and
                   111556:   # people can always --disable-shared, the test was removed, and we
                   111557:   # assume the GNU/Linux dynamic linker is in use.
                   111558:   dynamic_linker='GNU/Linux ld.so'
                   111559:   ;;
                   111560: 
                   111561: netbsd*)
                   111562:   version_type=sunos
                   111563:   need_lib_prefix=no
                   111564:   need_version=no
                   111565:   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   111566:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   111567:     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   111568:     dynamic_linker='NetBSD (a.out) ld.so'
                   111569:   else
                   111570:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   111571:     soname_spec='${libname}${release}${shared_ext}$major'
                   111572:     dynamic_linker='NetBSD ld.elf_so'
                   111573:   fi
                   111574:   shlibpath_var=LD_LIBRARY_PATH
                   111575:   shlibpath_overrides_runpath=yes
                   111576:   hardcode_into_libs=yes
                   111577:   ;;
                   111578: 
                   111579: newsos6)
                   111580:   version_type=linux
                   111581:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   111582:   shlibpath_var=LD_LIBRARY_PATH
                   111583:   shlibpath_overrides_runpath=yes
                   111584:   ;;
                   111585: 
                   111586: nto-qnx*)
                   111587:   version_type=linux
                   111588:   need_lib_prefix=no
                   111589:   need_version=no
                   111590:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   111591:   soname_spec='${libname}${release}${shared_ext}$major'
                   111592:   shlibpath_var=LD_LIBRARY_PATH
                   111593:   shlibpath_overrides_runpath=yes
                   111594:   ;;
                   111595: 
                   111596: openbsd*)
                   111597:   version_type=sunos
                   111598:   sys_lib_dlsearch_path_spec="/usr/lib"
                   111599:   need_lib_prefix=no
                   111600:   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
                   111601:   case $host_os in
                   111602:     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
                   111603:     *)                         need_version=no  ;;
                   111604:   esac
                   111605:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   111606:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   111607:   shlibpath_var=LD_LIBRARY_PATH
                   111608:   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   111609:     case $host_os in
                   111610:       openbsd2.[89] | openbsd2.[89].*)
                   111611:        shlibpath_overrides_runpath=no
                   111612:        ;;
                   111613:       *)
                   111614:        shlibpath_overrides_runpath=yes
                   111615:        ;;
                   111616:       esac
                   111617:   else
                   111618:     shlibpath_overrides_runpath=yes
                   111619:   fi
                   111620:   ;;
                   111621: 
                   111622: os2*)
                   111623:   libname_spec='$name'
                   111624:   shrext_cmds=".dll"
                   111625:   need_lib_prefix=no
                   111626:   library_names_spec='$libname${shared_ext} $libname.a'
                   111627:   dynamic_linker='OS/2 ld.exe'
                   111628:   shlibpath_var=LIBPATH
                   111629:   ;;
                   111630: 
                   111631: osf3* | osf4* | osf5*)
                   111632:   version_type=osf
                   111633:   need_lib_prefix=no
                   111634:   need_version=no
                   111635:   soname_spec='${libname}${release}${shared_ext}$major'
                   111636:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   111637:   shlibpath_var=LD_LIBRARY_PATH
                   111638:   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
                   111639:   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
                   111640:   ;;
                   111641: 
                   111642: rdos*)
                   111643:   dynamic_linker=no
                   111644:   ;;
                   111645: 
                   111646: solaris*)
                   111647:   version_type=linux
                   111648:   need_lib_prefix=no
                   111649:   need_version=no
                   111650:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   111651:   soname_spec='${libname}${release}${shared_ext}$major'
                   111652:   shlibpath_var=LD_LIBRARY_PATH
                   111653:   shlibpath_overrides_runpath=yes
                   111654:   hardcode_into_libs=yes
                   111655:   # ldd complains unless libraries are executable
                   111656:   postinstall_cmds='chmod +x $lib'
                   111657:   ;;
                   111658: 
                   111659: sunos4*)
                   111660:   version_type=sunos
                   111661:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   111662:   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
                   111663:   shlibpath_var=LD_LIBRARY_PATH
                   111664:   shlibpath_overrides_runpath=yes
                   111665:   if test "$with_gnu_ld" = yes; then
                   111666:     need_lib_prefix=no
                   111667:   fi
                   111668:   need_version=yes
                   111669:   ;;
                   111670: 
                   111671: sysv4 | sysv4.3*)
                   111672:   version_type=linux
                   111673:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   111674:   soname_spec='${libname}${release}${shared_ext}$major'
                   111675:   shlibpath_var=LD_LIBRARY_PATH
                   111676:   case $host_vendor in
                   111677:     sni)
                   111678:       shlibpath_overrides_runpath=no
                   111679:       need_lib_prefix=no
                   111680:       export_dynamic_flag_spec='${wl}-Blargedynsym'
                   111681:       runpath_var=LD_RUN_PATH
                   111682:       ;;
                   111683:     siemens)
                   111684:       need_lib_prefix=no
                   111685:       ;;
                   111686:     motorola)
                   111687:       need_lib_prefix=no
                   111688:       need_version=no
                   111689:       shlibpath_overrides_runpath=no
                   111690:       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
                   111691:       ;;
                   111692:   esac
                   111693:   ;;
                   111694: 
                   111695: sysv4*MP*)
                   111696:   if test -d /usr/nec ;then
                   111697:     version_type=linux
                   111698:     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
                   111699:     soname_spec='$libname${shared_ext}.$major'
                   111700:     shlibpath_var=LD_LIBRARY_PATH
                   111701:   fi
                   111702:   ;;
                   111703: 
                   111704: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
                   111705:   version_type=freebsd-elf
                   111706:   need_lib_prefix=no
                   111707:   need_version=no
                   111708:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
                   111709:   soname_spec='${libname}${release}${shared_ext}$major'
                   111710:   shlibpath_var=LD_LIBRARY_PATH
                   111711:   hardcode_into_libs=yes
                   111712:   if test "$with_gnu_ld" = yes; then
                   111713:     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
                   111714:     shlibpath_overrides_runpath=no
                   111715:   else
                   111716:     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
                   111717:     shlibpath_overrides_runpath=yes
                   111718:     case $host_os in
                   111719:       sco3.2v5*)
                   111720:         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
                   111721:        ;;
                   111722:     esac
                   111723:   fi
                   111724:   sys_lib_dlsearch_path_spec='/usr/lib'
                   111725:   ;;
                   111726: 
                   111727: uts4*)
                   111728:   version_type=linux
                   111729:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   111730:   soname_spec='${libname}${release}${shared_ext}$major'
                   111731:   shlibpath_var=LD_LIBRARY_PATH
                   111732:   ;;
                   111733: 
                   111734: *)
                   111735:   dynamic_linker=no
                   111736:   ;;
                   111737: esac
                   111738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
                   111739: $as_echo "$dynamic_linker" >&6; }
                   111740: test "$dynamic_linker" = no && can_build_shared=no
                   111741: 
                   111742: if ${lt_cv_sys_lib_search_path_spec+:} false; then :
                   111743:   $as_echo_n "(cached) " >&6
                   111744: else
                   111745:   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
                   111746: fi
                   111747: 
                   111748: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
                   111749: if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
                   111750:   $as_echo_n "(cached) " >&6
                   111751: else
                   111752:   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
                   111753: fi
                   111754: 
                   111755: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
                   111756: 
                   111757: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
                   111758: if test "$GCC" = yes; then
                   111759:   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
                   111760: fi
                   111761: 
                   111762: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
                   111763: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
                   111764: hardcode_action=
                   111765: if test -n "$hardcode_libdir_flag_spec" || \
                   111766:    test -n "$runpath_var" || \
                   111767:    test "X$hardcode_automatic" = "Xyes" ; then
                   111768: 
                   111769:   # We can hardcode non-existant directories.
                   111770:   if test "$hardcode_direct" != no &&
                   111771:      # If the only mechanism to avoid hardcoding is shlibpath_var, we
                   111772:      # have to relink, otherwise we might link with an installed library
                   111773:      # when we should be linking with a yet-to-be-installed one
                   111774:      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
                   111775:      test "$hardcode_minus_L" != no; then
                   111776:     # Linking always hardcodes the temporary library directory.
                   111777:     hardcode_action=relink
                   111778:   else
                   111779:     # We can link without hardcoding, and we can hardcode nonexisting dirs.
                   111780:     hardcode_action=immediate
                   111781:   fi
                   111782: else
                   111783:   # We cannot hardcode anything, or else we can only hardcode existing
                   111784:   # directories.
                   111785:   hardcode_action=unsupported
                   111786: fi
                   111787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
                   111788: $as_echo "$hardcode_action" >&6; }
                   111789: 
                   111790: if test "$hardcode_action" = relink; then
                   111791:   # Fast installation is not supported
                   111792:   enable_fast_install=no
                   111793: elif test "$shlibpath_overrides_runpath" = yes ||
                   111794:      test "$enable_shared" = no; then
                   111795:   # Fast installation is not necessary
                   111796:   enable_fast_install=needless
                   111797: fi
                   111798: 
                   111799: striplib=
                   111800: old_striplib=
                   111801: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
                   111802: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
                   111803: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
                   111804:   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
                   111805:   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
                   111806:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   111807: $as_echo "yes" >&6; }
                   111808: else
                   111809: # FIXME - insert some real tests, host_os isn't really good enough
                   111810:   case $host_os in
                   111811:    darwin*)
                   111812:        if test -n "$STRIP" ; then
                   111813:          striplib="$STRIP -x"
                   111814:          old_striplib="$STRIP -S"
                   111815:          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   111816: $as_echo "yes" >&6; }
                   111817:        else
                   111818:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   111819: $as_echo "no" >&6; }
                   111820: fi
                   111821:        ;;
                   111822:    *)
                   111823:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   111824: $as_echo "no" >&6; }
                   111825:     ;;
                   111826:   esac
                   111827: fi
                   111828: 
                   111829: if test "x$enable_dlopen" != xyes; then
                   111830:   enable_dlopen=unknown
                   111831:   enable_dlopen_self=unknown
                   111832:   enable_dlopen_self_static=unknown
                   111833: else
                   111834:   lt_cv_dlopen=no
                   111835:   lt_cv_dlopen_libs=
                   111836: 
                   111837:   case $host_os in
                   111838:   beos*)
                   111839:     lt_cv_dlopen="load_add_on"
                   111840:     lt_cv_dlopen_libs=
                   111841:     lt_cv_dlopen_self=yes
                   111842:     ;;
                   111843: 
                   111844:   mingw* | pw32*)
                   111845:     lt_cv_dlopen="LoadLibrary"
                   111846:     lt_cv_dlopen_libs=
                   111847:    ;;
                   111848: 
                   111849:   cygwin*)
                   111850:     lt_cv_dlopen="dlopen"
                   111851:     lt_cv_dlopen_libs=
                   111852:    ;;
                   111853: 
                   111854:   darwin*)
                   111855:   # if libdl is installed we need to link against it
                   111856:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   111857: $as_echo_n "checking for dlopen in -ldl... " >&6; }
                   111858: if ${ac_cv_lib_dl_dlopen+:} false; then :
                   111859:   $as_echo_n "(cached) " >&6
                   111860: else
                   111861:   ac_check_lib_save_LIBS=$LIBS
                   111862: LIBS="-ldl  $LIBS"
                   111863: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   111864: /* end confdefs.h.  */
                   111865: 
                   111866: /* Override any GCC internal prototype to avoid an error.
                   111867:    Use char because int might match the return type of a GCC
                   111868:    builtin and then its argument prototype would still apply.  */
                   111869: #ifdef __cplusplus
                   111870: extern "C"
                   111871: #endif
                   111872: char dlopen ();
                   111873: int
                   111874: main ()
                   111875: {
                   111876: return dlopen ();
                   111877:   ;
                   111878:   return 0;
                   111879: }
                   111880: _ACEOF
                   111881: if ac_fn_c_try_link "$LINENO"; then :
                   111882:   ac_cv_lib_dl_dlopen=yes
                   111883: else
                   111884:   ac_cv_lib_dl_dlopen=no
                   111885: fi
                   111886: rm -f core conftest.err conftest.$ac_objext \
                   111887:     conftest$ac_exeext conftest.$ac_ext
                   111888: LIBS=$ac_check_lib_save_LIBS
                   111889: fi
                   111890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   111891: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
                   111892: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
                   111893:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
                   111894: else
                   111895: 
                   111896:     lt_cv_dlopen="dyld"
                   111897:     lt_cv_dlopen_libs=
                   111898:     lt_cv_dlopen_self=yes
                   111899: 
                   111900: fi
                   111901: 
                   111902:    ;;
                   111903: 
                   111904:   *)
                   111905:     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
                   111906: if test "x$ac_cv_func_shl_load" = xyes; then :
                   111907:   lt_cv_dlopen="shl_load"
                   111908: else
                   111909:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
                   111910: $as_echo_n "checking for shl_load in -ldld... " >&6; }
                   111911: if ${ac_cv_lib_dld_shl_load+:} false; then :
                   111912:   $as_echo_n "(cached) " >&6
                   111913: else
                   111914:   ac_check_lib_save_LIBS=$LIBS
                   111915: LIBS="-ldld  $LIBS"
                   111916: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   111917: /* end confdefs.h.  */
                   111918: 
                   111919: /* Override any GCC internal prototype to avoid an error.
                   111920:    Use char because int might match the return type of a GCC
                   111921:    builtin and then its argument prototype would still apply.  */
                   111922: #ifdef __cplusplus
                   111923: extern "C"
                   111924: #endif
                   111925: char shl_load ();
                   111926: int
                   111927: main ()
                   111928: {
                   111929: return shl_load ();
                   111930:   ;
                   111931:   return 0;
                   111932: }
                   111933: _ACEOF
                   111934: if ac_fn_c_try_link "$LINENO"; then :
                   111935:   ac_cv_lib_dld_shl_load=yes
                   111936: else
                   111937:   ac_cv_lib_dld_shl_load=no
                   111938: fi
                   111939: rm -f core conftest.err conftest.$ac_objext \
                   111940:     conftest$ac_exeext conftest.$ac_ext
                   111941: LIBS=$ac_check_lib_save_LIBS
                   111942: fi
                   111943: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
                   111944: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
                   111945: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
                   111946:   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
                   111947: else
                   111948:   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
                   111949: if test "x$ac_cv_func_dlopen" = xyes; then :
                   111950:   lt_cv_dlopen="dlopen"
                   111951: else
                   111952:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   111953: $as_echo_n "checking for dlopen in -ldl... " >&6; }
                   111954: if ${ac_cv_lib_dl_dlopen+:} false; then :
                   111955:   $as_echo_n "(cached) " >&6
                   111956: else
                   111957:   ac_check_lib_save_LIBS=$LIBS
                   111958: LIBS="-ldl  $LIBS"
                   111959: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   111960: /* end confdefs.h.  */
                   111961: 
                   111962: /* Override any GCC internal prototype to avoid an error.
                   111963:    Use char because int might match the return type of a GCC
                   111964:    builtin and then its argument prototype would still apply.  */
                   111965: #ifdef __cplusplus
                   111966: extern "C"
                   111967: #endif
                   111968: char dlopen ();
                   111969: int
                   111970: main ()
                   111971: {
                   111972: return dlopen ();
                   111973:   ;
                   111974:   return 0;
                   111975: }
                   111976: _ACEOF
                   111977: if ac_fn_c_try_link "$LINENO"; then :
                   111978:   ac_cv_lib_dl_dlopen=yes
                   111979: else
                   111980:   ac_cv_lib_dl_dlopen=no
                   111981: fi
                   111982: rm -f core conftest.err conftest.$ac_objext \
                   111983:     conftest$ac_exeext conftest.$ac_ext
                   111984: LIBS=$ac_check_lib_save_LIBS
                   111985: fi
                   111986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   111987: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
                   111988: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
                   111989:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
                   111990: else
                   111991:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
                   111992: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
                   111993: if ${ac_cv_lib_svld_dlopen+:} false; then :
                   111994:   $as_echo_n "(cached) " >&6
                   111995: else
                   111996:   ac_check_lib_save_LIBS=$LIBS
                   111997: LIBS="-lsvld  $LIBS"
                   111998: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   111999: /* end confdefs.h.  */
                   112000: 
                   112001: /* Override any GCC internal prototype to avoid an error.
                   112002:    Use char because int might match the return type of a GCC
                   112003:    builtin and then its argument prototype would still apply.  */
                   112004: #ifdef __cplusplus
                   112005: extern "C"
                   112006: #endif
                   112007: char dlopen ();
                   112008: int
                   112009: main ()
                   112010: {
                   112011: return dlopen ();
                   112012:   ;
                   112013:   return 0;
                   112014: }
                   112015: _ACEOF
                   112016: if ac_fn_c_try_link "$LINENO"; then :
                   112017:   ac_cv_lib_svld_dlopen=yes
                   112018: else
                   112019:   ac_cv_lib_svld_dlopen=no
                   112020: fi
                   112021: rm -f core conftest.err conftest.$ac_objext \
                   112022:     conftest$ac_exeext conftest.$ac_ext
                   112023: LIBS=$ac_check_lib_save_LIBS
                   112024: fi
                   112025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
                   112026: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
                   112027: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
                   112028:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
                   112029: else
                   112030:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
                   112031: $as_echo_n "checking for dld_link in -ldld... " >&6; }
                   112032: if ${ac_cv_lib_dld_dld_link+:} false; then :
                   112033:   $as_echo_n "(cached) " >&6
                   112034: else
                   112035:   ac_check_lib_save_LIBS=$LIBS
                   112036: LIBS="-ldld  $LIBS"
                   112037: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   112038: /* end confdefs.h.  */
                   112039: 
                   112040: /* Override any GCC internal prototype to avoid an error.
                   112041:    Use char because int might match the return type of a GCC
                   112042:    builtin and then its argument prototype would still apply.  */
                   112043: #ifdef __cplusplus
                   112044: extern "C"
                   112045: #endif
                   112046: char dld_link ();
                   112047: int
                   112048: main ()
                   112049: {
                   112050: return dld_link ();
                   112051:   ;
                   112052:   return 0;
                   112053: }
                   112054: _ACEOF
                   112055: if ac_fn_c_try_link "$LINENO"; then :
                   112056:   ac_cv_lib_dld_dld_link=yes
                   112057: else
                   112058:   ac_cv_lib_dld_dld_link=no
                   112059: fi
                   112060: rm -f core conftest.err conftest.$ac_objext \
                   112061:     conftest$ac_exeext conftest.$ac_ext
                   112062: LIBS=$ac_check_lib_save_LIBS
                   112063: fi
                   112064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
                   112065: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
                   112066: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
                   112067:   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
                   112068: fi
                   112069: 
                   112070: 
                   112071: fi
                   112072: 
                   112073: 
                   112074: fi
                   112075: 
                   112076: 
                   112077: fi
                   112078: 
                   112079: 
                   112080: fi
                   112081: 
                   112082: 
                   112083: fi
                   112084: 
                   112085:     ;;
                   112086:   esac
                   112087: 
                   112088:   if test "x$lt_cv_dlopen" != xno; then
                   112089:     enable_dlopen=yes
                   112090:   else
                   112091:     enable_dlopen=no
                   112092:   fi
                   112093: 
                   112094:   case $lt_cv_dlopen in
                   112095:   dlopen)
                   112096:     save_CPPFLAGS="$CPPFLAGS"
                   112097:     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
                   112098: 
                   112099:     save_LDFLAGS="$LDFLAGS"
                   112100:     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
                   112101: 
                   112102:     save_LIBS="$LIBS"
                   112103:     LIBS="$lt_cv_dlopen_libs $LIBS"
                   112104: 
                   112105:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
                   112106: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
                   112107: if ${lt_cv_dlopen_self+:} false; then :
                   112108:   $as_echo_n "(cached) " >&6
                   112109: else
                   112110:          if test "$cross_compiling" = yes; then :
                   112111:   lt_cv_dlopen_self=cross
                   112112: else
                   112113:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   112114:   lt_status=$lt_dlunknown
                   112115:   cat > conftest.$ac_ext <<EOF
1.1.1.2 ! misho    112116: #line 112116 "configure"
1.1       misho    112117: #include "confdefs.h"
                   112118: 
                   112119: #if HAVE_DLFCN_H
                   112120: #include <dlfcn.h>
                   112121: #endif
                   112122: 
                   112123: #include <stdio.h>
                   112124: 
                   112125: #ifdef RTLD_GLOBAL
                   112126: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   112127: #else
                   112128: #  ifdef DL_GLOBAL
                   112129: #    define LT_DLGLOBAL                DL_GLOBAL
                   112130: #  else
                   112131: #    define LT_DLGLOBAL                0
                   112132: #  endif
                   112133: #endif
                   112134: 
                   112135: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   112136:    find out it does not work in some platform. */
                   112137: #ifndef LT_DLLAZY_OR_NOW
                   112138: #  ifdef RTLD_LAZY
                   112139: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   112140: #  else
                   112141: #    ifdef DL_LAZY
                   112142: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   112143: #    else
                   112144: #      ifdef RTLD_NOW
                   112145: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   112146: #      else
                   112147: #        ifdef DL_NOW
                   112148: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   112149: #        else
                   112150: #          define LT_DLLAZY_OR_NOW     0
                   112151: #        endif
                   112152: #      endif
                   112153: #    endif
                   112154: #  endif
                   112155: #endif
                   112156: 
                   112157: #ifdef __cplusplus
                   112158: extern "C" void exit (int);
                   112159: #endif
                   112160: 
                   112161: void fnord() { int i=42;}
                   112162: int main ()
                   112163: {
                   112164:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   112165:   int status = $lt_dlunknown;
                   112166: 
                   112167:   if (self)
                   112168:     {
                   112169:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   112170:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
                   112171:       /* dlclose (self); */
                   112172:     }
                   112173:   else
                   112174:     puts (dlerror ());
                   112175: 
                   112176:     exit (status);
                   112177: }
                   112178: EOF
                   112179:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
                   112180:   (eval $ac_link) 2>&5
                   112181:   ac_status=$?
                   112182:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   112183:   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
                   112184:     (./conftest; exit; ) >&5 2>/dev/null
                   112185:     lt_status=$?
                   112186:     case x$lt_status in
                   112187:       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
                   112188:       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
                   112189:       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
                   112190:     esac
                   112191:   else :
                   112192:     # compilation failed
                   112193:     lt_cv_dlopen_self=no
                   112194:   fi
                   112195: fi
                   112196: rm -fr conftest*
                   112197: 
                   112198: 
                   112199: fi
                   112200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
                   112201: $as_echo "$lt_cv_dlopen_self" >&6; }
                   112202: 
                   112203:     if test "x$lt_cv_dlopen_self" = xyes; then
                   112204:       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
                   112205:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
                   112206: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
                   112207: if ${lt_cv_dlopen_self_static+:} false; then :
                   112208:   $as_echo_n "(cached) " >&6
                   112209: else
                   112210:          if test "$cross_compiling" = yes; then :
                   112211:   lt_cv_dlopen_self_static=cross
                   112212: else
                   112213:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   112214:   lt_status=$lt_dlunknown
                   112215:   cat > conftest.$ac_ext <<EOF
1.1.1.2 ! misho    112216: #line 112216 "configure"
1.1       misho    112217: #include "confdefs.h"
                   112218: 
                   112219: #if HAVE_DLFCN_H
                   112220: #include <dlfcn.h>
                   112221: #endif
                   112222: 
                   112223: #include <stdio.h>
                   112224: 
                   112225: #ifdef RTLD_GLOBAL
                   112226: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   112227: #else
                   112228: #  ifdef DL_GLOBAL
                   112229: #    define LT_DLGLOBAL                DL_GLOBAL
                   112230: #  else
                   112231: #    define LT_DLGLOBAL                0
                   112232: #  endif
                   112233: #endif
                   112234: 
                   112235: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   112236:    find out it does not work in some platform. */
                   112237: #ifndef LT_DLLAZY_OR_NOW
                   112238: #  ifdef RTLD_LAZY
                   112239: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   112240: #  else
                   112241: #    ifdef DL_LAZY
                   112242: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   112243: #    else
                   112244: #      ifdef RTLD_NOW
                   112245: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   112246: #      else
                   112247: #        ifdef DL_NOW
                   112248: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   112249: #        else
                   112250: #          define LT_DLLAZY_OR_NOW     0
                   112251: #        endif
                   112252: #      endif
                   112253: #    endif
                   112254: #  endif
                   112255: #endif
                   112256: 
                   112257: #ifdef __cplusplus
                   112258: extern "C" void exit (int);
                   112259: #endif
                   112260: 
                   112261: void fnord() { int i=42;}
                   112262: int main ()
                   112263: {
                   112264:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   112265:   int status = $lt_dlunknown;
                   112266: 
                   112267:   if (self)
                   112268:     {
                   112269:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   112270:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
                   112271:       /* dlclose (self); */
                   112272:     }
                   112273:   else
                   112274:     puts (dlerror ());
                   112275: 
                   112276:     exit (status);
                   112277: }
                   112278: EOF
                   112279:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
                   112280:   (eval $ac_link) 2>&5
                   112281:   ac_status=$?
                   112282:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   112283:   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
                   112284:     (./conftest; exit; ) >&5 2>/dev/null
                   112285:     lt_status=$?
                   112286:     case x$lt_status in
                   112287:       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
                   112288:       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
                   112289:       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
                   112290:     esac
                   112291:   else :
                   112292:     # compilation failed
                   112293:     lt_cv_dlopen_self_static=no
                   112294:   fi
                   112295: fi
                   112296: rm -fr conftest*
                   112297: 
                   112298: 
                   112299: fi
                   112300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
                   112301: $as_echo "$lt_cv_dlopen_self_static" >&6; }
                   112302:     fi
                   112303: 
                   112304:     CPPFLAGS="$save_CPPFLAGS"
                   112305:     LDFLAGS="$save_LDFLAGS"
                   112306:     LIBS="$save_LIBS"
                   112307:     ;;
                   112308:   esac
                   112309: 
                   112310:   case $lt_cv_dlopen_self in
                   112311:   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
                   112312:   *) enable_dlopen_self=unknown ;;
                   112313:   esac
                   112314: 
                   112315:   case $lt_cv_dlopen_self_static in
                   112316:   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
                   112317:   *) enable_dlopen_self_static=unknown ;;
                   112318:   esac
                   112319: fi
                   112320: 
                   112321: 
                   112322: # Report which library types will actually be built
                   112323: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
                   112324: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
                   112325: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
                   112326: $as_echo "$can_build_shared" >&6; }
                   112327: 
                   112328: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
                   112329: $as_echo_n "checking whether to build shared libraries... " >&6; }
                   112330: test "$can_build_shared" = "no" && enable_shared=no
                   112331: 
                   112332: # On AIX, shared libraries and static libraries use the same namespace, and
                   112333: # are all built from PIC.
                   112334: case $host_os in
                   112335: aix3*)
                   112336:   test "$enable_shared" = yes && enable_static=no
                   112337:   if test -n "$RANLIB"; then
                   112338:     archive_cmds="$archive_cmds~\$RANLIB \$lib"
                   112339:     postinstall_cmds='$RANLIB $lib'
                   112340:   fi
                   112341:   ;;
                   112342: 
                   112343: aix[4-9]*)
                   112344:   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
                   112345:     test "$enable_shared" = yes && enable_static=no
                   112346:   fi
                   112347:     ;;
                   112348: esac
                   112349: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
                   112350: $as_echo "$enable_shared" >&6; }
                   112351: 
                   112352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
                   112353: $as_echo_n "checking whether to build static libraries... " >&6; }
                   112354: # Make sure either enable_shared or enable_static is yes.
                   112355: test "$enable_shared" = yes || enable_static=yes
                   112356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
                   112357: $as_echo "$enable_static" >&6; }
                   112358: 
                   112359: # The else clause should only fire when bootstrapping the
                   112360: # libtool distribution, otherwise you forgot to ship ltmain.sh
                   112361: # with your package, and you will get complaints that there are
                   112362: # no rules to generate ltmain.sh.
                   112363: if test -f "$ltmain"; then
                   112364:   # See if we are running on zsh, and set the options which allow our commands through
                   112365:   # without removal of \ escapes.
                   112366:   if test -n "${ZSH_VERSION+set}" ; then
                   112367:     setopt NO_GLOB_SUBST
                   112368:   fi
                   112369:   # Now quote all the things that may contain metacharacters while being
                   112370:   # careful not to overquote the AC_SUBSTed values.  We take copies of the
                   112371:   # variables and quote the copies for generation of the libtool script.
                   112372:   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
                   112373:     SED SHELL STRIP \
                   112374:     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
                   112375:     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
                   112376:     deplibs_check_method reload_flag reload_cmds need_locks \
                   112377:     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
                   112378:     lt_cv_sys_global_symbol_to_c_name_address \
                   112379:     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
                   112380:     old_postinstall_cmds old_postuninstall_cmds \
                   112381:     compiler \
                   112382:     CC \
                   112383:     LD \
                   112384:     lt_prog_compiler_wl \
                   112385:     lt_prog_compiler_pic \
                   112386:     lt_prog_compiler_static \
                   112387:     lt_prog_compiler_no_builtin_flag \
                   112388:     export_dynamic_flag_spec \
                   112389:     thread_safe_flag_spec \
                   112390:     whole_archive_flag_spec \
                   112391:     enable_shared_with_static_runtimes \
                   112392:     old_archive_cmds \
                   112393:     old_archive_from_new_cmds \
                   112394:     predep_objects \
                   112395:     postdep_objects \
                   112396:     predeps \
                   112397:     postdeps \
                   112398:     compiler_lib_search_path \
                   112399:     compiler_lib_search_dirs \
                   112400:     archive_cmds \
                   112401:     archive_expsym_cmds \
                   112402:     postinstall_cmds \
                   112403:     postuninstall_cmds \
                   112404:     old_archive_from_expsyms_cmds \
                   112405:     allow_undefined_flag \
                   112406:     no_undefined_flag \
                   112407:     export_symbols_cmds \
                   112408:     hardcode_libdir_flag_spec \
                   112409:     hardcode_libdir_flag_spec_ld \
                   112410:     hardcode_libdir_separator \
                   112411:     hardcode_automatic \
                   112412:     module_cmds \
                   112413:     module_expsym_cmds \
                   112414:     lt_cv_prog_compiler_c_o \
                   112415:     fix_srcfile_path \
                   112416:     exclude_expsyms \
                   112417:     include_expsyms; do
                   112418: 
                   112419:     case $var in
                   112420:     old_archive_cmds | \
                   112421:     old_archive_from_new_cmds | \
                   112422:     archive_cmds | \
                   112423:     archive_expsym_cmds | \
                   112424:     module_cmds | \
                   112425:     module_expsym_cmds | \
                   112426:     old_archive_from_expsyms_cmds | \
                   112427:     export_symbols_cmds | \
                   112428:     extract_expsyms_cmds | reload_cmds | finish_cmds | \
                   112429:     postinstall_cmds | postuninstall_cmds | \
                   112430:     old_postinstall_cmds | old_postuninstall_cmds | \
                   112431:     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
                   112432:       # Double-quote double-evaled strings.
                   112433:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
                   112434:       ;;
                   112435:     *)
                   112436:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
                   112437:       ;;
                   112438:     esac
                   112439:   done
                   112440: 
                   112441:   case $lt_echo in
                   112442:   *'\$0 --fallback-echo"')
                   112443:     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
                   112444:     ;;
                   112445:   esac
                   112446: 
                   112447: cfgfile="${ofile}T"
                   112448:   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
                   112449:   $rm -f "$cfgfile"
                   112450:   { $as_echo "$as_me:${as_lineno-$LINENO}: result:
                   112451: creating $ofile" >&5
                   112452: $as_echo "
                   112453: creating $ofile" >&6; }
                   112454: 
                   112455:   cat <<__EOF__ >> "$cfgfile"
                   112456: #! $SHELL
                   112457: 
                   112458: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
                   112459: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
                   112460: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
                   112461: #
                   112462: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
                   112463: # Free Software Foundation, Inc.
                   112464: #
                   112465: # This file is part of GNU Libtool:
                   112466: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
                   112467: #
                   112468: # This program is free software; you can redistribute it and/or modify
                   112469: # it under the terms of the GNU General Public License as published by
                   112470: # the Free Software Foundation; either version 2 of the License, or
                   112471: # (at your option) any later version.
                   112472: #
                   112473: # This program is distributed in the hope that it will be useful, but
                   112474: # WITHOUT ANY WARRANTY; without even the implied warranty of
                   112475: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
                   112476: # General Public License for more details.
                   112477: #
                   112478: # You should have received a copy of the GNU General Public License
                   112479: # along with this program; if not, write to the Free Software
                   112480: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
                   112481: #
                   112482: # As a special exception to the GNU General Public License, if you
                   112483: # distribute this file as part of a program that contains a
                   112484: # configuration script generated by Autoconf, you may include it under
                   112485: # the same distribution terms that you use for the rest of that program.
                   112486: 
                   112487: # A sed program that does not truncate output.
                   112488: SED=$lt_SED
                   112489: 
                   112490: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
                   112491: Xsed="$SED -e 1s/^X//"
                   112492: 
                   112493: # The HP-UX ksh and POSIX shell print the target directory to stdout
                   112494: # if CDPATH is set.
                   112495: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   112496: 
                   112497: # The names of the tagged configurations supported by this script.
                   112498: available_tags=
                   112499: 
                   112500: # ### BEGIN LIBTOOL CONFIG
                   112501: 
                   112502: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   112503: 
                   112504: # Shell to use when invoking shell scripts.
                   112505: SHELL=$lt_SHELL
                   112506: 
                   112507: # Whether or not to build shared libraries.
                   112508: build_libtool_libs=$enable_shared
                   112509: 
                   112510: # Whether or not to build static libraries.
                   112511: build_old_libs=$enable_static
                   112512: 
                   112513: # Whether or not to add -lc for building shared libraries.
                   112514: build_libtool_need_lc=$archive_cmds_need_lc
                   112515: 
                   112516: # Whether or not to disallow shared libs when runtime libs are static
                   112517: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
                   112518: 
                   112519: # Whether or not to optimize for fast installation.
                   112520: fast_install=$enable_fast_install
                   112521: 
                   112522: # The host system.
                   112523: host_alias=$host_alias
                   112524: host=$host
                   112525: host_os=$host_os
                   112526: 
                   112527: # The build system.
                   112528: build_alias=$build_alias
                   112529: build=$build
                   112530: build_os=$build_os
                   112531: 
                   112532: # An echo program that does not interpret backslashes.
                   112533: echo=$lt_echo
                   112534: 
                   112535: # The archiver.
                   112536: AR=$lt_AR
                   112537: AR_FLAGS=$lt_AR_FLAGS
                   112538: 
                   112539: # A C compiler.
                   112540: LTCC=$lt_LTCC
                   112541: 
                   112542: # LTCC compiler flags.
                   112543: LTCFLAGS=$lt_LTCFLAGS
                   112544: 
                   112545: # A language-specific compiler.
                   112546: CC=$lt_compiler
                   112547: 
                   112548: # Is the compiler the GNU C compiler?
                   112549: with_gcc=$GCC
                   112550: 
                   112551: # An ERE matcher.
                   112552: EGREP=$lt_EGREP
                   112553: 
                   112554: # The linker used to build libraries.
                   112555: LD=$lt_LD
                   112556: 
                   112557: # Whether we need hard or soft links.
                   112558: LN_S=$lt_LN_S
                   112559: 
                   112560: # A BSD-compatible nm program.
                   112561: NM=$lt_NM
                   112562: 
                   112563: # A symbol stripping program
                   112564: STRIP=$lt_STRIP
                   112565: 
                   112566: # Used to examine libraries when file_magic_cmd begins "file"
                   112567: MAGIC_CMD=$MAGIC_CMD
                   112568: 
                   112569: # Used on cygwin: DLL creation program.
                   112570: DLLTOOL="$DLLTOOL"
                   112571: 
                   112572: # Used on cygwin: object dumper.
                   112573: OBJDUMP="$OBJDUMP"
                   112574: 
                   112575: # Used on cygwin: assembler.
                   112576: AS="$AS"
                   112577: 
                   112578: # The name of the directory that contains temporary libtool files.
                   112579: objdir=$objdir
                   112580: 
                   112581: # How to create reloadable object files.
                   112582: reload_flag=$lt_reload_flag
                   112583: reload_cmds=$lt_reload_cmds
                   112584: 
                   112585: # How to pass a linker flag through the compiler.
                   112586: wl=$lt_lt_prog_compiler_wl
                   112587: 
                   112588: # Object file suffix (normally "o").
                   112589: objext="$ac_objext"
                   112590: 
                   112591: # Old archive suffix (normally "a").
                   112592: libext="$libext"
                   112593: 
                   112594: # Shared library suffix (normally ".so").
                   112595: shrext_cmds='$shrext_cmds'
                   112596: 
                   112597: # Executable file suffix (normally "").
                   112598: exeext="$exeext"
                   112599: 
                   112600: # Additional compiler flags for building library objects.
                   112601: pic_flag=$lt_lt_prog_compiler_pic
                   112602: pic_mode=$pic_mode
                   112603: 
                   112604: # What is the maximum length of a command?
                   112605: max_cmd_len=$lt_cv_sys_max_cmd_len
                   112606: 
                   112607: # Does compiler simultaneously support -c and -o options?
                   112608: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
                   112609: 
                   112610: # Must we lock files when doing compilation?
                   112611: need_locks=$lt_need_locks
                   112612: 
                   112613: # Do we need the lib prefix for modules?
                   112614: need_lib_prefix=$need_lib_prefix
                   112615: 
                   112616: # Do we need a version for libraries?
                   112617: need_version=$need_version
                   112618: 
                   112619: # Whether dlopen is supported.
                   112620: dlopen_support=$enable_dlopen
                   112621: 
                   112622: # Whether dlopen of programs is supported.
                   112623: dlopen_self=$enable_dlopen_self
                   112624: 
                   112625: # Whether dlopen of statically linked programs is supported.
                   112626: dlopen_self_static=$enable_dlopen_self_static
                   112627: 
                   112628: # Compiler flag to prevent dynamic linking.
                   112629: link_static_flag=$lt_lt_prog_compiler_static
                   112630: 
                   112631: # Compiler flag to turn off builtin functions.
                   112632: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
                   112633: 
                   112634: # Compiler flag to allow reflexive dlopens.
                   112635: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
                   112636: 
                   112637: # Compiler flag to generate shared objects directly from archives.
                   112638: whole_archive_flag_spec=$lt_whole_archive_flag_spec
                   112639: 
                   112640: # Compiler flag to generate thread-safe objects.
                   112641: thread_safe_flag_spec=$lt_thread_safe_flag_spec
                   112642: 
                   112643: # Library versioning type.
                   112644: version_type=$version_type
                   112645: 
                   112646: # Format of library name prefix.
                   112647: libname_spec=$lt_libname_spec
                   112648: 
                   112649: # List of archive names.  First name is the real one, the rest are links.
                   112650: # The last name is the one that the linker finds with -lNAME.
                   112651: library_names_spec=$lt_library_names_spec
                   112652: 
                   112653: # The coded name of the library, if different from the real name.
                   112654: soname_spec=$lt_soname_spec
                   112655: 
                   112656: # Commands used to build and install an old-style archive.
                   112657: RANLIB=$lt_RANLIB
                   112658: old_archive_cmds=$lt_old_archive_cmds
                   112659: old_postinstall_cmds=$lt_old_postinstall_cmds
                   112660: old_postuninstall_cmds=$lt_old_postuninstall_cmds
                   112661: 
                   112662: # Create an old-style archive from a shared archive.
                   112663: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
                   112664: 
                   112665: # Create a temporary old-style archive to link instead of a shared archive.
                   112666: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
                   112667: 
                   112668: # Commands used to build and install a shared archive.
                   112669: archive_cmds=$lt_archive_cmds
                   112670: archive_expsym_cmds=$lt_archive_expsym_cmds
                   112671: postinstall_cmds=$lt_postinstall_cmds
                   112672: postuninstall_cmds=$lt_postuninstall_cmds
                   112673: 
                   112674: # Commands used to build a loadable module (assumed same as above if empty)
                   112675: module_cmds=$lt_module_cmds
                   112676: module_expsym_cmds=$lt_module_expsym_cmds
                   112677: 
                   112678: # Commands to strip libraries.
                   112679: old_striplib=$lt_old_striplib
                   112680: striplib=$lt_striplib
                   112681: 
                   112682: # Dependencies to place before the objects being linked to create a
                   112683: # shared library.
                   112684: predep_objects=$lt_predep_objects
                   112685: 
                   112686: # Dependencies to place after the objects being linked to create a
                   112687: # shared library.
                   112688: postdep_objects=$lt_postdep_objects
                   112689: 
                   112690: # Dependencies to place before the objects being linked to create a
                   112691: # shared library.
                   112692: predeps=$lt_predeps
                   112693: 
                   112694: # Dependencies to place after the objects being linked to create a
                   112695: # shared library.
                   112696: postdeps=$lt_postdeps
                   112697: 
                   112698: # The directories searched by this compiler when creating a shared
                   112699: # library
                   112700: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
                   112701: 
                   112702: # The library search path used internally by the compiler when linking
                   112703: # a shared library.
                   112704: compiler_lib_search_path=$lt_compiler_lib_search_path
                   112705: 
                   112706: # Method to check whether dependent libraries are shared objects.
                   112707: deplibs_check_method=$lt_deplibs_check_method
                   112708: 
                   112709: # Command to use when deplibs_check_method == file_magic.
                   112710: file_magic_cmd=$lt_file_magic_cmd
                   112711: 
                   112712: # Flag that allows shared libraries with undefined symbols to be built.
                   112713: allow_undefined_flag=$lt_allow_undefined_flag
                   112714: 
                   112715: # Flag that forces no undefined symbols.
                   112716: no_undefined_flag=$lt_no_undefined_flag
                   112717: 
                   112718: # Commands used to finish a libtool library installation in a directory.
                   112719: finish_cmds=$lt_finish_cmds
                   112720: 
                   112721: # Same as above, but a single script fragment to be evaled but not shown.
                   112722: finish_eval=$lt_finish_eval
                   112723: 
                   112724: # Take the output of nm and produce a listing of raw symbols and C names.
                   112725: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
                   112726: 
                   112727: # Transform the output of nm in a proper C declaration
                   112728: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
                   112729: 
                   112730: # Transform the output of nm in a C name address pair
                   112731: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
                   112732: 
                   112733: # This is the shared library runtime path variable.
                   112734: runpath_var=$runpath_var
                   112735: 
                   112736: # This is the shared library path variable.
                   112737: shlibpath_var=$shlibpath_var
                   112738: 
                   112739: # Is shlibpath searched before the hard-coded library search path?
                   112740: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
                   112741: 
                   112742: # How to hardcode a shared library path into an executable.
                   112743: hardcode_action=$hardcode_action
                   112744: 
                   112745: # Whether we should hardcode library paths into libraries.
                   112746: hardcode_into_libs=$hardcode_into_libs
                   112747: 
                   112748: # Flag to hardcode \$libdir into a binary during linking.
                   112749: # This must work even if \$libdir does not exist.
                   112750: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
                   112751: 
                   112752: # If ld is used when linking, flag to hardcode \$libdir into
                   112753: # a binary during linking. This must work even if \$libdir does
                   112754: # not exist.
                   112755: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
                   112756: 
                   112757: # Whether we need a single -rpath flag with a separated argument.
                   112758: hardcode_libdir_separator=$lt_hardcode_libdir_separator
                   112759: 
                   112760: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
                   112761: # resulting binary.
                   112762: hardcode_direct=$hardcode_direct
                   112763: 
                   112764: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
                   112765: # resulting binary.
                   112766: hardcode_minus_L=$hardcode_minus_L
                   112767: 
                   112768: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
                   112769: # the resulting binary.
                   112770: hardcode_shlibpath_var=$hardcode_shlibpath_var
                   112771: 
                   112772: # Set to yes if building a shared library automatically hardcodes DIR into the library
                   112773: # and all subsequent libraries and executables linked against it.
                   112774: hardcode_automatic=$hardcode_automatic
                   112775: 
                   112776: # Variables whose values should be saved in libtool wrapper scripts and
                   112777: # restored at relink time.
                   112778: variables_saved_for_relink="$variables_saved_for_relink"
                   112779: 
                   112780: # Whether libtool must link a program against all its dependency libraries.
                   112781: link_all_deplibs=$link_all_deplibs
                   112782: 
                   112783: # Compile-time system search path for libraries
                   112784: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
                   112785: 
                   112786: # Run-time system search path for libraries
                   112787: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
                   112788: 
                   112789: # Fix the shell variable \$srcfile for the compiler.
                   112790: fix_srcfile_path=$lt_fix_srcfile_path
                   112791: 
                   112792: # Set to yes if exported symbols are required.
                   112793: always_export_symbols=$always_export_symbols
                   112794: 
                   112795: # The commands to list exported symbols.
                   112796: export_symbols_cmds=$lt_export_symbols_cmds
                   112797: 
                   112798: # The commands to extract the exported symbol list from a shared archive.
                   112799: extract_expsyms_cmds=$lt_extract_expsyms_cmds
                   112800: 
                   112801: # Symbols that should not be listed in the preloaded symbols.
                   112802: exclude_expsyms=$lt_exclude_expsyms
                   112803: 
                   112804: # Symbols that must always be exported.
                   112805: include_expsyms=$lt_include_expsyms
                   112806: 
                   112807: # ### END LIBTOOL CONFIG
                   112808: 
                   112809: __EOF__
                   112810: 
                   112811: 
                   112812:   case $host_os in
                   112813:   aix3*)
                   112814:     cat <<\EOF >> "$cfgfile"
                   112815: 
                   112816: # AIX sometimes has problems with the GCC collect2 program.  For some
                   112817: # reason, if we set the COLLECT_NAMES environment variable, the problems
                   112818: # vanish in a puff of smoke.
                   112819: if test "X${COLLECT_NAMES+set}" != Xset; then
                   112820:   COLLECT_NAMES=
                   112821:   export COLLECT_NAMES
                   112822: fi
                   112823: EOF
                   112824:     ;;
                   112825:   esac
                   112826: 
                   112827:   # We use sed instead of cat because bash on DJGPP gets confused if
                   112828:   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
                   112829:   # text mode, it properly converts lines to CR/LF.  This bash problem
                   112830:   # is reportedly fixed, but why not run on old versions too?
                   112831:   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
                   112832: 
                   112833:   mv -f "$cfgfile" "$ofile" || \
                   112834:     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
                   112835:   chmod +x "$ofile"
                   112836: 
                   112837: else
                   112838:   # If there is no Makefile yet, we rely on a make rule to execute
                   112839:   # `config.status --recheck' to rerun these tests and create the
                   112840:   # libtool script then.
                   112841:   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
                   112842:   if test -f "$ltmain_in"; then
                   112843:     test -f Makefile && make "$ltmain"
                   112844:   fi
                   112845: fi
                   112846: 
                   112847: 
                   112848: ac_ext=c
                   112849: ac_cpp='$CPP $CPPFLAGS'
                   112850: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   112851: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   112852: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   112853: 
                   112854: CC="$lt_save_CC"
                   112855: 
                   112856: 
                   112857: # Check whether --with-tags was given.
                   112858: if test "${with_tags+set}" = set; then :
                   112859:   withval=$with_tags; tagnames="$withval"
                   112860: fi
                   112861: 
                   112862: 
                   112863: if test -f "$ltmain" && test -n "$tagnames"; then
                   112864:   if test ! -f "${ofile}"; then
                   112865:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
                   112866: $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
                   112867:   fi
                   112868: 
                   112869:   if test -z "$LTCC"; then
                   112870:     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
                   112871:     if test -z "$LTCC"; then
                   112872:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
                   112873: $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
                   112874:     else
                   112875:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
                   112876: $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
                   112877:     fi
                   112878:   fi
                   112879:   if test -z "$LTCFLAGS"; then
                   112880:     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
                   112881:   fi
                   112882: 
                   112883:   # Extract list of available tagged configurations in $ofile.
                   112884:   # Note that this assumes the entire list is on one line.
                   112885:   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
                   112886: 
                   112887:   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   112888:   for tagname in $tagnames; do
                   112889:     IFS="$lt_save_ifs"
                   112890:     # Check whether tagname contains only valid characters
                   112891:     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
                   112892:     "") ;;
                   112893:     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
                   112894:        ;;
                   112895:     esac
                   112896: 
                   112897:     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
                   112898:     then
                   112899:       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
                   112900:     fi
                   112901: 
                   112902:     # Update the list of available tags.
                   112903:     if test -n "$tagname"; then
                   112904:       echo appending configuration tag \"$tagname\" to $ofile
                   112905: 
                   112906:       case $tagname in
                   112907:       CXX)
                   112908:        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
                   112909:            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
                   112910:            (test "X$CXX" != "Xg++"))) ; then
                   112911: 
                   112912: ac_ext=cpp
                   112913: ac_cpp='$CXXCPP $CPPFLAGS'
                   112914: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   112915: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   112916: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   112917: 
                   112918: 
                   112919: 
                   112920: 
                   112921: archive_cmds_need_lc_CXX=no
                   112922: allow_undefined_flag_CXX=
                   112923: always_export_symbols_CXX=no
                   112924: archive_expsym_cmds_CXX=
                   112925: export_dynamic_flag_spec_CXX=
                   112926: hardcode_direct_CXX=no
                   112927: hardcode_libdir_flag_spec_CXX=
                   112928: hardcode_libdir_flag_spec_ld_CXX=
                   112929: hardcode_libdir_separator_CXX=
                   112930: hardcode_minus_L_CXX=no
                   112931: hardcode_shlibpath_var_CXX=unsupported
                   112932: hardcode_automatic_CXX=no
                   112933: module_cmds_CXX=
                   112934: module_expsym_cmds_CXX=
                   112935: link_all_deplibs_CXX=unknown
                   112936: old_archive_cmds_CXX=$old_archive_cmds
                   112937: no_undefined_flag_CXX=
                   112938: whole_archive_flag_spec_CXX=
                   112939: enable_shared_with_static_runtimes_CXX=no
                   112940: 
                   112941: # Dependencies to place before and after the object being linked:
                   112942: predep_objects_CXX=
                   112943: postdep_objects_CXX=
                   112944: predeps_CXX=
                   112945: postdeps_CXX=
                   112946: compiler_lib_search_path_CXX=
                   112947: compiler_lib_search_dirs_CXX=
                   112948: 
                   112949: # Source file extension for C++ test sources.
                   112950: ac_ext=cpp
                   112951: 
                   112952: # Object file extension for compiled C++ test sources.
                   112953: objext=o
                   112954: objext_CXX=$objext
                   112955: 
                   112956: # Code to be used in simple compile tests
                   112957: lt_simple_compile_test_code="int some_variable = 0;"
                   112958: 
                   112959: # Code to be used in simple link tests
                   112960: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
                   112961: 
                   112962: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
                   112963: 
                   112964: # If no C compiler was specified, use CC.
                   112965: LTCC=${LTCC-"$CC"}
                   112966: 
                   112967: # If no C compiler flags were specified, use CFLAGS.
                   112968: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
                   112969: 
                   112970: # Allow CC to be a program name with arguments.
                   112971: compiler=$CC
                   112972: 
                   112973: 
                   112974: # save warnings/boilerplate of simple test code
                   112975: ac_outfile=conftest.$ac_objext
                   112976: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
                   112977: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   112978: _lt_compiler_boilerplate=`cat conftest.err`
                   112979: $rm conftest*
                   112980: 
                   112981: ac_outfile=conftest.$ac_objext
                   112982: echo "$lt_simple_link_test_code" >conftest.$ac_ext
                   112983: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   112984: _lt_linker_boilerplate=`cat conftest.err`
                   112985: $rm -r conftest*
                   112986: 
                   112987: 
                   112988: # Allow CC to be a program name with arguments.
                   112989: lt_save_CC=$CC
                   112990: lt_save_LD=$LD
                   112991: lt_save_GCC=$GCC
                   112992: GCC=$GXX
                   112993: lt_save_with_gnu_ld=$with_gnu_ld
                   112994: lt_save_path_LD=$lt_cv_path_LD
                   112995: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
                   112996:   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
                   112997: else
                   112998:   unset lt_cv_prog_gnu_ld
                   112999: fi
                   113000: if test -n "${lt_cv_path_LDCXX+set}"; then
                   113001:   lt_cv_path_LD=$lt_cv_path_LDCXX
                   113002: else
                   113003:   unset lt_cv_path_LD
                   113004: fi
                   113005: test -z "${LDCXX+set}" || LD=$LDCXX
                   113006: CC=${CXX-"c++"}
                   113007: compiler=$CC
                   113008: compiler_CXX=$CC
                   113009: for cc_temp in $compiler""; do
                   113010:   case $cc_temp in
                   113011:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
                   113012:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
                   113013:     \-*) ;;
                   113014:     *) break;;
                   113015:   esac
                   113016: done
                   113017: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
                   113018: 
                   113019: 
                   113020: # We don't want -fno-exception wen compiling C++ code, so set the
                   113021: # no_builtin_flag separately
                   113022: if test "$GXX" = yes; then
                   113023:   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
                   113024: else
                   113025:   lt_prog_compiler_no_builtin_flag_CXX=
                   113026: fi
                   113027: 
                   113028: if test "$GXX" = yes; then
                   113029:   # Set up default GNU C++ configuration
                   113030: 
                   113031: 
                   113032: # Check whether --with-gnu-ld was given.
                   113033: if test "${with_gnu_ld+set}" = set; then :
                   113034:   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
                   113035: else
                   113036:   with_gnu_ld=no
                   113037: fi
                   113038: 
                   113039: ac_prog=ld
                   113040: if test "$GCC" = yes; then
                   113041:   # Check if gcc -print-prog-name=ld gives a path.
                   113042:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
                   113043: $as_echo_n "checking for ld used by $CC... " >&6; }
                   113044:   case $host in
                   113045:   *-*-mingw*)
                   113046:     # gcc leaves a trailing carriage return which upsets mingw
                   113047:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
                   113048:   *)
                   113049:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
                   113050:   esac
                   113051:   case $ac_prog in
                   113052:     # Accept absolute paths.
                   113053:     [\\/]* | ?:[\\/]*)
                   113054:       re_direlt='/[^/][^/]*/\.\./'
                   113055:       # Canonicalize the pathname of ld
                   113056:       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
                   113057:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
                   113058:        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
                   113059:       done
                   113060:       test -z "$LD" && LD="$ac_prog"
                   113061:       ;;
                   113062:   "")
                   113063:     # If it fails, then pretend we aren't using GCC.
                   113064:     ac_prog=ld
                   113065:     ;;
                   113066:   *)
                   113067:     # If it is relative, then search for the first ld in PATH.
                   113068:     with_gnu_ld=unknown
                   113069:     ;;
                   113070:   esac
                   113071: elif test "$with_gnu_ld" = yes; then
                   113072:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
                   113073: $as_echo_n "checking for GNU ld... " >&6; }
                   113074: else
                   113075:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
                   113076: $as_echo_n "checking for non-GNU ld... " >&6; }
                   113077: fi
                   113078: if ${lt_cv_path_LD+:} false; then :
                   113079:   $as_echo_n "(cached) " >&6
                   113080: else
                   113081:   if test -z "$LD"; then
                   113082:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   113083:   for ac_dir in $PATH; do
                   113084:     IFS="$lt_save_ifs"
                   113085:     test -z "$ac_dir" && ac_dir=.
                   113086:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
                   113087:       lt_cv_path_LD="$ac_dir/$ac_prog"
                   113088:       # Check to see if the program is GNU ld.  I'd rather use --version,
                   113089:       # but apparently some variants of GNU ld only accept -v.
                   113090:       # Break only if it was the GNU/non-GNU ld that we prefer.
                   113091:       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
                   113092:       *GNU* | *'with BFD'*)
                   113093:        test "$with_gnu_ld" != no && break
                   113094:        ;;
                   113095:       *)
                   113096:        test "$with_gnu_ld" != yes && break
                   113097:        ;;
                   113098:       esac
                   113099:     fi
                   113100:   done
                   113101:   IFS="$lt_save_ifs"
                   113102: else
                   113103:   lt_cv_path_LD="$LD" # Let the user override the test with a path.
                   113104: fi
                   113105: fi
                   113106: 
                   113107: LD="$lt_cv_path_LD"
                   113108: if test -n "$LD"; then
                   113109:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
                   113110: $as_echo "$LD" >&6; }
                   113111: else
                   113112:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   113113: $as_echo "no" >&6; }
                   113114: fi
                   113115: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
                   113116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
                   113117: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
                   113118: if ${lt_cv_prog_gnu_ld+:} false; then :
                   113119:   $as_echo_n "(cached) " >&6
                   113120: else
                   113121:   # I'd rather use --version here, but apparently some GNU lds only accept -v.
                   113122: case `$LD -v 2>&1 </dev/null` in
                   113123: *GNU* | *'with BFD'*)
                   113124:   lt_cv_prog_gnu_ld=yes
                   113125:   ;;
                   113126: *)
                   113127:   lt_cv_prog_gnu_ld=no
                   113128:   ;;
                   113129: esac
                   113130: fi
                   113131: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
                   113132: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
                   113133: with_gnu_ld=$lt_cv_prog_gnu_ld
                   113134: 
                   113135: 
                   113136: 
                   113137:   # Check if GNU C++ uses GNU ld as the underlying linker, since the
                   113138:   # archiving commands below assume that GNU ld is being used.
                   113139:   if test "$with_gnu_ld" = yes; then
                   113140:     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   113141:     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   113142: 
                   113143:     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
                   113144:     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
                   113145: 
                   113146:     # If archive_cmds runs LD, not CC, wlarc should be empty
                   113147:     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
                   113148:     #     investigate it a little bit more. (MM)
                   113149:     wlarc='${wl}'
                   113150: 
                   113151:     # ancient GNU ld didn't support --whole-archive et. al.
                   113152:     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
                   113153:        grep 'no-whole-archive' > /dev/null; then
                   113154:       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
                   113155:     else
                   113156:       whole_archive_flag_spec_CXX=
                   113157:     fi
                   113158:   else
                   113159:     with_gnu_ld=no
                   113160:     wlarc=
                   113161: 
                   113162:     # A generic and very simple default shared library creation
                   113163:     # command for GNU C++ for the case where it uses the native
                   113164:     # linker, instead of GNU ld.  If possible, this setting should
                   113165:     # overridden to take advantage of the native linker features on
                   113166:     # the platform it is being used on.
                   113167:     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
                   113168:   fi
                   113169: 
                   113170:   # Commands to make compiler produce verbose output that lists
                   113171:   # what "hidden" libraries, object files and flags are used when
                   113172:   # linking a shared library.
                   113173:   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
                   113174: 
                   113175: else
                   113176:   GXX=no
                   113177:   with_gnu_ld=no
                   113178:   wlarc=
                   113179: fi
                   113180: 
                   113181: # PORTME: fill in a description of your system's C++ link characteristics
                   113182: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
                   113183: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
                   113184: ld_shlibs_CXX=yes
                   113185: case $host_os in
                   113186:   aix3*)
                   113187:     # FIXME: insert proper C++ library support
                   113188:     ld_shlibs_CXX=no
                   113189:     ;;
                   113190:   aix[4-9]*)
                   113191:     if test "$host_cpu" = ia64; then
                   113192:       # On IA64, the linker does run time linking by default, so we don't
                   113193:       # have to do anything special.
                   113194:       aix_use_runtimelinking=no
                   113195:       exp_sym_flag='-Bexport'
                   113196:       no_entry_flag=""
                   113197:     else
                   113198:       aix_use_runtimelinking=no
                   113199: 
                   113200:       # Test if we are trying to use run time linking or normal
                   113201:       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
                   113202:       # need to do runtime linking.
                   113203:       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
                   113204:        for ld_flag in $LDFLAGS; do
                   113205:          case $ld_flag in
                   113206:          *-brtl*)
                   113207:            aix_use_runtimelinking=yes
                   113208:            break
                   113209:            ;;
                   113210:          esac
                   113211:        done
                   113212:        ;;
                   113213:       esac
                   113214: 
                   113215:       exp_sym_flag='-bexport'
                   113216:       no_entry_flag='-bnoentry'
                   113217:     fi
                   113218: 
                   113219:     # When large executables or shared objects are built, AIX ld can
                   113220:     # have problems creating the table of contents.  If linking a library
                   113221:     # or program results in "error TOC overflow" add -mminimal-toc to
                   113222:     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
                   113223:     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
                   113224: 
                   113225:     archive_cmds_CXX=''
                   113226:     hardcode_direct_CXX=yes
                   113227:     hardcode_libdir_separator_CXX=':'
                   113228:     link_all_deplibs_CXX=yes
                   113229: 
                   113230:     if test "$GXX" = yes; then
                   113231:       case $host_os in aix4.[012]|aix4.[012].*)
                   113232:       # We only want to do this on AIX 4.2 and lower, the check
                   113233:       # below for broken collect2 doesn't work under 4.3+
                   113234:        collect2name=`${CC} -print-prog-name=collect2`
                   113235:        if test -f "$collect2name" && \
                   113236:           strings "$collect2name" | grep resolve_lib_name >/dev/null
                   113237:        then
                   113238:          # We have reworked collect2
                   113239:          :
                   113240:        else
                   113241:          # We have old collect2
                   113242:          hardcode_direct_CXX=unsupported
                   113243:          # It fails to find uninstalled libraries when the uninstalled
                   113244:          # path is not listed in the libpath.  Setting hardcode_minus_L
                   113245:          # to unsupported forces relinking
                   113246:          hardcode_minus_L_CXX=yes
                   113247:          hardcode_libdir_flag_spec_CXX='-L$libdir'
                   113248:          hardcode_libdir_separator_CXX=
                   113249:        fi
                   113250:        ;;
                   113251:       esac
                   113252:       shared_flag='-shared'
                   113253:       if test "$aix_use_runtimelinking" = yes; then
                   113254:        shared_flag="$shared_flag "'${wl}-G'
                   113255:       fi
                   113256:     else
                   113257:       # not using gcc
                   113258:       if test "$host_cpu" = ia64; then
                   113259:        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
                   113260:        # chokes on -Wl,-G. The following line is correct:
                   113261:        shared_flag='-G'
                   113262:       else
                   113263:        if test "$aix_use_runtimelinking" = yes; then
                   113264:          shared_flag='${wl}-G'
                   113265:        else
                   113266:          shared_flag='${wl}-bM:SRE'
                   113267:        fi
                   113268:       fi
                   113269:     fi
                   113270: 
                   113271:     # It seems that -bexpall does not export symbols beginning with
                   113272:     # underscore (_), so it is better to generate a list of symbols to export.
                   113273:     always_export_symbols_CXX=yes
                   113274:     if test "$aix_use_runtimelinking" = yes; then
                   113275:       # Warning - without using the other runtime loading flags (-brtl),
                   113276:       # -berok will link without error, but may produce a broken library.
                   113277:       allow_undefined_flag_CXX='-berok'
                   113278:       # Determine the default libpath from the value encoded in an empty executable.
                   113279: 
                   113280: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! misho    113281: #line 113281 "configure"
1.1       misho    113282: #include "confdefs.h"
                   113283: int main() {
                   113284: ; return 0; }
                   113285: EOF
                   113286: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
                   113287:   (eval $ac_link) 2>&5
                   113288:   ac_status=$?
                   113289:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   113290:   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
                   113291: 
                   113292: lt_aix_libpath_sed='
                   113293:     /Import File Strings/,/^$/ {
                   113294:        /^0/ {
                   113295:            s/^0  *\(.*\)$/\1/
                   113296:            p
                   113297:        }
                   113298:     }'
                   113299: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   113300: # Check for a 64-bit object if we didn't find anything.
                   113301: if test -z "$aix_libpath"; then
                   113302:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   113303: fi
                   113304:   rm -rf conftest*
                   113305: else
                   113306:   echo "configure: failed program was:" >&5
                   113307:   cat conftest.$ac_ext >&6
                   113308: fi
                   113309: rm -f conftest*
                   113310: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
                   113311: 
                   113312:       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
                   113313: 
                   113314:       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
                   113315:      else
                   113316:       if test "$host_cpu" = ia64; then
                   113317:        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
                   113318:        allow_undefined_flag_CXX="-z nodefs"
                   113319:        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"
                   113320:       else
                   113321:        # Determine the default libpath from the value encoded in an empty executable.
                   113322: 
                   113323: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! misho    113324: #line 113324 "configure"
1.1       misho    113325: #include "confdefs.h"
                   113326: int main() {
                   113327: ; return 0; }
                   113328: EOF
                   113329: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
                   113330:   (eval $ac_link) 2>&5
                   113331:   ac_status=$?
                   113332:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   113333:   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
                   113334: 
                   113335: lt_aix_libpath_sed='
                   113336:     /Import File Strings/,/^$/ {
                   113337:        /^0/ {
                   113338:            s/^0  *\(.*\)$/\1/
                   113339:            p
                   113340:        }
                   113341:     }'
                   113342: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   113343: # Check for a 64-bit object if we didn't find anything.
                   113344: if test -z "$aix_libpath"; then
                   113345:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   113346: fi
                   113347:   rm -rf conftest*
                   113348: else
                   113349:   echo "configure: failed program was:" >&5
                   113350:   cat conftest.$ac_ext >&6
                   113351: fi
                   113352: rm -f conftest*
                   113353: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
                   113354: 
                   113355:        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
                   113356:        # Warning - without using the other run time loading flags,
                   113357:        # -berok will link without error, but may produce a broken library.
                   113358:        no_undefined_flag_CXX=' ${wl}-bernotok'
                   113359:        allow_undefined_flag_CXX=' ${wl}-berok'
                   113360:        # Exported symbols can be pulled into shared objects from archives
                   113361:        whole_archive_flag_spec_CXX='$convenience'
                   113362:        archive_cmds_need_lc_CXX=yes
                   113363:        # This is similar to how AIX traditionally builds its shared libraries.
                   113364:        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
                   113365:       fi
                   113366:     fi
                   113367:     ;;
                   113368: 
                   113369:   beos*)
                   113370:     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   113371:       allow_undefined_flag_CXX=unsupported
                   113372:       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
                   113373:       # support --undefined.  This deserves some investigation.  FIXME
                   113374:       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   113375:     else
                   113376:       ld_shlibs_CXX=no
                   113377:     fi
                   113378:     ;;
                   113379: 
                   113380:   chorus*)
                   113381:     case $cc_basename in
                   113382:       *)
                   113383:        # FIXME: insert proper C++ library support
                   113384:        ld_shlibs_CXX=no
                   113385:        ;;
                   113386:     esac
                   113387:     ;;
                   113388: 
                   113389:   cygwin* | mingw* | pw32*)
                   113390:     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
                   113391:     # as there is no search path for DLLs.
                   113392:     hardcode_libdir_flag_spec_CXX='-L$libdir'
                   113393:     allow_undefined_flag_CXX=unsupported
                   113394:     always_export_symbols_CXX=no
                   113395:     enable_shared_with_static_runtimes_CXX=yes
                   113396: 
                   113397:     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
                   113398:       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'
                   113399:       # If the export-symbols file already is a .def file (1st line
                   113400:       # is EXPORTS), use it as is; otherwise, prepend...
                   113401:       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
                   113402:        cp $export_symbols $output_objdir/$soname.def;
                   113403:       else
                   113404:        echo EXPORTS > $output_objdir/$soname.def;
                   113405:        cat $export_symbols >> $output_objdir/$soname.def;
                   113406:       fi~
                   113407:       $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'
                   113408:     else
                   113409:       ld_shlibs_CXX=no
                   113410:     fi
                   113411:   ;;
                   113412:       darwin* | rhapsody*)
                   113413:       archive_cmds_need_lc_CXX=no
                   113414:       hardcode_direct_CXX=no
                   113415:       hardcode_automatic_CXX=yes
                   113416:       hardcode_shlibpath_var_CXX=unsupported
                   113417:       whole_archive_flag_spec_CXX=''
                   113418:       link_all_deplibs_CXX=yes
                   113419:       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
                   113420:       if test "$GXX" = yes ; then
                   113421:       output_verbose_link_cmd='echo'
                   113422:       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}"
                   113423:       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
                   113424:       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}"
                   113425:       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}"
                   113426:       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
                   113427:         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}"
                   113428:         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}"
                   113429:       fi
                   113430:       else
                   113431:       case $cc_basename in
                   113432:         xlc*)
                   113433:          output_verbose_link_cmd='echo'
                   113434:           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
                   113435:           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
                   113436:           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
                   113437:           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
                   113438:           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
                   113439:           ;;
                   113440:        *)
                   113441:          ld_shlibs_CXX=no
                   113442:           ;;
                   113443:       esac
                   113444:       fi
                   113445:         ;;
                   113446: 
                   113447:   dgux*)
                   113448:     case $cc_basename in
                   113449:       ec++*)
                   113450:        # FIXME: insert proper C++ library support
                   113451:        ld_shlibs_CXX=no
                   113452:        ;;
                   113453:       ghcx*)
                   113454:        # Green Hills C++ Compiler
                   113455:        # FIXME: insert proper C++ library support
                   113456:        ld_shlibs_CXX=no
                   113457:        ;;
                   113458:       *)
                   113459:        # FIXME: insert proper C++ library support
                   113460:        ld_shlibs_CXX=no
                   113461:        ;;
                   113462:     esac
                   113463:     ;;
                   113464:   freebsd[12].*)
                   113465:     # C++ shared libraries reported to be fairly broken before switch to ELF
                   113466:     ld_shlibs_CXX=no
                   113467:     ;;
                   113468:   freebsd-elf*)
                   113469:     archive_cmds_need_lc_CXX=no
                   113470:     ;;
                   113471:   freebsd* | dragonfly*)
                   113472:     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
                   113473:     # conventions
                   113474:     ld_shlibs_CXX=yes
                   113475:     ;;
                   113476:   gnu*)
                   113477:     ;;
                   113478:   hpux9*)
                   113479:     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
                   113480:     hardcode_libdir_separator_CXX=:
                   113481:     export_dynamic_flag_spec_CXX='${wl}-E'
                   113482:     hardcode_direct_CXX=yes
                   113483:     hardcode_minus_L_CXX=yes # Not in the search PATH,
                   113484:                                # but as the default
                   113485:                                # location of the library.
                   113486: 
                   113487:     case $cc_basename in
                   113488:     CC*)
                   113489:       # FIXME: insert proper C++ library support
                   113490:       ld_shlibs_CXX=no
                   113491:       ;;
                   113492:     aCC*)
                   113493:       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
                   113494:       # Commands to make compiler produce verbose output that lists
                   113495:       # what "hidden" libraries, object files and flags are used when
                   113496:       # linking a shared library.
                   113497:       #
                   113498:       # There doesn't appear to be a way to prevent this compiler from
                   113499:       # explicitly linking system object files so we need to strip them
                   113500:       # from the output so that they don't get included in the library
                   113501:       # dependencies.
                   113502:       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; echo $list'
                   113503:       ;;
                   113504:     *)
                   113505:       if test "$GXX" = yes; then
                   113506:         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
                   113507:       else
                   113508:         # FIXME: insert proper C++ library support
                   113509:         ld_shlibs_CXX=no
                   113510:       fi
                   113511:       ;;
                   113512:     esac
                   113513:     ;;
                   113514:   hpux10*|hpux11*)
                   113515:     if test $with_gnu_ld = no; then
                   113516:       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
                   113517:       hardcode_libdir_separator_CXX=:
                   113518: 
                   113519:       case $host_cpu in
                   113520:       hppa*64*|ia64*) ;;
                   113521:       *)
                   113522:        export_dynamic_flag_spec_CXX='${wl}-E'
                   113523:         ;;
                   113524:       esac
                   113525:     fi
                   113526:     case $host_cpu in
                   113527:     hppa*64*|ia64*)
                   113528:       hardcode_direct_CXX=no
                   113529:       hardcode_shlibpath_var_CXX=no
                   113530:       ;;
                   113531:     *)
                   113532:       hardcode_direct_CXX=yes
                   113533:       hardcode_minus_L_CXX=yes # Not in the search PATH,
                   113534:                                              # but as the default
                   113535:                                              # location of the library.
                   113536:       ;;
                   113537:     esac
                   113538: 
                   113539:     case $cc_basename in
                   113540:       CC*)
                   113541:        # FIXME: insert proper C++ library support
                   113542:        ld_shlibs_CXX=no
                   113543:        ;;
                   113544:       aCC*)
                   113545:        case $host_cpu in
                   113546:        hppa*64*)
                   113547:          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   113548:          ;;
                   113549:        ia64*)
                   113550:          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   113551:          ;;
                   113552:        *)
                   113553:          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   113554:          ;;
                   113555:        esac
                   113556:        # Commands to make compiler produce verbose output that lists
                   113557:        # what "hidden" libraries, object files and flags are used when
                   113558:        # linking a shared library.
                   113559:        #
                   113560:        # There doesn't appear to be a way to prevent this compiler from
                   113561:        # explicitly linking system object files so we need to strip them
                   113562:        # from the output so that they don't get included in the library
                   113563:        # dependencies.
                   113564:        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; echo $list'
                   113565:        ;;
                   113566:       *)
                   113567:        if test "$GXX" = yes; then
                   113568:          if test $with_gnu_ld = no; then
                   113569:            case $host_cpu in
                   113570:            hppa*64*)
                   113571:              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   113572:              ;;
                   113573:            ia64*)
                   113574:              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   113575:              ;;
                   113576:            *)
                   113577:              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   113578:              ;;
                   113579:            esac
                   113580:          fi
                   113581:        else
                   113582:          # FIXME: insert proper C++ library support
                   113583:          ld_shlibs_CXX=no
                   113584:        fi
                   113585:        ;;
                   113586:     esac
                   113587:     ;;
                   113588:   interix[3-9]*)
                   113589:     hardcode_direct_CXX=no
                   113590:     hardcode_shlibpath_var_CXX=no
                   113591:     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
                   113592:     export_dynamic_flag_spec_CXX='${wl}-E'
                   113593:     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
                   113594:     # Instead, shared libraries are loaded at an image base (0x10000000 by
                   113595:     # default) and relocated if they conflict, which is a slow very memory
                   113596:     # consuming and fragmenting process.  To avoid this, we pick a random,
                   113597:     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
                   113598:     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
                   113599:     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'
                   113600:     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'
                   113601:     ;;
                   113602:   irix5* | irix6*)
                   113603:     case $cc_basename in
                   113604:       CC*)
                   113605:        # SGI C++
                   113606:        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
                   113607: 
                   113608:        # Archives containing C++ object files must be created using
                   113609:        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
                   113610:        # necessary to make sure instantiated templates are included
                   113611:        # in the archive.
                   113612:        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
                   113613:        ;;
                   113614:       *)
                   113615:        if test "$GXX" = yes; then
                   113616:          if test "$with_gnu_ld" = no; then
                   113617:            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
                   113618:          else
                   113619:            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
                   113620:          fi
                   113621:        fi
                   113622:        link_all_deplibs_CXX=yes
                   113623:        ;;
                   113624:     esac
                   113625:     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
                   113626:     hardcode_libdir_separator_CXX=:
                   113627:     ;;
                   113628:   linux* | k*bsd*-gnu)
                   113629:     case $cc_basename in
                   113630:       KCC*)
                   113631:        # Kuck and Associates, Inc. (KAI) C++ Compiler
                   113632: 
                   113633:        # KCC will only create a shared library if the output file
                   113634:        # ends with ".so" (or ".sl" for HP-UX), so rename the library
                   113635:        # to its proper name (with version) after linking.
                   113636:        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'
                   113637:        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'
                   113638:        # Commands to make compiler produce verbose output that lists
                   113639:        # what "hidden" libraries, object files and flags are used when
                   113640:        # linking a shared library.
                   113641:        #
                   113642:        # There doesn't appear to be a way to prevent this compiler from
                   113643:        # explicitly linking system object files so we need to strip them
                   113644:        # from the output so that they don't get included in the library
                   113645:        # dependencies.
                   113646:        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; echo $list'
                   113647: 
                   113648:        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
                   113649:        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
                   113650: 
                   113651:        # Archives containing C++ object files must be created using
                   113652:        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
                   113653:        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
                   113654:        ;;
                   113655:       icpc*)
                   113656:        # Intel C++
                   113657:        with_gnu_ld=yes
                   113658:        # version 8.0 and above of icpc choke on multiply defined symbols
                   113659:        # if we add $predep_objects and $postdep_objects, however 7.1 and
                   113660:        # earlier do not add the objects themselves.
                   113661:        case `$CC -V 2>&1` in
                   113662:        *"Version 7."*)
                   113663:          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   113664:          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'
                   113665:          ;;
                   113666:        *)  # Version 8.0 or newer
                   113667:          tmp_idyn=
                   113668:          case $host_cpu in
                   113669:            ia64*) tmp_idyn=' -i_dynamic';;
                   113670:          esac
                   113671:          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   113672:          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'
                   113673:          ;;
                   113674:        esac
                   113675:        archive_cmds_need_lc_CXX=no
                   113676:        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
                   113677:        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
                   113678:        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
                   113679:        ;;
                   113680:       pgCC* | pgcpp*)
                   113681:         # Portland Group C++ compiler
                   113682:        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
                   113683:        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'
                   113684: 
                   113685:        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
                   113686:        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
                   113687:        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
                   113688:         ;;
                   113689:       cxx*)
                   113690:        # Compaq C++
                   113691:        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   113692:        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'
                   113693: 
                   113694:        runpath_var=LD_RUN_PATH
                   113695:        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
                   113696:        hardcode_libdir_separator_CXX=:
                   113697: 
                   113698:        # Commands to make compiler produce verbose output that lists
                   113699:        # what "hidden" libraries, object files and flags are used when
                   113700:        # linking a shared library.
                   113701:        #
                   113702:        # There doesn't appear to be a way to prevent this compiler from
                   113703:        # explicitly linking system object files so we need to strip them
                   113704:        # from the output so that they don't get included in the library
                   113705:        # dependencies.
                   113706:        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
                   113707:        ;;
                   113708:       *)
                   113709:        case `$CC -V 2>&1 | sed 5q` in
                   113710:        *Sun\ C*)
                   113711:          # Sun C++ 5.9
                   113712:          no_undefined_flag_CXX=' -zdefs'
                   113713:          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   113714:          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'
                   113715:          hardcode_libdir_flag_spec_CXX='-R$libdir'
                   113716:          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
                   113717: 
                   113718:          # Not sure whether something based on
                   113719:          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
                   113720:          # would be better.
                   113721:          output_verbose_link_cmd='echo'
                   113722: 
                   113723:          # Archives containing C++ object files must be created using
                   113724:          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
                   113725:          # necessary to make sure instantiated templates are included
                   113726:          # in the archive.
                   113727:          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
                   113728:          ;;
                   113729:        esac
                   113730:        ;;
                   113731:     esac
                   113732:     ;;
                   113733:   lynxos*)
                   113734:     # FIXME: insert proper C++ library support
                   113735:     ld_shlibs_CXX=no
                   113736:     ;;
                   113737:   m88k*)
                   113738:     # FIXME: insert proper C++ library support
                   113739:     ld_shlibs_CXX=no
                   113740:     ;;
                   113741:   mvs*)
                   113742:     case $cc_basename in
                   113743:       cxx*)
                   113744:        # FIXME: insert proper C++ library support
                   113745:        ld_shlibs_CXX=no
                   113746:        ;;
                   113747:       *)
                   113748:        # FIXME: insert proper C++ library support
                   113749:        ld_shlibs_CXX=no
                   113750:        ;;
                   113751:     esac
                   113752:     ;;
                   113753:   netbsd*)
                   113754:     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   113755:       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
                   113756:       wlarc=
                   113757:       hardcode_libdir_flag_spec_CXX='-R$libdir'
                   113758:       hardcode_direct_CXX=yes
                   113759:       hardcode_shlibpath_var_CXX=no
                   113760:     fi
                   113761:     # Workaround some broken pre-1.5 toolchains
                   113762:     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
                   113763:     ;;
                   113764:   openbsd2*)
                   113765:     # C++ shared libraries are fairly broken
                   113766:     ld_shlibs_CXX=no
                   113767:     ;;
                   113768:   openbsd*)
                   113769:     if test -f /usr/libexec/ld.so; then
                   113770:       hardcode_direct_CXX=yes
                   113771:       hardcode_shlibpath_var_CXX=no
                   113772:       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
                   113773:       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
                   113774:       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   113775:        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
                   113776:        export_dynamic_flag_spec_CXX='${wl}-E'
                   113777:        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
                   113778:       fi
                   113779:       output_verbose_link_cmd='echo'
                   113780:     else
                   113781:       ld_shlibs_CXX=no
                   113782:     fi
                   113783:     ;;
                   113784:   osf3*)
                   113785:     case $cc_basename in
                   113786:       KCC*)
                   113787:        # Kuck and Associates, Inc. (KAI) C++ Compiler
                   113788: 
                   113789:        # KCC will only create a shared library if the output file
                   113790:        # ends with ".so" (or ".sl" for HP-UX), so rename the library
                   113791:        # to its proper name (with version) after linking.
                   113792:        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'
                   113793: 
                   113794:        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
                   113795:        hardcode_libdir_separator_CXX=:
                   113796: 
                   113797:        # Archives containing C++ object files must be created using
                   113798:        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
                   113799:        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
                   113800: 
                   113801:        ;;
                   113802:       RCC*)
                   113803:        # Rational C++ 2.4.1
                   113804:        # FIXME: insert proper C++ library support
                   113805:        ld_shlibs_CXX=no
                   113806:        ;;
                   113807:       cxx*)
                   113808:        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
                   113809:        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
                   113810: 
                   113811:        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
                   113812:        hardcode_libdir_separator_CXX=:
                   113813: 
                   113814:        # Commands to make compiler produce verbose output that lists
                   113815:        # what "hidden" libraries, object files and flags are used when
                   113816:        # linking a shared library.
                   113817:        #
                   113818:        # There doesn't appear to be a way to prevent this compiler from
                   113819:        # explicitly linking system object files so we need to strip them
                   113820:        # from the output so that they don't get included in the library
                   113821:        # dependencies.
                   113822:        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
                   113823:        ;;
                   113824:       *)
                   113825:        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
                   113826:          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
                   113827:          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
                   113828: 
                   113829:          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
                   113830:          hardcode_libdir_separator_CXX=:
                   113831: 
                   113832:          # Commands to make compiler produce verbose output that lists
                   113833:          # what "hidden" libraries, object files and flags are used when
                   113834:          # linking a shared library.
                   113835:          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
                   113836: 
                   113837:        else
                   113838:          # FIXME: insert proper C++ library support
                   113839:          ld_shlibs_CXX=no
                   113840:        fi
                   113841:        ;;
                   113842:     esac
                   113843:     ;;
                   113844:   osf4* | osf5*)
                   113845:     case $cc_basename in
                   113846:       KCC*)
                   113847:        # Kuck and Associates, Inc. (KAI) C++ Compiler
                   113848: 
                   113849:        # KCC will only create a shared library if the output file
                   113850:        # ends with ".so" (or ".sl" for HP-UX), so rename the library
                   113851:        # to its proper name (with version) after linking.
                   113852:        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'
                   113853: 
                   113854:        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
                   113855:        hardcode_libdir_separator_CXX=:
                   113856: 
                   113857:        # Archives containing C++ object files must be created using
                   113858:        # the KAI C++ compiler.
                   113859:        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
                   113860:        ;;
                   113861:       RCC*)
                   113862:        # Rational C++ 2.4.1
                   113863:        # FIXME: insert proper C++ library support
                   113864:        ld_shlibs_CXX=no
                   113865:        ;;
                   113866:       cxx*)
                   113867:        allow_undefined_flag_CXX=' -expect_unresolved \*'
                   113868:        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
                   113869:        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
                   113870:          echo "-hidden">> $lib.exp~
                   113871:          $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~
                   113872:          $rm $lib.exp'
                   113873: 
                   113874:        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
                   113875:        hardcode_libdir_separator_CXX=:
                   113876: 
                   113877:        # Commands to make compiler produce verbose output that lists
                   113878:        # what "hidden" libraries, object files and flags are used when
                   113879:        # linking a shared library.
                   113880:        #
                   113881:        # There doesn't appear to be a way to prevent this compiler from
                   113882:        # explicitly linking system object files so we need to strip them
                   113883:        # from the output so that they don't get included in the library
                   113884:        # dependencies.
                   113885:        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
                   113886:        ;;
                   113887:       *)
                   113888:        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
                   113889:          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
                   113890:         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
                   113891: 
                   113892:          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
                   113893:          hardcode_libdir_separator_CXX=:
                   113894: 
                   113895:          # Commands to make compiler produce verbose output that lists
                   113896:          # what "hidden" libraries, object files and flags are used when
                   113897:          # linking a shared library.
                   113898:          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
                   113899: 
                   113900:        else
                   113901:          # FIXME: insert proper C++ library support
                   113902:          ld_shlibs_CXX=no
                   113903:        fi
                   113904:        ;;
                   113905:     esac
                   113906:     ;;
                   113907:   psos*)
                   113908:     # FIXME: insert proper C++ library support
                   113909:     ld_shlibs_CXX=no
                   113910:     ;;
                   113911:   sunos4*)
                   113912:     case $cc_basename in
                   113913:       CC*)
                   113914:        # Sun C++ 4.x
                   113915:        # FIXME: insert proper C++ library support
                   113916:        ld_shlibs_CXX=no
                   113917:        ;;
                   113918:       lcc*)
                   113919:        # Lucid
                   113920:        # FIXME: insert proper C++ library support
                   113921:        ld_shlibs_CXX=no
                   113922:        ;;
                   113923:       *)
                   113924:        # FIXME: insert proper C++ library support
                   113925:        ld_shlibs_CXX=no
                   113926:        ;;
                   113927:     esac
                   113928:     ;;
                   113929:   solaris*)
                   113930:     case $cc_basename in
                   113931:       CC*)
                   113932:        # Sun C++ 4.2, 5.x and Centerline C++
                   113933:         archive_cmds_need_lc_CXX=yes
                   113934:        no_undefined_flag_CXX=' -zdefs'
                   113935:        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   113936:        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                   113937:        $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'
                   113938: 
                   113939:        hardcode_libdir_flag_spec_CXX='-R$libdir'
                   113940:        hardcode_shlibpath_var_CXX=no
                   113941:        case $host_os in
                   113942:          solaris2.[0-5] | solaris2.[0-5].*) ;;
                   113943:          *)
                   113944:            # The compiler driver will combine and reorder linker options,
                   113945:            # but understands `-z linker_flag'.
                   113946:            # Supported since Solaris 2.6 (maybe 2.5.1?)
                   113947:            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
                   113948:            ;;
                   113949:        esac
                   113950:        link_all_deplibs_CXX=yes
                   113951: 
                   113952:        output_verbose_link_cmd='echo'
                   113953: 
                   113954:        # Archives containing C++ object files must be created using
                   113955:        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
                   113956:        # necessary to make sure instantiated templates are included
                   113957:        # in the archive.
                   113958:        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
                   113959:        ;;
                   113960:       gcx*)
                   113961:        # Green Hills C++ Compiler
                   113962:        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
                   113963: 
                   113964:        # The C++ compiler must be used to create the archive.
                   113965:        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
                   113966:        ;;
                   113967:       *)
                   113968:        # GNU C++ compiler with Solaris linker
                   113969:        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
                   113970:          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
                   113971:          if $CC --version | grep -v '^2\.7' > /dev/null; then
                   113972:            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
                   113973:            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                   113974:                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
                   113975: 
                   113976:            # Commands to make compiler produce verbose output that lists
                   113977:            # what "hidden" libraries, object files and flags are used when
                   113978:            # linking a shared library.
                   113979:            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
                   113980:          else
                   113981:            # g++ 2.7 appears to require `-G' NOT `-shared' on this
                   113982:            # platform.
                   113983:            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
                   113984:            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                   113985:                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
                   113986: 
                   113987:            # Commands to make compiler produce verbose output that lists
                   113988:            # what "hidden" libraries, object files and flags are used when
                   113989:            # linking a shared library.
                   113990:            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
                   113991:          fi
                   113992: 
                   113993:          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
                   113994:          case $host_os in
                   113995:          solaris2.[0-5] | solaris2.[0-5].*) ;;
                   113996:          *)
                   113997:            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
                   113998:            ;;
                   113999:          esac
                   114000:        fi
                   114001:        ;;
                   114002:     esac
                   114003:     ;;
                   114004:   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
                   114005:     no_undefined_flag_CXX='${wl}-z,text'
                   114006:     archive_cmds_need_lc_CXX=no
                   114007:     hardcode_shlibpath_var_CXX=no
                   114008:     runpath_var='LD_RUN_PATH'
                   114009: 
                   114010:     case $cc_basename in
                   114011:       CC*)
                   114012:        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   114013:        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   114014:        ;;
                   114015:       *)
                   114016:        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   114017:        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   114018:        ;;
                   114019:     esac
                   114020:     ;;
                   114021:   sysv5* | sco3.2v5* | sco5v6*)
                   114022:     # Note: We can NOT use -z defs as we might desire, because we do not
                   114023:     # link with -lc, and that would cause any symbols used from libc to
                   114024:     # always be unresolved, which means just about no library would
                   114025:     # ever link correctly.  If we're not using GNU ld we use -z text
                   114026:     # though, which does catch some bad symbols but isn't as heavy-handed
                   114027:     # as -z defs.
                   114028:     # For security reasons, it is highly recommended that you always
                   114029:     # use absolute paths for naming shared libraries, and exclude the
                   114030:     # DT_RUNPATH tag from executables and libraries.  But doing so
                   114031:     # requires that you compile everything twice, which is a pain.
                   114032:     # So that behaviour is only enabled if SCOABSPATH is set to a
                   114033:     # non-empty value in the environment.  Most likely only useful for
                   114034:     # creating official distributions of packages.
                   114035:     # This is a hack until libtool officially supports absolute path
                   114036:     # names for shared libraries.
                   114037:     no_undefined_flag_CXX='${wl}-z,text'
                   114038:     allow_undefined_flag_CXX='${wl}-z,nodefs'
                   114039:     archive_cmds_need_lc_CXX=no
                   114040:     hardcode_shlibpath_var_CXX=no
                   114041:     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
                   114042:     hardcode_libdir_separator_CXX=':'
                   114043:     link_all_deplibs_CXX=yes
                   114044:     export_dynamic_flag_spec_CXX='${wl}-Bexport'
                   114045:     runpath_var='LD_RUN_PATH'
                   114046: 
                   114047:     case $cc_basename in
                   114048:       CC*)
                   114049:        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   114050:        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   114051:        ;;
                   114052:       *)
                   114053:        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   114054:        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   114055:        ;;
                   114056:     esac
                   114057:     ;;
                   114058:   tandem*)
                   114059:     case $cc_basename in
                   114060:       NCC*)
                   114061:        # NonStop-UX NCC 3.20
                   114062:        # FIXME: insert proper C++ library support
                   114063:        ld_shlibs_CXX=no
                   114064:        ;;
                   114065:       *)
                   114066:        # FIXME: insert proper C++ library support
                   114067:        ld_shlibs_CXX=no
                   114068:        ;;
                   114069:     esac
                   114070:     ;;
                   114071:   vxworks*)
                   114072:     # FIXME: insert proper C++ library support
                   114073:     ld_shlibs_CXX=no
                   114074:     ;;
                   114075:   *)
                   114076:     # FIXME: insert proper C++ library support
                   114077:     ld_shlibs_CXX=no
                   114078:     ;;
                   114079: esac
                   114080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
                   114081: $as_echo "$ld_shlibs_CXX" >&6; }
                   114082: test "$ld_shlibs_CXX" = no && can_build_shared=no
                   114083: 
                   114084: GCC_CXX="$GXX"
                   114085: LD_CXX="$LD"
                   114086: 
                   114087: ## CAVEAT EMPTOR:
                   114088: ## There is no encapsulation within the following macros, do not change
                   114089: ## the running order or otherwise move them around unless you know exactly
                   114090: ## what you are doing...
                   114091: cat > conftest.$ac_ext <<EOF
                   114092: class Foo
                   114093: {
                   114094: public:
                   114095:   Foo (void) { a = 0; }
                   114096: private:
                   114097:   int a;
                   114098: };
                   114099: EOF
                   114100: 
                   114101: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   114102:   (eval $ac_compile) 2>&5
                   114103:   ac_status=$?
                   114104:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   114105:   test $ac_status = 0; }; then
                   114106:   # Parse the compiler output and extract the necessary
                   114107:   # objects, libraries and library flags.
                   114108: 
                   114109:   # Sentinel used to keep track of whether or not we are before
                   114110:   # the conftest object file.
                   114111:   pre_test_object_deps_done=no
                   114112: 
                   114113:   # The `*' in the case matches for architectures that use `case' in
                   114114:   # $output_verbose_cmd can trigger glob expansion during the loop
                   114115:   # eval without this substitution.
                   114116:   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
                   114117: 
                   114118:   for p in `eval $output_verbose_link_cmd`; do
                   114119:     case $p in
                   114120: 
                   114121:     -L* | -R* | -l*)
                   114122:        # Some compilers place space between "-{L,R}" and the path.
                   114123:        # Remove the space.
                   114124:        if test $p = "-L" \
                   114125:          || test $p = "-R"; then
                   114126:         prev=$p
                   114127:         continue
                   114128:        else
                   114129:         prev=
                   114130:        fi
                   114131: 
                   114132:        if test "$pre_test_object_deps_done" = no; then
                   114133:         case $p in
                   114134:         -L* | -R*)
                   114135:           # Internal compiler library paths should come after those
                   114136:           # provided the user.  The postdeps already come after the
                   114137:           # user supplied libs so there is no need to process them.
                   114138:           if test -z "$compiler_lib_search_path_CXX"; then
                   114139:             compiler_lib_search_path_CXX="${prev}${p}"
                   114140:           else
                   114141:             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
                   114142:           fi
                   114143:           ;;
                   114144:         # The "-l" case would never come before the object being
                   114145:         # linked, so don't bother handling this case.
                   114146:         esac
                   114147:        else
                   114148:         if test -z "$postdeps_CXX"; then
                   114149:           postdeps_CXX="${prev}${p}"
                   114150:         else
                   114151:           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
                   114152:         fi
                   114153:        fi
                   114154:        ;;
                   114155: 
                   114156:     *.$objext)
                   114157:        # This assumes that the test object file only shows up
                   114158:        # once in the compiler output.
                   114159:        if test "$p" = "conftest.$objext"; then
                   114160:         pre_test_object_deps_done=yes
                   114161:         continue
                   114162:        fi
                   114163: 
                   114164:        if test "$pre_test_object_deps_done" = no; then
                   114165:         if test -z "$predep_objects_CXX"; then
                   114166:           predep_objects_CXX="$p"
                   114167:         else
                   114168:           predep_objects_CXX="$predep_objects_CXX $p"
                   114169:         fi
                   114170:        else
                   114171:         if test -z "$postdep_objects_CXX"; then
                   114172:           postdep_objects_CXX="$p"
                   114173:         else
                   114174:           postdep_objects_CXX="$postdep_objects_CXX $p"
                   114175:         fi
                   114176:        fi
                   114177:        ;;
                   114178: 
                   114179:     *) ;; # Ignore the rest.
                   114180: 
                   114181:     esac
                   114182:   done
                   114183: 
                   114184:   # Clean up.
                   114185:   rm -f a.out a.exe
                   114186: else
                   114187:   echo "libtool.m4: error: problem compiling CXX test program"
                   114188: fi
                   114189: 
                   114190: $rm -f confest.$objext
                   114191: 
                   114192: compiler_lib_search_dirs_CXX=
                   114193: if test -n "$compiler_lib_search_path_CXX"; then
                   114194:   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
                   114195: fi
                   114196: 
                   114197: # PORTME: override above test on systems where it is broken
                   114198: case $host_os in
                   114199: interix[3-9]*)
                   114200:   # Interix 3.5 installs completely hosed .la files for C++, so rather than
                   114201:   # hack all around it, let's just trust "g++" to DTRT.
                   114202:   predep_objects_CXX=
                   114203:   postdep_objects_CXX=
                   114204:   postdeps_CXX=
                   114205:   ;;
                   114206: 
                   114207: linux*)
                   114208:   case `$CC -V 2>&1 | sed 5q` in
                   114209:   *Sun\ C*)
                   114210:     # Sun C++ 5.9
                   114211:     #
                   114212:     # The more standards-conforming stlport4 library is
                   114213:     # incompatible with the Cstd library. Avoid specifying
                   114214:     # it if it's in CXXFLAGS. Ignore libCrun as
                   114215:     # -library=stlport4 depends on it.
                   114216:     case " $CXX $CXXFLAGS " in
                   114217:     *" -library=stlport4 "*)
                   114218:       solaris_use_stlport4=yes
                   114219:       ;;
                   114220:     esac
                   114221:     if test "$solaris_use_stlport4" != yes; then
                   114222:       postdeps_CXX='-library=Cstd -library=Crun'
                   114223:     fi
                   114224:     ;;
                   114225:   esac
                   114226:   ;;
                   114227: 
                   114228: solaris*)
                   114229:   case $cc_basename in
                   114230:   CC*)
                   114231:     # The more standards-conforming stlport4 library is
                   114232:     # incompatible with the Cstd library. Avoid specifying
                   114233:     # it if it's in CXXFLAGS. Ignore libCrun as
                   114234:     # -library=stlport4 depends on it.
                   114235:     case " $CXX $CXXFLAGS " in
                   114236:     *" -library=stlport4 "*)
                   114237:       solaris_use_stlport4=yes
                   114238:       ;;
                   114239:     esac
                   114240: 
                   114241:     # Adding this requires a known-good setup of shared libraries for
                   114242:     # Sun compiler versions before 5.6, else PIC objects from an old
                   114243:     # archive will be linked into the output, leading to subtle bugs.
                   114244:     if test "$solaris_use_stlport4" != yes; then
                   114245:       postdeps_CXX='-library=Cstd -library=Crun'
                   114246:     fi
                   114247:     ;;
                   114248:   esac
                   114249:   ;;
                   114250: esac
                   114251: 
                   114252: case " $postdeps_CXX " in
                   114253: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
                   114254: esac
                   114255: 
                   114256: lt_prog_compiler_wl_CXX=
                   114257: lt_prog_compiler_pic_CXX=
                   114258: lt_prog_compiler_static_CXX=
                   114259: 
                   114260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
                   114261: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
                   114262: 
                   114263:   # C++ specific cases for pic, static, wl, etc.
                   114264:   if test "$GXX" = yes; then
                   114265:     lt_prog_compiler_wl_CXX='-Wl,'
                   114266:     lt_prog_compiler_static_CXX='-static'
                   114267: 
                   114268:     case $host_os in
                   114269:     aix*)
                   114270:       # All AIX code is PIC.
                   114271:       if test "$host_cpu" = ia64; then
                   114272:        # AIX 5 now supports IA64 processor
                   114273:        lt_prog_compiler_static_CXX='-Bstatic'
                   114274:       fi
                   114275:       ;;
                   114276:     amigaos*)
                   114277:       # FIXME: we need at least 68020 code to build shared libraries, but
                   114278:       # adding the `-m68020' flag to GCC prevents building anything better,
                   114279:       # like `-m68040'.
                   114280:       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
                   114281:       ;;
                   114282:     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
                   114283:       # PIC is the default for these OSes.
                   114284:       ;;
                   114285:     mingw* | cygwin* | os2* | pw32*)
                   114286:       # This hack is so that the source file can tell whether it is being
                   114287:       # built for inclusion in a dll (and should export symbols for example).
                   114288:       # Although the cygwin gcc ignores -fPIC, still need this for old-style
                   114289:       # (--disable-auto-import) libraries
                   114290:          lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
                   114291:       ;;
                   114292:     darwin* | rhapsody*)
                   114293:       # PIC is the default on this platform
                   114294:       # Common symbols not allowed in MH_DYLIB files
                   114295:       lt_prog_compiler_pic_CXX='-fno-common'
                   114296:       ;;
                   114297:     *djgpp*)
                   114298:       # DJGPP does not support shared libraries at all
                   114299:       lt_prog_compiler_pic_CXX=
                   114300:       ;;
                   114301:     interix[3-9]*)
                   114302:       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
                   114303:       # Instead, we relocate shared libraries at runtime.
                   114304:       ;;
                   114305:     sysv4*MP*)
                   114306:       if test -d /usr/nec; then
                   114307:        lt_prog_compiler_pic_CXX=-Kconform_pic
                   114308:       fi
                   114309:       ;;
                   114310:     hpux*)
                   114311:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   114312:       # not for PA HP-UX.
                   114313:       case $host_cpu in
                   114314:       hppa*64*|ia64*)
                   114315:        ;;
                   114316:       *)
                   114317:        lt_prog_compiler_pic_CXX='-fPIC'
                   114318:        ;;
                   114319:       esac
                   114320:       ;;
                   114321:     *)
                   114322:       lt_prog_compiler_pic_CXX='-fPIC'
                   114323:       ;;
                   114324:     esac
                   114325:   else
                   114326:     case $host_os in
                   114327:       aix[4-9]*)
                   114328:        # All AIX code is PIC.
                   114329:        if test "$host_cpu" = ia64; then
                   114330:          # AIX 5 now supports IA64 processor
                   114331:          lt_prog_compiler_static_CXX='-Bstatic'
                   114332:        else
                   114333:          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
                   114334:        fi
                   114335:        ;;
                   114336:       chorus*)
                   114337:        case $cc_basename in
                   114338:        cxch68*)
                   114339:          # Green Hills C++ Compiler
                   114340:          # _LT_AC_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"
                   114341:          ;;
                   114342:        esac
                   114343:        ;;
                   114344:        darwin*)
                   114345:          # PIC is the default on this platform
                   114346:          # Common symbols not allowed in MH_DYLIB files
                   114347:          case $cc_basename in
                   114348:            xlc*)
                   114349:            lt_prog_compiler_pic_CXX='-qnocommon'
                   114350:            lt_prog_compiler_wl_CXX='-Wl,'
                   114351:            ;;
                   114352:          esac
                   114353:        ;;
                   114354:       dgux*)
                   114355:        case $cc_basename in
                   114356:          ec++*)
                   114357:            lt_prog_compiler_pic_CXX='-KPIC'
                   114358:            ;;
                   114359:          ghcx*)
                   114360:            # Green Hills C++ Compiler
                   114361:            lt_prog_compiler_pic_CXX='-pic'
                   114362:            ;;
                   114363:          *)
                   114364:            ;;
                   114365:        esac
                   114366:        ;;
                   114367:       freebsd* | dragonfly*)
                   114368:        # FreeBSD uses GNU C++
                   114369:        ;;
                   114370:       hpux9* | hpux10* | hpux11*)
                   114371:        case $cc_basename in
                   114372:          CC*)
                   114373:            lt_prog_compiler_wl_CXX='-Wl,'
                   114374:            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
                   114375:            if test "$host_cpu" != ia64; then
                   114376:              lt_prog_compiler_pic_CXX='+Z'
                   114377:            fi
                   114378:            ;;
                   114379:          aCC*)
                   114380:            lt_prog_compiler_wl_CXX='-Wl,'
                   114381:            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
                   114382:            case $host_cpu in
                   114383:            hppa*64*|ia64*)
                   114384:              # +Z the default
                   114385:              ;;
                   114386:            *)
                   114387:              lt_prog_compiler_pic_CXX='+Z'
                   114388:              ;;
                   114389:            esac
                   114390:            ;;
                   114391:          *)
                   114392:            ;;
                   114393:        esac
                   114394:        ;;
                   114395:       interix*)
                   114396:        # This is c89, which is MS Visual C++ (no shared libs)
                   114397:        # Anyone wants to do a port?
                   114398:        ;;
                   114399:       irix5* | irix6* | nonstopux*)
                   114400:        case $cc_basename in
                   114401:          CC*)
                   114402:            lt_prog_compiler_wl_CXX='-Wl,'
                   114403:            lt_prog_compiler_static_CXX='-non_shared'
                   114404:            # CC pic flag -KPIC is the default.
                   114405:            ;;
                   114406:          *)
                   114407:            ;;
                   114408:        esac
                   114409:        ;;
                   114410:       linux* | k*bsd*-gnu)
                   114411:        case $cc_basename in
                   114412:          KCC*)
                   114413:            # KAI C++ Compiler
                   114414:            lt_prog_compiler_wl_CXX='--backend -Wl,'
                   114415:            lt_prog_compiler_pic_CXX='-fPIC'
                   114416:            ;;
                   114417:       ecpc*)
                   114418:         # old Intel C++ for x86_64 which still supported -KPIC.
                   114419:         lt_prog_compiler_wl_CXX='-Wl,'
                   114420:         lt_prog_compiler_pic_CXX='-KPIC'
                   114421:         lt_prog_compiler_static_CXX='-static'
                   114422:         ;;
                   114423:       icpc*)
                   114424:         # Intel C++, used to be incompatible with GCC.
                   114425:         lt_prog_compiler_wl_CXX='-Wl,'
                   114426:         lt_prog_compiler_pic_CXX='-fPIC'
                   114427:         lt_prog_compiler_static_CXX='-static'
                   114428:         ;;
                   114429:          pgCC* | pgcpp*)
                   114430:            # Portland Group C++ compiler.
                   114431:            lt_prog_compiler_wl_CXX='-Wl,'
                   114432:            lt_prog_compiler_pic_CXX='-fpic'
                   114433:            lt_prog_compiler_static_CXX='-Bstatic'
                   114434:            ;;
                   114435:          cxx*)
                   114436:            # Compaq C++
                   114437:            # Make sure the PIC flag is empty.  It appears that all Alpha
                   114438:            # Linux and Compaq Tru64 Unix objects are PIC.
                   114439:            lt_prog_compiler_pic_CXX=
                   114440:            lt_prog_compiler_static_CXX='-non_shared'
                   114441:            ;;
                   114442:          *)
                   114443:            case `$CC -V 2>&1 | sed 5q` in
                   114444:            *Sun\ C*)
                   114445:              # Sun C++ 5.9
                   114446:              lt_prog_compiler_pic_CXX='-KPIC'
                   114447:              lt_prog_compiler_static_CXX='-Bstatic'
                   114448:              lt_prog_compiler_wl_CXX='-Qoption ld '
                   114449:              ;;
                   114450:            esac
                   114451:            ;;
                   114452:        esac
                   114453:        ;;
                   114454:       lynxos*)
                   114455:        ;;
                   114456:       m88k*)
                   114457:        ;;
                   114458:       mvs*)
                   114459:        case $cc_basename in
                   114460:          cxx*)
                   114461:            lt_prog_compiler_pic_CXX='-W c,exportall'
                   114462:            ;;
                   114463:          *)
                   114464:            ;;
                   114465:        esac
                   114466:        ;;
                   114467:       netbsd*)
                   114468:        ;;
                   114469:       osf3* | osf4* | osf5*)
                   114470:        case $cc_basename in
                   114471:          KCC*)
                   114472:            lt_prog_compiler_wl_CXX='--backend -Wl,'
                   114473:            ;;
                   114474:          RCC*)
                   114475:            # Rational C++ 2.4.1
                   114476:            lt_prog_compiler_pic_CXX='-pic'
                   114477:            ;;
                   114478:          cxx*)
                   114479:            # Digital/Compaq C++
                   114480:            lt_prog_compiler_wl_CXX='-Wl,'
                   114481:            # Make sure the PIC flag is empty.  It appears that all Alpha
                   114482:            # Linux and Compaq Tru64 Unix objects are PIC.
                   114483:            lt_prog_compiler_pic_CXX=
                   114484:            lt_prog_compiler_static_CXX='-non_shared'
                   114485:            ;;
                   114486:          *)
                   114487:            ;;
                   114488:        esac
                   114489:        ;;
                   114490:       psos*)
                   114491:        ;;
                   114492:       solaris*)
                   114493:        case $cc_basename in
                   114494:          CC*)
                   114495:            # Sun C++ 4.2, 5.x and Centerline C++
                   114496:            lt_prog_compiler_pic_CXX='-KPIC'
                   114497:            lt_prog_compiler_static_CXX='-Bstatic'
                   114498:            lt_prog_compiler_wl_CXX='-Qoption ld '
                   114499:            ;;
                   114500:          gcx*)
                   114501:            # Green Hills C++ Compiler
                   114502:            lt_prog_compiler_pic_CXX='-PIC'
                   114503:            ;;
                   114504:          *)
                   114505:            ;;
                   114506:        esac
                   114507:        ;;
                   114508:       sunos4*)
                   114509:        case $cc_basename in
                   114510:          CC*)
                   114511:            # Sun C++ 4.x
                   114512:            lt_prog_compiler_pic_CXX='-pic'
                   114513:            lt_prog_compiler_static_CXX='-Bstatic'
                   114514:            ;;
                   114515:          lcc*)
                   114516:            # Lucid
                   114517:            lt_prog_compiler_pic_CXX='-pic'
                   114518:            ;;
                   114519:          *)
                   114520:            ;;
                   114521:        esac
                   114522:        ;;
                   114523:       tandem*)
                   114524:        case $cc_basename in
                   114525:          NCC*)
                   114526:            # NonStop-UX NCC 3.20
                   114527:            lt_prog_compiler_pic_CXX='-KPIC'
                   114528:            ;;
                   114529:          *)
                   114530:            ;;
                   114531:        esac
                   114532:        ;;
                   114533:       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
                   114534:        case $cc_basename in
                   114535:          CC*)
                   114536:            lt_prog_compiler_wl_CXX='-Wl,'
                   114537:            lt_prog_compiler_pic_CXX='-KPIC'
                   114538:            lt_prog_compiler_static_CXX='-Bstatic'
                   114539:            ;;
                   114540:        esac
                   114541:        ;;
                   114542:       vxworks*)
                   114543:        ;;
                   114544:       *)
                   114545:        lt_prog_compiler_can_build_shared_CXX=no
                   114546:        ;;
                   114547:     esac
                   114548:   fi
                   114549: 
                   114550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
                   114551: $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
                   114552: 
                   114553: #
                   114554: # Check to make sure the PIC flag actually works.
                   114555: #
                   114556: if test -n "$lt_prog_compiler_pic_CXX"; then
                   114557: 
                   114558: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
                   114559: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
                   114560: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
                   114561:   $as_echo_n "(cached) " >&6
                   114562: else
                   114563:   lt_cv_prog_compiler_pic_works_CXX=no
                   114564:   ac_outfile=conftest.$ac_objext
                   114565:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   114566:    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
                   114567:    # Insert the option either (1) after the last *FLAGS variable, or
                   114568:    # (2) before a word containing "conftest.", or (3) at the end.
                   114569:    # Note that $ac_compile itself does not contain backslashes and begins
                   114570:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   114571:    # The option is referenced via a variable to avoid confusing sed.
                   114572:    lt_compile=`echo "$ac_compile" | $SED \
                   114573:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   114574:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   114575:    -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! misho    114576:    (eval echo "\"configure:114576: $lt_compile\"" >&5)
1.1       misho    114577:    (eval "$lt_compile" 2>conftest.err)
                   114578:    ac_status=$?
                   114579:    cat conftest.err >&5
1.1.1.2 ! misho    114580:    echo "configure:114580: \$? = $ac_status" >&5
1.1       misho    114581:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   114582:      # The compiler can only warn and ignore the option if not recognized
                   114583:      # So say no if there are warnings other than the usual output.
                   114584:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
                   114585:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   114586:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
                   114587:        lt_cv_prog_compiler_pic_works_CXX=yes
                   114588:      fi
                   114589:    fi
                   114590:    $rm conftest*
                   114591: 
                   114592: fi
                   114593: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
                   114594: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
                   114595: 
                   114596: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
                   114597:     case $lt_prog_compiler_pic_CXX in
                   114598:      "" | " "*) ;;
                   114599:      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
                   114600:      esac
                   114601: else
                   114602:     lt_prog_compiler_pic_CXX=
                   114603:      lt_prog_compiler_can_build_shared_CXX=no
                   114604: fi
                   114605: 
                   114606: fi
                   114607: case $host_os in
                   114608:   # For platforms which do not support PIC, -DPIC is meaningless:
                   114609:   *djgpp*)
                   114610:     lt_prog_compiler_pic_CXX=
                   114611:     ;;
                   114612:   *)
                   114613:     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
                   114614:     ;;
                   114615: esac
                   114616: 
                   114617: #
                   114618: # Check to make sure the static flag actually works.
                   114619: #
                   114620: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
                   114621: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
                   114622: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
                   114623: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
                   114624:   $as_echo_n "(cached) " >&6
                   114625: else
                   114626:   lt_cv_prog_compiler_static_works_CXX=no
                   114627:    save_LDFLAGS="$LDFLAGS"
                   114628:    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
                   114629:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
                   114630:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
                   114631:      # The linker can only warn and ignore the option if not recognized
                   114632:      # So say no if there are warnings
                   114633:      if test -s conftest.err; then
                   114634:        # Append any errors to the config.log.
                   114635:        cat conftest.err 1>&5
                   114636:        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
                   114637:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   114638:        if diff conftest.exp conftest.er2 >/dev/null; then
                   114639:          lt_cv_prog_compiler_static_works_CXX=yes
                   114640:        fi
                   114641:      else
                   114642:        lt_cv_prog_compiler_static_works_CXX=yes
                   114643:      fi
                   114644:    fi
                   114645:    $rm -r conftest*
                   114646:    LDFLAGS="$save_LDFLAGS"
                   114647: 
                   114648: fi
                   114649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
                   114650: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
                   114651: 
                   114652: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
                   114653:     :
                   114654: else
                   114655:     lt_prog_compiler_static_CXX=
                   114656: fi
                   114657: 
                   114658: 
                   114659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
                   114660: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
                   114661: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
                   114662:   $as_echo_n "(cached) " >&6
                   114663: else
                   114664:   lt_cv_prog_compiler_c_o_CXX=no
                   114665:    $rm -r conftest 2>/dev/null
                   114666:    mkdir conftest
                   114667:    cd conftest
                   114668:    mkdir out
                   114669:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   114670: 
                   114671:    lt_compiler_flag="-o out/conftest2.$ac_objext"
                   114672:    # Insert the option either (1) after the last *FLAGS variable, or
                   114673:    # (2) before a word containing "conftest.", or (3) at the end.
                   114674:    # Note that $ac_compile itself does not contain backslashes and begins
                   114675:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   114676:    lt_compile=`echo "$ac_compile" | $SED \
                   114677:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   114678:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   114679:    -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! misho    114680:    (eval echo "\"configure:114680: $lt_compile\"" >&5)
1.1       misho    114681:    (eval "$lt_compile" 2>out/conftest.err)
                   114682:    ac_status=$?
                   114683:    cat out/conftest.err >&5
1.1.1.2 ! misho    114684:    echo "configure:114684: \$? = $ac_status" >&5
1.1       misho    114685:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
                   114686:    then
                   114687:      # The compiler can only warn and ignore the option if not recognized
                   114688:      # So say no if there are warnings
                   114689:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
                   114690:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
                   114691:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
                   114692:        lt_cv_prog_compiler_c_o_CXX=yes
                   114693:      fi
                   114694:    fi
                   114695:    chmod u+w . 2>&5
                   114696:    $rm conftest*
                   114697:    # SGI C++ compiler will create directory out/ii_files/ for
                   114698:    # template instantiation
                   114699:    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
                   114700:    $rm out/* && rmdir out
                   114701:    cd ..
                   114702:    rmdir conftest
                   114703:    $rm conftest*
                   114704: 
                   114705: fi
                   114706: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
                   114707: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
                   114708: 
                   114709: 
                   114710: hard_links="nottested"
                   114711: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
                   114712:   # do not overwrite the value of need_locks provided by the user
                   114713:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
                   114714: $as_echo_n "checking if we can lock with hard links... " >&6; }
                   114715:   hard_links=yes
                   114716:   $rm conftest*
                   114717:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   114718:   touch conftest.a
                   114719:   ln conftest.a conftest.b 2>&5 || hard_links=no
                   114720:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   114721:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
                   114722: $as_echo "$hard_links" >&6; }
                   114723:   if test "$hard_links" = no; then
                   114724:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
                   114725: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
                   114726:     need_locks=warn
                   114727:   fi
                   114728: else
                   114729:   need_locks=no
                   114730: fi
                   114731: 
                   114732: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
                   114733: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
                   114734: 
                   114735:   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
                   114736:   case $host_os in
                   114737:   aix[4-9]*)
                   114738:     # If we're using GNU nm, then we don't want the "-C" option.
                   114739:     # -C means demangle to AIX nm, but means don't demangle with GNU nm
                   114740:     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
                   114741:       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
                   114742:     else
                   114743:       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
                   114744:     fi
                   114745:     ;;
                   114746:   pw32*)
                   114747:     export_symbols_cmds_CXX="$ltdll_cmds"
                   114748:   ;;
                   114749:   cygwin* | mingw*)
                   114750:     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
                   114751:   ;;
                   114752:   *)
                   114753:     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
                   114754:   ;;
                   114755:   esac
                   114756:   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
                   114757: 
                   114758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
                   114759: $as_echo "$ld_shlibs_CXX" >&6; }
                   114760: test "$ld_shlibs_CXX" = no && can_build_shared=no
                   114761: 
                   114762: #
                   114763: # Do we need to explicitly link libc?
                   114764: #
                   114765: case "x$archive_cmds_need_lc_CXX" in
                   114766: x|xyes)
                   114767:   # Assume -lc should be added
                   114768:   archive_cmds_need_lc_CXX=yes
                   114769: 
                   114770:   if test "$enable_shared" = yes && test "$GCC" = yes; then
                   114771:     case $archive_cmds_CXX in
                   114772:     *'~'*)
                   114773:       # FIXME: we may have to deal with multi-command sequences.
                   114774:       ;;
                   114775:     '$CC '*)
                   114776:       # Test whether the compiler implicitly links with -lc since on some
                   114777:       # systems, -lgcc has to come before -lc. If gcc already passes -lc
                   114778:       # to ld, don't add -lc before -lgcc.
                   114779:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
                   114780: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
                   114781:       $rm conftest*
                   114782:       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   114783: 
                   114784:       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
                   114785:   (eval $ac_compile) 2>&5
                   114786:   ac_status=$?
                   114787:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   114788:   test $ac_status = 0; } 2>conftest.err; then
                   114789:         soname=conftest
                   114790:         lib=conftest
                   114791:         libobjs=conftest.$ac_objext
                   114792:         deplibs=
                   114793:         wl=$lt_prog_compiler_wl_CXX
                   114794:        pic_flag=$lt_prog_compiler_pic_CXX
                   114795:         compiler_flags=-v
                   114796:         linker_flags=-v
                   114797:         verstring=
                   114798:         output_objdir=.
                   114799:         libname=conftest
                   114800:         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
                   114801:         allow_undefined_flag_CXX=
                   114802:         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
                   114803:   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
                   114804:   ac_status=$?
                   114805:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   114806:   test $ac_status = 0; }
                   114807:         then
                   114808:          archive_cmds_need_lc_CXX=no
                   114809:         else
                   114810:          archive_cmds_need_lc_CXX=yes
                   114811:         fi
                   114812:         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
                   114813:       else
                   114814:         cat conftest.err 1>&5
                   114815:       fi
                   114816:       $rm conftest*
                   114817:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
                   114818: $as_echo "$archive_cmds_need_lc_CXX" >&6; }
                   114819:       ;;
                   114820:     esac
                   114821:   fi
                   114822:   ;;
                   114823: esac
                   114824: 
                   114825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
                   114826: $as_echo_n "checking dynamic linker characteristics... " >&6; }
                   114827: library_names_spec=
                   114828: libname_spec='lib$name'
                   114829: soname_spec=
                   114830: shrext_cmds=".so"
                   114831: postinstall_cmds=
                   114832: postuninstall_cmds=
                   114833: finish_cmds=
                   114834: finish_eval=
                   114835: shlibpath_var=
                   114836: shlibpath_overrides_runpath=unknown
                   114837: version_type=none
                   114838: dynamic_linker="$host_os ld.so"
                   114839: sys_lib_dlsearch_path_spec="/lib /usr/lib"
                   114840: 
                   114841: need_lib_prefix=unknown
                   114842: hardcode_into_libs=no
                   114843: 
                   114844: # when you set need_version to no, make sure it does not cause -set_version
                   114845: # flags to be left without arguments
                   114846: need_version=unknown
                   114847: 
                   114848: case $host_os in
                   114849: aix3*)
                   114850:   version_type=linux
                   114851:   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
                   114852:   shlibpath_var=LIBPATH
                   114853: 
                   114854:   # AIX 3 has no versioning support, so we append a major version to the name.
                   114855:   soname_spec='${libname}${release}${shared_ext}$major'
                   114856:   ;;
                   114857: 
                   114858: aix[4-9]*)
                   114859:   version_type=linux
                   114860:   need_lib_prefix=no
                   114861:   need_version=no
                   114862:   hardcode_into_libs=yes
                   114863:   if test "$host_cpu" = ia64; then
                   114864:     # AIX 5 supports IA64
                   114865:     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
                   114866:     shlibpath_var=LD_LIBRARY_PATH
                   114867:   else
                   114868:     # With GCC up to 2.95.x, collect2 would create an import file
                   114869:     # for dependence libraries.  The import file would start with
                   114870:     # the line `#! .'.  This would cause the generated library to
                   114871:     # depend on `.', always an invalid library.  This was fixed in
                   114872:     # development snapshots of GCC prior to 3.0.
                   114873:     case $host_os in
                   114874:       aix4 | aix4.[01] | aix4.[01].*)
                   114875:       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
                   114876:           echo ' yes '
                   114877:           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
                   114878:        :
                   114879:       else
                   114880:        can_build_shared=no
                   114881:       fi
                   114882:       ;;
                   114883:     esac
                   114884:     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
                   114885:     # soname into executable. Probably we can add versioning support to
                   114886:     # collect2, so additional links can be useful in future.
                   114887:     if test "$aix_use_runtimelinking" = yes; then
                   114888:       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
                   114889:       # instead of lib<name>.a to let people know that these are not
                   114890:       # typical AIX shared libraries.
                   114891:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   114892:     else
                   114893:       # We preserve .a as extension for shared libraries through AIX4.2
                   114894:       # and later when we are not doing run time linking.
                   114895:       library_names_spec='${libname}${release}.a $libname.a'
                   114896:       soname_spec='${libname}${release}${shared_ext}$major'
                   114897:     fi
                   114898:     shlibpath_var=LIBPATH
                   114899:   fi
                   114900:   ;;
                   114901: 
                   114902: amigaos*)
                   114903:   library_names_spec='$libname.ixlibrary $libname.a'
                   114904:   # Create ${libname}_ixlibrary.a entries in /sys/libs.
                   114905:   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
                   114906:   ;;
                   114907: 
                   114908: beos*)
                   114909:   library_names_spec='${libname}${shared_ext}'
                   114910:   dynamic_linker="$host_os ld.so"
                   114911:   shlibpath_var=LIBRARY_PATH
                   114912:   ;;
                   114913: 
                   114914: bsdi[45]*)
                   114915:   version_type=linux
                   114916:   need_version=no
                   114917:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   114918:   soname_spec='${libname}${release}${shared_ext}$major'
                   114919:   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
                   114920:   shlibpath_var=LD_LIBRARY_PATH
                   114921:   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
                   114922:   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
                   114923:   # the default ld.so.conf also contains /usr/contrib/lib and
                   114924:   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
                   114925:   # libtool to hard-code these into programs
                   114926:   ;;
                   114927: 
                   114928: cygwin* | mingw* | pw32*)
                   114929:   version_type=windows
                   114930:   shrext_cmds=".dll"
                   114931:   need_version=no
                   114932:   need_lib_prefix=no
                   114933: 
                   114934:   case $GCC,$host_os in
                   114935:   yes,cygwin* | yes,mingw* | yes,pw32*)
                   114936:     library_names_spec='$libname.dll.a'
                   114937:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
                   114938:     postinstall_cmds='base_file=`basename \${file}`~
                   114939:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
                   114940:       dldir=$destdir/`dirname \$dlpath`~
                   114941:       test -d \$dldir || mkdir -p \$dldir~
                   114942:       $install_prog $dir/$dlname \$dldir/$dlname~
                   114943:       chmod a+x \$dldir/$dlname'
                   114944:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
                   114945:       dlpath=$dir/\$dldll~
                   114946:        $rm \$dlpath'
                   114947:     shlibpath_overrides_runpath=yes
                   114948: 
                   114949:     case $host_os in
                   114950:     cygwin*)
                   114951:       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
                   114952:       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   114953:       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
                   114954:       ;;
                   114955:     mingw*)
                   114956:       # MinGW DLLs use traditional 'lib' prefix
                   114957:       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   114958:       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
                   114959:       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
                   114960:         # It is most probably a Windows format PATH printed by
                   114961:         # mingw gcc, but we are running on Cygwin. Gcc prints its search
                   114962:         # path with ; separators, and with drive letters. We can handle the
                   114963:         # drive letters (cygwin fileutils understands them), so leave them,
                   114964:         # especially as we might pass files found there to a mingw objdump,
                   114965:         # which wouldn't understand a cygwinified path. Ahh.
                   114966:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
                   114967:       else
                   114968:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
                   114969:       fi
                   114970:       ;;
                   114971:     pw32*)
                   114972:       # pw32 DLLs use 'pw' prefix rather than 'lib'
                   114973:       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   114974:       ;;
                   114975:     esac
                   114976:     ;;
                   114977: 
                   114978:   *)
                   114979:     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
                   114980:     ;;
                   114981:   esac
                   114982:   dynamic_linker='Win32 ld.exe'
                   114983:   # FIXME: first we should search . and the directory the executable is in
                   114984:   shlibpath_var=PATH
                   114985:   ;;
                   114986: 
                   114987: darwin* | rhapsody*)
                   114988:   dynamic_linker="$host_os dyld"
                   114989:   version_type=darwin
                   114990:   need_lib_prefix=no
                   114991:   need_version=no
                   114992:   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
                   114993:   soname_spec='${libname}${release}${major}$shared_ext'
                   114994:   shlibpath_overrides_runpath=yes
                   114995:   shlibpath_var=DYLD_LIBRARY_PATH
                   114996:   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
                   114997: 
                   114998:   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
                   114999:   ;;
                   115000: 
                   115001: dgux*)
                   115002:   version_type=linux
                   115003:   need_lib_prefix=no
                   115004:   need_version=no
                   115005:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
                   115006:   soname_spec='${libname}${release}${shared_ext}$major'
                   115007:   shlibpath_var=LD_LIBRARY_PATH
                   115008:   ;;
                   115009: 
                   115010: freebsd1.*)
                   115011:   dynamic_linker=no
                   115012:   ;;
                   115013: 
                   115014: freebsd* | dragonfly*)
                   115015:   # DragonFly does not have aout.  When/if they implement a new
                   115016:   # versioning mechanism, adjust this.
                   115017:   if test -x /usr/bin/objformat; then
                   115018:     objformat=`/usr/bin/objformat`
                   115019:   else
                   115020:     case $host_os in
                   115021:     freebsd[123].*) objformat=aout ;;
                   115022:     *) objformat=elf ;;
                   115023:     esac
                   115024:   fi
                   115025:   version_type=freebsd-$objformat
                   115026:   case $version_type in
                   115027:     freebsd-elf*)
                   115028:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
                   115029:       need_version=no
                   115030:       need_lib_prefix=no
                   115031:       ;;
                   115032:     freebsd-*)
                   115033:       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
                   115034:       need_version=yes
                   115035:       ;;
                   115036:   esac
                   115037:   shlibpath_var=LD_LIBRARY_PATH
                   115038:   case $host_os in
                   115039:   freebsd2*)
                   115040:     shlibpath_overrides_runpath=yes
                   115041:     ;;
                   115042:   freebsd3.[01]* | freebsdelf3.[01]*)
                   115043:     shlibpath_overrides_runpath=yes
                   115044:     hardcode_into_libs=yes
                   115045:     ;;
                   115046:   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
                   115047:   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
                   115048:     shlibpath_overrides_runpath=no
                   115049:     hardcode_into_libs=yes
                   115050:     ;;
                   115051:   *) # from 4.6 on, and DragonFly
                   115052:     shlibpath_overrides_runpath=yes
                   115053:     hardcode_into_libs=yes
                   115054:     ;;
                   115055:   esac
                   115056:   ;;
                   115057: 
                   115058: gnu*)
                   115059:   version_type=linux
                   115060:   need_lib_prefix=no
                   115061:   need_version=no
                   115062:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
                   115063:   soname_spec='${libname}${release}${shared_ext}$major'
                   115064:   shlibpath_var=LD_LIBRARY_PATH
                   115065:   hardcode_into_libs=yes
                   115066:   ;;
                   115067: 
                   115068: hpux9* | hpux10* | hpux11*)
                   115069:   # Give a soname corresponding to the major version so that dld.sl refuses to
                   115070:   # link against other versions.
                   115071:   version_type=sunos
                   115072:   need_lib_prefix=no
                   115073:   need_version=no
                   115074:   case $host_cpu in
                   115075:   ia64*)
                   115076:     shrext_cmds='.so'
                   115077:     hardcode_into_libs=yes
                   115078:     dynamic_linker="$host_os dld.so"
                   115079:     shlibpath_var=LD_LIBRARY_PATH
                   115080:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   115081:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   115082:     soname_spec='${libname}${release}${shared_ext}$major'
                   115083:     if test "X$HPUX_IA64_MODE" = X32; then
                   115084:       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
                   115085:     else
                   115086:       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
                   115087:     fi
                   115088:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   115089:     ;;
                   115090:    hppa*64*)
                   115091:      shrext_cmds='.sl'
                   115092:      hardcode_into_libs=yes
                   115093:      dynamic_linker="$host_os dld.sl"
                   115094:      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
                   115095:      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   115096:      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   115097:      soname_spec='${libname}${release}${shared_ext}$major'
                   115098:      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
                   115099:      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   115100:      ;;
                   115101:    *)
                   115102:     shrext_cmds='.sl'
                   115103:     dynamic_linker="$host_os dld.sl"
                   115104:     shlibpath_var=SHLIB_PATH
                   115105:     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
                   115106:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   115107:     soname_spec='${libname}${release}${shared_ext}$major'
                   115108:     ;;
                   115109:   esac
                   115110:   # HP-UX runs *really* slowly unless shared libraries are mode 555.
                   115111:   postinstall_cmds='chmod 555 $lib'
                   115112:   ;;
                   115113: 
                   115114: interix[3-9]*)
                   115115:   version_type=linux
                   115116:   need_lib_prefix=no
                   115117:   need_version=no
                   115118:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   115119:   soname_spec='${libname}${release}${shared_ext}$major'
                   115120:   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
                   115121:   shlibpath_var=LD_LIBRARY_PATH
                   115122:   shlibpath_overrides_runpath=no
                   115123:   hardcode_into_libs=yes
                   115124:   ;;
                   115125: 
                   115126: irix5* | irix6* | nonstopux*)
                   115127:   case $host_os in
                   115128:     nonstopux*) version_type=nonstopux ;;
                   115129:     *)
                   115130:        if test "$lt_cv_prog_gnu_ld" = yes; then
                   115131:                version_type=linux
                   115132:        else
                   115133:                version_type=irix
                   115134:        fi ;;
                   115135:   esac
                   115136:   need_lib_prefix=no
                   115137:   need_version=no
                   115138:   soname_spec='${libname}${release}${shared_ext}$major'
                   115139:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
                   115140:   case $host_os in
                   115141:   irix5* | nonstopux*)
                   115142:     libsuff= shlibsuff=
                   115143:     ;;
                   115144:   *)
                   115145:     case $LD in # libtool.m4 will add one of these switches to LD
                   115146:     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
                   115147:       libsuff= shlibsuff= libmagic=32-bit;;
                   115148:     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
                   115149:       libsuff=32 shlibsuff=N32 libmagic=N32;;
                   115150:     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
                   115151:       libsuff=64 shlibsuff=64 libmagic=64-bit;;
                   115152:     *) libsuff= shlibsuff= libmagic=never-match;;
                   115153:     esac
                   115154:     ;;
                   115155:   esac
                   115156:   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
                   115157:   shlibpath_overrides_runpath=no
                   115158:   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
                   115159:   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
                   115160:   hardcode_into_libs=yes
                   115161:   ;;
                   115162: 
                   115163: # No shared lib support for Linux oldld, aout, or coff.
                   115164: linux*oldld* | linux*aout* | linux*coff*)
                   115165:   dynamic_linker=no
                   115166:   ;;
                   115167: 
                   115168: # This must be Linux ELF.
                   115169: linux* | k*bsd*-gnu)
                   115170:   version_type=linux
                   115171:   need_lib_prefix=no
                   115172:   need_version=no
                   115173:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   115174:   soname_spec='${libname}${release}${shared_ext}$major'
                   115175:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
                   115176:   shlibpath_var=LD_LIBRARY_PATH
                   115177:   shlibpath_overrides_runpath=no
                   115178:   # This implies no fast_install, which is unacceptable.
                   115179:   # Some rework will be needed to allow for fast_install
                   115180:   # before this can be enabled.
                   115181:   hardcode_into_libs=yes
                   115182: 
                   115183:   # Append ld.so.conf contents to the search path
                   115184:   if test -f /etc/ld.so.conf; then
                   115185:     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;/^$/d' | tr '\n' ' '`
                   115186:     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
                   115187:   fi
                   115188: 
                   115189:   # We used to test for /lib/ld.so.1 and disable shared libraries on
                   115190:   # powerpc, because MkLinux only supported shared libraries with the
                   115191:   # GNU dynamic linker.  Since this was broken with cross compilers,
                   115192:   # most powerpc-linux boxes support dynamic linking these days and
                   115193:   # people can always --disable-shared, the test was removed, and we
                   115194:   # assume the GNU/Linux dynamic linker is in use.
                   115195:   dynamic_linker='GNU/Linux ld.so'
                   115196:   ;;
                   115197: 
                   115198: netbsd*)
                   115199:   version_type=sunos
                   115200:   need_lib_prefix=no
                   115201:   need_version=no
                   115202:   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   115203:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   115204:     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   115205:     dynamic_linker='NetBSD (a.out) ld.so'
                   115206:   else
                   115207:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   115208:     soname_spec='${libname}${release}${shared_ext}$major'
                   115209:     dynamic_linker='NetBSD ld.elf_so'
                   115210:   fi
                   115211:   shlibpath_var=LD_LIBRARY_PATH
                   115212:   shlibpath_overrides_runpath=yes
                   115213:   hardcode_into_libs=yes
                   115214:   ;;
                   115215: 
                   115216: newsos6)
                   115217:   version_type=linux
                   115218:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   115219:   shlibpath_var=LD_LIBRARY_PATH
                   115220:   shlibpath_overrides_runpath=yes
                   115221:   ;;
                   115222: 
                   115223: nto-qnx*)
                   115224:   version_type=linux
                   115225:   need_lib_prefix=no
                   115226:   need_version=no
                   115227:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   115228:   soname_spec='${libname}${release}${shared_ext}$major'
                   115229:   shlibpath_var=LD_LIBRARY_PATH
                   115230:   shlibpath_overrides_runpath=yes
                   115231:   ;;
                   115232: 
                   115233: openbsd*)
                   115234:   version_type=sunos
                   115235:   sys_lib_dlsearch_path_spec="/usr/lib"
                   115236:   need_lib_prefix=no
                   115237:   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
                   115238:   case $host_os in
                   115239:     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
                   115240:     *)                         need_version=no  ;;
                   115241:   esac
                   115242:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   115243:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   115244:   shlibpath_var=LD_LIBRARY_PATH
                   115245:   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   115246:     case $host_os in
                   115247:       openbsd2.[89] | openbsd2.[89].*)
                   115248:        shlibpath_overrides_runpath=no
                   115249:        ;;
                   115250:       *)
                   115251:        shlibpath_overrides_runpath=yes
                   115252:        ;;
                   115253:       esac
                   115254:   else
                   115255:     shlibpath_overrides_runpath=yes
                   115256:   fi
                   115257:   ;;
                   115258: 
                   115259: os2*)
                   115260:   libname_spec='$name'
                   115261:   shrext_cmds=".dll"
                   115262:   need_lib_prefix=no
                   115263:   library_names_spec='$libname${shared_ext} $libname.a'
                   115264:   dynamic_linker='OS/2 ld.exe'
                   115265:   shlibpath_var=LIBPATH
                   115266:   ;;
                   115267: 
                   115268: osf3* | osf4* | osf5*)
                   115269:   version_type=osf
                   115270:   need_lib_prefix=no
                   115271:   need_version=no
                   115272:   soname_spec='${libname}${release}${shared_ext}$major'
                   115273:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   115274:   shlibpath_var=LD_LIBRARY_PATH
                   115275:   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
                   115276:   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
                   115277:   ;;
                   115278: 
                   115279: rdos*)
                   115280:   dynamic_linker=no
                   115281:   ;;
                   115282: 
                   115283: solaris*)
                   115284:   version_type=linux
                   115285:   need_lib_prefix=no
                   115286:   need_version=no
                   115287:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   115288:   soname_spec='${libname}${release}${shared_ext}$major'
                   115289:   shlibpath_var=LD_LIBRARY_PATH
                   115290:   shlibpath_overrides_runpath=yes
                   115291:   hardcode_into_libs=yes
                   115292:   # ldd complains unless libraries are executable
                   115293:   postinstall_cmds='chmod +x $lib'
                   115294:   ;;
                   115295: 
                   115296: sunos4*)
                   115297:   version_type=sunos
                   115298:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   115299:   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
                   115300:   shlibpath_var=LD_LIBRARY_PATH
                   115301:   shlibpath_overrides_runpath=yes
                   115302:   if test "$with_gnu_ld" = yes; then
                   115303:     need_lib_prefix=no
                   115304:   fi
                   115305:   need_version=yes
                   115306:   ;;
                   115307: 
                   115308: sysv4 | sysv4.3*)
                   115309:   version_type=linux
                   115310:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   115311:   soname_spec='${libname}${release}${shared_ext}$major'
                   115312:   shlibpath_var=LD_LIBRARY_PATH
                   115313:   case $host_vendor in
                   115314:     sni)
                   115315:       shlibpath_overrides_runpath=no
                   115316:       need_lib_prefix=no
                   115317:       export_dynamic_flag_spec='${wl}-Blargedynsym'
                   115318:       runpath_var=LD_RUN_PATH
                   115319:       ;;
                   115320:     siemens)
                   115321:       need_lib_prefix=no
                   115322:       ;;
                   115323:     motorola)
                   115324:       need_lib_prefix=no
                   115325:       need_version=no
                   115326:       shlibpath_overrides_runpath=no
                   115327:       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
                   115328:       ;;
                   115329:   esac
                   115330:   ;;
                   115331: 
                   115332: sysv4*MP*)
                   115333:   if test -d /usr/nec ;then
                   115334:     version_type=linux
                   115335:     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
                   115336:     soname_spec='$libname${shared_ext}.$major'
                   115337:     shlibpath_var=LD_LIBRARY_PATH
                   115338:   fi
                   115339:   ;;
                   115340: 
                   115341: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
                   115342:   version_type=freebsd-elf
                   115343:   need_lib_prefix=no
                   115344:   need_version=no
                   115345:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
                   115346:   soname_spec='${libname}${release}${shared_ext}$major'
                   115347:   shlibpath_var=LD_LIBRARY_PATH
                   115348:   hardcode_into_libs=yes
                   115349:   if test "$with_gnu_ld" = yes; then
                   115350:     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
                   115351:     shlibpath_overrides_runpath=no
                   115352:   else
                   115353:     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
                   115354:     shlibpath_overrides_runpath=yes
                   115355:     case $host_os in
                   115356:       sco3.2v5*)
                   115357:         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
                   115358:        ;;
                   115359:     esac
                   115360:   fi
                   115361:   sys_lib_dlsearch_path_spec='/usr/lib'
                   115362:   ;;
                   115363: 
                   115364: uts4*)
                   115365:   version_type=linux
                   115366:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   115367:   soname_spec='${libname}${release}${shared_ext}$major'
                   115368:   shlibpath_var=LD_LIBRARY_PATH
                   115369:   ;;
                   115370: 
                   115371: *)
                   115372:   dynamic_linker=no
                   115373:   ;;
                   115374: esac
                   115375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
                   115376: $as_echo "$dynamic_linker" >&6; }
                   115377: test "$dynamic_linker" = no && can_build_shared=no
                   115378: 
                   115379: if ${lt_cv_sys_lib_search_path_spec+:} false; then :
                   115380:   $as_echo_n "(cached) " >&6
                   115381: else
                   115382:   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
                   115383: fi
                   115384: 
                   115385: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
                   115386: if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
                   115387:   $as_echo_n "(cached) " >&6
                   115388: else
                   115389:   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
                   115390: fi
                   115391: 
                   115392: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
                   115393: 
                   115394: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
                   115395: if test "$GCC" = yes; then
                   115396:   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
                   115397: fi
                   115398: 
                   115399: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
                   115400: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
                   115401: hardcode_action_CXX=
                   115402: if test -n "$hardcode_libdir_flag_spec_CXX" || \
                   115403:    test -n "$runpath_var_CXX" || \
                   115404:    test "X$hardcode_automatic_CXX" = "Xyes" ; then
                   115405: 
                   115406:   # We can hardcode non-existant directories.
                   115407:   if test "$hardcode_direct_CXX" != no &&
                   115408:      # If the only mechanism to avoid hardcoding is shlibpath_var, we
                   115409:      # have to relink, otherwise we might link with an installed library
                   115410:      # when we should be linking with a yet-to-be-installed one
                   115411:      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
                   115412:      test "$hardcode_minus_L_CXX" != no; then
                   115413:     # Linking always hardcodes the temporary library directory.
                   115414:     hardcode_action_CXX=relink
                   115415:   else
                   115416:     # We can link without hardcoding, and we can hardcode nonexisting dirs.
                   115417:     hardcode_action_CXX=immediate
                   115418:   fi
                   115419: else
                   115420:   # We cannot hardcode anything, or else we can only hardcode existing
                   115421:   # directories.
                   115422:   hardcode_action_CXX=unsupported
                   115423: fi
                   115424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
                   115425: $as_echo "$hardcode_action_CXX" >&6; }
                   115426: 
                   115427: if test "$hardcode_action_CXX" = relink; then
                   115428:   # Fast installation is not supported
                   115429:   enable_fast_install=no
                   115430: elif test "$shlibpath_overrides_runpath" = yes ||
                   115431:      test "$enable_shared" = no; then
                   115432:   # Fast installation is not necessary
                   115433:   enable_fast_install=needless
                   115434: fi
                   115435: 
                   115436: 
                   115437: # The else clause should only fire when bootstrapping the
                   115438: # libtool distribution, otherwise you forgot to ship ltmain.sh
                   115439: # with your package, and you will get complaints that there are
                   115440: # no rules to generate ltmain.sh.
                   115441: if test -f "$ltmain"; then
                   115442:   # See if we are running on zsh, and set the options which allow our commands through
                   115443:   # without removal of \ escapes.
                   115444:   if test -n "${ZSH_VERSION+set}" ; then
                   115445:     setopt NO_GLOB_SUBST
                   115446:   fi
                   115447:   # Now quote all the things that may contain metacharacters while being
                   115448:   # careful not to overquote the AC_SUBSTed values.  We take copies of the
                   115449:   # variables and quote the copies for generation of the libtool script.
                   115450:   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
                   115451:     SED SHELL STRIP \
                   115452:     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
                   115453:     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
                   115454:     deplibs_check_method reload_flag reload_cmds need_locks \
                   115455:     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
                   115456:     lt_cv_sys_global_symbol_to_c_name_address \
                   115457:     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
                   115458:     old_postinstall_cmds old_postuninstall_cmds \
                   115459:     compiler_CXX \
                   115460:     CC_CXX \
                   115461:     LD_CXX \
                   115462:     lt_prog_compiler_wl_CXX \
                   115463:     lt_prog_compiler_pic_CXX \
                   115464:     lt_prog_compiler_static_CXX \
                   115465:     lt_prog_compiler_no_builtin_flag_CXX \
                   115466:     export_dynamic_flag_spec_CXX \
                   115467:     thread_safe_flag_spec_CXX \
                   115468:     whole_archive_flag_spec_CXX \
                   115469:     enable_shared_with_static_runtimes_CXX \
                   115470:     old_archive_cmds_CXX \
                   115471:     old_archive_from_new_cmds_CXX \
                   115472:     predep_objects_CXX \
                   115473:     postdep_objects_CXX \
                   115474:     predeps_CXX \
                   115475:     postdeps_CXX \
                   115476:     compiler_lib_search_path_CXX \
                   115477:     compiler_lib_search_dirs_CXX \
                   115478:     archive_cmds_CXX \
                   115479:     archive_expsym_cmds_CXX \
                   115480:     postinstall_cmds_CXX \
                   115481:     postuninstall_cmds_CXX \
                   115482:     old_archive_from_expsyms_cmds_CXX \
                   115483:     allow_undefined_flag_CXX \
                   115484:     no_undefined_flag_CXX \
                   115485:     export_symbols_cmds_CXX \
                   115486:     hardcode_libdir_flag_spec_CXX \
                   115487:     hardcode_libdir_flag_spec_ld_CXX \
                   115488:     hardcode_libdir_separator_CXX \
                   115489:     hardcode_automatic_CXX \
                   115490:     module_cmds_CXX \
                   115491:     module_expsym_cmds_CXX \
                   115492:     lt_cv_prog_compiler_c_o_CXX \
                   115493:     fix_srcfile_path_CXX \
                   115494:     exclude_expsyms_CXX \
                   115495:     include_expsyms_CXX; do
                   115496: 
                   115497:     case $var in
                   115498:     old_archive_cmds_CXX | \
                   115499:     old_archive_from_new_cmds_CXX | \
                   115500:     archive_cmds_CXX | \
                   115501:     archive_expsym_cmds_CXX | \
                   115502:     module_cmds_CXX | \
                   115503:     module_expsym_cmds_CXX | \
                   115504:     old_archive_from_expsyms_cmds_CXX | \
                   115505:     export_symbols_cmds_CXX | \
                   115506:     extract_expsyms_cmds | reload_cmds | finish_cmds | \
                   115507:     postinstall_cmds | postuninstall_cmds | \
                   115508:     old_postinstall_cmds | old_postuninstall_cmds | \
                   115509:     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
                   115510:       # Double-quote double-evaled strings.
                   115511:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
                   115512:       ;;
                   115513:     *)
                   115514:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
                   115515:       ;;
                   115516:     esac
                   115517:   done
                   115518: 
                   115519:   case $lt_echo in
                   115520:   *'\$0 --fallback-echo"')
                   115521:     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
                   115522:     ;;
                   115523:   esac
                   115524: 
                   115525: cfgfile="$ofile"
                   115526: 
                   115527:   cat <<__EOF__ >> "$cfgfile"
                   115528: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
                   115529: 
                   115530: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   115531: 
                   115532: # Shell to use when invoking shell scripts.
                   115533: SHELL=$lt_SHELL
                   115534: 
                   115535: # Whether or not to build shared libraries.
                   115536: build_libtool_libs=$enable_shared
                   115537: 
                   115538: # Whether or not to build static libraries.
                   115539: build_old_libs=$enable_static
                   115540: 
                   115541: # Whether or not to add -lc for building shared libraries.
                   115542: build_libtool_need_lc=$archive_cmds_need_lc_CXX
                   115543: 
                   115544: # Whether or not to disallow shared libs when runtime libs are static
                   115545: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
                   115546: 
                   115547: # Whether or not to optimize for fast installation.
                   115548: fast_install=$enable_fast_install
                   115549: 
                   115550: # The host system.
                   115551: host_alias=$host_alias
                   115552: host=$host
                   115553: host_os=$host_os
                   115554: 
                   115555: # The build system.
                   115556: build_alias=$build_alias
                   115557: build=$build
                   115558: build_os=$build_os
                   115559: 
                   115560: # An echo program that does not interpret backslashes.
                   115561: echo=$lt_echo
                   115562: 
                   115563: # The archiver.
                   115564: AR=$lt_AR
                   115565: AR_FLAGS=$lt_AR_FLAGS
                   115566: 
                   115567: # A C compiler.
                   115568: LTCC=$lt_LTCC
                   115569: 
                   115570: # LTCC compiler flags.
                   115571: LTCFLAGS=$lt_LTCFLAGS
                   115572: 
                   115573: # A language-specific compiler.
                   115574: CC=$lt_compiler_CXX
                   115575: 
                   115576: # Is the compiler the GNU C compiler?
                   115577: with_gcc=$GCC_CXX
                   115578: 
                   115579: # An ERE matcher.
                   115580: EGREP=$lt_EGREP
                   115581: 
                   115582: # The linker used to build libraries.
                   115583: LD=$lt_LD_CXX
                   115584: 
                   115585: # Whether we need hard or soft links.
                   115586: LN_S=$lt_LN_S
                   115587: 
                   115588: # A BSD-compatible nm program.
                   115589: NM=$lt_NM
                   115590: 
                   115591: # A symbol stripping program
                   115592: STRIP=$lt_STRIP
                   115593: 
                   115594: # Used to examine libraries when file_magic_cmd begins "file"
                   115595: MAGIC_CMD=$MAGIC_CMD
                   115596: 
                   115597: # Used on cygwin: DLL creation program.
                   115598: DLLTOOL="$DLLTOOL"
                   115599: 
                   115600: # Used on cygwin: object dumper.
                   115601: OBJDUMP="$OBJDUMP"
                   115602: 
                   115603: # Used on cygwin: assembler.
                   115604: AS="$AS"
                   115605: 
                   115606: # The name of the directory that contains temporary libtool files.
                   115607: objdir=$objdir
                   115608: 
                   115609: # How to create reloadable object files.
                   115610: reload_flag=$lt_reload_flag
                   115611: reload_cmds=$lt_reload_cmds
                   115612: 
                   115613: # How to pass a linker flag through the compiler.
                   115614: wl=$lt_lt_prog_compiler_wl_CXX
                   115615: 
                   115616: # Object file suffix (normally "o").
                   115617: objext="$ac_objext"
                   115618: 
                   115619: # Old archive suffix (normally "a").
                   115620: libext="$libext"
                   115621: 
                   115622: # Shared library suffix (normally ".so").
                   115623: shrext_cmds='$shrext_cmds'
                   115624: 
                   115625: # Executable file suffix (normally "").
                   115626: exeext="$exeext"
                   115627: 
                   115628: # Additional compiler flags for building library objects.
                   115629: pic_flag=$lt_lt_prog_compiler_pic_CXX
                   115630: pic_mode=$pic_mode
                   115631: 
                   115632: # What is the maximum length of a command?
                   115633: max_cmd_len=$lt_cv_sys_max_cmd_len
                   115634: 
                   115635: # Does compiler simultaneously support -c and -o options?
                   115636: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
                   115637: 
                   115638: # Must we lock files when doing compilation?
                   115639: need_locks=$lt_need_locks
                   115640: 
                   115641: # Do we need the lib prefix for modules?
                   115642: need_lib_prefix=$need_lib_prefix
                   115643: 
                   115644: # Do we need a version for libraries?
                   115645: need_version=$need_version
                   115646: 
                   115647: # Whether dlopen is supported.
                   115648: dlopen_support=$enable_dlopen
                   115649: 
                   115650: # Whether dlopen of programs is supported.
                   115651: dlopen_self=$enable_dlopen_self
                   115652: 
                   115653: # Whether dlopen of statically linked programs is supported.
                   115654: dlopen_self_static=$enable_dlopen_self_static
                   115655: 
                   115656: # Compiler flag to prevent dynamic linking.
                   115657: link_static_flag=$lt_lt_prog_compiler_static_CXX
                   115658: 
                   115659: # Compiler flag to turn off builtin functions.
                   115660: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
                   115661: 
                   115662: # Compiler flag to allow reflexive dlopens.
                   115663: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
                   115664: 
                   115665: # Compiler flag to generate shared objects directly from archives.
                   115666: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
                   115667: 
                   115668: # Compiler flag to generate thread-safe objects.
                   115669: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
                   115670: 
                   115671: # Library versioning type.
                   115672: version_type=$version_type
                   115673: 
                   115674: # Format of library name prefix.
                   115675: libname_spec=$lt_libname_spec
                   115676: 
                   115677: # List of archive names.  First name is the real one, the rest are links.
                   115678: # The last name is the one that the linker finds with -lNAME.
                   115679: library_names_spec=$lt_library_names_spec
                   115680: 
                   115681: # The coded name of the library, if different from the real name.
                   115682: soname_spec=$lt_soname_spec
                   115683: 
                   115684: # Commands used to build and install an old-style archive.
                   115685: RANLIB=$lt_RANLIB
                   115686: old_archive_cmds=$lt_old_archive_cmds_CXX
                   115687: old_postinstall_cmds=$lt_old_postinstall_cmds
                   115688: old_postuninstall_cmds=$lt_old_postuninstall_cmds
                   115689: 
                   115690: # Create an old-style archive from a shared archive.
                   115691: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
                   115692: 
                   115693: # Create a temporary old-style archive to link instead of a shared archive.
                   115694: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
                   115695: 
                   115696: # Commands used to build and install a shared archive.
                   115697: archive_cmds=$lt_archive_cmds_CXX
                   115698: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
                   115699: postinstall_cmds=$lt_postinstall_cmds
                   115700: postuninstall_cmds=$lt_postuninstall_cmds
                   115701: 
                   115702: # Commands used to build a loadable module (assumed same as above if empty)
                   115703: module_cmds=$lt_module_cmds_CXX
                   115704: module_expsym_cmds=$lt_module_expsym_cmds_CXX
                   115705: 
                   115706: # Commands to strip libraries.
                   115707: old_striplib=$lt_old_striplib
                   115708: striplib=$lt_striplib
                   115709: 
                   115710: # Dependencies to place before the objects being linked to create a
                   115711: # shared library.
                   115712: predep_objects=$lt_predep_objects_CXX
                   115713: 
                   115714: # Dependencies to place after the objects being linked to create a
                   115715: # shared library.
                   115716: postdep_objects=$lt_postdep_objects_CXX
                   115717: 
                   115718: # Dependencies to place before the objects being linked to create a
                   115719: # shared library.
                   115720: predeps=$lt_predeps_CXX
                   115721: 
                   115722: # Dependencies to place after the objects being linked to create a
                   115723: # shared library.
                   115724: postdeps=$lt_postdeps_CXX
                   115725: 
                   115726: # The directories searched by this compiler when creating a shared
                   115727: # library
                   115728: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
                   115729: 
                   115730: # The library search path used internally by the compiler when linking
                   115731: # a shared library.
                   115732: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
                   115733: 
                   115734: # Method to check whether dependent libraries are shared objects.
                   115735: deplibs_check_method=$lt_deplibs_check_method
                   115736: 
                   115737: # Command to use when deplibs_check_method == file_magic.
                   115738: file_magic_cmd=$lt_file_magic_cmd
                   115739: 
                   115740: # Flag that allows shared libraries with undefined symbols to be built.
                   115741: allow_undefined_flag=$lt_allow_undefined_flag_CXX
                   115742: 
                   115743: # Flag that forces no undefined symbols.
                   115744: no_undefined_flag=$lt_no_undefined_flag_CXX
                   115745: 
                   115746: # Commands used to finish a libtool library installation in a directory.
                   115747: finish_cmds=$lt_finish_cmds
                   115748: 
                   115749: # Same as above, but a single script fragment to be evaled but not shown.
                   115750: finish_eval=$lt_finish_eval
                   115751: 
                   115752: # Take the output of nm and produce a listing of raw symbols and C names.
                   115753: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
                   115754: 
                   115755: # Transform the output of nm in a proper C declaration
                   115756: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
                   115757: 
                   115758: # Transform the output of nm in a C name address pair
                   115759: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
                   115760: 
                   115761: # This is the shared library runtime path variable.
                   115762: runpath_var=$runpath_var
                   115763: 
                   115764: # This is the shared library path variable.
                   115765: shlibpath_var=$shlibpath_var
                   115766: 
                   115767: # Is shlibpath searched before the hard-coded library search path?
                   115768: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
                   115769: 
                   115770: # How to hardcode a shared library path into an executable.
                   115771: hardcode_action=$hardcode_action_CXX
                   115772: 
                   115773: # Whether we should hardcode library paths into libraries.
                   115774: hardcode_into_libs=$hardcode_into_libs
                   115775: 
                   115776: # Flag to hardcode \$libdir into a binary during linking.
                   115777: # This must work even if \$libdir does not exist.
                   115778: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
                   115779: 
                   115780: # If ld is used when linking, flag to hardcode \$libdir into
                   115781: # a binary during linking. This must work even if \$libdir does
                   115782: # not exist.
                   115783: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
                   115784: 
                   115785: # Whether we need a single -rpath flag with a separated argument.
                   115786: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
                   115787: 
                   115788: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
                   115789: # resulting binary.
                   115790: hardcode_direct=$hardcode_direct_CXX
                   115791: 
                   115792: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
                   115793: # resulting binary.
                   115794: hardcode_minus_L=$hardcode_minus_L_CXX
                   115795: 
                   115796: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
                   115797: # the resulting binary.
                   115798: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
                   115799: 
                   115800: # Set to yes if building a shared library automatically hardcodes DIR into the library
                   115801: # and all subsequent libraries and executables linked against it.
                   115802: hardcode_automatic=$hardcode_automatic_CXX
                   115803: 
                   115804: # Variables whose values should be saved in libtool wrapper scripts and
                   115805: # restored at relink time.
                   115806: variables_saved_for_relink="$variables_saved_for_relink"
                   115807: 
                   115808: # Whether libtool must link a program against all its dependency libraries.
                   115809: link_all_deplibs=$link_all_deplibs_CXX
                   115810: 
                   115811: # Compile-time system search path for libraries
                   115812: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
                   115813: 
                   115814: # Run-time system search path for libraries
                   115815: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
                   115816: 
                   115817: # Fix the shell variable \$srcfile for the compiler.
                   115818: fix_srcfile_path=$lt_fix_srcfile_path
                   115819: 
                   115820: # Set to yes if exported symbols are required.
                   115821: always_export_symbols=$always_export_symbols_CXX
                   115822: 
                   115823: # The commands to list exported symbols.
                   115824: export_symbols_cmds=$lt_export_symbols_cmds_CXX
                   115825: 
                   115826: # The commands to extract the exported symbol list from a shared archive.
                   115827: extract_expsyms_cmds=$lt_extract_expsyms_cmds
                   115828: 
                   115829: # Symbols that should not be listed in the preloaded symbols.
                   115830: exclude_expsyms=$lt_exclude_expsyms_CXX
                   115831: 
                   115832: # Symbols that must always be exported.
                   115833: include_expsyms=$lt_include_expsyms_CXX
                   115834: 
                   115835: # ### END LIBTOOL TAG CONFIG: $tagname
                   115836: 
                   115837: __EOF__
                   115838: 
                   115839: 
                   115840: else
                   115841:   # If there is no Makefile yet, we rely on a make rule to execute
                   115842:   # `config.status --recheck' to rerun these tests and create the
                   115843:   # libtool script then.
                   115844:   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
                   115845:   if test -f "$ltmain_in"; then
                   115846:     test -f Makefile && make "$ltmain"
                   115847:   fi
                   115848: fi
                   115849: 
                   115850: 
                   115851: ac_ext=c
                   115852: ac_cpp='$CPP $CPPFLAGS'
                   115853: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   115854: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   115855: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   115856: 
                   115857: CC=$lt_save_CC
                   115858: LDCXX=$LD
                   115859: LD=$lt_save_LD
                   115860: GCC=$lt_save_GCC
                   115861: with_gnu_ldcxx=$with_gnu_ld
                   115862: with_gnu_ld=$lt_save_with_gnu_ld
                   115863: lt_cv_path_LDCXX=$lt_cv_path_LD
                   115864: lt_cv_path_LD=$lt_save_path_LD
                   115865: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
                   115866: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
                   115867: 
                   115868:        else
                   115869:          tagname=""
                   115870:        fi
                   115871:        ;;
                   115872: 
                   115873:       *)
                   115874:        as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
                   115875:        ;;
                   115876:       esac
                   115877: 
                   115878:       # Append the new tag name to the list of available tags.
                   115879:       if test -n "$tagname" ; then
                   115880:       available_tags="$available_tags $tagname"
                   115881:     fi
                   115882:     fi
                   115883:   done
                   115884:   IFS="$lt_save_ifs"
                   115885: 
                   115886:   # Now substitute the updated list of available tags.
                   115887:   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
                   115888:     mv "${ofile}T" "$ofile"
                   115889:     chmod +x "$ofile"
                   115890:   else
                   115891:     rm -f "${ofile}T"
                   115892:     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
                   115893:   fi
                   115894: fi
                   115895: 
                   115896: 
                   115897: 
                   115898: # This can be used to rebuild libtool when needed
                   115899: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
                   115900: 
                   115901: # Always use our own libtool.
                   115902: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
                   115903: 
                   115904: # Prevent multiple expansion
                   115905: 
                   115906: 
                   115907: 
                   115908: 
                   115909: 
                   115910: 
                   115911: 
                   115912: 
                   115913: 
                   115914: 
                   115915: 
                   115916: if test "$enable_debug" != "yes"; then
                   115917: 
                   115918:   if test -z "$LIBTOOL"; then
                   115919:     LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
                   115920:   else
                   115921:     LIBTOOL="$LIBTOOL --silent"
                   115922:   fi
                   115923: 
                   115924: fi
                   115925: 
                   115926: 
                   115927:   if test -z "$LIBTOOL"; then
                   115928:     LIBTOOL='$(SHELL) $(top_builddir)/libtool --preserve-dup-deps'
                   115929:   else
                   115930:     LIBTOOL="$LIBTOOL --preserve-dup-deps"
                   115931:   fi
                   115932: 
                   115933: 
                   115934: test -z "$PHP_COMPILE" && PHP_COMPILE='$(LIBTOOL) --mode=compile $(COMPILE) -c $<'
                   115935: test -z "$CXX_PHP_COMPILE" && CXX_PHP_COMPILE='$(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $<'
                   115936: SHARED_LIBTOOL='$(LIBTOOL)'
                   115937: 
                   115938: CC=$old_CC
                   115939: 
                   115940: 
                   115941:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   115942: $as_echo "" >&6; }
                   115943:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Generating files${T_ME}" >&5
                   115944: $as_echo "${T_MD}Generating files${T_ME}" >&6; }
                   115945: 
                   115946: 
                   115947: CXXFLAGS_CLEAN=$CXXFLAGS
                   115948: CFLAGS_CLEAN=$CFLAGS
                   115949: CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag"
                   115950: INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag"
                   115951: CXXFLAGS="$CXXFLAGS $standard_libtool_flag"
                   115952: 
                   115953: if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then
                   115954:   pharcmd=pharcmd
                   115955:   pharcmd_install=install-pharcmd
                   115956: else
                   115957:   pharcmd=
                   115958:   pharcmd_install=
                   115959: fi;
                   115960: 
1.1.1.2 ! misho    115961: all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd"
        !          115962: install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install"
1.1       misho    115963: 
                   115964: 
                   115965:   PHP_VAR_SUBST="$PHP_VAR_SUBST all_targets"
                   115966: 
                   115967: 
                   115968:   PHP_VAR_SUBST="$PHP_VAR_SUBST install_targets"
                   115969: 
                   115970: 
1.1.1.2 ! misho    115971:   PHP_VAR_SUBST="$PHP_VAR_SUBST install_binary_targets"
        !          115972: 
1.1       misho    115973: 
                   115974: 
1.1.1.2 ! misho    115975: 
        !          115976:     for header_file in Zend/ TSRM/ main/ main/streams/ sapi/cli/cli.h; do
1.1       misho    115977: 
                   115978: 
                   115979:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
                   115980: 
                   115981:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
                   115982:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
                   115983:     eval "INSTALLHEADERS$unique=set"
                   115984: 
                   115985:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
                   115986: 
                   115987:   fi
                   115988: 
                   115989:     done
                   115990: 
                   115991: 
                   115992: 
                   115993: 
                   115994: 
                   115995:   case TSRM in
                   115996:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   115997:   /*) ac_srcdir=`echo "TSRM"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   115998:   *) ac_srcdir="$abs_srcdir/TSRM/"; ac_bdir="TSRM/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   115999:   esac
                   116000: 
                   116001: 
                   116002: 
                   116003:   b_c_pre=$php_c_pre
                   116004:   b_cxx_pre=$php_cxx_pre
                   116005:   b_c_meta=$php_c_meta
                   116006:   b_cxx_meta=$php_cxx_meta
                   116007:   b_c_post=$php_c_post
                   116008:   b_cxx_post=$php_cxx_post
                   116009:   b_lo=$php_lo
                   116010: 
                   116011: 
                   116012:   old_IFS=$IFS
                   116013:   for ac_src in TSRM.c tsrm_strtok_r.c tsrm_virtual_cwd.c; do
                   116014: 
                   116015:       IFS=.
                   116016:       set $ac_src
                   116017:       ac_obj=$1
                   116018:       IFS=$old_IFS
                   116019: 
                   116020:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   116021: 
                   116022:       case $ac_src in
                   116023:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116024:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116025:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116026:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   116027:       esac
                   116028: 
                   116029:     cat >>Makefile.objects<<EOF
                   116030: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   116031:        $ac_comp
                   116032: EOF
                   116033:   done
                   116034: 
                   116035: 
                   116036: 
                   116037: 
                   116038: 
                   116039:   case main in
                   116040:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   116041:   /*) ac_srcdir=`echo "main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   116042:   *) ac_srcdir="$abs_srcdir/main/"; ac_bdir="main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   116043:   esac
                   116044: 
                   116045: 
                   116046: 
                   116047:   b_c_pre=$php_c_pre
                   116048:   b_cxx_pre=$php_cxx_pre
                   116049:   b_c_meta=$php_c_meta
                   116050:   b_cxx_meta=$php_cxx_meta
                   116051:   b_c_post=$php_c_post
                   116052:   b_cxx_post=$php_cxx_post
                   116053:   b_lo=$php_lo
                   116054: 
                   116055: 
                   116056:   old_IFS=$IFS
                   116057:   for ac_src in main.c snprintf.c spprintf.c php_sprintf.c \
1.1.1.2 ! misho    116058:        fopen_wrappers.c alloca.c  php_scandir.c \
1.1       misho    116059:        php_ini.c SAPI.c rfc1867.c php_content_types.c strlcpy.c \
                   116060:        strlcat.c mergesort.c reentrancy.c php_variables.c php_ticks.c \
                   116061:        network.c php_open_temporary_file.c php_logos.c \
1.1.1.2 ! misho    116062:        output.c getopt.c; do
1.1       misho    116063: 
                   116064:       IFS=.
                   116065:       set $ac_src
                   116066:       ac_obj=$1
                   116067:       IFS=$old_IFS
                   116068: 
                   116069:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   116070: 
                   116071:       case $ac_src in
                   116072:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116073:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116074:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116075:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   116076:       esac
                   116077: 
                   116078:     cat >>Makefile.objects<<EOF
                   116079: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   116080:        $ac_comp
                   116081: EOF
                   116082:   done
                   116083: 
                   116084: 
                   116085: 
                   116086: 
                   116087: 
                   116088:   case main/streams in
                   116089:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   116090:   /*) ac_srcdir=`echo "main/streams"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   116091:   *) ac_srcdir="$abs_srcdir/main/streams/"; ac_bdir="main/streams/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   116092:   esac
                   116093: 
                   116094: 
                   116095: 
                   116096:   b_c_pre=$php_c_pre
                   116097:   b_cxx_pre=$php_cxx_pre
                   116098:   b_c_meta=$php_c_meta
                   116099:   b_cxx_meta=$php_cxx_meta
                   116100:   b_c_post=$php_c_post
                   116101:   b_cxx_post=$php_cxx_post
                   116102:   b_lo=$php_lo
                   116103: 
                   116104: 
                   116105:   old_IFS=$IFS
                   116106:   for ac_src in streams.c cast.c memory.c filter.c \
                   116107:        plain_wrapper.c userspace.c transports.c xp_socket.c mmap.c \
                   116108:        glob_wrapper.c; do
                   116109: 
                   116110:       IFS=.
                   116111:       set $ac_src
                   116112:       ac_obj=$1
                   116113:       IFS=$old_IFS
                   116114: 
                   116115:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   116116: 
                   116117:       case $ac_src in
                   116118:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116119:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116120:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116121:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   116122:       esac
                   116123: 
                   116124:     cat >>Makefile.objects<<EOF
                   116125: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   116126:        $ac_comp
                   116127: EOF
                   116128:   done
                   116129: 
                   116130: 
                   116131: 
                   116132: 
                   116133: 
                   116134:   case /main in
                   116135:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   116136:   /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   116137:   *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   116138:   esac
                   116139: 
                   116140: 
                   116141: 
                   116142:   b_c_pre=$php_c_pre
                   116143:   b_cxx_pre=$php_cxx_pre
                   116144:   b_c_meta=$php_c_meta
                   116145:   b_cxx_meta=$php_cxx_meta
                   116146:   b_c_post=$php_c_post
                   116147:   b_cxx_post=$php_cxx_post
                   116148:   b_lo=$php_lo
                   116149: 
                   116150: 
                   116151:   old_IFS=$IFS
                   116152:   for ac_src in internal_functions.c; do
                   116153: 
                   116154:       IFS=.
                   116155:       set $ac_src
                   116156:       ac_obj=$1
                   116157:       IFS=$old_IFS
                   116158: 
                   116159:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
                   116160: 
                   116161:       case $ac_src in
                   116162:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116163:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116164:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116165:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   116166:       esac
                   116167: 
                   116168:     cat >>Makefile.objects<<EOF
                   116169: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   116170:        $ac_comp
                   116171: EOF
                   116172:   done
                   116173: 
                   116174: 
                   116175: 
                   116176: case $host_alias in
                   116177:   *netware*)
                   116178: 
                   116179: 
                   116180:     BUILD_DIR="$BUILD_DIR win32"
                   116181: 
                   116182: 
                   116183: 
                   116184: 
                   116185:     BUILD_DIR="$BUILD_DIR netware"
                   116186: 
                   116187: 
                   116188:     ;;
                   116189:   *)
                   116190: 
                   116191:   case /main in
                   116192:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   116193:   /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   116194:   *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   116195:   esac
                   116196: 
                   116197: 
                   116198: 
                   116199:   b_c_pre=$php_c_pre
                   116200:   b_cxx_pre=$php_cxx_pre
                   116201:   b_c_meta=$php_c_meta
                   116202:   b_cxx_meta=$php_cxx_meta
                   116203:   b_c_post=$php_c_post
                   116204:   b_cxx_post=$php_cxx_post
                   116205:   b_lo=$php_lo
                   116206: 
                   116207: 
                   116208:   old_IFS=$IFS
                   116209:   for ac_src in internal_functions_cli.c; do
                   116210: 
                   116211:       IFS=.
                   116212:       set $ac_src
                   116213:       ac_obj=$1
                   116214:       IFS=$old_IFS
                   116215: 
1.1.1.2 ! misho    116216:       PHP_BINARY_OBJS="$PHP_BINARY_OBJS $ac_bdir$ac_obj.lo"
1.1       misho    116217: 
                   116218:       case $ac_src in
                   116219:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116220:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116221:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116222:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   116223:       esac
                   116224: 
                   116225:     cat >>Makefile.objects<<EOF
                   116226: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   116227:        $ac_comp
                   116228: EOF
                   116229:   done
                   116230: 
                   116231:     ;;
                   116232: esac
                   116233: 
                   116234: 
                   116235: 
                   116236:   case Zend in
                   116237:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   116238:   /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   116239:   *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   116240:   esac
                   116241: 
                   116242: 
                   116243: 
                   116244:   b_c_pre=$php_c_pre
                   116245:   b_cxx_pre=$php_cxx_pre
                   116246:   b_c_meta=$php_c_meta
                   116247:   b_cxx_meta=$php_cxx_meta
                   116248:   b_c_post=$php_c_post
                   116249:   b_cxx_post=$php_cxx_post
                   116250:   b_lo=$php_lo
                   116251: 
                   116252: 
                   116253:   old_IFS=$IFS
                   116254:   for ac_src in \
                   116255:     zend_language_parser.c zend_language_scanner.c \
                   116256:     zend_ini_parser.c zend_ini_scanner.c \
1.1.1.2 ! misho    116257:     zend_alloc.c zend_compile.c zend_constants.c zend_dynamic_array.c zend_dtrace.c \
1.1       misho    116258:     zend_execute_API.c zend_highlight.c zend_llist.c \
                   116259:     zend_opcode.c zend_operators.c zend_ptr_stack.c zend_stack.c \
                   116260:     zend_variables.c zend.c zend_API.c zend_extensions.c zend_hash.c \
                   116261:     zend_list.c zend_indent.c zend_builtin_functions.c zend_sprintf.c \
                   116262:     zend_ini.c zend_qsort.c zend_multibyte.c zend_ts_hash.c zend_stream.c \
                   116263:     zend_iterators.c zend_interfaces.c zend_exceptions.c zend_strtod.c zend_gc.c \
1.1.1.2 ! misho    116264:     zend_closures.c zend_float.c zend_string.c zend_signal.c; do
1.1       misho    116265: 
                   116266:       IFS=.
                   116267:       set $ac_src
                   116268:       ac_obj=$1
                   116269:       IFS=$old_IFS
                   116270: 
                   116271:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   116272: 
                   116273:       case $ac_src in
                   116274:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116275:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116276:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116277:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   116278:       esac
                   116279: 
                   116280:     cat >>Makefile.objects<<EOF
                   116281: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   116282:        $ac_comp
                   116283: EOF
                   116284:   done
                   116285: 
                   116286: 
                   116287: 
                   116288: if test -r "$abs_srcdir/Zend/zend_objects.c"; then
                   116289: 
                   116290: 
                   116291:   case Zend in
                   116292:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   116293:   /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   116294:   *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   116295:   esac
                   116296: 
                   116297: 
                   116298: 
                   116299:   b_c_pre=$php_c_pre
                   116300:   b_cxx_pre=$php_cxx_pre
                   116301:   b_c_meta=$php_c_meta
                   116302:   b_cxx_meta=$php_cxx_meta
                   116303:   b_c_post=$php_c_post
                   116304:   b_cxx_post=$php_cxx_post
                   116305:   b_lo=$php_lo
                   116306: 
                   116307: 
                   116308:   old_IFS=$IFS
                   116309:   for ac_src in zend_objects.c zend_object_handlers.c zend_objects_API.c zend_default_classes.c; do
                   116310: 
                   116311:       IFS=.
                   116312:       set $ac_src
                   116313:       ac_obj=$1
                   116314:       IFS=$old_IFS
                   116315: 
                   116316:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   116317: 
                   116318:       case $ac_src in
                   116319:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116320:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116321:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
                   116322:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
                   116323:       esac
                   116324: 
                   116325:     cat >>Makefile.objects<<EOF
                   116326: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   116327:        $ac_comp
                   116328: EOF
                   116329:   done
                   116330: 
                   116331: 
                   116332: fi
                   116333: 
                   116334: if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then
                   116335:   flag=-O0
                   116336: else
                   116337:   flag=
                   116338: fi
                   116339: 
                   116340: 
                   116341:   case Zend in
                   116342:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
                   116343:   /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
                   116344:   *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
                   116345:   esac
                   116346: 
                   116347: 
                   116348: 
                   116349:   b_c_pre=$php_c_pre
                   116350:   b_cxx_pre=$php_cxx_pre
                   116351:   b_c_meta=$php_c_meta
                   116352:   b_cxx_meta=$php_cxx_meta
                   116353:   b_c_post=$php_c_post
                   116354:   b_cxx_post=$php_cxx_post
                   116355:   b_lo=$php_lo
                   116356: 
                   116357: 
                   116358:   old_IFS=$IFS
                   116359:   for ac_src in zend_execute.c; do
                   116360: 
                   116361:       IFS=.
                   116362:       set $ac_src
                   116363:       ac_obj=$1
                   116364:       IFS=$old_IFS
                   116365: 
                   116366:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
                   116367: 
                   116368:       case $ac_src in
                   116369:         *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_c_post" ;;
                   116370:         *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_c_post" ;;
                   116371:         *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_c_post" ;;
                   116372:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_cxx_post" ;;
                   116373:       esac
                   116374: 
                   116375:     cat >>Makefile.objects<<EOF
                   116376: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
                   116377:        $ac_comp
                   116378: EOF
                   116379:   done
                   116380: 
                   116381: 
                   116382: 
                   116383: 
                   116384:     BUILD_DIR="$BUILD_DIR main main/streams"
                   116385: 
                   116386: 
                   116387: 
                   116388: 
                   116389:     BUILD_DIR="$BUILD_DIR TSRM"
                   116390: 
                   116391: 
                   116392: 
                   116393: 
                   116394:     BUILD_DIR="$BUILD_DIR Zend"
                   116395: 
                   116396: 
                   116397: 
                   116398: 
                   116399:   src=$abs_srcdir/scripts/Makefile.frag
                   116400:   ac_srcdir=$abs_srcdir/scripts
                   116401:   ac_builddir=scripts
                   116402:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
                   116403: 
                   116404: 
                   116405:   src=$abs_srcdir/Makefile.frag
                   116406:   ac_srcdir=$abs_srcdir/Zend
                   116407:   ac_builddir=Zend
                   116408:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
                   116409: 
                   116410: 
                   116411:   src=$abs_srcdir/Zend/Makefile.frag
                   116412:   ac_srcdir=$abs_srcdir/Zend
                   116413:   ac_builddir=Zend
                   116414:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
                   116415: 
                   116416: 
                   116417: 
                   116418:   $php_shtool mkdir -p $BUILD_DIR
                   116419: 
                   116420: 
                   116421:   cat >Makefile <<EOF
                   116422: srcdir = $abs_srcdir
                   116423: builddir = $abs_builddir
                   116424: top_srcdir = $abs_srcdir
                   116425: top_builddir = $abs_builddir
                   116426: EOF
                   116427:   for i in $PHP_VAR_SUBST; do
                   116428:     eval echo "$i = \$$i" >> Makefile
                   116429:   done
                   116430: 
                   116431:   cat $abs_srcdir/Makefile.global Makefile.fragments Makefile.objects >> Makefile
                   116432: 
                   116433: 
                   116434: 
                   116435: $as_echo "#define HAVE_BUILD_DEFS_H 1" >>confdefs.h
                   116436: 
                   116437: 
                   116438: $php_shtool mkdir -p pear/scripts
                   116439: $php_shtool mkdir -p scripts
                   116440: $php_shtool mkdir -p scripts/man1
                   116441: 
                   116442: ALL_OUTPUT_FILES="php5.spec main/build-defs.h \
                   116443: scripts/phpize scripts/man1/phpize.1 \
                   116444: scripts/php-config scripts/man1/php-config.1 \
                   116445: $PHP_OUTPUT_FILES"
                   116446: 
                   116447: 
                   116448:   for arg in $ac_configure_args; do
                   116449:     case $arg in
                   116450:       --with-*)
                   116451:         arg_name="`echo $arg | $SED -e 's/--with-/with-/g' -e 's/=.*//g'`"
                   116452:         ;;
                   116453:       --without-*)
                   116454:         arg_name="`echo $arg | $SED -e 's/--without-/with-/g' -e 's/=.*//g'`"
                   116455:         ;;
                   116456:       --enable-*)
                   116457:         arg_name="`echo $arg | $SED -e 's/--enable-/enable-/g' -e 's/=.*//g'`"
                   116458:         ;;
                   116459:       --disable-*)
                   116460:         arg_name="`echo $arg | $SED -e 's/--disable-/enable-/g' -e 's/=.*//g'`"
                   116461:         ;;
                   116462:       *)
                   116463:         continue
                   116464:         ;;
                   116465:     esac
                   116466:     case $arg_name in
                   116467:       # Allow --disable-all / --enable-all
                   116468:       enable-all);;
                   116469: 
                   116470:       # Allow certain libtool options
                   116471:       enable-libtool-lock | with-pic | with-tags | enable-shared | enable-static | enable-fast-install | with-gnu-ld);;
                   116472: 
                   116473:       # Allow certain TSRM options
                   116474:       with-tsrm-pth | with-tsrm-st | with-tsrm-pthreads);;
                   116475: 
                   116476:       # Allow certain Zend options
                   116477:       with-zend-vm | enable-maintainer-zts | enable-inline-optimization);;
                   116478: 
                   116479:       # All the rest must be set using the PHP_ARG_* macros
                   116480:       # PHP_ARG_* macros set php_enable_<arg_name> or php_with_<arg_name>
                   116481:       *)
                   116482:         # Options that exist before PHP 6
                   116483:         if test "$PHP_MAJOR_VERSION" -lt "6"; then
                   116484:           case $arg_name in
                   116485:             enable-zend-multibyte) continue;;
                   116486:           esac
                   116487:         fi
                   116488: 
                   116489:         is_arg_set=php_`echo $arg_name | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ-' 'abcdefghijklmnopqrstuvwxyz_'`
                   116490:         if eval test "x\$$is_arg_set" = "x"; then
                   116491:           PHP_UNKNOWN_CONFIGURE_OPTIONS="$PHP_UNKNOWN_CONFIGURE_OPTIONS
                   116492: $arg"
                   116493:         fi
                   116494:         ;;
                   116495:     esac
                   116496:   done
                   116497: 
                   116498: 
                   116499: ac_config_files="$ac_config_files $ALL_OUTPUT_FILES"
                   116500: 
                   116501: ac_config_commands="$ac_config_commands default"
                   116502: 
                   116503: cat >confcache <<\_ACEOF
                   116504: # This file is a shell script that caches the results of configure
                   116505: # tests run on this system so they can be shared between configure
                   116506: # scripts and configure runs, see configure's option --config-cache.
                   116507: # It is not useful on other systems.  If it contains results you don't
                   116508: # want to keep, you may remove or edit it.
                   116509: #
                   116510: # config.status only pays attention to the cache file if you give it
                   116511: # the --recheck option to rerun configure.
                   116512: #
                   116513: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   116514: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   116515: # following values.
                   116516: 
                   116517: _ACEOF
                   116518: 
                   116519: # The following way of writing the cache mishandles newlines in values,
                   116520: # but we know of no workaround that is simple, portable, and efficient.
                   116521: # So, we kill variables containing newlines.
                   116522: # Ultrix sh set writes to stderr and can't be redirected directly,
                   116523: # and sets the high bit in the cache file unless we assign to the vars.
                   116524: (
                   116525:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   116526:     eval ac_val=\$$ac_var
                   116527:     case $ac_val in #(
                   116528:     *${as_nl}*)
                   116529:       case $ac_var in #(
                   116530:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   116531: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   116532:       esac
                   116533:       case $ac_var in #(
                   116534:       _ | IFS | as_nl) ;; #(
                   116535:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   116536:       *) { eval $ac_var=; unset $ac_var;} ;;
                   116537:       esac ;;
                   116538:     esac
                   116539:   done
                   116540: 
                   116541:   (set) 2>&1 |
                   116542:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   116543:     *${as_nl}ac_space=\ *)
                   116544:       # `set' does not quote correctly, so add quotes: double-quote
                   116545:       # substitution turns \\\\ into \\, and sed turns \\ into \.
                   116546:       sed -n \
                   116547:        "s/'/'\\\\''/g;
                   116548:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   116549:       ;; #(
                   116550:     *)
                   116551:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   116552:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   116553:       ;;
                   116554:     esac |
                   116555:     sort
                   116556: ) |
                   116557:   sed '
                   116558:      /^ac_cv_env_/b end
                   116559:      t clear
                   116560:      :clear
                   116561:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   116562:      t end
                   116563:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   116564:      :end' >>confcache
                   116565: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   116566:   if test -w "$cache_file"; then
                   116567:     if test "x$cache_file" != "x/dev/null"; then
                   116568:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   116569: $as_echo "$as_me: updating cache $cache_file" >&6;}
                   116570:       if test ! -f "$cache_file" || test -h "$cache_file"; then
                   116571:        cat confcache >"$cache_file"
                   116572:       else
                   116573:         case $cache_file in #(
                   116574:         */* | ?:*)
                   116575:          mv -f confcache "$cache_file"$$ &&
                   116576:          mv -f "$cache_file"$$ "$cache_file" ;; #(
                   116577:         *)
                   116578:          mv -f confcache "$cache_file" ;;
                   116579:        esac
                   116580:       fi
                   116581:     fi
                   116582:   else
                   116583:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   116584: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
                   116585:   fi
                   116586: fi
                   116587: rm -f confcache
                   116588: 
                   116589: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   116590: # Let make expand exec_prefix.
                   116591: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   116592: 
                   116593: DEFS=-DHAVE_CONFIG_H
                   116594: 
                   116595: ac_libobjs=
                   116596: ac_ltlibobjs=
                   116597: U=
                   116598: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   116599:   # 1. Remove the extension, and $U if already installed.
                   116600:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
                   116601:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
                   116602:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   116603:   #    will be set to the directory where LIBOBJS objects are built.
                   116604:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   116605:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
                   116606: done
                   116607: LIBOBJS=$ac_libobjs
                   116608: 
                   116609: LTLIBOBJS=$ac_ltlibobjs
                   116610: 
                   116611: 
                   116612: 
                   116613: : "${CONFIG_STATUS=./config.status}"
                   116614: ac_write_fail=0
                   116615: ac_clean_files_save=$ac_clean_files
                   116616: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
                   116617: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   116618: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   116619: as_write_fail=0
                   116620: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
                   116621: #! $SHELL
                   116622: # Generated by $as_me.
                   116623: # Run this file to recreate the current configuration.
                   116624: # Compiler output produced by configure, useful for debugging
                   116625: # configure, is in config.log if it exists.
                   116626: 
                   116627: debug=false
                   116628: ac_cs_recheck=false
                   116629: ac_cs_silent=false
                   116630: 
                   116631: SHELL=\${CONFIG_SHELL-$SHELL}
                   116632: export SHELL
                   116633: _ASEOF
                   116634: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   116635: ## -------------------- ##
                   116636: ## M4sh Initialization. ##
                   116637: ## -------------------- ##
                   116638: 
                   116639: # Be more Bourne compatible
                   116640: DUALCASE=1; export DUALCASE # for MKS sh
                   116641: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
                   116642:   emulate sh
                   116643:   NULLCMD=:
                   116644:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
                   116645:   # is contrary to our usage.  Disable this feature.
                   116646:   alias -g '${1+"$@"}'='"$@"'
                   116647:   setopt NO_GLOB_SUBST
                   116648: else
                   116649:   case `(set -o) 2>/dev/null` in #(
                   116650:   *posix*) :
                   116651:     set -o posix ;; #(
                   116652:   *) :
                   116653:      ;;
                   116654: esac
                   116655: fi
                   116656: 
                   116657: 
                   116658: as_nl='
                   116659: '
                   116660: export as_nl
                   116661: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   116662: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   116663: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   116664: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   116665: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   116666: # but without wasting forks for bash or zsh.
                   116667: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   116668:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   116669:   as_echo='print -r --'
                   116670:   as_echo_n='print -rn --'
                   116671: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   116672:   as_echo='printf %s\n'
                   116673:   as_echo_n='printf %s'
                   116674: else
                   116675:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   116676:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   116677:     as_echo_n='/usr/ucb/echo -n'
                   116678:   else
                   116679:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   116680:     as_echo_n_body='eval
                   116681:       arg=$1;
                   116682:       case $arg in #(
                   116683:       *"$as_nl"*)
                   116684:        expr "X$arg" : "X\\(.*\\)$as_nl";
                   116685:        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   116686:       esac;
                   116687:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   116688:     '
                   116689:     export as_echo_n_body
                   116690:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   116691:   fi
                   116692:   export as_echo_body
                   116693:   as_echo='sh -c $as_echo_body as_echo'
                   116694: fi
                   116695: 
                   116696: # The user is always right.
                   116697: if test "${PATH_SEPARATOR+set}" != set; then
                   116698:   PATH_SEPARATOR=:
                   116699:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   116700:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   116701:       PATH_SEPARATOR=';'
                   116702:   }
                   116703: fi
                   116704: 
                   116705: 
                   116706: # IFS
                   116707: # We need space, tab and new line, in precisely that order.  Quoting is
                   116708: # there to prevent editors from complaining about space-tab.
                   116709: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   116710: # splitting by setting IFS to empty value.)
                   116711: IFS=" ""       $as_nl"
                   116712: 
                   116713: # Find who we are.  Look in the path if we contain no directory separator.
                   116714: as_myself=
                   116715: case $0 in #((
                   116716:   *[\\/]* ) as_myself=$0 ;;
                   116717:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   116718: for as_dir in $PATH
                   116719: do
                   116720:   IFS=$as_save_IFS
                   116721:   test -z "$as_dir" && as_dir=.
                   116722:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   116723:   done
                   116724: IFS=$as_save_IFS
                   116725: 
                   116726:      ;;
                   116727: esac
                   116728: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   116729: # in which case we are not to be found in the path.
                   116730: if test "x$as_myself" = x; then
                   116731:   as_myself=$0
                   116732: fi
                   116733: if test ! -f "$as_myself"; then
                   116734:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   116735:   exit 1
                   116736: fi
                   116737: 
                   116738: # Unset variables that we do not need and which cause bugs (e.g. in
                   116739: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   116740: # suppresses any "Segmentation fault" message there.  '((' could
                   116741: # trigger a bug in pdksh 5.2.14.
                   116742: for as_var in BASH_ENV ENV MAIL MAILPATH
                   116743: do eval test x\${$as_var+set} = xset \
                   116744:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
                   116745: done
                   116746: PS1='$ '
                   116747: PS2='> '
                   116748: PS4='+ '
                   116749: 
                   116750: # NLS nuisances.
                   116751: LC_ALL=C
                   116752: export LC_ALL
                   116753: LANGUAGE=C
                   116754: export LANGUAGE
                   116755: 
                   116756: # CDPATH.
                   116757: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   116758: 
                   116759: 
                   116760: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                   116761: # ----------------------------------------
                   116762: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   116763: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
                   116764: # script with STATUS, using 1 if that was 0.
                   116765: as_fn_error ()
                   116766: {
                   116767:   as_status=$1; test $as_status -eq 0 && as_status=1
                   116768:   if test "$4"; then
                   116769:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   116770:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
                   116771:   fi
                   116772:   $as_echo "$as_me: error: $2" >&2
                   116773:   as_fn_exit $as_status
                   116774: } # as_fn_error
                   116775: 
                   116776: 
                   116777: # as_fn_set_status STATUS
                   116778: # -----------------------
                   116779: # Set $? to STATUS, without forking.
                   116780: as_fn_set_status ()
                   116781: {
                   116782:   return $1
                   116783: } # as_fn_set_status
                   116784: 
                   116785: # as_fn_exit STATUS
                   116786: # -----------------
                   116787: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   116788: as_fn_exit ()
                   116789: {
                   116790:   set +e
                   116791:   as_fn_set_status $1
                   116792:   exit $1
                   116793: } # as_fn_exit
                   116794: 
                   116795: # as_fn_unset VAR
                   116796: # ---------------
                   116797: # Portably unset VAR.
                   116798: as_fn_unset ()
                   116799: {
                   116800:   { eval $1=; unset $1;}
                   116801: }
                   116802: as_unset=as_fn_unset
                   116803: # as_fn_append VAR VALUE
                   116804: # ----------------------
                   116805: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   116806: # advantage of any shell optimizations that allow amortized linear growth over
                   116807: # repeated appends, instead of the typical quadratic growth present in naive
                   116808: # implementations.
                   116809: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   116810:   eval 'as_fn_append ()
                   116811:   {
                   116812:     eval $1+=\$2
                   116813:   }'
                   116814: else
                   116815:   as_fn_append ()
                   116816:   {
                   116817:     eval $1=\$$1\$2
                   116818:   }
                   116819: fi # as_fn_append
                   116820: 
                   116821: # as_fn_arith ARG...
                   116822: # ------------------
                   116823: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   116824: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   116825: # must be portable across $(()) and expr.
                   116826: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   116827:   eval 'as_fn_arith ()
                   116828:   {
                   116829:     as_val=$(( $* ))
                   116830:   }'
                   116831: else
                   116832:   as_fn_arith ()
                   116833:   {
                   116834:     as_val=`expr "$@" || test $? -eq 1`
                   116835:   }
                   116836: fi # as_fn_arith
                   116837: 
                   116838: 
                   116839: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   116840:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   116841:   as_expr=expr
                   116842: else
                   116843:   as_expr=false
                   116844: fi
                   116845: 
                   116846: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   116847:   as_basename=basename
                   116848: else
                   116849:   as_basename=false
                   116850: fi
                   116851: 
                   116852: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   116853:   as_dirname=dirname
                   116854: else
                   116855:   as_dirname=false
                   116856: fi
                   116857: 
                   116858: as_me=`$as_basename -- "$0" ||
                   116859: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   116860:         X"$0" : 'X\(//\)$' \| \
                   116861:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                   116862: $as_echo X/"$0" |
                   116863:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   116864:            s//\1/
                   116865:            q
                   116866:          }
                   116867:          /^X\/\(\/\/\)$/{
                   116868:            s//\1/
                   116869:            q
                   116870:          }
                   116871:          /^X\/\(\/\).*/{
                   116872:            s//\1/
                   116873:            q
                   116874:          }
                   116875:          s/.*/./; q'`
                   116876: 
                   116877: # Avoid depending upon Character Ranges.
                   116878: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   116879: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   116880: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   116881: as_cr_digits='0123456789'
                   116882: as_cr_alnum=$as_cr_Letters$as_cr_digits
                   116883: 
                   116884: ECHO_C= ECHO_N= ECHO_T=
                   116885: case `echo -n x` in #(((((
                   116886: -n*)
                   116887:   case `echo 'xy\c'` in
                   116888:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                   116889:   xy)  ECHO_C='\c';;
                   116890:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   116891:        ECHO_T='        ';;
                   116892:   esac;;
                   116893: *)
                   116894:   ECHO_N='-n';;
                   116895: esac
                   116896: 
                   116897: rm -f conf$$ conf$$.exe conf$$.file
                   116898: if test -d conf$$.dir; then
                   116899:   rm -f conf$$.dir/conf$$.file
                   116900: else
                   116901:   rm -f conf$$.dir
                   116902:   mkdir conf$$.dir 2>/dev/null
                   116903: fi
                   116904: if (echo >conf$$.file) 2>/dev/null; then
                   116905:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   116906:     as_ln_s='ln -s'
                   116907:     # ... but there are two gotchas:
                   116908:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   116909:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.2 ! misho    116910:     # In both cases, we have to default to `cp -pR'.
1.1       misho    116911:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.2 ! misho    116912:       as_ln_s='cp -pR'
1.1       misho    116913:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   116914:     as_ln_s=ln
                   116915:   else
1.1.1.2 ! misho    116916:     as_ln_s='cp -pR'
1.1       misho    116917:   fi
                   116918: else
1.1.1.2 ! misho    116919:   as_ln_s='cp -pR'
1.1       misho    116920: fi
                   116921: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   116922: rmdir conf$$.dir 2>/dev/null
                   116923: 
                   116924: 
                   116925: # as_fn_mkdir_p
                   116926: # -------------
                   116927: # Create "$as_dir" as a directory, including parents if necessary.
                   116928: as_fn_mkdir_p ()
                   116929: {
                   116930: 
                   116931:   case $as_dir in #(
                   116932:   -*) as_dir=./$as_dir;;
                   116933:   esac
                   116934:   test -d "$as_dir" || eval $as_mkdir_p || {
                   116935:     as_dirs=
                   116936:     while :; do
                   116937:       case $as_dir in #(
                   116938:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   116939:       *) as_qdir=$as_dir;;
                   116940:       esac
                   116941:       as_dirs="'$as_qdir' $as_dirs"
                   116942:       as_dir=`$as_dirname -- "$as_dir" ||
                   116943: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   116944:         X"$as_dir" : 'X\(//\)[^/]' \| \
                   116945:         X"$as_dir" : 'X\(//\)$' \| \
                   116946:         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   116947: $as_echo X"$as_dir" |
                   116948:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   116949:            s//\1/
                   116950:            q
                   116951:          }
                   116952:          /^X\(\/\/\)[^/].*/{
                   116953:            s//\1/
                   116954:            q
                   116955:          }
                   116956:          /^X\(\/\/\)$/{
                   116957:            s//\1/
                   116958:            q
                   116959:          }
                   116960:          /^X\(\/\).*/{
                   116961:            s//\1/
                   116962:            q
                   116963:          }
                   116964:          s/.*/./; q'`
                   116965:       test -d "$as_dir" && break
                   116966:     done
                   116967:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                   116968:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
                   116969: 
                   116970: 
                   116971: } # as_fn_mkdir_p
                   116972: if mkdir -p . 2>/dev/null; then
                   116973:   as_mkdir_p='mkdir -p "$as_dir"'
                   116974: else
                   116975:   test -d ./-p && rmdir ./-p
                   116976:   as_mkdir_p=false
                   116977: fi
                   116978: 
1.1.1.2 ! misho    116979: 
        !          116980: # as_fn_executable_p FILE
        !          116981: # -----------------------
        !          116982: # Test if FILE is an executable regular file.
        !          116983: as_fn_executable_p ()
        !          116984: {
        !          116985:   test -f "$1" && test -x "$1"
        !          116986: } # as_fn_executable_p
        !          116987: as_test_x='test -x'
        !          116988: as_executable_p=as_fn_executable_p
1.1       misho    116989: 
                   116990: # Sed expression to map a string onto a valid CPP name.
                   116991: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   116992: 
                   116993: # Sed expression to map a string onto a valid variable name.
                   116994: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   116995: 
                   116996: 
                   116997: exec 6>&1
                   116998: ## ----------------------------------- ##
                   116999: ## Main body of $CONFIG_STATUS script. ##
                   117000: ## ----------------------------------- ##
                   117001: _ASEOF
                   117002: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
                   117003: 
                   117004: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   117005: # Save the log message, to keep $0 and so on meaningful, and to
                   117006: # report actual input values of CONFIG_FILES etc. instead of their
                   117007: # values after options handling.
                   117008: ac_log="
                   117009: This file was extended by $as_me, which was
1.1.1.2 ! misho    117010: generated by GNU Autoconf 2.69.  Invocation command line was
1.1       misho    117011: 
                   117012:   CONFIG_FILES    = $CONFIG_FILES
                   117013:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   117014:   CONFIG_LINKS    = $CONFIG_LINKS
                   117015:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   117016:   $ $0 $@
                   117017: 
                   117018: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   117019: "
                   117020: 
                   117021: _ACEOF
                   117022: 
                   117023: case $ac_config_files in *"
                   117024: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   117025: esac
                   117026: 
                   117027: case $ac_config_headers in *"
                   117028: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   117029: esac
                   117030: 
                   117031: 
                   117032: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   117033: # Files that config.status was made for.
                   117034: config_files="$ac_config_files"
                   117035: config_headers="$ac_config_headers"
                   117036: config_commands="$ac_config_commands"
                   117037: 
                   117038: _ACEOF
                   117039: 
                   117040: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   117041: ac_cs_usage="\
                   117042: \`$as_me' instantiates files and other configuration actions
                   117043: from templates according to the current configuration.  Unless the files
                   117044: and actions are specified as TAGs, all are instantiated by default.
                   117045: 
                   117046: Usage: $0 [OPTION]... [TAG]...
                   117047: 
                   117048:   -h, --help       print this help, then exit
                   117049:   -V, --version    print version number and configuration settings, then exit
                   117050:       --config     print configuration, then exit
                   117051:   -q, --quiet, --silent
                   117052:                    do not print progress messages
                   117053:   -d, --debug      don't remove temporary files
                   117054:       --recheck    update $as_me by reconfiguring in the same conditions
                   117055:       --file=FILE[:TEMPLATE]
                   117056:                    instantiate the configuration file FILE
                   117057:       --header=FILE[:TEMPLATE]
                   117058:                    instantiate the configuration header FILE
                   117059: 
                   117060: Configuration files:
                   117061: $config_files
                   117062: 
                   117063: Configuration headers:
                   117064: $config_headers
                   117065: 
                   117066: Configuration commands:
                   117067: $config_commands
                   117068: 
                   117069: Report bugs to the package provider."
                   117070: 
                   117071: _ACEOF
                   117072: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   117073: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
                   117074: ac_cs_version="\\
                   117075: config.status
1.1.1.2 ! misho    117076: configured by $0, generated by GNU Autoconf 2.69,
1.1       misho    117077:   with options \\"\$ac_cs_config\\"
                   117078: 
1.1.1.2 ! misho    117079: Copyright (C) 2012 Free Software Foundation, Inc.
1.1       misho    117080: This config.status script is free software; the Free Software Foundation
                   117081: gives unlimited permission to copy, distribute and modify it."
                   117082: 
                   117083: ac_pwd='$ac_pwd'
                   117084: srcdir='$srcdir'
                   117085: test -n "\$AWK" || AWK=awk
                   117086: _ACEOF
                   117087: 
                   117088: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   117089: # The default lists apply if the user does not specify any file.
                   117090: ac_need_defaults=:
                   117091: while test $# != 0
                   117092: do
                   117093:   case $1 in
                   117094:   --*=?*)
                   117095:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   117096:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   117097:     ac_shift=:
                   117098:     ;;
                   117099:   --*=)
                   117100:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   117101:     ac_optarg=
                   117102:     ac_shift=:
                   117103:     ;;
                   117104:   *)
                   117105:     ac_option=$1
                   117106:     ac_optarg=$2
                   117107:     ac_shift=shift
                   117108:     ;;
                   117109:   esac
                   117110: 
                   117111:   case $ac_option in
                   117112:   # Handling of the options.
                   117113:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   117114:     ac_cs_recheck=: ;;
                   117115:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
                   117116:     $as_echo "$ac_cs_version"; exit ;;
                   117117:   --config | --confi | --conf | --con | --co | --c )
                   117118:     $as_echo "$ac_cs_config"; exit ;;
                   117119:   --debug | --debu | --deb | --de | --d | -d )
                   117120:     debug=: ;;
                   117121:   --file | --fil | --fi | --f )
                   117122:     $ac_shift
                   117123:     case $ac_optarg in
                   117124:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   117125:     '') as_fn_error $? "missing file argument" ;;
                   117126:     esac
                   117127:     as_fn_append CONFIG_FILES " '$ac_optarg'"
                   117128:     ac_need_defaults=false;;
                   117129:   --header | --heade | --head | --hea )
                   117130:     $ac_shift
                   117131:     case $ac_optarg in
                   117132:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   117133:     esac
                   117134:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
                   117135:     ac_need_defaults=false;;
                   117136:   --he | --h)
                   117137:     # Conflict between --help and --header
                   117138:     as_fn_error $? "ambiguous option: \`$1'
                   117139: Try \`$0 --help' for more information.";;
                   117140:   --help | --hel | -h )
                   117141:     $as_echo "$ac_cs_usage"; exit ;;
                   117142:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   117143:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   117144:     ac_cs_silent=: ;;
                   117145: 
                   117146:   # This is an error.
                   117147:   -*) as_fn_error $? "unrecognized option: \`$1'
                   117148: Try \`$0 --help' for more information." ;;
                   117149: 
                   117150:   *) as_fn_append ac_config_targets " $1"
                   117151:      ac_need_defaults=false ;;
                   117152: 
                   117153:   esac
                   117154:   shift
                   117155: done
                   117156: 
                   117157: ac_configure_extra_args=
                   117158: 
                   117159: if $ac_cs_silent; then
                   117160:   exec 6>/dev/null
                   117161:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   117162: fi
                   117163: 
                   117164: _ACEOF
                   117165: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   117166: if \$ac_cs_recheck; then
1.1.1.2 ! misho    117167:   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1       misho    117168:   shift
                   117169:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   117170:   CONFIG_SHELL='$SHELL'
                   117171:   export CONFIG_SHELL
                   117172:   exec "\$@"
                   117173: fi
                   117174: 
                   117175: _ACEOF
                   117176: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   117177: exec 5>>config.log
                   117178: {
                   117179:   echo
                   117180:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   117181: ## Running $as_me. ##
                   117182: _ASBOX
                   117183:   $as_echo "$ac_log"
                   117184: } >&5
                   117185: 
                   117186: _ACEOF
                   117187: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   117188: #
                   117189: # INIT-COMMANDS
                   117190: #
                   117191: 
                   117192: 
                   117193: if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES" || test "\$CONFIG_FILES" = " $ALL_OUTPUT_FILES" || test -z "\$CONFIG_FILES"; then
                   117194:   REDO_ALL=yes
                   117195: fi
                   117196: 
                   117197: ################################################################
                   117198: # Create configuration headers
                   117199: #
                   117200: 
                   117201: test -d TSRM || $php_shtool mkdir TSRM
                   117202: echo '#include <../main/php_config.h>' > TSRM/tsrm_config.h
                   117203: 
                   117204: test -d Zend || $php_shtool mkdir Zend
                   117205: 
                   117206: cat >Zend/zend_config.h <<FEO
                   117207: #include <../main/php_config.h>
                   117208: #if defined(APACHE) && defined(PHP_API_VERSION)
                   117209: #undef HAVE_DLFCN_H
                   117210: #endif
                   117211: FEO
                   117212: 
                   117213: # run this only when generating all the files?
                   117214: if test -n "\$REDO_ALL"; then
                   117215:   # Hacking while airborne considered harmful.
                   117216:   #
                   117217:   echo "creating main/internal_functions.c"
                   117218:   extensions="$EXT_STATIC"
                   117219:   sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$extensions > main/internal_functions.c
                   117220: 
                   117221:   echo "creating main/internal_functions_cli.c"
                   117222:   cli_extensions="$EXT_CLI_STATIC"
                   117223:   sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$cli_extensions > main/internal_functions_cli.c
                   117224: 
                   117225:   if test "$UNAME" = "FreeBSD" && test "$PHP_SAPI" = "apache2filter" && test "$TSRM_PTH" != "pth-config" ; then
                   117226:     echo "+--------------------------------------------------------------------+"
                   117227:     echo "|                        *** WARNING ***                             |"
                   117228:     echo "|                                                                    |"
                   117229:     echo "| In order to build PHP as a Apache2 module on FreeBSD, you have to  |"
                   117230:     echo "| add  --with-tsrm-pth to your ./configure line. Therefore you need  |"
                   117231:     echo "| to install gnu-pth from /usr/ports/devel/pth.                      |"
                   117232:   fi
                   117233: 
                   117234:   if test -n "$PHP_APXS_BROKEN"; then
                   117235:     echo "+--------------------------------------------------------------------+"
                   117236:     echo "| WARNING: Your $APXS script is most likely broken."
                   117237:     echo "|                                                                    |"
                   117238:     echo "| Please go read http://www.php.net/faq.build#faq.build.apxs         |"
                   117239:     echo "| and make the changes described there and try again.                |"
                   117240:   fi
                   117241: 
                   117242:   if test -n "$DEBUG_LOG"; then
                   117243:     rm -f config.cache
                   117244: cat <<X
                   117245: +--------------------------------------------------------------------+
                   117246: |                       *** ATTENTION ***                            |
                   117247: |                                                                    |
                   117248: | Something is likely to be messed up here, because the configure    |
                   117249: | script was not able to detect a simple feature on your platform.   |
                   117250: | This is often caused by incorrect configuration parameters. Please |
                   117251: | see the file debug.log for error messages.                         |
                   117252: |                                                                    |
                   117253: | If you are unable to fix this, send the file debug.log to the      |
                   117254: | php-install@lists.php.net mailing list and include appropiate      |
                   117255: | information about your setup.                                      |
                   117256: X
                   117257:   fi
                   117258: 
1.1.1.2 ! misho    117259:   if test "$PHP_SAPI" = "apache2handler" || test "$PHP_SAPI" = "apache2filter"; then
        !          117260:     if test "$APACHE_VERSION" -ge 2004001; then
        !          117261:       if test -z "$APACHE_THREADED_MPM"; then
        !          117262: cat <<X
        !          117263: +--------------------------------------------------------------------+
        !          117264: |                        *** WARNING ***                             |
        !          117265: |                                                                    |
        !          117266: | You have built PHP for Apache's current non-threaded MPM.          |
        !          117267: | If you change Apache to use a threaded MPM you must reconfigure    |
        !          117268: | PHP with --enable-maintainer-zts                                   |
        !          117269: X
        !          117270:       fi
        !          117271:     fi
        !          117272:   fi
        !          117273: 
1.1       misho    117274:   # Warn about linking Apache with libpthread if oci8 extension is enabled on linux.
                   117275:   if test "$PHP_OCI8" != "no"; then
                   117276:     if test "$PHP_SAPI" = "apache"; then
                   117277:       if test `uname` = "Linux"; then
                   117278: cat <<X
                   117279: +--------------------------------------------------------------------+
                   117280: |                        *** WARNING ***                             |
                   117281: |                                                                    |
                   117282: | Please check that your Apache (httpd) is linked with libpthread.   |
                   117283: | If not, you have to recompile Apache with pthread. For more        |
                   117284: | details, see this page: http://www.php.net/manual/ref.oci8.php     |
                   117285: X
                   117286:       fi
                   117287:     fi
                   117288: 
                   117289:     if test "$PHP_SIGCHILD" != "yes"; then
                   117290:       if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then
                   117291: cat <<X
                   117292: +--------------------------------------------------------------------+
                   117293: | Notice:                                                            |
                   117294: | If you encounter <defunc> processes when using a local Oracle      |
                   117295: | database, set the value BEQUEATH_DETACH=YES in Oracle Net's        |
                   117296: | sqlnet.ora file on the PHP host, or set the environment variable   |
                   117297: | BEQUEATH_DETACH to YES before starting Apache.  If the problem     |
                   117298: | still occurs, then recompile PHP and specify --enable-sigchild     |
                   117299: | when configuring.                                                  |
                   117300: X
                   117301:       fi
                   117302:     fi
                   117303:   fi
                   117304: 
                   117305: cat <<X
                   117306: +--------------------------------------------------------------------+
                   117307: | License:                                                           |
                   117308: | This software is subject to the PHP License, available in this     |
                   117309: | distribution in the file LICENSE.  By continuing this installation |
                   117310: | process, you are bound by the terms of this license agreement.     |
                   117311: | If you do not agree with the terms of this license, you must abort |
                   117312: | the installation process at this point.                            |
                   117313: +--------------------------------------------------------------------+
                   117314: 
                   117315: Thank you for using PHP.
                   117316: 
                   117317: X
                   117318: 
                   117319:   # Output unknown configure options
                   117320:   if test "$PHP_UNKNOWN_CONFIGURE_OPTIONS"; then
                   117321:     echo "Notice: Following unknown configure options were used:
                   117322: $PHP_UNKNOWN_CONFIGURE_OPTIONS
                   117323: 
                   117324: Check '$0 --help' for available options
                   117325: "
                   117326:   fi
                   117327: 
                   117328: fi
                   117329: 
                   117330: 
                   117331: _ACEOF
                   117332: 
                   117333: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   117334: 
                   117335: # Handling of arguments.
                   117336: for ac_config_target in $ac_config_targets
                   117337: do
                   117338:   case $ac_config_target in
                   117339:     "main/php_config.h") CONFIG_HEADERS="$CONFIG_HEADERS main/php_config.h" ;;
                   117340:     "$ALL_OUTPUT_FILES") CONFIG_FILES="$CONFIG_FILES $ALL_OUTPUT_FILES" ;;
                   117341:     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
                   117342: 
                   117343:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
                   117344:   esac
                   117345: done
                   117346: 
                   117347: 
                   117348: # If the user did not use the arguments to specify the items to instantiate,
                   117349: # then the envvar interface is used.  Set only those that are not.
                   117350: # We use the long form for the default assignment because of an extremely
                   117351: # bizarre bug on SunOS 4.1.3.
                   117352: if $ac_need_defaults; then
                   117353:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   117354:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   117355:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   117356: fi
                   117357: 
                   117358: # Have a temporary directory for convenience.  Make it in the build tree
                   117359: # simply because there is no reason against having it here, and in addition,
                   117360: # creating and moving files from /tmp can sometimes cause problems.
                   117361: # Hook for its removal unless debugging.
                   117362: # Note that there is a small window in which the directory will not be cleaned:
                   117363: # after its creation but before its name has been assigned to `$tmp'.
                   117364: $debug ||
                   117365: {
                   117366:   tmp= ac_tmp=
                   117367:   trap 'exit_status=$?
                   117368:   : "${ac_tmp:=$tmp}"
                   117369:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
                   117370: ' 0
                   117371:   trap 'as_fn_exit 1' 1 2 13 15
                   117372: }
                   117373: # Create a (secure) tmp directory for tmp files.
                   117374: 
                   117375: {
                   117376:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
                   117377:   test -d "$tmp"
                   117378: }  ||
                   117379: {
                   117380:   tmp=./conf$$-$RANDOM
                   117381:   (umask 077 && mkdir "$tmp")
                   117382: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
                   117383: ac_tmp=$tmp
                   117384: 
                   117385: # Set up the scripts for CONFIG_FILES section.
                   117386: # No need to generate them if there are no CONFIG_FILES.
                   117387: # This happens for instance with `./config.status config.h'.
                   117388: if test -n "$CONFIG_FILES"; then
                   117389: 
                   117390: 
                   117391: ac_cr=`echo X | tr X '\015'`
                   117392: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   117393: # But we know of no other shell where ac_cr would be empty at this
                   117394: # point, so we can use a bashism as a fallback.
                   117395: if test "x$ac_cr" = x; then
                   117396:   eval ac_cr=\$\'\\r\'
                   117397: fi
                   117398: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   117399: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
                   117400:   ac_cs_awk_cr='\\r'
                   117401: else
                   117402:   ac_cs_awk_cr=$ac_cr
                   117403: fi
                   117404: 
                   117405: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
                   117406: _ACEOF
                   117407: 
                   117408: 
                   117409: {
                   117410:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   117411:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   117412:   echo "_ACEOF"
                   117413: } >conf$$subs.sh ||
                   117414:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   117415: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
                   117416: ac_delim='%!_!# '
                   117417: for ac_last_try in false false false false false :; do
                   117418:   . ./conf$$subs.sh ||
                   117419:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   117420: 
                   117421:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   117422:   if test $ac_delim_n = $ac_delim_num; then
                   117423:     break
                   117424:   elif $ac_last_try; then
                   117425:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   117426:   else
                   117427:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   117428:   fi
                   117429: done
                   117430: rm -f conf$$subs.sh
                   117431: 
                   117432: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   117433: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
                   117434: _ACEOF
                   117435: sed -n '
                   117436: h
                   117437: s/^/S["/; s/!.*/"]=/
                   117438: p
                   117439: g
                   117440: s/^[^!]*!//
                   117441: :repl
                   117442: t repl
                   117443: s/'"$ac_delim"'$//
                   117444: t delim
                   117445: :nl
                   117446: h
                   117447: s/\(.\{148\}\)..*/\1/
                   117448: t more1
                   117449: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   117450: p
                   117451: n
                   117452: b repl
                   117453: :more1
                   117454: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   117455: p
                   117456: g
                   117457: s/.\{148\}//
                   117458: t nl
                   117459: :delim
                   117460: h
                   117461: s/\(.\{148\}\)..*/\1/
                   117462: t more2
                   117463: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   117464: p
                   117465: b
                   117466: :more2
                   117467: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   117468: p
                   117469: g
                   117470: s/.\{148\}//
                   117471: t delim
                   117472: ' <conf$$subs.awk | sed '
                   117473: /^[^""]/{
                   117474:   N
                   117475:   s/\n//
                   117476: }
                   117477: ' >>$CONFIG_STATUS || ac_write_fail=1
                   117478: rm -f conf$$subs.awk
                   117479: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   117480: _ACAWK
                   117481: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
                   117482:   for (key in S) S_is_set[key] = 1
                   117483:   FS = ""
                   117484: 
                   117485: }
                   117486: {
                   117487:   line = $ 0
                   117488:   nfields = split(line, field, "@")
                   117489:   substed = 0
                   117490:   len = length(field[1])
                   117491:   for (i = 2; i < nfields; i++) {
                   117492:     key = field[i]
                   117493:     keylen = length(key)
                   117494:     if (S_is_set[key]) {
                   117495:       value = S[key]
                   117496:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   117497:       len += length(value) + length(field[++i])
                   117498:       substed = 1
                   117499:     } else
                   117500:       len += 1 + keylen
                   117501:   }
                   117502: 
                   117503:   print line
                   117504: }
                   117505: 
                   117506: _ACAWK
                   117507: _ACEOF
                   117508: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   117509: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   117510:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   117511: else
                   117512:   cat
                   117513: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
                   117514:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
                   117515: _ACEOF
                   117516: 
                   117517: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
                   117518: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
                   117519: # trailing colons and then remove the whole line if VPATH becomes empty
                   117520: # (actually we leave an empty line to preserve line numbers).
                   117521: if test "x$srcdir" = x.; then
                   117522:   ac_vpsub='/^[         ]*VPATH[        ]*=[    ]*/{
                   117523: h
                   117524: s///
                   117525: s/^/:/
                   117526: s/[     ]*$/:/
                   117527: s/:\$(srcdir):/:/g
                   117528: s/:\${srcdir}:/:/g
                   117529: s/:@srcdir@:/:/g
                   117530: s/^:*//
                   117531: s/:*$//
                   117532: x
                   117533: s/\(=[  ]*\).*/\1/
                   117534: G
                   117535: s/\n//
                   117536: s/^[^=]*=[      ]*$//
                   117537: }'
                   117538: fi
                   117539: 
                   117540: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   117541: fi # test -n "$CONFIG_FILES"
                   117542: 
                   117543: # Set up the scripts for CONFIG_HEADERS section.
                   117544: # No need to generate them if there are no CONFIG_HEADERS.
                   117545: # This happens for instance with `./config.status Makefile'.
                   117546: if test -n "$CONFIG_HEADERS"; then
                   117547: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
                   117548: BEGIN {
                   117549: _ACEOF
                   117550: 
                   117551: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   117552: # here-document in config.status, that substitutes the proper values into
                   117553: # config.h.in to produce config.h.
                   117554: 
                   117555: # Create a delimiter string that does not exist in confdefs.h, to ease
                   117556: # handling of long lines.
                   117557: ac_delim='%!_!# '
                   117558: for ac_last_try in false false :; do
                   117559:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
                   117560:   if test -z "$ac_tt"; then
                   117561:     break
                   117562:   elif $ac_last_try; then
                   117563:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
                   117564:   else
                   117565:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   117566:   fi
                   117567: done
                   117568: 
                   117569: # For the awk script, D is an array of macro values keyed by name,
                   117570: # likewise P contains macro parameters if any.  Preserve backslash
                   117571: # newline sequences.
                   117572: 
                   117573: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   117574: sed -n '
                   117575: s/.\{148\}/&'"$ac_delim"'/g
                   117576: t rset
                   117577: :rset
                   117578: s/^[    ]*#[    ]*define[       ][      ]*/ /
                   117579: t def
                   117580: d
                   117581: :def
                   117582: s/\\$//
                   117583: t bsnl
                   117584: s/["\\]/\\&/g
                   117585: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   117586: D["\1"]=" \3"/p
                   117587: s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2"/p
                   117588: d
                   117589: :bsnl
                   117590: s/["\\]/\\&/g
                   117591: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   117592: D["\1"]=" \3\\\\\\n"\\/p
                   117593: t cont
                   117594: s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   117595: t cont
                   117596: d
                   117597: :cont
                   117598: n
                   117599: s/.\{148\}/&'"$ac_delim"'/g
                   117600: t clear
                   117601: :clear
                   117602: s/\\$//
                   117603: t bsnlc
                   117604: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   117605: d
                   117606: :bsnlc
                   117607: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   117608: b cont
                   117609: ' <confdefs.h | sed '
                   117610: s/'"$ac_delim"'/"\\\
                   117611: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   117612: 
                   117613: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   117614:   for (key in D) D_is_set[key] = 1
                   117615:   FS = ""
                   117616: }
                   117617: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   117618:   line = \$ 0
                   117619:   split(line, arg, " ")
                   117620:   if (arg[1] == "#") {
                   117621:     defundef = arg[2]
                   117622:     mac1 = arg[3]
                   117623:   } else {
                   117624:     defundef = substr(arg[1], 2)
                   117625:     mac1 = arg[2]
                   117626:   }
                   117627:   split(mac1, mac2, "(") #)
                   117628:   macro = mac2[1]
                   117629:   prefix = substr(line, 1, index(line, defundef) - 1)
                   117630:   if (D_is_set[macro]) {
                   117631:     # Preserve the white space surrounding the "#".
                   117632:     print prefix "define", macro P[macro] D[macro]
                   117633:     next
                   117634:   } else {
                   117635:     # Replace #undef with comments.  This is necessary, for example,
                   117636:     # in the case of _POSIX_SOURCE, which is predefined and required
                   117637:     # on some systems where configure will not decide to define it.
                   117638:     if (defundef == "undef") {
                   117639:       print "/*", prefix defundef, macro, "*/"
                   117640:       next
                   117641:     }
                   117642:   }
                   117643: }
                   117644: { print }
                   117645: _ACAWK
                   117646: _ACEOF
                   117647: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   117648:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
                   117649: fi # test -n "$CONFIG_HEADERS"
                   117650: 
                   117651: 
                   117652: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   117653: shift
                   117654: for ac_tag
                   117655: do
                   117656:   case $ac_tag in
                   117657:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   117658:   esac
                   117659:   case $ac_mode$ac_tag in
                   117660:   :[FHL]*:*);;
                   117661:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
                   117662:   :[FH]-) ac_tag=-:-;;
                   117663:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   117664:   esac
                   117665:   ac_save_IFS=$IFS
                   117666:   IFS=:
                   117667:   set x $ac_tag
                   117668:   IFS=$ac_save_IFS
                   117669:   shift
                   117670:   ac_file=$1
                   117671:   shift
                   117672: 
                   117673:   case $ac_mode in
                   117674:   :L) ac_source=$1;;
                   117675:   :[FH])
                   117676:     ac_file_inputs=
                   117677:     for ac_f
                   117678:     do
                   117679:       case $ac_f in
                   117680:       -) ac_f="$ac_tmp/stdin";;
                   117681:       *) # Look for the file first in the build tree, then in the source tree
                   117682:         # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   117683:         # because $ac_f cannot contain `:'.
                   117684:         test -f "$ac_f" ||
                   117685:           case $ac_f in
                   117686:           [\\/$]*) false;;
                   117687:           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   117688:           esac ||
                   117689:           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
                   117690:       esac
                   117691:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   117692:       as_fn_append ac_file_inputs " '$ac_f'"
                   117693:     done
                   117694: 
                   117695:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   117696:     # use $as_me), people would be surprised to read:
                   117697:     #    /* config.h.  Generated by config.status.  */
                   117698:     configure_input='Generated from '`
                   117699:          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   117700:        `' by configure.'
                   117701:     if test x"$ac_file" != x-; then
                   117702:       configure_input="$ac_file.  $configure_input"
                   117703:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   117704: $as_echo "$as_me: creating $ac_file" >&6;}
                   117705:     fi
                   117706:     # Neutralize special characters interpreted by sed in replacement strings.
                   117707:     case $configure_input in #(
                   117708:     *\&* | *\|* | *\\* )
                   117709:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   117710:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   117711:     *) ac_sed_conf_input=$configure_input;;
                   117712:     esac
                   117713: 
                   117714:     case $ac_tag in
                   117715:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
                   117716:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
                   117717:     esac
                   117718:     ;;
                   117719:   esac
                   117720: 
                   117721:   ac_dir=`$as_dirname -- "$ac_file" ||
                   117722: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   117723:         X"$ac_file" : 'X\(//\)[^/]' \| \
                   117724:         X"$ac_file" : 'X\(//\)$' \| \
                   117725:         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
                   117726: $as_echo X"$ac_file" |
                   117727:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   117728:            s//\1/
                   117729:            q
                   117730:          }
                   117731:          /^X\(\/\/\)[^/].*/{
                   117732:            s//\1/
                   117733:            q
                   117734:          }
                   117735:          /^X\(\/\/\)$/{
                   117736:            s//\1/
                   117737:            q
                   117738:          }
                   117739:          /^X\(\/\).*/{
                   117740:            s//\1/
                   117741:            q
                   117742:          }
                   117743:          s/.*/./; q'`
                   117744:   as_dir="$ac_dir"; as_fn_mkdir_p
                   117745:   ac_builddir=.
                   117746: 
                   117747: case "$ac_dir" in
                   117748: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   117749: *)
                   117750:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
                   117751:   # A ".." for each directory in $ac_dir_suffix.
                   117752:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
                   117753:   case $ac_top_builddir_sub in
                   117754:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   117755:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   117756:   esac ;;
                   117757: esac
                   117758: ac_abs_top_builddir=$ac_pwd
                   117759: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   117760: # for backward compatibility:
                   117761: ac_top_builddir=$ac_top_build_prefix
                   117762: 
                   117763: case $srcdir in
                   117764:   .)  # We are building in place.
                   117765:     ac_srcdir=.
                   117766:     ac_top_srcdir=$ac_top_builddir_sub
                   117767:     ac_abs_top_srcdir=$ac_pwd ;;
                   117768:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   117769:     ac_srcdir=$srcdir$ac_dir_suffix;
                   117770:     ac_top_srcdir=$srcdir
                   117771:     ac_abs_top_srcdir=$srcdir ;;
                   117772:   *) # Relative name.
                   117773:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   117774:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   117775:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   117776: esac
                   117777: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   117778: 
                   117779: 
                   117780:   case $ac_mode in
                   117781:   :F)
                   117782:   #
                   117783:   # CONFIG_FILE
                   117784:   #
                   117785: 
                   117786: _ACEOF
                   117787: 
                   117788: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   117789: # If the template does not know about datarootdir, expand it.
                   117790: # FIXME: This hack should be removed a few years after 2.60.
                   117791: ac_datarootdir_hack=; ac_datarootdir_seen=
                   117792: ac_sed_dataroot='
                   117793: /datarootdir/ {
                   117794:   p
                   117795:   q
                   117796: }
                   117797: /@datadir@/p
                   117798: /@docdir@/p
                   117799: /@infodir@/p
                   117800: /@localedir@/p
                   117801: /@mandir@/p'
                   117802: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
                   117803: *datarootdir*) ac_datarootdir_seen=yes;;
                   117804: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
                   117805:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   117806: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
                   117807: _ACEOF
                   117808: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   117809:   ac_datarootdir_hack='
                   117810:   s&@datadir@&$datadir&g
                   117811:   s&@docdir@&$docdir&g
                   117812:   s&@infodir@&$infodir&g
                   117813:   s&@localedir@&$localedir&g
                   117814:   s&@mandir@&$mandir&g
                   117815:   s&\\\${datarootdir}&$datarootdir&g' ;;
                   117816: esac
                   117817: _ACEOF
                   117818: 
                   117819: # Neutralize VPATH when `$srcdir' = `.'.
                   117820: # Shell code in configure.ac might set extrasub.
                   117821: # FIXME: do we really want to maintain this feature?
                   117822: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   117823: ac_sed_extra="$ac_vpsub
                   117824: $extrasub
                   117825: _ACEOF
                   117826: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   117827: :t
                   117828: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   117829: s|@configure_input@|$ac_sed_conf_input|;t t
                   117830: s&@top_builddir@&$ac_top_builddir_sub&;t t
                   117831: s&@top_build_prefix@&$ac_top_build_prefix&;t t
                   117832: s&@srcdir@&$ac_srcdir&;t t
                   117833: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   117834: s&@top_srcdir@&$ac_top_srcdir&;t t
                   117835: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   117836: s&@builddir@&$ac_builddir&;t t
                   117837: s&@abs_builddir@&$ac_abs_builddir&;t t
                   117838: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   117839: $ac_datarootdir_hack
                   117840: "
                   117841: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
                   117842:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   117843: 
                   117844: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
                   117845:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
                   117846:   { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' \
                   117847:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
                   117848:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   117849: which seems to be undefined.  Please make sure it is defined" >&5
                   117850: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   117851: which seems to be undefined.  Please make sure it is defined" >&2;}
                   117852: 
                   117853:   rm -f "$ac_tmp/stdin"
                   117854:   case $ac_file in
                   117855:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
                   117856:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
                   117857:   esac \
                   117858:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   117859:  ;;
                   117860:   :H)
                   117861:   #
                   117862:   # CONFIG_HEADER
                   117863:   #
                   117864:   if test x"$ac_file" != x-; then
                   117865:     {
                   117866:       $as_echo "/* $configure_input  */" \
                   117867:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
                   117868:     } >"$ac_tmp/config.h" \
                   117869:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   117870:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
                   117871:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   117872: $as_echo "$as_me: $ac_file is unchanged" >&6;}
                   117873:     else
                   117874:       rm -f "$ac_file"
                   117875:       mv "$ac_tmp/config.h" "$ac_file" \
                   117876:        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   117877:     fi
                   117878:   else
                   117879:     $as_echo "/* $configure_input  */" \
                   117880:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
                   117881:       || as_fn_error $? "could not create -" "$LINENO" 5
                   117882:   fi
                   117883:  ;;
                   117884: 
                   117885:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   117886: $as_echo "$as_me: executing $ac_file commands" >&6;}
                   117887:  ;;
                   117888:   esac
                   117889: 
                   117890: done # for ac_tag
                   117891: 
                   117892: 
                   117893: as_fn_exit 0
                   117894: _ACEOF
                   117895: ac_clean_files=$ac_clean_files_save
                   117896: 
                   117897: test $ac_write_fail = 0 ||
                   117898:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
                   117899: 
                   117900: 
                   117901: # configure is writing to config.log, and then calls config.status.
                   117902: # config.status does its own redirection, appending to config.log.
                   117903: # Unfortunately, on DOS this fails, as config.log is still kept open
                   117904: # by configure, so config.status won't be able to write to it; its
                   117905: # output is simply discarded.  So we exec the FD to /dev/null,
                   117906: # effectively closing config.log, so it can be properly (re)opened and
                   117907: # appended to by config.status.  When coming back to configure, we
                   117908: # need to make the FD available again.
                   117909: if test "$no_create" != yes; then
                   117910:   ac_cs_success=:
                   117911:   ac_config_status_args=
                   117912:   test "$silent" = yes &&
                   117913:     ac_config_status_args="$ac_config_status_args --quiet"
                   117914:   exec 5>/dev/null
                   117915:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   117916:   exec 5>>config.log
                   117917:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   117918:   # would make configure fail if this is the last instruction.
                   117919:   $ac_cs_success || as_fn_exit 1
                   117920: fi
                   117921: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   117922:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   117923: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   117924: fi
                   117925: 
                   117926: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>