Lines Matching defs:libpath
72 libpath[1024], /* Path for libcups */
90 if (getcwd(libpath, sizeof(libpath)) &&
91 (ptr = strrchr(libpath, '/')) != NULL && !strcmp(ptr, "/backend"))
93 strlcpy(ptr, "/cups", sizeof(libpath) - (size_t)(ptr - libpath));
94 if (!access(libpath, 0))
97 fprintf(stderr, "Setting DYLD_LIBRARY_PATH to \"%s\".\n", libpath);
98 setenv("DYLD_LIBRARY_PATH", libpath, 1);
100 fprintf(stderr, "Setting LD_LIBRARY_PATH to \"%s\".\n", libpath);
101 setenv("LD_LIBRARY_PATH", libpath, 1);
105 perror(libpath);